Skip to content

Commit

Permalink
1603_1.py (#12, #26): Codex.imprimere_codex_in_tabulam_json() started
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Mar 18, 2022
1 parent d6e9fb2 commit 953becd
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 22 deletions.
1 change: 1 addition & 0 deletions officinam/999999999/0/1603_1.asciidoctor-pdf-theme-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ base:
#font_size: 11.2
#line_height_length: 16
font_size: 10.5
# font_size: 10.0 ### DEFAULT CHANCED: was 10.5
#line_height_length: 15
# correct line height for Noto Serif metrics
line_height_length: 12
Expand Down
44 changes: 44 additions & 0 deletions officinam/999999999/0/1603_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1763,6 +1763,8 @@ def _sarcinarum(self):
def imprimere(self) -> list:
"""imprimere /print/@eng-Latn
/print book (AsciiDoc format)/@eng-Latn
Trivia:
- cōdex, m, s, (Nominative), https://en.wiktionary.org/wiki/codex#Latin
- imprimere, v, s, (), https://en.wiktionary.org/wiki/imprimo#Latin
Expand Down Expand Up @@ -1836,6 +1838,8 @@ def imprimere(self) -> list:
def imprimere_codex_copertae(self) -> list:
"""imprimere /print/@eng-Latn
/print book cover (SVG format)/@eng-Latn
Trivia:
- cōdex, m, s, (Nominative), https://en.wiktionary.org/wiki/codex#Latin
- imprimere, v, s, (), https://en.wiktionary.org/wiki/imprimo#Latin
Expand Down Expand Up @@ -1864,6 +1868,46 @@ def imprimere_codex_copertae(self) -> list:

return paginae

def imprimere_codex_in_tabulam_json(self) -> list:
"""imprimere /print/@eng-Latn
/print book cover (SVG format)/@eng-Latn
Trivia:
- cōdex, m, s, (Nominative), https://en.wiktionary.org/wiki/codex#Latin
- imprimere, v, s, (), https://en.wiktionary.org/wiki/imprimo#Latin
- in (+ ablative), in (+ accusative)
https://en.wiktionary.org/wiki/in#Latin
- (+ accusative) into, to
- tabulam, f, s, /accusative/,
https://en.wiktionary.org/wiki/tabula#Latin
- json, ---,
- https://www.json.org/
- https://www.mediawiki.org/wiki/Help:Tabular_Data
Returns:
[list]:
"""
# We simulate book press without actually storing the result
self.imprimere()
from pathlib import Path
template = Path(NUMERORDINATIO_BASIM +
'/999999999/0/codex_copertae.svg').read_text()
codex_copertae = template.replace(
'{{codex_numero}}', numerordinatio_neo_separatum(self.de_codex, ':'))
codex_copertae = codex_copertae.replace(
'{{codex_nomini}}', self.m1603_1_1__de_codex['#item+rem+i_mul+is_zyyy'])
codex_copertae = codex_copertae.replace(
'{{concepta}}', str(self.summis_concepta))
codex_copertae = codex_copertae.replace(
'{{res_lingualibus}}', str(len(self.usus_linguae)))
codex_copertae = codex_copertae.replace(
'{{res_interlingualibus}}', str(len(self.usus_ix_qcc)))
paginae = []
paginae.append(codex_copertae)

return paginae

def methodi_ex_codice(self) -> list:
"""Methodī ex cōdice
Expand Down
8 changes: 4 additions & 4 deletions officinam/999999999/1603_0_1603.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ ROOTDIR="$(pwd)"
# tutorial https://opensource.com/article/18/5/you-dont-know-bash-intro-bash-arrays
PURGATORIA_CONCEPTUM=()
## Reset all files
# PURGATORIA_EXTENSIONEM=( "no1.tm.hxl.csv" "wikiq.tm.hxl.csv" "no11.tm.hxl.csv" "tm.hxl.csv" "mul-Latn.codex.pdf" "mul-Latn.codex.adoc" )
PURGATORIA_EXTENSIONEM=( "no1.tm.hxl.csv" "wikiq.tm.hxl.csv" "no11.tm.hxl.csv" "tm.hxl.csv" "mul-Latn.codex.pdf" "mul-Latn.codex.adoc" )

## Use cached files (avoid overload Google Sheets), but gives hint to re-generate translations
PURGATORIA_EXTENSIONEM=( "no1.tm.hxl.csv" "wikiq.tm.hxl.csv" "no11.tm.hxl.csv" )
# PURGATORIA_EXTENSIONEM=( "no1.tm.hxl.csv" "wikiq.tm.hxl.csv" "no11.tm.hxl.csv" )

# PURGATORIA_CONCEPTUM+=( "1603_1_1" )
# PURGATORIA_CONCEPTUM+=( "1603_1_6" )
Expand All @@ -50,7 +50,7 @@ PURGATORIA_EXTENSIONEM=( "no1.tm.hxl.csv" "wikiq.tm.hxl.csv" "no11.tm.hxl.csv" )
# PURGATORIA_CONCEPTUM+=( "1603_44_101" )
# PURGATORIA_CONCEPTUM+=( "1603_44_111" )
# PURGATORIA_CONCEPTUM+=( "1603_44_142" )
PURGATORIA_CONCEPTUM+=( "1603_45_1" )
# PURGATORIA_CONCEPTUM+=( "1603_45_1" )
# PURGATORIA_CONCEPTUM+=( "1603_45_31" )
# PURGATORIA_CONCEPTUM+=( "1603_45_95" )
# PURGATORIA_CONCEPTUM+=( "1603_64_604" )
Expand All @@ -60,7 +60,7 @@ PURGATORIA_CONCEPTUM+=( "1603_45_1" )
# PURGATORIA_CONCEPTUM+=( "1603_63_1" )
# PURGATORIA_CONCEPTUM+=( "1603_45_19" )
# PURGATORIA_CONCEPTUM+=( "1603_64_41" )
# PURGATORIA_CONCEPTUM+=( "1603_63_101" )
PURGATORIA_CONCEPTUM+=( "1603_63_101" )

DE_FACTO="${DE_FACTO:-'0'}"
# DRYRUM="0"
Expand Down
36 changes: 18 additions & 18 deletions officinam/999999999/999999_17.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ file_convert_numerordinatio_de_hxltm "1603_1_51" "1" "0"
# neo_codex_de_numerordinatio_pdf "1603_1_51" "0" "0"

# exit
file_download_if_necessary "$DATA_1603_45_1" "1603_45_1" "csv" "tm.hxl.csv" "hxltmcli" "1"
file_convert_numerordinatio_de_hxltm "1603_45_1" "1" "0"
file_translate_csv_de_numerordinatio_q "1603_45_1" "0" "0"
file_merge_numerordinatio_de_wiki_q "1603_45_1" "0" "0"
file_convert_tmx_de_numerordinatio11 "1603_45_1"
file_convert_tbx_de_numerordinatio11 "1603_45_1"
neo_codex_de_numerordinatio "1603_45_1" "0" "0"
neo_codex_de_numerordinatio_pdf "1603_45_1" "0" "0"
# file_download_if_necessary "$DATA_1603_45_1" "1603_45_1" "csv" "tm.hxl.csv" "hxltmcli" "1"
# file_convert_numerordinatio_de_hxltm "1603_45_1" "1" "0"
# file_translate_csv_de_numerordinatio_q "1603_45_1" "0" "0"
# file_merge_numerordinatio_de_wiki_q "1603_45_1" "0" "0"
# file_convert_tmx_de_numerordinatio11 "1603_45_1"
# file_convert_tbx_de_numerordinatio11 "1603_45_1"
# neo_codex_de_numerordinatio "1603_45_1" "0" "0"
# neo_codex_de_numerordinatio_pdf "1603_45_1" "0" "0"

# file_download_if_necessary "$DATA_1603_1_7" "1603_1_7" "csv" "tm.hxl.csv" "hxltmcli" "1"
# file_convert_numerordinatio_de_hxltm "1603_1_7" "1" "0"
Expand Down Expand Up @@ -147,16 +147,16 @@ neo_codex_de_numerordinatio_pdf "1603_45_1" "0" "0"
# neo_codex_de_numerordinatio "1603_45_19" "0" "0"
# neo_codex_de_numerordinatio_pdf "1603_45_19" "0" "0"

# file_download_if_necessary "$DATA_1603_63_101" "1603_63_101" "csv" "tm.hxl.csv" "hxltmcli" "1"
# file_convert_numerordinatio_de_hxltm "1603_63_101" "1" "0"
# file_translate_csv_de_numerordinatio_q "1603_63_101" "0" "0"
# file_merge_numerordinatio_de_wiki_q "1603_63_101" "0" "0"
# file_convert_tmx_de_numerordinatio11 "1603_63_101"
# file_convert_tbx_de_numerordinatio11 "1603_63_101"
# neo_codex_copertae_de_numerordinatio "1603_63_101" "0" "0"
# neo_codex_de_numerordinatio "1603_63_101" "0" "0"
# neo_codex_de_numerordinatio_epub "1603_63_101" "0" "0"
# neo_codex_de_numerordinatio_pdf "1603_63_101" "0" "0"
file_download_if_necessary "$DATA_1603_63_101" "1603_63_101" "csv" "tm.hxl.csv" "hxltmcli" "1"
file_convert_numerordinatio_de_hxltm "1603_63_101" "1" "0"
file_translate_csv_de_numerordinatio_q "1603_63_101" "0" "0"
file_merge_numerordinatio_de_wiki_q "1603_63_101" "0" "0"
file_convert_tmx_de_numerordinatio11 "1603_63_101"
file_convert_tbx_de_numerordinatio11 "1603_63_101"
neo_codex_copertae_de_numerordinatio "1603_63_101" "0" "0"
neo_codex_de_numerordinatio "1603_63_101" "0" "0"
neo_codex_de_numerordinatio_epub "1603_63_101" "0" "0"
neo_codex_de_numerordinatio_pdf "1603_63_101" "0" "0"

# file_download_if_necessary "$DATA_1603_64_41" "1603_64_41" "csv" "tm.hxl.csv" "hxltmcli" "1"
# file_convert_numerordinatio_de_hxltm "1603_64_41" "1" "0"
Expand Down

0 comments on commit 953becd

Please sign in to comment.