Page 1 of 1

OCR file for Chinese for portable viewer?

Posted: Thu Oct 02, 2014 3:15 pm
by tim126
I am using portable pdfxchange viewer.

In http://www.tracker-software.com/product/downloads, the "Portable Version (OCR Lang Files) | 8 MB" doesn't include Chinese file.

When I run the exe file for Chinese, it says pdfxchange viewer not installed. Probably because I am using portable version.

How can I solve the issue?

My OS is Ubuntu 12.04, and running portable viewer under wine-1.6.1

Thanks.

Re: OCR file for Chinese for portable viewer?

Posted: Thu Oct 02, 2014 3:29 pm
by Tracker Supp-Stefan
Hello Tim,

This topic should help:
http://www.tracker-software.com/forum3/ ... 63&t=12326

Cheers,
Stefan

Re: OCR file for Chinese for portable viewer?

Posted: Thu Oct 02, 2014 4:33 pm
by tim126
Thanks. In the linked post, you wrote
The tool for automatically adding languages is not yet available, but you can see all available languages here:
http://www.tracker-software.com/pdfxocr ... nguage_ext
And download the ones you need, and manually add them in our Viewer.

Please check the files in
C:\Program Files\Tracker Software\PDF Viewer\ocrdats
Copy your newly downloaded language in this folder, modify the "Langs.ini" by adding the necessary entries for the new language, and make a .lng file with the same name as your CHOSEN_LANGUAGE.dat and copy the contents ot one of the other .lng files (and modify the language description accordingly) - and you will have this language recognized in the Viewer OCR tool.
I downloaded chi_sim_pxvocr.dat from http://www.tracker-software.com/pdfxocr ... nguage_ext, and then created a text file named chisim.lng with following content:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<language name="ChineseSimplified" localname="中文简体" prefix="chnsim" version="1.00"/>
But the OCR option of the viewer doesn't show an option for Chinese Simplified. Only options for the languages in the base file. See my picture below

Image

Btw, I don't have a file named "Langs.ini" for me to add the necessary entries for the new language.

The files under ocrdats directory are:

Code: Select all

~/program_files/document/pdfxchange_portable/ocrdats$ ls -l
total 115492
-rw-rw-r-- 1 tim tim      132 Oct  2 12:28 chisim.lng
-rw-rw-r-- 1 tim tim      133 Oct  2 12:23 chisim.lng~
-rwxr--r-- 1 tim tim 41427474 Oct 11  2011 chi_sim_pxvocr.dat
-rwxr--r-- 1 tim tim 56148108 Oct 11  2011 chi_tra_pxvocr.dat
-rw-rw-r-- 1 tim tim      115 Dec  5  2011 deu.lng
-rw-rw-r-- 1 tim tim  2395687 Dec  5  2011 deu_pxvocr.dat
-rw-rw-r-- 1 tim tim       96 Dec  5  2011 eng.lng
-rw-rw-r-- 1 tim tim  3112137 Dec 13  2011 eng_pxvocr.dat
-rw-rw-r-- 1 tim tim      121 Dec  5  2011 fra.lng
-rw-rw-r-- 1 tim tim  2292872 Dec  5  2011 fra_pxvocr.dat
-rw-rw-r-- 1 tim tim 10562727 Dec  5  2011 osd_pxvocr.dat
-rw-rw-r-- 1 tim tim      120 Dec  5  2011 spa.lng
-rw-rw-r-- 1 tim tim  2281434 Dec  5  2011 spa_pxvocr.dat


Re: OCR file for Chinese for portable viewer?

Posted: Fri Oct 03, 2014 12:04 pm
by Tracker Supp-Stefan
Hello tim126,

Yes indeed seems like the Langs.ini file is no longer used.

Can you please try to rename your files to
chi_sim.lng and chi_sim_pxvocr.dat and see if they would be recognized then.

Regards,
Stefan

Re: OCR file for Chinese for portable viewer?

Posted: Fri Oct 03, 2014 2:13 pm
by tim126
Tracker Supp-Stefan wrote:Hello tim126,

Yes indeed seems like the Langs.ini file is no longer used.

Can you please try to rename your files to
chi_sim.lng and chi_sim_pxvocr.dat and see if they would be recognized then.

Regards,
Stefan
It doesn't work.

Also changing the names of both files to be either "chisim" or "chi" followed by their individual remaining parts of their names, doesn't work.

Re: OCR file for Chinese for portable viewer?

Posted: Wed Oct 08, 2014 7:51 pm
by Will - Tracker Supp
Hi Tim,

As John has said in reply to another of your posts, I'm afraid that while we do try to support Linux users as best we can, it cannot be considered a priority and, given that this seems to be working fine in all supported Windows OS's, there's likely very little more that we can do here.

Re: OCR file for Chinese for portable viewer?

Posted: Wed Oct 08, 2014 8:49 pm
by Serg - Tracker Dev
So, you have two files: chi_sim.lng and chi_sim_pxvocr.dat
But your language file chi_sim.lng contain incorrect prefix "chnsim"

Try to change it to "chi_sim":

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<language name="ChineseSimplified" localname="中文简体" prefix="chi_sim" version="1.00"/>

Re: OCR file for Chinese for portable viewer?

Posted: Thu Oct 09, 2014 12:00 pm
by tim126
Serg - Tracker Dev wrote:So, you have two files: chi_sim.lng and chi_sim_pxvocr.dat
But your language file chi_sim.lng contain incorrect prefix "chnsim"

Try to change it to "chi_sim":

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<language name="ChineseSimplified" localname="中文简体" prefix="chi_sim" version="1.00"/>
Thanks.
Seems prefix should also be three character long?

Is it the same process for adding to pdf editor?

Re: OCR file for Chinese for portable viewer?

Posted: Thu Oct 09, 2014 12:04 pm
by Tracker Supp-Stefan
Hi Tim,

There is no portable version of the Editor available yet, and it uses a slightly different OCR dictionaries.

Did you manage to make the Viewer recognize your OCR languages?

Best,
Stefan

Re: OCR file for Chinese for portable viewer?

Posted: Thu Oct 09, 2014 12:23 pm
by tim126
repeated and deleted

Re: OCR file for Chinese for portable viewer?

Posted: Thu Oct 09, 2014 12:23 pm
by tim126
Tracker Supp-Stefan wrote:Hi Tim,

There is no portable version of the Editor available yet, and it uses a slightly different OCR dictionaries.

Did you manage to make the Viewer recognize your OCR languages?

Best,
Stefan
Yes.

How shall I add a new language for OCR in editor?

Do you use some external software to perform OCR in viewer and in editor?

How are the qualities of the viewer and editor's OCR compared to adobe acrabat professional's OCR?

Re: OCR file for Chinese for portable viewer?

Posted: Thu Oct 09, 2014 2:48 pm
by Will - Tracker Supp
Respectfully Tim, we cannot offer comparisons between our products and competitors'. This is up to you to test.

Regarding the OCR files, it seems that the Editor does share the same files as the Viewer and these can be downloaded here:
http://www.tracker-software.com/pdf-xchange-viewer-ocr

They can then be added under C:\Program Files\Tracker Software\PDF Editor\Languages.

Re: OCR file for Chinese for portable viewer?

Posted: Thu Oct 09, 2014 5:02 pm
by Serg - Tracker Dev
tim126 wrote:Seems prefix should also be three character long?
Not for all languages. We have a predefined identifier for ChineseSimplified - chi_sim
That should be used as prefix and begin of names of two language files.