On 20/01/2008, Oren Held <[EMAIL PROTECTED]> wrote: > On Sunday 20 January 2008 16:15, Dotan Cohen wrote: > > > Sorry, I didn't realise it's a web thingie (I thought it's a Linux util). > > > Very nice. I'll try to read better next time :) > > > > Actually, Oren, I did not realize that there are Linux tools that do > > the same thing. Had I know, I might not have written the site! > > Seriously, though, thanks for the info and I will mention those tools > > in an upcoming page about alternative solutions. > > What you did is "visual to logical". A quick search shows that fribidi DOESN'T > do it. It seems to have fribidi_log2vis() function but not > fribidi_vis2log() .
I assume that you are referring to the "change text direction" service, one of two services provided by the site. I am not doing visual to logical, as I do not -mityajes- (how in English?) to the encoding of the inputed string. All input is UTF-8 as per the page encoding and metatag, and all input is assumed to be UTF-8 therefore. If two Hebrew letters are next to each other, then their location in the string is reversed. Hebrew and non-rtl letters do not have their positions reversed. I'm still perfecting the algorithm, so more borderline test cases would be welcome. Thanks. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?