Guest User

Untitled

a guest
Sep 14th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.91 KB | None | 0 0
  1. %s!\(\d \)\(([A-Za-z0-9'\. ]*\d\d\d\d)\)!\1<phrase role="dept_and_year">\2</phrase>!gn` "tag the phrase
  2. %s!, \([0-9]* [A-Za-z0-9&\.]* [0-9,\*\- ]*\), \([0-9]* [A-Za-z0-9&\.]* [0-9,\*\- ]*\) <phrase!, <citation>\1</citation> <citation role="parallel_citation">\2</citation> <phrase!gn` "tag any cases already tagged with a <phrase> with <citation> and <citation role="parallel_citation">
  3. %s!, \([0-9]* [A-Za-z0-9\.& ]* [0-9,\- ]*\)<phrase!, <citation>\1</citation>, <phrase!gn` "tag the <citation> and with trailing pinpoint citations
  4. %s!\(<citation>.\{-}</phrase>\)!<bibliomisc>\1</bibliomisc>!gn` "tag citation and phrase with bibliomisc. The \{-} is important, other wise the search is too greedy
  5. %s!\([A-Za-z0-9'&#;]* v\. [A-Za-z0-9'\-\. ]*\),!<title role="casename">\1</title>!gn` "tag the title
  6. %s!\(<title role="casename">.\{-}</bibliomisc>\)!<bibliolist><bibliomixed>\1</bibliomixed></bibliolist>!gn` "tag the whole citation
Add Comment
Please, Sign In to add comment