中晶导出和另存为添加ocr多语言识别

This commit is contained in:
yangjiaxuan 2023-03-02 11:21:09 +08:00
parent d476657021
commit e90186304f
12 changed files with 674 additions and 452 deletions

Binary file not shown.

View File

@ -496,7 +496,7 @@ Continue to clear?</source>
<translation></translation>
</message>
<message>
<location filename="dialog_export.ui" line="100"/>
<location filename="dialog_export.ui" line="102"/>
<source>
Input is not valid.
Page range will be &quot;Chosen Pages&quot;.
@ -505,50 +505,80 @@ Page range will be &quot;Chosen Pages&quot;.
</translation>
</message>
<message>
<location filename="dialog_export.ui" line="155"/>
<location filename="dialog_export.ui" line="144"/>
<source>Ocr type:</source>
<translation>OCR类型</translation>
</message>
<message>
<location filename="dialog_export.ui" line="174"/>
<source>Compression Option</source>
<translation></translation>
</message>
<message>
<location filename="dialog_export.ui" line="25"/>
<location filename="dialog_export.ui" line="27"/>
<source>Page Range</source>
<translation></translation>
</message>
<message>
<location filename="dialog_export.ui" line="53"/>
<location filename="dialog_export.ui" line="55"/>
<source>Chosen Pages</source>
<translation></translation>
</message>
<message>
<location filename="dialog_export.ui" line="73"/>
<location filename="dialog_export.ui" line="75"/>
<source>All Pages</source>
<translation></translation>
</message>
<message>
<location filename="dialog_export.ui" line="33"/>
<location filename="dialog_export.ui" line="35"/>
<source>Nominate Pages(example:1,3,6 or 3-6)</source>
<translation>1,3,6 3-6</translation>
</message>
<message>
<location filename="dialog_export.ui" line="84"/>
<location filename="dialog_export.ui" line="86"/>
<source>Page:</source>
<translation></translation>
</message>
<message>
<location filename="dialog_export.ui" line="135"/>
<location filename="dialog_export.ui" line="137"/>
<source>Save as multipages (TIFF/PDF/OFD/GIF)</source>
<oldsource>Save as multipages (TIFF/PDF/OFD)</oldsource>
<translation>(TIFF/PDF/OFD/GIF)</translation>
</message>
<message>
<location filename="dialog_export.cpp" line="145"/>
<location filename="dialog_export.cpp" line="316"/>
<location filename="dialog_export.cpp" line="327"/>
<location filename="dialog_export.cpp" line="337"/>
<location filename="dialog_export.cpp" line="348"/>
<source>Input is not valid.
Page range will be &apos;Chosen Pages&apos;.</source>
<translation>
</translation>
</message>
<message>
<location filename="dialog_export.cpp" line="153"/>
<source>English</source>
<translation></translation>
</message>
<message>
<location filename="dialog_export.cpp" line="153"/>
<source>Simplified Chinese</source>
<translation>()</translation>
</message>
<message>
<location filename="dialog_export.cpp" line="153"/>
<source>Traditional Chinese</source>
<translation>()</translation>
</message>
<message>
<location filename="dialog_export.cpp" line="153"/>
<source>Japanese</source>
<translation></translation>
</message>
<message>
<location filename="dialog_export.cpp" line="153"/>
<source>Korean</source>
<translation></translation>
</message>
</context>
<context>
<name>Dialog_ExportImageFile</name>
@ -563,17 +593,17 @@ Page range will be &apos;Chosen Pages&apos;.</source>
<translation></translation>
</message>
<message>
<location filename="dialog_exportimagefile.cpp" line="346"/>
<location filename="dialog_exportimagefile.cpp" line="347"/>
<source>export failed: </source>
<translation> </translation>
</message>
<message>
<location filename="dialog_exportimagefile.cpp" line="347"/>
<location filename="dialog_exportimagefile.cpp" line="348"/>
<source>tip</source>
<translation></translation>
</message>
<message>
<location filename="dialog_exportimagefile.cpp" line="346"/>
<location filename="dialog_exportimagefile.cpp" line="347"/>
<source>export succeed</source>
<translation></translation>
</message>
@ -1556,6 +1586,36 @@ Please make sure the two passwords are the same.</source>
<source>Use subfolder based on current date</source>
<translation>使</translation>
</message>
<message>
<location filename="dialog_saveas.ui" line="39"/>
<source>Ocr type:</source>
<translation>OCR类型</translation>
</message>
<message>
<location filename="dialog_saveas.cpp" line="117"/>
<source>English</source>
<translation></translation>
</message>
<message>
<location filename="dialog_saveas.cpp" line="117"/>
<source>Simplified Chinese</source>
<translation>()</translation>
</message>
<message>
<location filename="dialog_saveas.cpp" line="117"/>
<source>Traditional Chinese</source>
<translation>()</translation>
</message>
<message>
<location filename="dialog_saveas.cpp" line="117"/>
<source>Japanese</source>
<translation></translation>
</message>
<message>
<location filename="dialog_saveas.cpp" line="117"/>
<source>Korean</source>
<translation></translation>
</message>
</context>
<context>
<name>Dialog_SaveMessageBox</name>
@ -2262,8 +2322,8 @@ bug description:
<location filename="mainwindow.cpp" line="693"/>
<location filename="mainwindow.cpp" line="1722"/>
<location filename="mainwindow.cpp" line="1745"/>
<location filename="mainwindow.cpp" line="2525"/>
<location filename="mainwindow.cpp" line="2971"/>
<location filename="mainwindow.cpp" line="2535"/>
<location filename="mainwindow.cpp" line="2986"/>
<source>Question</source>
<translation></translation>
</message>
@ -2325,12 +2385,12 @@ Do you want to clear?</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1941"/>
<location filename="mainwindow.cpp" line="1951"/>
<source>Open images</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1952"/>
<location filename="mainwindow.cpp" line="1962"/>
<source>Insert images</source>
<translation></translation>
</message>
@ -2360,14 +2420,14 @@ Do you want to clear?</source>
<message>
<location filename="mainwindow.cpp" line="1359"/>
<location filename="mainwindow.cpp" line="1360"/>
<location filename="mainwindow.cpp" line="3287"/>
<location filename="mainwindow.cpp" line="3288"/>
<location filename="mainwindow.cpp" line="3365"/>
<location filename="mainwindow.cpp" line="3366"/>
<location filename="mainwindow.cpp" line="3459"/>
<location filename="mainwindow.cpp" line="3460"/>
<location filename="mainwindow.cpp" line="3552"/>
<location filename="mainwindow.cpp" line="3553"/>
<location filename="mainwindow.cpp" line="3302"/>
<location filename="mainwindow.cpp" line="3303"/>
<location filename="mainwindow.cpp" line="3380"/>
<location filename="mainwindow.cpp" line="3381"/>
<location filename="mainwindow.cpp" line="3474"/>
<location filename="mainwindow.cpp" line="3475"/>
<location filename="mainwindow.cpp" line="3567"/>
<location filename="mainwindow.cpp" line="3568"/>
<source>Please wake up the device manually</source>
<translation></translation>
</message>
@ -2387,216 +2447,216 @@ Do you want to clear?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2163"/>
<location filename="mainwindow.cpp" line="2228"/>
<location filename="mainwindow.cpp" line="2310"/>
<location filename="mainwindow.cpp" line="2173"/>
<location filename="mainwindow.cpp" line="2238"/>
<location filename="mainwindow.cpp" line="2320"/>
<source>save succeed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2175"/>
<location filename="mainwindow.cpp" line="2322"/>
<location filename="mainwindow.cpp" line="2185"/>
<location filename="mainwindow.cpp" line="2332"/>
<source>find savePath in thumbnail</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2346"/>
<location filename="mainwindow.cpp" line="2356"/>
<source>Please select at least one picture before export</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>File name</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>File path</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>File size</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>Creation date/time</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>Modified date/time</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>Accessed date/time</source>
<translation>访</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Format</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Width</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Height</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>depth</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Color model</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>DPI</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Print size</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Frame</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2470"/>
<location filename="mainwindow.cpp" line="2480"/>
<source>None</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2470"/>
<location filename="mainwindow.cpp" line="2480"/>
<source>Mono</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2470"/>
<location filename="mainwindow.cpp" line="2480"/>
<source>Gray</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2470"/>
<location filename="mainwindow.cpp" line="2480"/>
<source>Color</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2474"/>
<location filename="mainwindow.cpp" line="2484"/>
<source>Not supported</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2502"/>
<location filename="mainwindow.cpp" line="2512"/>
<source>Warning</source>
<translation>
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2502"/>
<location filename="mainwindow.cpp" line="2512"/>
<source>Device is Running!
Please finish scanning first.</source>
<translation>
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3929"/>
<location filename="mainwindow.cpp" line="3944"/>
<source>cache path folder limit:%1</source>
<translation>访%1
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3933"/>
<location filename="mainwindow.cpp" line="3948"/>
<source>aquireinto folder limit:%1</source>
<translation>访%1
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4085"/>
<location filename="mainwindow.cpp" line="4100"/>
<source>Image processing failed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4089"/>
<location filename="mainwindow.cpp" line="4104"/>
<source>Ocr init failed</source>
<translation>OCR初始化错误</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4093"/>
<location filename="mainwindow.cpp" line="4108"/>
<source>Ocr failed</source>
<translation>OCR错误</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4097"/>
<location filename="mainwindow.cpp" line="4112"/>
<source>File does not exist</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4101"/>
<location filename="mainwindow.cpp" line="4116"/>
<source>Failed to load dynamic library</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4105"/>
<location filename="mainwindow.cpp" line="4120"/>
<source>File data error</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4109"/>
<location filename="mainwindow.cpp" line="4124"/>
<source>Image format processing error</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4113"/>
<location filename="mainwindow.cpp" line="4128"/>
<source>Out of memory</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4117"/>
<location filename="mainwindow.cpp" line="4132"/>
<source>Failed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4401"/>
<location filename="mainwindow.cpp" line="4420"/>
<location filename="mainwindow.cpp" line="4416"/>
<location filename="mainwindow.cpp" line="4435"/>
<source>The language switch is successful and takes effect the next time the software is started!</source>
<translation>!</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4458"/>
<location filename="mainwindow.cpp" line="4473"/>
<source>Are you sure to delete selected file?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1370"/>
<location filename="mainwindow.cpp" line="1371"/>
<location filename="mainwindow.cpp" line="3298"/>
<location filename="mainwindow.cpp" line="3299"/>
<location filename="mainwindow.cpp" line="3376"/>
<location filename="mainwindow.cpp" line="3377"/>
<location filename="mainwindow.cpp" line="3470"/>
<location filename="mainwindow.cpp" line="3471"/>
<location filename="mainwindow.cpp" line="3563"/>
<location filename="mainwindow.cpp" line="3564"/>
<location filename="mainwindow.cpp" line="3313"/>
<location filename="mainwindow.cpp" line="3314"/>
<location filename="mainwindow.cpp" line="3391"/>
<location filename="mainwindow.cpp" line="3392"/>
<location filename="mainwindow.cpp" line="3485"/>
<location filename="mainwindow.cpp" line="3486"/>
<location filename="mainwindow.cpp" line="3578"/>
<location filename="mainwindow.cpp" line="3579"/>
<source>already waked up device</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3705"/>
<location filename="mainwindow.cpp" line="3720"/>
<source>be ready</source>
<translation></translation>
</message>
@ -2606,7 +2666,7 @@ Please finish scanning first.</source>
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4081"/>
<location filename="mainwindow.cpp" line="4096"/>
<source>Insufficient access rights</source>
<translation>访</translation>
</message>
@ -2619,46 +2679,46 @@ Please finish scanning first.</source>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4235"/>
<location filename="mainwindow.cpp" line="4250"/>
<source>Are you sure to close </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4235"/>
<location filename="mainwindow.cpp" line="4250"/>
<source> ?</source>
<translation>?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4243"/>
<location filename="mainwindow.cpp" line="4244"/>
<location filename="mainwindow.cpp" line="4258"/>
<location filename="mainwindow.cpp" line="4259"/>
<source>close </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4339"/>
<location filename="mainwindow.cpp" line="4354"/>
<source>tip</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4339"/>
<location filename="mainwindow.cpp" line="4354"/>
<source>Other versions not available</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4362"/>
<location filename="mainwindow.cpp" line="4380"/>
<location filename="mainwindow.cpp" line="4377"/>
<location filename="mainwindow.cpp" line="4395"/>
<source>The device does not support this operation</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4364"/>
<location filename="mainwindow.cpp" line="4382"/>
<location filename="mainwindow.cpp" line="4379"/>
<location filename="mainwindow.cpp" line="4397"/>
<source>IO error</source>
<translation>IO错误</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3898"/>
<location filename="mainwindow.cpp" line="3936"/>
<location filename="mainwindow.cpp" line="3913"/>
<location filename="mainwindow.cpp" line="3951"/>
<source>error</source>
<translation></translation>
</message>
@ -2673,17 +2733,17 @@ Continue to close?</source>
</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2972"/>
<location filename="mainwindow.cpp" line="2987"/>
<source>Sure to sign out administrator account?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3109"/>
<location filename="mainwindow.cpp" line="3124"/>
<source>confirm the operation</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3110"/>
<location filename="mainwindow.cpp" line="3125"/>
<source>Are you sure to clear the rollor acount?</source>
<translation></translation>
</message>
@ -2692,36 +2752,36 @@ Continue to close?</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3154"/>
<location filename="mainwindow.cpp" line="3206"/>
<location filename="mainwindow.cpp" line="3169"/>
<location filename="mainwindow.cpp" line="3221"/>
<source>&lt;p&gt;%1: &lt;a href=&apos;%2&apos;&gt;%3&lt;/a&gt;</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3156"/>
<location filename="mainwindow.cpp" line="3208"/>
<location filename="mainwindow.cpp" line="3171"/>
<location filename="mainwindow.cpp" line="3223"/>
<source>&lt;p&gt;%1: %2</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3210"/>
<location filename="mainwindow.cpp" line="3225"/>
<source>roller number</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3669"/>
<location filename="mainwindow.cpp" line="3684"/>
<source>open scanner </source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3670"/>
<location filename="mainwindow.cpp" line="4201"/>
<location filename="mainwindow.cpp" line="3685"/>
<location filename="mainwindow.cpp" line="4216"/>
<source>app name</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3700"/>
<location filename="mainwindow.cpp" line="4219"/>
<location filename="mainwindow.cpp" line="3715"/>
<location filename="mainwindow.cpp" line="4234"/>
<source>success</source>
<translation></translation>
</message>
@ -2738,22 +2798,22 @@ Continue to close?</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3709"/>
<location filename="mainwindow.cpp" line="4224"/>
<location filename="mainwindow.cpp" line="3724"/>
<location filename="mainwindow.cpp" line="4239"/>
<source>failed</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="975"/>
<location filename="mainwindow.cpp" line="1039"/>
<location filename="mainwindow.cpp" line="3738"/>
<location filename="mainwindow.cpp" line="3753"/>
<source>warning</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="971"/>
<location filename="mainwindow.cpp" line="1035"/>
<location filename="mainwindow.cpp" line="3734"/>
<location filename="mainwindow.cpp" line="3749"/>
<source>the disk space in the current path is unsufficient, please select a new path or clear the disk space in time.</source>
<translation>,
</translation>
@ -2763,7 +2823,7 @@ Continue to close?</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4216"/>
<location filename="mainwindow.cpp" line="4231"/>
<source>apply setting</source>
<translation></translation>
</message>
@ -2771,18 +2831,18 @@ Continue to close?</source>
<location filename="mainwindow.cpp" line="1345"/>
<location filename="mainwindow.cpp" line="1346"/>
<location filename="mainwindow.cpp" line="1347"/>
<location filename="mainwindow.cpp" line="3273"/>
<location filename="mainwindow.cpp" line="3274"/>
<location filename="mainwindow.cpp" line="3275"/>
<location filename="mainwindow.cpp" line="3351"/>
<location filename="mainwindow.cpp" line="3352"/>
<location filename="mainwindow.cpp" line="3353"/>
<location filename="mainwindow.cpp" line="3445"/>
<location filename="mainwindow.cpp" line="3446"/>
<location filename="mainwindow.cpp" line="3447"/>
<location filename="mainwindow.cpp" line="3538"/>
<location filename="mainwindow.cpp" line="3539"/>
<location filename="mainwindow.cpp" line="3540"/>
<location filename="mainwindow.cpp" line="3288"/>
<location filename="mainwindow.cpp" line="3289"/>
<location filename="mainwindow.cpp" line="3290"/>
<location filename="mainwindow.cpp" line="3366"/>
<location filename="mainwindow.cpp" line="3367"/>
<location filename="mainwindow.cpp" line="3368"/>
<location filename="mainwindow.cpp" line="3460"/>
<location filename="mainwindow.cpp" line="3461"/>
<location filename="mainwindow.cpp" line="3462"/>
<location filename="mainwindow.cpp" line="3553"/>
<location filename="mainwindow.cpp" line="3554"/>
<location filename="mainwindow.cpp" line="3555"/>
<source>start failed</source>
<translation></translation>
</message>
@ -2931,25 +2991,25 @@ Continue to close?</source>
<location filename="mainwindow.cpp" line="1135"/>
<location filename="mainwindow.cpp" line="1241"/>
<location filename="mainwindow.cpp" line="1242"/>
<location filename="mainwindow.cpp" line="2168"/>
<location filename="mainwindow.cpp" line="2169"/>
<location filename="mainwindow.cpp" line="2170"/>
<location filename="mainwindow.cpp" line="2233"/>
<location filename="mainwindow.cpp" line="2234"/>
<location filename="mainwindow.cpp" line="2235"/>
<location filename="mainwindow.cpp" line="2315"/>
<location filename="mainwindow.cpp" line="2316"/>
<location filename="mainwindow.cpp" line="2317"/>
<location filename="mainwindow.cpp" line="2178"/>
<location filename="mainwindow.cpp" line="2179"/>
<location filename="mainwindow.cpp" line="2180"/>
<location filename="mainwindow.cpp" line="2243"/>
<location filename="mainwindow.cpp" line="2244"/>
<location filename="mainwindow.cpp" line="2245"/>
<location filename="mainwindow.cpp" line="2325"/>
<location filename="mainwindow.cpp" line="2326"/>
<location filename="mainwindow.cpp" line="2327"/>
<source>save image doc failed: </source>
<translation> </translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3899"/>
<location filename="mainwindow.cpp" line="3914"/>
<source>start failed!</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2526"/>
<location filename="mainwindow.cpp" line="2536"/>
<source>There are pictures that have not been saved.
Are you sure to close?</source>
<translation></translation>
@ -2960,63 +3020,63 @@ Are you sure to close?</source>
<translation> : %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2163"/>
<location filename="mainwindow.cpp" line="2168"/>
<location filename="mainwindow.cpp" line="2175"/>
<location filename="mainwindow.cpp" line="2228"/>
<location filename="mainwindow.cpp" line="2233"/>
<location filename="mainwindow.cpp" line="2310"/>
<location filename="mainwindow.cpp" line="2315"/>
<location filename="mainwindow.cpp" line="2322"/>
<location filename="mainwindow.cpp" line="2346"/>
<location filename="mainwindow.cpp" line="2537"/>
<location filename="mainwindow.cpp" line="4400"/>
<location filename="mainwindow.cpp" line="4419"/>
<location filename="mainwindow.cpp" line="4458"/>
<location filename="mainwindow.cpp" line="2173"/>
<location filename="mainwindow.cpp" line="2178"/>
<location filename="mainwindow.cpp" line="2185"/>
<location filename="mainwindow.cpp" line="2238"/>
<location filename="mainwindow.cpp" line="2243"/>
<location filename="mainwindow.cpp" line="2320"/>
<location filename="mainwindow.cpp" line="2325"/>
<location filename="mainwindow.cpp" line="2332"/>
<location filename="mainwindow.cpp" line="2356"/>
<location filename="mainwindow.cpp" line="2547"/>
<location filename="mainwindow.cpp" line="4415"/>
<location filename="mainwindow.cpp" line="4434"/>
<location filename="mainwindow.cpp" line="4473"/>
<source>tips</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2538"/>
<location filename="mainwindow.cpp" line="2548"/>
<source>Are you sure to close?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3023"/>
<location filename="mainwindow.cpp" line="3038"/>
<source>confirm operation</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3024"/>
<location filename="mainwindow.cpp" line="3039"/>
<source>are you sure to clear the roller count?</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3035"/>
<location filename="mainwindow.cpp" line="3039"/>
<location filename="mainwindow.cpp" line="3128"/>
<location filename="mainwindow.cpp" line="3050"/>
<location filename="mainwindow.cpp" line="3054"/>
<location filename="mainwindow.cpp" line="3143"/>
<source>hint</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3035"/>
<location filename="mainwindow.cpp" line="3121"/>
<location filename="mainwindow.cpp" line="3050"/>
<location filename="mainwindow.cpp" line="3136"/>
<source>Roller scanned count has been set to 0.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3039"/>
<location filename="mainwindow.cpp" line="3126"/>
<location filename="mainwindow.cpp" line="3054"/>
<location filename="mainwindow.cpp" line="3141"/>
<source>Roller scanned count reset failed.</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3098"/>
<location filename="mainwindow.cpp" line="3113"/>
<source>Error</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3098"/>
<location filename="mainwindow.cpp" line="3113"/>
<source>Document missing! It would be deleted or renamed.</source>
<translation></translation>
</message>
@ -3057,21 +3117,21 @@ Are you sure to close?</source>
<translation type="vanished">&lt;p&gt;%1&lt;/p&gt;&lt;p&gt;: %2&lt;br&gt;: &amp;#169; %3&lt;/p&gt;&lt;p&gt;%4%5%6%7%8%9&lt;/p&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3149"/>
<location filename="mainwindow.cpp" line="3200"/>
<location filename="mainwindow.cpp" line="3164"/>
<location filename="mainwindow.cpp" line="3215"/>
<source>about %1</source>
<translation> %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3150"/>
<location filename="mainwindow.cpp" line="3201"/>
<location filename="mainwindow.cpp" line="3165"/>
<location filename="mainwindow.cpp" line="3216"/>
<source>&lt;p&gt;Version: %1&lt;/p&gt;</source>
<oldsource>&lt;p&gt;: %1&lt;/p&gt;</oldsource>
<translation>&lt;p&gt; %1&lt;/p&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3158"/>
<location filename="mainwindow.cpp" line="3202"/>
<location filename="mainwindow.cpp" line="3173"/>
<location filename="mainwindow.cpp" line="3217"/>
<source>&lt;p&gt;CopyRight: &amp;#169; %1&lt;/p&gt;</source>
<oldsource>&lt;p&gt;: &amp;#169; %1&lt;/p&gt;</oldsource>
<translation>&lt;p&gt; &amp;#169; %1&lt;/p&gt;</translation>

