Re: [greenstone-users] Problem In Farsi Pdf Continues

From Michael Dewsnip
DateMon, 19 Dec 2005 15:54:16 +1300
Subject Re: [greenstone-users] Problem In Farsi Pdf Continues
In-Reply-To (20051103195933-91752-qmail-web33009-mail-mud-yahoo-com)
Hi,

The problem with this seems to be that the pdftohtml program used by
Greenstone doesn't handle right-to-left text (which is perhaps not very
surprising).

The solution to this is to apply the Unicode Bidirectional Algorithm to
the HTML file produced by pdftohtml. One program that does this is
"fribidi" (http://fribidi.org), which is installed by default on most
Linux computers. I'm not sure whether this is available for Windows, but
I imagine there will be an equivalent program available if not.

I've added an option to ConvertToPlug called "-apply_fribidi"; this will
run fribidi after pdftohtml is finished. You can download the new
version of ConvertToPlug.pm from
http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/temp/ConvertToPlug.pm.
Replace your existing perllib/plugins/ConvertToPlug.pm file with this
new one, then edit your collection's collect.cfg file and add "-fribidi"
to the PDFPlug instance, eg:

plugin PDFPlug -fribidi

Then re-import and re-build the collection.

The "fribidi" program doesn't seem to be perfect (you'll be able to tell
much better than I can!) -- if you find any problems with it please
e-mail the fribidi people.

Regards,

Michael

MOH Scorpion wrote:

>Hi
>Thanks to Ms. Katherine don for fixing bug in
>pdfplugin but it has another problem it joins the
>letter in wrong direction :Left To Right .
>it must be right to left .
>please help me fix this .
>thnx again
>
>
>
>
>__________________________________
>Yahoo! Mail - PC Magazine Editors' Choice 2005
>http://mail.yahoo.com
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>
>
>