Pedro fp
2008-05-18 11:57:14 UTC
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">دحألا
موي</bdo>
becomes...
<bdo dir="rtl" lang="ar">يوم
الأحد</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: ***@mac.com Jabber: ***@jabber.org.au Yahoo:
pedro_fp
ICQ: 27671678 MSN: ***@hotmail.com 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
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">دحألا
موي</bdo>
becomes...
<bdo dir="rtl" lang="ar">يوم
الأحد</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: ***@mac.com Jabber: ***@jabber.org.au Yahoo:
pedro_fp
ICQ: 27671678 MSN: ***@hotmail.com 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 <***@barebones.com>, 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: <bbedit-talk-***@barebones.com>
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, 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: <bbedit-talk-***@barebones.com>