Binary file not shown.

View File

@ -470,32 +470,32 @@ Continue clearing?</translation>
<translation>Export</translation>
</message>
<message>
<location filename="dialog_export.ui" line="25"/>
<location filename="dialog_export.ui" line="27"/>
<source>Page Range</source>
<translation>Page range</translation>
</message>
<message>
<location filename="dialog_export.ui" line="33"/>
<location filename="dialog_export.ui" line="35"/>
<source>Nominate Pages(example:1,3,6 or 3-6)</source>
<translation>Specific page number (For example:1,3,6 or 3-6)</translation>
</message>
<message>
<location filename="dialog_export.ui" line="53"/>
<location filename="dialog_export.ui" line="55"/>
<source>Chosen Pages</source>
<translation>Selected pages</translation>
</message>
<message>
<location filename="dialog_export.ui" line="73"/>
<location filename="dialog_export.ui" line="75"/>
<source>All Pages</source>
<translation>All pages</translation>
</message>
<message>
<location filename="dialog_export.ui" line="84"/>
<location filename="dialog_export.ui" line="86"/>
<source>Page:</source>
<translation>Page number:</translation>
</message>
<message>
<location filename="dialog_export.ui" line="100"/>
<location filename="dialog_export.ui" line="102"/>
<source>
Input is not valid.
Page range will be &quot;Chosen Pages&quot;.
@ -504,12 +504,17 @@ Page range will be &quot;Chosen Pages&quot;.
The page range will be selected pages</translation>
</message>
<message>
<location filename="dialog_export.ui" line="135"/>
<location filename="dialog_export.ui" line="137"/>
<source>Save as multipages (TIFF/PDF/OFD/GIF)</source>
<translation>Save multiple pages(TIFF/PDF/OFD/GIF)</translation>
</message>
<message>
<location filename="dialog_export.ui" line="155"/>
<location filename="dialog_export.ui" line="144"/>
<source>Ocr type:</source>
<translation>OCR type:</translation>
</message>
<message>
<location filename="dialog_export.ui" line="174"/>
<source>Compression Option</source>
<translation>Compression options</translation>
</message>
@ -523,13 +528,38 @@ The page range will be “selected pages”</translation>
</message>
<message>
<location filename="dialog_export.cpp" line="145"/>
<location filename="dialog_export.cpp" line="316"/>
<location filename="dialog_export.cpp" line="327"/>
<location filename="dialog_export.cpp" line="337"/>
<location filename="dialog_export.cpp" line="348"/>
<source>Input is not valid.
Page range will be &apos;Chosen Pages&apos;.</source>
<translation>Input invalid.
The page range will be selected pages</translation>
</message>
<message>
<location filename="dialog_export.cpp" line="153"/>
<source>English</source>
<translation>English</translation>
</message>
<message>
<location filename="dialog_export.cpp" line="153"/>
<source>Simplified Chinese</source>
<translation>Simplified Chinese</translation>
</message>
<message>
<location filename="dialog_export.cpp" line="153"/>
<source>Traditional Chinese</source>
<translation>Traditional Chinese</translation>
</message>
<message>
<location filename="dialog_export.cpp" line="153"/>
<source>Japanese</source>
<translation>Japanese</translation>
</message>
<message>
<location filename="dialog_export.cpp" line="153"/>
<source>Korean</source>
<translation>Korean</translation>
</message>
</context>
<context>
<name>Dialog_ExportImageFile</name>
@ -544,17 +574,17 @@ The page range will be “selected pages”</translation>
<translation>Stop exporting</translation>
</message>
<message>
<location filename="dialog_exportimagefile.cpp" line="346"/>
<location filename="dialog_exportimagefile.cpp" line="347"/>
<source>export succeed</source>
<translation>Export completed</translation>
</message>
<message>
<location filename="dialog_exportimagefile.cpp" line="346"/>
<location filename="dialog_exportimagefile.cpp" line="347"/>
<source>export failed: </source>
<translation>Export failed: </translation>
</message>
<message>
<location filename="dialog_exportimagefile.cpp" line="347"/>
<location filename="dialog_exportimagefile.cpp" line="348"/>
<source>tip</source>
<translation>Prompt</translation>
</message>
@ -1476,6 +1506,36 @@ Please make sure the two passwords are the same.</source>
<source>Use subfolder based on current date</source>
<translation>Create a subfolder using the current date</translation>
</message>
<message>
<location filename="dialog_saveas.ui" line="39"/>
<source>Ocr type:</source>
<translation>OCR type:</translation>
</message>
<message>
<location filename="dialog_saveas.cpp" line="117"/>
<source>English</source>
<translation>English</translation>
</message>
<message>
<location filename="dialog_saveas.cpp" line="117"/>
<source>Simplified Chinese</source>
<translation>Simplified Chinese</translation>
</message>
<message>
<location filename="dialog_saveas.cpp" line="117"/>
<source>Traditional Chinese</source>
<translation>Traditional Chinese</translation>
</message>
<message>
<location filename="dialog_saveas.cpp" line="117"/>
<source>Japanese</source>
<translation>Japanese</translation>
</message>
<message>
<location filename="dialog_saveas.cpp" line="117"/>
<source>Korean</source>
<translation>Korean</translation>
</message>
</context>
<context>
<name>Dialog_SaveMessageBox</name>
@ -2195,8 +2255,8 @@ Please make sure the two passwords are the same.</source>
<location filename="mainwindow.cpp" line="693"/>
<location filename="mainwindow.cpp" line="1722"/>
<location filename="mainwindow.cpp" line="1745"/>
<location filename="mainwindow.cpp" line="2525"/>
<location filename="mainwindow.cpp" line="2971"/>
<location filename="mainwindow.cpp" line="2535"/>
<location filename="mainwindow.cpp" line="2986"/>
<source>Question</source>
<translation>Ask</translation>
</message>
@ -2249,7 +2309,7 @@ Please make sure the two passwords are the same.</source>
<message>
<location filename="mainwindow.cpp" line="971"/>
<location filename="mainwindow.cpp" line="1035"/>
<location filename="mainwindow.cpp" line="3734"/>
<location filename="mainwindow.cpp" line="3749"/>
<source>the disk space in the current path is unsufficient, please select a new path or clear the disk space in time.</source>
<translation>Insufficient disk space for the current path.
Please reselect a path or clear disk space immediately.</translation>
@ -2257,7 +2317,7 @@ Please reselect a path or clear disk space immediately.</translation>
<message>
<location filename="mainwindow.cpp" line="975"/>
<location filename="mainwindow.cpp" line="1039"/>
<location filename="mainwindow.cpp" line="3738"/>
<location filename="mainwindow.cpp" line="3753"/>
<source>warning</source>
<translation>Warning</translation>
</message>
@ -2286,15 +2346,15 @@ Please reselect a path or clear disk space immediately.</translation>
<location filename="mainwindow.cpp" line="1135"/>
<location filename="mainwindow.cpp" line="1241"/>
<location filename="mainwindow.cpp" line="1242"/>
<location filename="mainwindow.cpp" line="2168"/>
<location filename="mainwindow.cpp" line="2169"/>
<location filename="mainwindow.cpp" line="2170"/>
<location filename="mainwindow.cpp" line="2233"/>
<location filename="mainwindow.cpp" line="2234"/>
<location filename="mainwindow.cpp" line="2235"/>
<location filename="mainwindow.cpp" line="2315"/>
<location filename="mainwindow.cpp" line="2316"/>
<location filename="mainwindow.cpp" line="2317"/>
<location filename="mainwindow.cpp" line="2178"/>
<location filename="mainwindow.cpp" line="2179"/>
<location filename="mainwindow.cpp" line="2180"/>
<location filename="mainwindow.cpp" line="2243"/>
<location filename="mainwindow.cpp" line="2244"/>
<location filename="mainwindow.cpp" line="2245"/>
<location filename="mainwindow.cpp" line="2325"/>
<location filename="mainwindow.cpp" line="2326"/>
<location filename="mainwindow.cpp" line="2327"/>
<source>save image doc failed: </source>
<translation>Failed to save image: </translation>
</message>
@ -2317,46 +2377,46 @@ Please reselect a path or clear disk space immediately.</translation>
<location filename="mainwindow.cpp" line="1345"/>
<location filename="mainwindow.cpp" line="1346"/>
<location filename="mainwindow.cpp" line="1347"/>
<location filename="mainwindow.cpp" line="3273"/>
<location filename="mainwindow.cpp" line="3274"/>
<location filename="mainwindow.cpp" line="3275"/>
<location filename="mainwindow.cpp" line="3351"/>
<location filename="mainwindow.cpp" line="3352"/>
<location filename="mainwindow.cpp" line="3353"/>
<location filename="mainwindow.cpp" line="3445"/>
<location filename="mainwindow.cpp" line="3446"/>
<location filename="mainwindow.cpp" line="3447"/>
<location filename="mainwindow.cpp" line="3538"/>
<location filename="mainwindow.cpp" line="3539"/>
<location filename="mainwindow.cpp" line="3540"/>
<location filename="mainwindow.cpp" line="3288"/>
<location filename="mainwindow.cpp" line="3289"/>
<location filename="mainwindow.cpp" line="3290"/>
<location filename="mainwindow.cpp" line="3366"/>
<location filename="mainwindow.cpp" line="3367"/>
<location filename="mainwindow.cpp" line="3368"/>
<location filename="mainwindow.cpp" line="3460"/>
<location filename="mainwindow.cpp" line="3461"/>
<location filename="mainwindow.cpp" line="3462"/>
<location filename="mainwindow.cpp" line="3553"/>
<location filename="mainwindow.cpp" line="3554"/>
<location filename="mainwindow.cpp" line="3555"/>
<source>start failed</source>
<translation>Failed to start</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1359"/>
<location filename="mainwindow.cpp" line="1360"/>
<location filename="mainwindow.cpp" line="3287"/>
<location filename="mainwindow.cpp" line="3288"/>
<location filename="mainwindow.cpp" line="3365"/>
<location filename="mainwindow.cpp" line="3366"/>
<location filename="mainwindow.cpp" line="3459"/>
<location filename="mainwindow.cpp" line="3460"/>
<location filename="mainwindow.cpp" line="3552"/>
<location filename="mainwindow.cpp" line="3553"/>
<location filename="mainwindow.cpp" line="3302"/>
<location filename="mainwindow.cpp" line="3303"/>
<location filename="mainwindow.cpp" line="3380"/>
<location filename="mainwindow.cpp" line="3381"/>
<location filename="mainwindow.cpp" line="3474"/>
<location filename="mainwindow.cpp" line="3475"/>
<location filename="mainwindow.cpp" line="3567"/>
<location filename="mainwindow.cpp" line="3568"/>
<source>Please wake up the device manually</source>
<translation>Please wake up the device manually</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1370"/>
<location filename="mainwindow.cpp" line="1371"/>
<location filename="mainwindow.cpp" line="3298"/>
<location filename="mainwindow.cpp" line="3299"/>
<location filename="mainwindow.cpp" line="3376"/>
<location filename="mainwindow.cpp" line="3377"/>
<location filename="mainwindow.cpp" line="3470"/>
<location filename="mainwindow.cpp" line="3471"/>
<location filename="mainwindow.cpp" line="3563"/>
<location filename="mainwindow.cpp" line="3564"/>
<location filename="mainwindow.cpp" line="3313"/>
<location filename="mainwindow.cpp" line="3314"/>
<location filename="mainwindow.cpp" line="3391"/>
<location filename="mainwindow.cpp" line="3392"/>
<location filename="mainwindow.cpp" line="3485"/>
<location filename="mainwindow.cpp" line="3486"/>
<location filename="mainwindow.cpp" line="3578"/>
<location filename="mainwindow.cpp" line="3579"/>
<source>already waked up device</source>
<translation>Device is awake</translation>
</message>
@ -2393,230 +2453,230 @@ Do you want to clear?</source>
Clear?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1941"/>
<location filename="mainwindow.cpp" line="1951"/>
<source>Open images</source>
<translation>Open image</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1952"/>
<location filename="mainwindow.cpp" line="1962"/>
<source>Insert images</source>
<translation>Insert image</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2163"/>
<location filename="mainwindow.cpp" line="2168"/>
<location filename="mainwindow.cpp" line="2175"/>
<location filename="mainwindow.cpp" line="2228"/>
<location filename="mainwindow.cpp" line="2233"/>
<location filename="mainwindow.cpp" line="2310"/>
<location filename="mainwindow.cpp" line="2315"/>
<location filename="mainwindow.cpp" line="2322"/>
<location filename="mainwindow.cpp" line="2346"/>
<location filename="mainwindow.cpp" line="2537"/>
<location filename="mainwindow.cpp" line="4400"/>
<location filename="mainwindow.cpp" line="4419"/>
<location filename="mainwindow.cpp" line="4458"/>
<location filename="mainwindow.cpp" line="2173"/>
<location filename="mainwindow.cpp" line="2178"/>
<location filename="mainwindow.cpp" line="2185"/>
<location filename="mainwindow.cpp" line="2238"/>
<location filename="mainwindow.cpp" line="2243"/>
<location filename="mainwindow.cpp" line="2320"/>
<location filename="mainwindow.cpp" line="2325"/>
<location filename="mainwindow.cpp" line="2332"/>
<location filename="mainwindow.cpp" line="2356"/>
<location filename="mainwindow.cpp" line="2547"/>
<location filename="mainwindow.cpp" line="4415"/>
<location filename="mainwindow.cpp" line="4434"/>
<location filename="mainwindow.cpp" line="4473"/>
<source>tips</source>
<translation>prompt</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2163"/>
<location filename="mainwindow.cpp" line="2228"/>
<location filename="mainwindow.cpp" line="2310"/>
<location filename="mainwindow.cpp" line="2173"/>
<location filename="mainwindow.cpp" line="2238"/>
<location filename="mainwindow.cpp" line="2320"/>
<source>save succeed</source>
<translation>Saved successfully</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2175"/>
<location filename="mainwindow.cpp" line="2322"/>
<location filename="mainwindow.cpp" line="2185"/>
<location filename="mainwindow.cpp" line="2332"/>
<source>find savePath in thumbnail</source>
<translation>Image name already exists in the list</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2346"/>
<location filename="mainwindow.cpp" line="2356"/>
<source>Please select at least one picture before export</source>
<translation>Please select at least one image and then export</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>File name</source>
<translation>File name</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>File path</source>
<translation>File path</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>File size</source>
<translation>File size</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>Creation date/time</source>
<translation>Creation time</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>Modified date/time</source>
<translation>Modification time</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2413"/>
<location filename="mainwindow.cpp" line="2423"/>
<source>Accessed date/time</source>
<translation>Access time</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Format</source>
<translation>Format</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Width</source>
<translation>Width</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Height</source>
<translation>Height</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>depth</source>
<translation>Depth</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Color model</source>
<translation>Color mode</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>DPI</source>
<translation>Pixels per inch</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Print size</source>
<translation>Print size</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2456"/>
<location filename="mainwindow.cpp" line="2466"/>
<source>Frame</source>
<translation>Frame</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2470"/>
<location filename="mainwindow.cpp" line="2480"/>
<source>None</source>
<translation>None</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2470"/>
<location filename="mainwindow.cpp" line="2480"/>
<source>Mono</source>
<translation>Black and white</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2470"/>
<location filename="mainwindow.cpp" line="2480"/>
<source>Gray</source>
<translation>Gray scale</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2470"/>
<location filename="mainwindow.cpp" line="2480"/>
<source>Color</source>
<translation>Color</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2474"/>
<location filename="mainwindow.cpp" line="2484"/>
<source>Not supported</source>
<translation>Not supported</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2502"/>
<location filename="mainwindow.cpp" line="2512"/>
<source>Warning</source>
<translation>Warning</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2502"/>
<location filename="mainwindow.cpp" line="2512"/>
<source>Device is Running!
Please finish scanning first.</source>
<translation>Device is currently running!
Please stop scanning first.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2526"/>
<location filename="mainwindow.cpp" line="2536"/>
<source>There are pictures that have not been saved.
Are you sure to close?</source>
<translation>There are unsaved images; are you sure you want to close?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2538"/>
<location filename="mainwindow.cpp" line="2548"/>
<source>Are you sure to close?</source>
<translation>Are you sure you want to close?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="2972"/>
<location filename="mainwindow.cpp" line="2987"/>
<source>Sure to sign out administrator account?</source>
<translation>Are you sure you want to log out of the administrator account?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3023"/>
<location filename="mainwindow.cpp" line="3038"/>
<source>confirm operation</source>
<translation>Confirm operation</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3024"/>
<location filename="mainwindow.cpp" line="3039"/>
<source>are you sure to clear the roller count?</source>
<translation>Are you sure you want to clear the roller count?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3035"/>
<location filename="mainwindow.cpp" line="3039"/>
<location filename="mainwindow.cpp" line="3128"/>
<location filename="mainwindow.cpp" line="3050"/>
<location filename="mainwindow.cpp" line="3054"/>
<location filename="mainwindow.cpp" line="3143"/>
<source>hint</source>
<translation>Prompt</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3035"/>
<location filename="mainwindow.cpp" line="3121"/>
<location filename="mainwindow.cpp" line="3050"/>
<location filename="mainwindow.cpp" line="3136"/>
<source>Roller scanned count has been set to 0.</source>
<translation>Roller count reset to zero.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3039"/>
<location filename="mainwindow.cpp" line="3126"/>
<location filename="mainwindow.cpp" line="3054"/>
<location filename="mainwindow.cpp" line="3141"/>
<source>Roller scanned count reset failed.</source>
<translation>Failed to reset roller count.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3098"/>
<location filename="mainwindow.cpp" line="3113"/>
<source>Error</source>
<translation>Error</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3098"/>
<location filename="mainwindow.cpp" line="3113"/>
<source>Document missing! It would be deleted or renamed.</source>
<translation>File lost! File may be deleted or renamed.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3109"/>
<location filename="mainwindow.cpp" line="3124"/>
<source>confirm the operation</source>
<translation>Confirm operation</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3110"/>
<location filename="mainwindow.cpp" line="3125"/>
<source>Are you sure to clear the rollor acount?</source>
<translation>Are you sure you want to clear the roller count?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3929"/>
<location filename="mainwindow.cpp" line="3944"/>
<source>cache path folder limit:%1</source>
<translation>Unable to access the current path:%1
Please try to log in to the administrator account in the [User] menu and go to the [Cache settings] to change the cache path.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3933"/>
<location filename="mainwindow.cpp" line="3948"/>
<source>aquireinto folder limit:%1</source>
<translation>Unable to access the current path:%1
Please try to change the cache path in [Scan to].</translation>
@ -2630,76 +2690,76 @@ Please try to change the cache path in [Scan to].</translation>
<translation type="vanished">&lt;p&gt;%1&lt;/p&gt;&lt;p&gt;Version: %2&lt;br&gt;Copyright: &amp;#169; %3&lt;/p&gt;&lt;p&gt;%4%5%6%7%8%9&lt;/p&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3149"/>
<location filename="mainwindow.cpp" line="3200"/>
<location filename="mainwindow.cpp" line="3164"/>
<location filename="mainwindow.cpp" line="3215"/>
<source>about %1</source>
<translation>About %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3150"/>
<location filename="mainwindow.cpp" line="3201"/>
<location filename="mainwindow.cpp" line="3165"/>
<location filename="mainwindow.cpp" line="3216"/>
<source>&lt;p&gt;Version: %1&lt;/p&gt;</source>
<translation>&lt;p&gt;Version: %1&lt;/p&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3158"/>
<location filename="mainwindow.cpp" line="3202"/>
<location filename="mainwindow.cpp" line="3173"/>
<location filename="mainwindow.cpp" line="3217"/>
<source>&lt;p&gt;CopyRight: &amp;#169; %1&lt;/p&gt;</source>
<translation>&lt;p&gt;Copyright: &amp;#169; %1&lt;/p&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3154"/>
<location filename="mainwindow.cpp" line="3206"/>
<location filename="mainwindow.cpp" line="3169"/>
<location filename="mainwindow.cpp" line="3221"/>
<source>&lt;p&gt;%1: &lt;a href=&apos;%2&apos;&gt;%3&lt;/a&gt;</source>
<translation>&lt;p&gt;%1: &lt;a href=&apos;%2&apos;&gt;%3&lt;/a&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3156"/>
<location filename="mainwindow.cpp" line="3208"/>
<location filename="mainwindow.cpp" line="3171"/>
<location filename="mainwindow.cpp" line="3223"/>
<source>&lt;p&gt;%1: %2</source>
<translation>&lt;p&gt;%1: %2</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3210"/>
<location filename="mainwindow.cpp" line="3225"/>
<source>roller number</source>
<translation>Number of rollers</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3669"/>
<location filename="mainwindow.cpp" line="3684"/>
<source>open scanner </source>
<translation>Open scanner </translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3670"/>
<location filename="mainwindow.cpp" line="4201"/>
<location filename="mainwindow.cpp" line="3685"/>
<location filename="mainwindow.cpp" line="4216"/>
<source>app name</source>
<translation>HUAGOSCAN scanning software</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3700"/>
<location filename="mainwindow.cpp" line="4219"/>
<location filename="mainwindow.cpp" line="3715"/>
<location filename="mainwindow.cpp" line="4234"/>
<source>success</source>
<translation>successfully</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3705"/>
<location filename="mainwindow.cpp" line="3720"/>
<source>be ready</source>
<translation>Ready</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3709"/>
<location filename="mainwindow.cpp" line="4224"/>
<location filename="mainwindow.cpp" line="3724"/>
<location filename="mainwindow.cpp" line="4239"/>
<source>failed</source>
<translation>failed</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3898"/>
<location filename="mainwindow.cpp" line="3936"/>
<location filename="mainwindow.cpp" line="3913"/>
<location filename="mainwindow.cpp" line="3951"/>
<source>error</source>
<translation>Error</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3899"/>
<location filename="mainwindow.cpp" line="3914"/>
<source>start failed!</source>
<translation>Failed to start!</translation>
</message>
@ -2709,106 +2769,106 @@ Please try to change the cache path in [Scan to].</translation>
Please go to Scan to and change the accessible scan folder and then perform the scan.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4081"/>
<location filename="mainwindow.cpp" line="4096"/>
<source>Insufficient access rights</source>
<translation>Insufficient file access permissions</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4085"/>
<location filename="mainwindow.cpp" line="4100"/>
<source>Image processing failed</source>
<translation>Image processing failed</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4089"/>
<location filename="mainwindow.cpp" line="4104"/>
<source>Ocr init failed</source>
<translation>OCR initialization error</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4093"/>
<location filename="mainwindow.cpp" line="4108"/>
<source>Ocr failed</source>
<translation>OCR failed</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4097"/>
<location filename="mainwindow.cpp" line="4112"/>
<source>File does not exist</source>
<translation>File does not exist</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4101"/>
<location filename="mainwindow.cpp" line="4116"/>
<source>Failed to load dynamic library</source>
<translation>Failed to load dynamic library</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4105"/>
<location filename="mainwindow.cpp" line="4120"/>
<source>File data error</source>
<translation>File data error</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4109"/>
<location filename="mainwindow.cpp" line="4124"/>
<source>Image format processing error</source>
<translation>Image format processing error</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4113"/>
<location filename="mainwindow.cpp" line="4128"/>
<source>Out of memory</source>
<translation>Insufficient memory</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4117"/>
<location filename="mainwindow.cpp" line="4132"/>
<source>Failed</source>
<translation>Failed</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4216"/>
<location filename="mainwindow.cpp" line="4231"/>
<source>apply setting</source>
<translation>Apply configuration</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4235"/>
<location filename="mainwindow.cpp" line="4250"/>
<source>Are you sure to close </source>
<translation>Are you sure you want to disconnect device:</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4235"/>
<location filename="mainwindow.cpp" line="4250"/>
<source> ?</source>
<translation>?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4243"/>
<location filename="mainwindow.cpp" line="4244"/>
<location filename="mainwindow.cpp" line="4258"/>
<location filename="mainwindow.cpp" line="4259"/>
<source>close </source>
<translation>Close </translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4339"/>
<location filename="mainwindow.cpp" line="4354"/>
<source>tip</source>
<translation>Prompt</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4339"/>
<location filename="mainwindow.cpp" line="4354"/>
<source>Other versions not available</source>
<translation>No other versions obtained</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4362"/>
<location filename="mainwindow.cpp" line="4380"/>
<location filename="mainwindow.cpp" line="4377"/>
<location filename="mainwindow.cpp" line="4395"/>
<source>The device does not support this operation</source>
<translation>Device does not support this operation</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4364"/>
<location filename="mainwindow.cpp" line="4382"/>
<location filename="mainwindow.cpp" line="4379"/>
<location filename="mainwindow.cpp" line="4397"/>
<source>IO error</source>
<translation>IO error</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4401"/>
<location filename="mainwindow.cpp" line="4420"/>
<location filename="mainwindow.cpp" line="4416"/>
<location filename="mainwindow.cpp" line="4435"/>
<source>The language switch is successful and takes effect the next time the software is started!</source>
<translation>The language switch is successful and takes effect the next time the software is started!</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="4458"/>
<location filename="mainwindow.cpp" line="4473"/>
<source>Are you sure to delete selected file?</source>
<translation>Are you sure to delete the selected file completely?</translation>
</message>

