diff --git a/officinam/999999999/0/1603_1.asciidoctor-pdf-theme-1.yml b/officinam/999999999/0/1603_1.asciidoctor-pdf-theme-1.yml index 6868e40..61b69c3 100644 --- a/officinam/999999999/0/1603_1.asciidoctor-pdf-theme-1.yml +++ b/officinam/999999999/0/1603_1.asciidoctor-pdf-theme-1.yml @@ -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 diff --git a/officinam/999999999/0/1603_1.py b/officinam/999999999/0/1603_1.py index 1f807a6..bdb7c0c 100755 --- a/officinam/999999999/0/1603_1.py +++ b/officinam/999999999/0/1603_1.py @@ -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 @@ -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 @@ -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 diff --git a/officinam/999999999/1603_0_1603.sh b/officinam/999999999/1603_0_1603.sh index bb552e6..cdd6873 100755 --- a/officinam/999999999/1603_0_1603.sh +++ b/officinam/999999999/1603_0_1603.sh @@ -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" ) @@ -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" ) @@ -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" diff --git a/officinam/999999999/999999_17.sh b/officinam/999999999/999999_17.sh index c086fa6..97cd25c 100755 --- a/officinam/999999999/999999_17.sh +++ b/officinam/999999999/999999_17.sh @@ -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" @@ -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"