Skip to content

Commit

Permalink
1603_1.py #25: Externīs / Dictiōnāria necessitātibus just before the …
Browse files Browse the repository at this point in the history
…main dictionary
  • Loading branch information
fititnt committed Mar 15, 2022
1 parent cfc09bf commit 3300b8a
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 39 deletions.
18 changes: 18 additions & 0 deletions officinam/1603/3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,24 @@ Tool for bulk import:
- https://www.wikidata.org/wiki/Help:QuickStatements
-->

### Query - all languages of an article

1. Va em https://docs.google.com/spreadsheets/d/1ih3ouvx_n8W5ntNcYBqoyZ2NRMdaA0LRg5F9mGriZm4/edit#gid=272891124
2. Cole a coluna em R27 em diante
3. Formula em S27 `=SORT(if(COUNTIF(J27:J,R27:R)=0,R27:R,))`


```
SELECT DISTINCT ?lang ?name WHERE {
?article schema:about wd:Q1065 ;
schema:inLanguage ?lang ;
schema:name ?name ;
schema:isPartOf [ wikibase:wikiGroup "wikipedia" ] .
#FILTER(?lang in ('en', 'uz', 'ru', 'ko')) .
FILTER (!CONTAINS(?name, ':')) .
} ORDER BY ASC (?lang)
```

### Self notes

- Help:Wikimedia language codes/lists/all
Expand Down
71 changes: 54 additions & 17 deletions officinam/999999999/0/1603_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,23 +1189,23 @@ def codex_praefatio(self) -> list:
# resultatum.append("\nres_explanationibus\n")
paginae.extend(self.res_explanationibus(meta))

dictionaria_necessitatibus = []
for index, item in enumerate(range(100)):
referentia_textum = self.quod_res(
'0_1603_1_7_1_4_' + str(item))
if referentia_textum and len(referentia_textum) > 0:

dictionaria_necessitatibus.extend(
self._dictionaria_necessitatibus(referentia_textum, index))

if len(dictionaria_necessitatibus) > 0:
paginae.append('=== Dictiōnāria necessitātibus')
# paginae.append('')
# paginae.append('----')
# paginae.append(str(referentia))
paginae.extend(dictionaria_necessitatibus)
# paginae.append('----')
paginae.append('')
# dictionaria_necessitatibus = []
# for index, item in enumerate(range(100)):
# referentia_textum = self.quod_res(
# '0_1603_1_7_1_4_' + str(item))
# if referentia_textum and len(referentia_textum) > 0:

# dictionaria_necessitatibus.extend(
# self._dictionaria_necessitatibus(referentia_textum, index))

# if len(dictionaria_necessitatibus) > 0:
# paginae.append('=== Dictiōnāria necessitātibus')
# # paginae.append('')
# # paginae.append('----')
# # paginae.append(str(referentia))
# paginae.extend(dictionaria_necessitatibus)
# # paginae.append('----')
# paginae.append('')

# paginae.extend(descriptio_tabulae_de_lingua(
# 'Lingua Anglica (Abecedarium Latinum)',
Expand Down Expand Up @@ -1460,6 +1460,38 @@ def codex_corpori(self) -> list:

return resultatum

def codex_externo(self) -> list:
"""cōdex externō
Trivia:
- cōdex, m, s, (Nominative), https://en.wiktionary.org/wiki/codex#Latin
- externīs, m, pl---, https://en.wiktionary.org/wiki/externus#Latin
Returns:
[list]:
"""
paginae = []
dictionaria_necessitatibus = []
for index, item in enumerate(range(100)):
referentia_textum = self.quod_res(
'0_1603_1_7_1_4_' + str(item))
if referentia_textum and len(referentia_textum) > 0:

dictionaria_necessitatibus.extend(
self._dictionaria_necessitatibus(referentia_textum, index))

if len(dictionaria_necessitatibus) > 0:
paginae.append('== Externīs')
paginae.append('=== Dictiōnāria necessitātibus')
# paginae.append('')
# paginae.append('----')
# paginae.append(str(referentia))
paginae.extend(dictionaria_necessitatibus)
# paginae.append('----')
paginae.append('')