View File

@ -144,6 +144,16 @@ Dialog_Export::Dialog_Export(int total, const std::vector<int> &selectedIndexs,
ui->lab_warning->setVisible(true);
ui->lab_warning->setText(tr("Input is not valid.\nPage range will be 'Chosen Pages'."));
}
ui->label_ocrType->setVisible(false);
ui->comboBox_ocrType->setVisible(false);
#if defined(OEM_ZHONGJING) && defined(HG_CMP_MSC)
ui->label_ocrType->setVisible(isOcr());
ui->comboBox_ocrType->setVisible(isOcr());
QStringList ocrType = { tr("English"), tr("Simplified Chinese"), tr("Traditional Chinese"), tr("Japanese"), tr("Korean") };
ui->comboBox_ocrType->addItems(ocrType);
ui->comboBox_ocrType->setCurrentIndex(getCfgValue("export", "ocrLanguage", 0));
#endif
}
Dialog_Export::~Dialog_Export()
@ -273,6 +283,11 @@ void Dialog_Export::on_dialog_accepted()
saveCfgValue("export", "exportType", exportType);
saveCfgValue("export", "saveAsMulti", ui->check_saveAsMulti->isChecked());
#if defined(OEM_ZHONGJING) && defined(HG_CMP_MSC)
int ocrLanguage = ui->comboBox_ocrType->currentIndex();
saveCfgValue("export", "ocrLanguage", ocrLanguage);
#endif
accept();
}
@ -281,6 +296,12 @@ void Dialog_Export::on_filterSelected(const QString& filterName)
bool enabled = false;
m_suffix = ui->fileDialog->nameFilters().indexOf(filterName);
#if defined(OEM_ZHONGJING) && defined(HG_CMP_MSC)
ui->label_ocrType->setVisible(isOcr());
ui->comboBox_ocrType->setVisible(isOcr());
#endif
enabled = (m_supportType[m_suffix].attr & FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES) == FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES;
ui->check_saveAsMulti->setEnabled(enabled);
// ui->check_saveAsMulti->setEnabled(m_suffix > 2 && m_suffix < 6);

