Visitar URL original
Note needed fonts for CHI/JPN/KOR document support · documentcloud/docsplit@2a63a81 · GitHub
Skip to content

Commit 2a63a81

Browse files
committed
Note needed fonts for CHI/JPN/KOR document support
1 parent d62ce44 commit 2a63a81

1 file changed

Lines changed: 28 additions & 22 deletions

File tree

‎index.html‎

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ <h2 id="installation">Installation &amp; Dependencies</h2>
159159
<tt>aptitude install libreoffice</tt><br />
160160
On the Mac, download and install <a href="http://www.libreoffice.org/download">the latest release</a>.
161161
</li>
162+
<li>
163+
(Optional) Install fonts to process documents that use <a href="https://help.ubuntu.com/community/Fonts#Chinese.2C_Japanese.2C_and_Korean_Fonts">Chinese, Japanese, and Korean Fonts</a>.
164+
On Linux, use <b>aptitude</b>, <b>apt-get</b> or <b>yum</b>:<br />
165+
<tt>aptitude install ttf-wqy-microhei ttf-wqy-zenhei ttf-kochi-gothic ttf-kochi-mincho fonts-nanum</tt><br />
166+
On the Mac, the fonts should already be present. However you can always download the TTF files and install them using <a href="http://support.apple.com/en-us/HT201749">Font Book</a>.
167+
</li>
162168
</ol>
163169

