View Single Post
Old 08-25-2013, 11:16 AM   #23
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by memo View Post
Maybe I have to change some settings or to install some extra package to fix up these kinds of problem but honestly I don't know how!!!
You might be able to fix some of these issues by changing the following tag in Sigil (in Code View) mode:

From:
<body>
To: <body dir="rtl">

However, even some PDFs with English text in them often have conversion problems. For example, words separated by random spaces, random line breaks etc. I.e., you shouldn't expect a perfect conversion.
It all depends on the program used to create the PDF. Some use normal (unshaped) Perso-Arabic Unicode letters, others preshape Perso-Arabic letters and in some really old PDF files you might find non-Unicode text with embedded custom Farsi fonts.

Quote:
Originally Posted by memo View Post
I also tried some free pdf to microsoft word converters to find out if they respect the order of the text but with no results.
When it comes to text conversion, all of these converters aren't any better than Acrobat. I.e., you might as well open the .pdf file press CTRL+A to select all text and copy it to a new Sigil .ePub.

BTW, there's also a program that'll reformat PDF files so that they can be viewed on 6inch screens K2pdfopt.
Its user interface sucks, but it works. Don't forget to use the -r option if you use it with Persian text.
Doitsu is offline   Reply With Quote