View File

@ -13,148 +13,169 @@
<property name="windowTitle">
<string>Export</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="1,0,0">
<layout class="QVBoxLayout" name="verticalLayout_3" stretch="1,0">
<item>
<widget class="QFileDialog" name="fileDialog" native="true"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QGroupBox" name="gbox_pageRange">
<property name="title">
<string>Page Range</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QGroupBox" name="gbox_pageRange">
<property name="title">
<string>Page Range</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QRadioButton" name="radio_nominatedPages">
<property name="text">
<string>Nominate Pages(example:1,3,6 or 3-6)</string>
</property>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QRadioButton" name="radio_nominatedPages">
<property name="text">
<string>Nominate Pages(example:1,3,6 or 3-6)</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QRadioButton" name="radio_chosenPages">
<property name="text">
<string>Chosen Pages</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QRadioButton" name="radio_allPages">
<property name="text">
<string>All Pages</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QRadioButton" name="radio_chosenPages">
<property name="text">
<string>Chosen Pages</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QRadioButton" name="radio_allPages">
<property name="text">
<string>All Pages</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,0,1,0">
<item>
<widget class="QLabel" name="lab_nominatePages">
<property name="text">
<string>Page:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_nominatePages"/>
</item>
<item>
<widget class="QLabel" name="lab_warning">
<property name="enabled">
<bool>true</bool>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(216, 0, 0);</string>
</property>
<property name="text">
<string>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,0,1,0">
<item>
<widget class="QLabel" name="lab_nominatePages">
<property name="text">
<string>Page:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_nominatePages"/>
</item>
<item>
<widget class="QLabel" name="lab_warning">
<property name="enabled">
<bool>true</bool>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(216, 0, 0);</string>
</property>
<property name="text">
<string>
Input is not valid.
Page range will be &quot;Chosen Pages&quot;.
</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QCheckBox" name="check_saveAsMulti">
<property name="text">
<string>Save as multipages (TIFF/PDF/OFD/GIF)</string>
</property>
</widget>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btn_option">
<property name="text">
<string>Compression Option</string>
</property>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QCheckBox" name="check_saveAsMulti">
<property name="text">
<string>Save as multipages (TIFF/PDF/OFD/GIF)</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_ocrType">
<property name="text">
<string>Ocr type:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_ocrType">
<property name="minimumSize">
<size>
<width>111</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btn_option">
<property name="text">
<string>Compression Option</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>

