At 01:32 +0000 20/1/08, Melissa wrote:

...I need to convert some German text
to ASCII. I know there's a "convert to ASCII" option which swaps out
the umlauts for the vowel+e, but sometimes I need to alter text
written with word caps, as well as all upper case or all lower case.
The "convert to ASCII" option seems to only use the lowercase e, even
when the word is in upper case.

Is there any way to make the "convert to ASCII" option more
intelligent (for lack of a better description)?

Perhaps you could do something like this after doing the conversion to ASCII:

tell application "BBEdit"
  tell text of window 1
replace "([AOU])e" using "\\1E" options {search mode:grep, starting at top:true, case sensitive:true}
  end tell
end tell

JD


--
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to