<br><font size=2 face="sans-serif">Another library which provides logical
to visual transformation is ICU (see </font><a href="http://site.icu-project.org/"><font size=2 face="sans-serif">http://site.icu-project.org/</font></a><font size=2 face="sans-serif">
).</font>
<br><font size=2 face="sans-serif"><br>
Shalom (Regards), &nbsp;Mati<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Bidi Architect<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Globalization Center Of Competency
- Bidirectional Scripts<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IBM Israel<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Phone: +972 2 5888802 &nbsp; &nbsp;Fax:
+972 2 5870333 &nbsp; &nbsp;Mobile: +972 52 2554160<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Dov Grobgeld &lt;dov.grobgeld@gmail.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Gadi Cohen &lt;dragon@wastelands.net&gt;</font>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td><font size=1 face="sans-serif">Matitiahu Allouche/Israel/IBM@IBMIL,
linux-il@cs.huji.ac.il, linux-il-bounces@cs.huji.ac.il</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">18/01/2010 05:40 ã</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: Hebrew search in PDFs is backwards?</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>You can easily do it with fribidi through the fribidi_log2vis()
function. fribidi is wrapped by pango, but it does not export its API.
It does export pango_log2vis_get_embedding_levels() but you'll have to
work a bit more to use this function.<br>
<br>
Regards,<br>
Dov<br>
</font>
<br><font size=3>On Mon, Jan 18, 2010 at 16:28, Gadi Cohen &lt;</font><a href=mailto:dragon@wastelands.net><font size=3 color=blue><u>dragon@wastelands.net</u></font></a><font size=3>&gt;
wrote:</font>
<br><font size=3>Matitiahu Allouche wrote:<br>
<br>
&gt; PDF's objective is to reflect the exact appearance of text. &nbsp;For<br>
&gt; Hebrew, it means that the text is stored in visual order. &nbsp;If
your PDF<br>
&gt; viewer accepts user input in logical order (which is the case in<br>
&gt; Windows and Linux), it should transform search arguments (captured<br>
&gt; from a user dialog) from logical to visual order before performing
the<br>
&gt; search.</font>
<br><font size=3>Thanks, that was very helpful!<br>
<br>
I'm now trying to implement this in Okular (instead of studying for my<br>
exam, bad!). &nbsp;I've set up a KDE4 development environment, but have
no<br>
prior experience with KDE or Qt at all.<br>
<br>
I've searched the 'net for anything relevant, and I see in older<br>
versions of Qt there were functions like QString::visual() and<br>
QHebrewCodec, but nothing like that exists in the latest version (4.6).<br>
Do you (or does anyone) know how to convert a string from visual to<br>
logical in qt4?<br>
<br>
Or for reference purposes, do you or does anyone know offhand how one<br>
would do this with GNOME / Pango? &nbsp;(Evince is next, although with
any<br>
luck I won't look at any of this again until after exams).<br>
<br>
Thanks!</font><font size=3 color=#8f8f8f><br>
<br>
Gadi</font><font size=3><br>
<br>
P.S. Anyone else wondering if all this hail will crack their windows? :)</font>
<br><font size=3><br>
--<br>
Gadi Cohen aka Kinslayer &lt;</font><a href=mailto:dragon@wastelands.net><font size=3 color=blue><u>dragon@wastelands.net</u></font></a><font size=3>&gt;
</font><a href=http://www.wastelands.net/ target=_blank><font size=3 color=blue><u>www.wastelands.net</u></font></a><font size=3><br>
Freelance admin/coding/design HABONIM DROR linux/fantasy enthusiast<br>
KeyID 0x93F26EF5: 256A 1FC7 AA2B 6A8F 1D9B 6A5A 4403 F34B 93F2 6EF5<br>
<br>
<br>
_______________________________________________<br>
Linux-il mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:Linux-il@cs.huji.ac.il"><font size=3 color=blue><u>Linux-il@cs.huji.ac.il</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target=_blank><font size=3 color=blue><u>http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</u></font></a>
<br>
<br>
<br>