View File

@ -10,6 +10,7 @@
#include <QMessageBox>
#include <QFile>
#include "ocrPdf.h"
#include "app_cfg.h"
Dialog_ExportImageFile::Dialog_ExportImageFile(const QString &destPath, const QString &destName, const QString &destExt,
bool isSaveAsMulti, int jpegQuality, int tiffCompressionBW, int tiffCompression, int tiffQuality, bool isOcr,
@ -116,7 +117,7 @@ void HGAPI Dialog_ExportImageFile::ThreadFunc(HGThread thread, HGPointer param)
HGImgFmt_CloseImageWriter(writer);
bool result = createOcrPdf(tmpFileName, getStdString(fileName).c_str());
bool result = createOcrPdf(tmpFileName, getStdString(fileName).c_str(), getCfgValue("export", "ocrLanguage", 0));
QFile::remove(tmpFileName);
if (!result)
{

View File

@ -107,6 +107,17 @@ Dialog_SaveAs::Dialog_SaveAs(QWidget *parent) :
ui->cbox_subFolder->setChecked(false);
ui->cbox_subFolder->setChecked(getCfgValue("saveAs", "subFolderByTime", false));
ui->label_ocrType->setVisible(false);
ui->comboBox_ocrType->setVisible(false);
#if defined(OEM_ZHONGJING) && defined(HG_CMP_MSC)
ui->label_ocrType->setVisible(isOcr());
ui->comboBox_ocrType->setVisible(isOcr());
QStringList ocrType = { tr("English"), tr("Simplified Chinese"), tr("Traditional Chinese"), tr("Japanese"), tr("Korean") };
ui->comboBox_ocrType->addItems(ocrType);
ui->comboBox_ocrType->setCurrentIndex(getCfgValue("saveAs", "ocrLanguage", 0));
#endif
}
Dialog_SaveAs::~Dialog_SaveAs()
@ -224,6 +235,11 @@ void Dialog_SaveAs::on_dialog_accepted()
m_savePath = getStdFileName(path + "/" + name + extName);
}
#if defined(OEM_ZHONGJING) && defined(HG_CMP_MSC)
int ocrLanguage = ui->comboBox_ocrType->currentIndex();
saveCfgValue("saveAs", "ocrLanguage", ocrLanguage);
#endif
saveCfgValue("saveAs", "suffix", m_suffix);
saveCfgValue("saveAs", "subFolderByTime", ui->cbox_subFolder->isChecked());
accept();
@ -233,6 +249,11 @@ void Dialog_SaveAs::on_filterSelected(const QString& filterName)
{
m_suffix = ui->fileDialog->nameFilters().indexOf(filterName);
ui->btn_option->setEnabled(0 == m_suffix || 6 == m_suffix);
#if defined(OEM_ZHONGJING) && defined(HG_CMP_MSC)
ui->label_ocrType->setVisible(isOcr());
ui->comboBox_ocrType->setVisible(isOcr());
#endif
}
void Dialog_SaveAs::on_btn_option_clicked()