return paginae

def codex_nota_bene(self) -> list:
"""cōdex notā bene
Expand Down Expand Up @@ -1745,6 +1777,7 @@ def imprimere(self) -> list:

codex_nota_bene = self.codex_nota_bene()
codex_archio = self.codex_archio()
codex_externo = self.codex_externo()
# Compute methodi_ex_codice last (to receive statistics of others)
methodi_ex_codice = self.methodi_ex_codice()

Expand All @@ -1756,6 +1789,10 @@ def imprimere(self) -> list:
paginae.extend(methodi_ex_codice)
paginae.extend(['', '<<<', ''])
paginae.extend(codex_archio)
if len(codex_externo) > 0:
paginae.extend(codex_externo)
paginae.extend(['', '<<<', ''])

paginae.extend(['', '<<<', ''])
paginae.extend(["[.text-center]\n", 'Dictiōnāria initiīs'])
paginae.extend(['', '<<<', ''])
Expand Down
2 changes: 1 addition & 1 deletion officinam/999999999/1603_0_1603.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ PURGATORIA_EXTENSIONEM=( "no1.tm.hxl.csv" "wikiq.tm.hxl.csv" "no11.tm.hxl.csv" "

# PURGATORIA_CONCEPTUM+=( "1603_1_1" )
# PURGATORIA_CONCEPTUM+=( "1603_1_6" )
PURGATORIA_CONCEPTUM+=( "1603_1_7" )
# PURGATORIA_CONCEPTUM+=( "1603_1_7" )
# PURGATORIA_CONCEPTUM+=( "1603_1_51" )
# PURGATORIA_CONCEPTUM+=( "1603_1_101" )

Expand Down
42 changes: 21 additions & 21 deletions officinam/999999999/999999_17.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,27 +149,27 @@ file_convert_numerordinatio_de_hxltm "1603_1_99" "1" "0"
# neo_codex_de_numerordinatio_pdf "1603_64_41" "0" "0"
# neo_codex_de_numerordinatio_epub "1603_64_41" "0" "0"

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

# file_download_if_necessary "$DATA_1603_44_101" "1603_44_101" "csv" "tm.hxl.csv" "hxltmcli" "1"
# file_convert_numerordinatio_de_hxltm "1603_44_101" "1" "0"
# file_translate_csv_de_numerordinatio_q "1603_44_101" "0" "0"
# file_merge_numerordinatio_de_wiki_q "1603_44_101" "0" "0"
# file_convert_tmx_de_numerordinatio11 "1603_44_101"
# file_convert_tbx_de_numerordinatio11 "1603_44_101"
# neo_codex_copertae_de_numerordinatio "1603_44_101" "0" "0"
# neo_codex_de_numerordinatio "1603_44_101" "0" "0"
# neo_codex_de_numerordinatio_epub "1603_44_101" "0" "0"
# neo_codex_de_numerordinatio_pdf "1603_44_101" "0" "0"
file_download_if_necessary "$DATA_1603_44_86" "1603_44_86" "csv" "tm.hxl.csv" "hxltmcli" "1"
file_convert_numerordinatio_de_hxltm "1603_44_86" "1" "0"
file_translate_csv_de_numerordinatio_q "1603_44_86" "0" "0"
file_merge_numerordinatio_de_wiki_q "1603_44_86" "0" "0"
file_convert_tmx_de_numerordinatio11 "1603_44_86"
file_convert_tbx_de_numerordinatio11 "1603_44_86"
neo_codex_copertae_de_numerordinatio "1603_44_86" "0" "0"
neo_codex_de_numerordinatio "1603_44_86" "0" "0"
neo_codex_de_numerordinatio_epub "1603_44_86" "0" "0"
neo_codex_de_numerordinatio_pdf "1603_44_86" "0" "0"

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

file_download_if_necessary "$DATA_1603_44_111" "1603_44_111" "csv" "tm.hxl.csv" "hxltmcli" "1"
file_convert_numerordinatio_de_hxltm "1603_44_111" "1" "0"
Expand Down

0 comments on commit 3300b8a

Please sign in to comment.