G'day Folks

I have a handful of HTML files containing lists of day & months names for various calendars. Unfortunately those for right to left writing systems such as Arabic & Hebrew are encoded as left to right. That's fine in my web browser but when I copy the text to another application the characters are reversed.

Can anyone suggest a fairly automated way of reversing the order of the strings of entities so that (for example) this... <bdo dir="ltr" lang="ar">&#1583;&#1581;&#1571;&#1604;&#1575; &#1605;&#1608;&#1610;</bdo>
becomes...
<bdo dir="rtl" lang="ar">&#1610;&#1608;&#1605; &#1575;&#1604;&#1571;&#1581;&#1583;</bdo>
(that string is the Arabic name for Sunday BTW)

I have a couple of hundred strings to switch around.

TIA & cheers, Pedro :-)

Web: <http://www.pedro.net.au/> PGP Key ID: 387CD96F AIM: [EMAIL PROTECTED] Jabber: [EMAIL PROTECTED] Yahoo: pedro_fp ICQ: 27671678 MSN: [EMAIL PROTECTED] Skype: pedrofp ~ ~ ~ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Those who profess to favour freedom, and yet deprecate agitation, are men
who want crops without ploughing up the ground. They want rain without
thunder and lightening. They want the ocean without the awful roar of the
waters. This struggle may be both moral and physical, but it must be a
struggle... The limits of tyrants are prescribed by the endurance of those
whom they oppress."
Frederick Douglas



--
------------------------------------------------------------------
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_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to