View File

@ -33,6 +33,23 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_ocrType">
<property name="text">
<string>Ocr type:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_ocrType">
<property name="minimumSize">
<size>
<width>101</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">

View File

@ -435,7 +435,7 @@ HGResult MainWindow::saveImage(HGImage image, const HGImgFmtSaveInfo* info, bool
HGChar tmpFileName[256];
HGBase_GetTmpFileName("bmp", tmpFileName, 256);
ret = HGImgFmt_SaveImage(image, 0, info, tmpFileName);
bool result = createOcrPdf(tmpFileName, fileName);
bool result = createOcrPdf(tmpFileName, fileName, getCfgValue("saveAs", "ocrLanguage", 0));
QFile::remove(tmpFileName);
return (result) ? HGBASE_ERR_OK : HGIMGPROC_ERR_OCR;
#else

View File

@ -32,7 +32,7 @@ std::string getOcrPath()
return ocrPath;
}
bool createOcrPdf(const std::string &imgPath, const std::string &dstFile)
bool createOcrPdf(const std::string &imgPath, const std::string &dstFile, int languageType)
{
#ifdef HG_CMP_MSC
std::string ocrPath = getOcrPath();
@ -93,7 +93,28 @@ bool createOcrPdf(const std::string &imgPath, const std::string &dstFile)
bool ret = false;
char cmd[1024] = {0};
sprintf(cmd, "tesseract.exe \"%s\" \"%s\" -l %s --psm %d --oem %d %s", imgPath.c_str(), prefix, "eng", 3, 3, "pdf");
if (0 == languageType)
{
sprintf(cmd, "tesseract.exe \"%s\" \"%s\" -l %s --psm %d --oem %d %s", imgPath.c_str(), prefix, "eng", 3, 3, "pdf");
}
else if (1 == languageType)
{
sprintf(cmd, "tesseract.exe \"%s\" \"%s\" -l %s --psm %d --oem %d %s", imgPath.c_str(), prefix, "chi_sim", 3, 3, "pdf");
}
else if (2 == languageType)
{
sprintf(cmd, "tesseract.exe \"%s\" \"%s\" -l %s --psm %d --oem %d %s", imgPath.c_str(), prefix, "chi_tra", 3, 3, "pdf");
}
else if (3 == languageType)
{
sprintf(cmd, "tesseract.exe \"%s\" \"%s\" -l %s --psm %d --oem %d %s", imgPath.c_str(), prefix, "jpn", 3, 3, "pdf");
}
else if (4 == languageType)
{
sprintf(cmd, "tesseract.exe \"%s\" \"%s\" -l %s --psm %d --oem %d %s", imgPath.c_str(), prefix, "kor", 3, 3, "pdf");
}
BOOL b = CreateProcessA(NULL, cmd, NULL, NULL, TRUE, CREATE_NO_WINDOW, NULL, NULL, &StartupInfo, &ProcessInfo);
if (b)
{

View File

@ -4,6 +4,6 @@
#include <string>
std::string getOcrPath();
bool createOcrPdf(const std::string &imgPath, const std::string &dstFile);
bool createOcrPdf(const std::string &imgPath, const std::string &dstFile, int languageType);//languageType is the index of the comboBox on export and save_as ui.
#endif /* __OCRPDF_H__ */