User talk:Hesperian/vector.js

From Wikisource
Jump to navigation Jump to search

Thoughts cleanup()[edit]

OCR
  • /(\w)U(\w)/ for $1ll$2
knowing that this won't pick up \wll but being better than nothing
one identified is VU which is often VII for volumes.
This would be a problem with uppercase words too. Maybe /([a-z])U([a-z])/. Hesperian 22:48, 13 March 2010 (UTC)[reply]
I've just gone for (/([a-z])U/g, which will change "U" to "ll" when preceded by a lower case letter. This will fix most cases, and any attempt to take it further, such as to make it change "AU" -> "All", is also likely to do "THOU" -> "THOll". Hesperian 23:11, 13 March 2010 (UTC)[reply]
  • Digitized by Google
kill kill kill :-)

<!-- --> and cleanup()[edit]

the -- in cleanup() grabs and converts any html comments <-- -->, we'll need to tweak, probably just not when preceded by ! or succeeded by >

Ta, fixed. (I think.) Hesperian 23:32, 6 April 2010 (UTC)[reply]