Merge branch 'master' of https://git.vvvvvvaria.org/mb/data-workers-publication
This commit is contained in:
commit
55d667ed19
50
README.md
50
README.md
@ -1,14 +1,14 @@
|
|||||||
# plain text workflow
|
# plain text workflow
|
||||||
|
|
||||||
Files for the publication & poster for Data Workers, an exhibition by Algolit at the Mundaneum in Mons from 28 March until 28 April 2019.
|
Files for the plain text publication for Data Workers, an exhibition by Algolit at the Mundaneum in Mons from 28 March until 28 April 2019.
|
||||||
|
|
||||||
<http://www.algolit.net/index.php/Data_Workers>
|
<http://www.algolit.net/index.php/Data_Workers>
|
||||||
|
|
||||||
|
|
||||||
` _ `
|
` _ `<br>
|
||||||
` _ __ ___ | |_ ___ ___ `
|
` _ __ ___ | |_ ___ ___ `<br>
|
||||||
`| '_ \ / _ \| __/ _ \/ __|`
|
`| '_ \ / _ \| __/ _ \/ __|`<br>
|
||||||
`| | | | (_) | || __/\__ \`
|
`| | | | (_) | || __/\__ \`<br>
|
||||||
`|_| |_|\___/ \__\___||___/`
|
`|_| |_|\___/ \__\___||___/`
|
||||||
|
|
||||||
|
|
||||||
@ -19,21 +19,25 @@ 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 +49,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 +57,21 @@ 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 ---
|
|
||||||
|
|
||||||
### Hyphenator
|
------
|
||||||
|
|
||||||
|
### --- hyphenation ---
|
||||||
|
|
||||||
|
#### 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 +90,9 @@ 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 +105,16 @@ 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]`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user