'README.md' updaten

This commit is contained in:
mb 2019-03-25 13:36:54 +01:00
parent f57cb83522
commit 7fa756919e

View File

@ -19,21 +19,21 @@ lines per page: 70
70, 140, 210, 280, 350, 420, 490, 560, 630, 700 70, 140, 210, 280, 350, 420, 490, 560, 630, 700
## --- txt to pdf --- ### --- txt to pdf ---
options ... options ...
**weasyprint** #### weasyprint
(stretched the page size, font size, etc, in order to place everything) (stretched the page size, font size, etc, in order to place everything)
**enscript** #### enscript
(using postscript to create pdf) (using postscript to create pdf)
`$ enscript --word-wrap --margins=40:10:10:20 --fancy-header writers.intro.txt -o - | ps2pdf - test.pdf` `$ enscript --word-wrap --margins=40:10:10:20 --fancy-header writers.intro.txt -o - | ps2pdf - test.pdf`
`$ cat writers.intro.txt | iconv -c -f utf-8 -t ISO-8859-1 | enscript --word-wrap --margins=40:10:10:20 --fancy-header -o - | ps2pdf - test.pdf` `$ cat writers.intro.txt | iconv -c -f utf-8 -t ISO-8859-1 | enscript --word-wrap --margins=40:10:10:20 --fancy-header -o - | ps2pdf - test.pdf`
**txt2pdf** #### txt2pdf
(uses reportlab) (uses reportlab)
<https://github.com/baruchel/txt2pdf> <https://github.com/baruchel/txt2pdf>
@ -45,7 +45,7 @@ options ...
currently using: currently using:
`$ python3 txt2pdf/txt2pdf.py -m A4 -f fonts/fantasque/TTF/FantasqueSansMono-Regular.ttf -s 9 -v 0.05 -T 1 -B 0.9 -L 1.5 -R 1.5 data-workers.txt -o test.pdf` `$ python3 txt2pdf/txt2pdf.py -m A4 -f fonts/fantasque/TTF/FantasqueSansMono-Regular.ttf -s 9 -v 0.05 -T 1 -B 0.9 -L 1.5 -R 1.5 data-workers.txt -o test.pdf`
**PDF2txt miner** #### PDF2txt miner
The inverted tool of this process The inverted tool of this process
<https://www.unixuser.org/~euske/python/pdfminer/> <https://www.unixuser.org/~euske/python/pdfminer/>
@ -53,16 +53,16 @@ The inverted tool of this process
*"What's It? PDFMiner is a tool for extracting information from PDF documents. Unlike other PDF-related tools, it focuses entirely on getting and analyzing text data. PDFMiner allows one to obtain the exact location of text in a page, as well as other information such as fonts or lines."* *"What's It? PDFMiner is a tool for extracting information from PDF documents. Unlike other PDF-related tools, it focuses entirely on getting and analyzing text data. PDFMiner allows one to obtain the exact location of text in a page, as well as other information such as fonts or lines."*
## --- hyphenation --- ### --- hyphenation ---
**Hyphenator** #### Hyphenator
<https://pypi.org/project/hyphenator/> <https://pypi.org/project/hyphenator/>
**textwrap** #### textwrap
<https://pypi.org/project/textwrap3/> <https://pypi.org/project/textwrap3/>
## --- commands --- ### --- commands ---
Generate the publication to PDF: Generate the publication to PDF:
@ -81,7 +81,7 @@ PDFTK in one command:
`$ pdftk data-workers.en.pdf A=data-workers.en.pdf cat A52 output data-workers.en.backcover.pdf && pdftk data-workers.en.backcover.pdf multistamp logos.pdf output data-workers.en.logos.pdf && pdftk A=data-workers.en.pdf B=data-workers.en.backcover.logos.pdf cat A1-51 B output data-workers.en.publication.pdf` `$ pdftk data-workers.en.pdf A=data-workers.en.pdf cat A52 output data-workers.en.backcover.pdf && pdftk data-workers.en.backcover.pdf multistamp logos.pdf output data-workers.en.logos.pdf && pdftk A=data-workers.en.pdf B=data-workers.en.backcover.logos.pdf cat A1-51 B output data-workers.en.publication.pdf`
## --- ASCII/UNICODE fonts --- ### --- ASCII/UNICODE fonts ---
Unicode art :) Unicode art :)
@ -94,11 +94,11 @@ Unicode art :)
<http://www.alanwood.net/unicode/> <http://www.alanwood.net/unicode/>
## --- unifont --- ### --- unifont ---
<http://unifoundry.com/unifont/index.html> <http://unifoundry.com/unifont/index.html>
## --- DUMP --- ### --- DUMP ---
`[\/\]\<\?\'\)\(\[\\\"\w]` `[\/\]\<\?\'\)\(\[\\\"\w]`