164170
<p><i>
@@ -183,7 +189,7 @@ <h2 id="usage">Usage</h2>
183189
and format. Pass <tt>--pages</tt> or <tt>-p</tt> to choose the specific pages to
184190
image. Passing<br /> <tt>--size</tt> or <tt>-s</tt> will specify the desired
185191
image resolution, <tt>--density</tt> or <tt>-d</tt> will specify the DPI to rasterize the images
186-
at during conversion by GraphicsMagick, and <tt>--format</tt> or <tt>-f</tt>
192+
at during conversion by GraphicsMagick, and <tt>--format</tt> or <tt>-f</tt>
187193
will select the format of the final images.
188194
</p>
189195
<pre>
@@ -201,7 +207,7 @@ <h2 id="usage">Usage</h2>
201207
pass <tt>--pages all</tt>. You can use the <tt>--ocr</tt> and <tt>--no-ocr</tt>
202208
flags to force OCR, or disable it, respectively. By default (if Tesseract is installed)
203209
Docsplit will OCR the text of each page for which it fails to extract text
204-
directly from the document. Docsplit will also attempt to clean up garbage
210+
directly from the document. Docsplit will also attempt to clean up garbage
205211
characters in the OCR'd text &mdash; to disable this, pass the
206212
<tt>--no-clean</tt> flag.
207213
</p>
@@ -272,7 +278,7 @@ <h2 id="internals">Internals</h2>
272278
<a href="http://poppler.freedesktop.org/">Poppler</a>,
273279
<a href="http://www.accesspdf.com/pdftk/">PDFTK</a>,
274280
<a href="http://code.google.com/p/tesseract-ocr/">Tesseract</a>, and
275-
<a href="http://www.libreoffice.org/">LibreOffice</a> libraries.
281+
<a href="http://www.libreoffice.org/">LibreOffice</a> libraries.
276282
Poppler is used to extract text and metadata from PDF documents,
277283
PDFTK is used to split them apart into pages, and GraphicsMagick is used to generate
278284
the page images (internally, it's rendering them with
@@ -291,7 +297,7 @@ <h2 id="internals">Internals</h2>
291297
</p>
292298

293299
<h2 id="changes">Change Log</h2>
294-
300+
295301
<p>
296302
<b class="header">0.7.6</b><small> &ndash; Nov. 16, 2014</small><br />
297303
Docsplit will now automatically use Tesseract's orientation detection model
@@ -308,7 +314,7 @@ <h2 id="changes">Change Log</h2>
308314
<b class="header">0.7.2</b><small> &ndash; Feb. 23, 2013</small><br />
309315
Bug fixes for LibreOffice support.
310316
</p>
311-
317+
312318
<p>
313319
<b class="header">0.7.0</b><small> &ndash; Feb. 23, 2013</small><br />
314320
Docsplit now expresses a preference for LibreOffice over OpenOffice, with
@@ -317,81 +323,81 @@ <h2 id="changes">Change Log</h2>
317323
Improved unicode support now correctly collects non-ascii characters from
318324
pdfinfo.
319325
</p>
320-
326+
321327
<p>
322328
<b class="header">0.6.4</b><small> &ndash; Nov. 12, 2012</small><br />
323329
Added a language flag for the Docsplit commandline, fixed several bugs,
324330
and began preparations for the deprecation of pdftk.
325331
</p>
326-
332+
327333
<p>
328334
<b class="header">0.6.2</b><small> &ndash; Nov. 22, 2011</small><br />
329335
Bugfix to escape document names during file type detection.
330336
</p>
331-
337+
332338
<p>
333339
<b class="header">0.6.1</b><small> &ndash; Nov. 18, 2011</small><br />
334340
Docsplit now supports converting documents using LibreOffice
335341
as well as OpenOffice, through JODConverter 3.0 beta4.
336342
</p>
337-
343+
338344
<p>
339345
<b class="header">0.6.0</b><small> &ndash; Sept. 13, 2011</small><br />
340-
Docsplit should now handle shelling out for documents with arbitrary
341-
characters in their filenames correctly, thanks to a series of
346+
Docsplit should now handle shelling out for documents with arbitrary
347+
characters in their filenames correctly, thanks to a series of
342348
epic patches from Vladimir Rybas.
343-
A <tt>--density</tt> option was added for specifying the resolution of
349+
A <tt>--density</tt> option was added for specifying the resolution of
344350
rasterization when generating images from documents.
345351
The image resolution for OCR has been doubled from 200 to 400 DPI &mdash;
346-
this shouldn't make a noticeable difference for normal docs, but will make
352+
this shouldn't make a noticeable difference for normal docs, but will make
347353
a world of difference for the fine print.
348354
Docsplit now uses GraphicsMagick's <tt>--despeckle</tt> before OCR.
349355
</p>
350-
356+
351357
<p>
352358
<b class="header">0.5.2</b><small> &ndash; May 13, 2011</small><br />
353359
For transparent conversion to PDF, made Docsplit prefer GraphicsMagick
354360
over OpenOffice, when the file format is one that GraphicsMagick is able
355361
to read: (png, gif, jpg, jpeg, tif, tiff, bmp, pnm, ppm, svg, eps).
356362
</p>
357-
363+
358364
<p>
359365
<b class="header">0.5.1</b><small> &ndash; April 26, 2011</small><br />
360366
Minor tweaks to the <tt>TextCleaner</tt> to be more lenient about acryonms
361367
with hyphens, and words with four vowels in a row.
362368
</p>
363-
369+
364370
<p>
365371
<b class="header">0.5.0</b><br />
366372
Added a <tt>Docsplit::TextCleaner</tt> class which is used to post-process
367373
OCR'd text, and remove garbage characters that are created when Tesseract
368374
encounters non-english text. To disable the cleanup, pass <tt>--no-clean</tt>.
369375
</p>
370-
376+
371377
<p>
372378
<b class="header">0.4.1</b><br />
373379
Upgraded the JODConverter dependency for PDF conversion via OpenOffice to
374-
3.0 beta. Added PNG, GIF, TIF, JPG, and BMP to the list of supported
380+
3.0 beta. Added PNG, GIF, TIF, JPG, and BMP to the list of supported
375381
formats.
376382
</p>
377-
383+
378384
<p>
379385
<b class="header">0.3.4</b><br />
380386
Adding a suggested optimization from the GraphicsMagick list -- only ever
381387
generate one page image per GraphicsMagick call. Saves large amounts of
382388
disk space for tempfiles on long documents.
383389
</p>
384-
390+
385391
<p>
386392
<b class="header">0.3.3</b><br />
387393
Start using the MAGICK_TMPDIR environment variable to prevent parallel
388394
Docsplit runs from having the potential to clobber each other's temporary
389395
image files.
390396
</p>
391-
397+
392398
<p>
393399
<b class="header">0.3.1</b><br />
394-
Added a memory limit to GraphicsMagick while generating the TIFFs for
400+
Added a memory limit to GraphicsMagick while generating the TIFFs for
395401
Tesseract OCR -- prevents <tt>gm</tt> from gobbling up all available memory
396402
on large files.
397403
</p>

0 commit comments

Comments
 (0)