lingotweaker-data-pt 0.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lingotweaker_data_pt-0.1.6/MANIFEST.in +1 -0
- lingotweaker_data_pt-0.1.6/PKG-INFO +32 -0
- lingotweaker_data_pt-0.1.6/README.md +19 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/__init__.py +18 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/core/Roman.sor +38 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/core/disambiguation-global.xml +608 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/core/segment.srx +7272 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/core/spelling_global.txt +31411 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_ar.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_ast.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_be.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_br.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_ca.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_da.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_de.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_el.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_en.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_eo.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_es.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_fa.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_fr.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_gl.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_is.properties +583 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_it.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_km.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_lt.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_nl.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_pl.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_pt_BR.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_pt_PT.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_ro.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_ru.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_sk.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_sl.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_sr.properties +583 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_sv.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_ta.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_tl.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/messages/MessagesBundle_uk.properties +322 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/AC.tsv +22 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/AL.tsv +102 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/AM.tsv +62 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/AP.tsv +16 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/BA.tsv +417 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/CE.tsv +184 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/DF.tsv +35 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/ES.tsv +78 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/GO.tsv +246 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/MA.tsv +217 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/MG.tsv +853 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/MS.tsv +79 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/MT.tsv +142 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/PA.tsv +144 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/PB.tsv +225 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/PE.tsv +184 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/PI.tsv +224 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/PR.tsv +399 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/RJ.tsv +92 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/RN.tsv +167 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/RO.tsv +52 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/RR.tsv +15 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/RS.tsv +497 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/SC.tsv +295 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/SE.tsv +75 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/SP.tsv +645 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/brazilian_municipalities/TO.tsv +139 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/dictionaries/portuguese.dict +0 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/dictionaries/portuguese.info +8 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/dictionaries/portuguese_synth.dict +0 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/dictionaries/portuguese_synth.info +8 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/dictionaries/portuguese_tags.txt +1386 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/disambiguation.xml +7044 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/abbrev.ent +5 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/chars.ent +59 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/datetime.ent +78 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/english.ent +285 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/hyphenised.ent +2 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/languages.ent +4 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/messages.ent +32 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/misc.ent +218 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/paronyms.ent +74 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/postal.ent +2 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/entities/verbs.ent +33 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/pt.sor +194 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/AOreplace.txt +7580 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/archaisms.txt +1 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/barbarisms.txt +773 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/cliches.txt +338 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/coherency.txt +1527 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/confusion_pairs.txt +2084 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/diacritics.txt +789 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/english_contractions.txt +198 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/gentilicos.txt +1115 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/grammar.xml +45105 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-AO/grammar.xml +261 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-BR/archaisms.txt +2 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-BR/barbarisms.txt +192 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-BR/cliches.txt +4 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-BR/confusion_pairs.txt +64 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-BR/grammar.xml +1844 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-BR/redundancies.txt +15 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-BR/replace.txt +274 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-BR/style.xml +877 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-BR/wikipedia.txt +2 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-BR/wordiness.txt +4 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-MZ/grammar.xml +262 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-PT/archaisms.txt +4 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-PT/barbarisms.txt +507 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-PT/cliches.txt +4 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-PT/confusion_pairs.txt +64 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-PT/grammar.xml +4759 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-PT/redundancies.txt +17 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-PT/replace.txt +360 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-PT/style.xml +5619 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-PT/wikipedia.txt +2 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/pt-PT/wordiness.txt +9 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/redundancies.txt +596 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/remote-rule-filters.xml +130 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/replace.txt +5 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/replace_orthography.txt +33 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/style.xml +20362 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/tagset_PT.txt +129 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/verbos_sem_acento_adj_com_acento.txt +358 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/verbos_sem_acento_nomes_com_acento.txt +666 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/weaselwords.txt +153 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/wikipedia.txt +23 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/wordiness.txt +978 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/rules/wrongWordInContext.txt +149 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/spelling/pt-BR.dict +0 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/spelling/pt-BR.info +19 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/spelling/pt-PT-45.dict +0 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/spelling/pt-PT-45.info +19 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/spelling/pt-PT-90.dict +0 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/spelling/pt-PT-90.info +19 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/abbreviations.txt +1948 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/added.txt +686 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/added_custom.txt +4 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/blacklist.txt +62 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/common_words.txt +9977 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/compound_colours.txt +475 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/confusion_set_candidates.txt +2879 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/confusion_sets.txt +18 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/dialect_alternations.txt +7562 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/do_not_suggest.txt +505 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/hyphenated_words.txt +11444 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/ignore.txt +15704 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/multiwords.txt +12119 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/post-reform-compounds-inactive.txt +120567 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/post-reform-compounds.txt +37173 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/pre-reform-compounds.txt +3954 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/prohibit.txt +23 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/removed.txt +227 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/removed_custom.txt +4 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/spelling.txt +1132 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/state_name_mapping.txt +29 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt/data/pt/words/tagset.txt +129 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt.egg-info/PKG-INFO +32 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt.egg-info/SOURCES.txt +161 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt.egg-info/dependency_links.txt +1 -0
- lingotweaker_data_pt-0.1.6/lingotweaker_data_pt.egg-info/top_level.txt +1 -0
- lingotweaker_data_pt-0.1.6/pyproject.toml +26 -0
- lingotweaker_data_pt-0.1.6/setup.cfg +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
recursive-include lingotweaker_data_pt/data *
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lingotweaker-data-pt
|
|
3
|
+
Version: 0.1.6
|
|
4
|
+
Summary: LingoTweaker runtime data for language 'pt'
|
|
5
|
+
License-Expression: LGPL-2.1-or-later
|
|
6
|
+
Project-URL: Homepage, https://fiduswriter.github.io/LingoTweaker/
|
|
7
|
+
Project-URL: Repository, https://github.com/fiduswriter/LingoTweaker
|
|
8
|
+
Keywords: proofreading,grammar,spellcheck,nlp,language,data
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Topic :: Text Processing :: Linguistic
|
|
11
|
+
Requires-Python: >=3.9
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# LingoTweaker data (pt)
|
|
15
|
+
|
|
16
|
+
Runtime data for the LingoTweaker proofreading engine, language `pt`.
|
|
17
|
+
Installing this package is enough for `lt_py` to find the data:
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
import lt_py
|
|
21
|
+
|
|
22
|
+
engine = lt_py.Engine("pt-US") # or the appropriate long code
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`data_dir()` exposes the absolute data path if you prefer to pass it
|
|
26
|
+
explicitly (`lt_py.Engine(..., data_dir=data_dir())`) or to set `LT_DATA_DIR`.
|
|
27
|
+
|
|
28
|
+
This is the same per-language data attached to each LingoTweaker GitHub
|
|
29
|
+
Release. Vendored rule data, dictionaries and models keep their upstream
|
|
30
|
+
licenses; see `THIRD_PARTY_NOTICES.md` in the repository.
|
|
31
|
+
|
|
32
|
+
License (packaging code): LGPL-2.1-or-later.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# LingoTweaker data (pt)
|
|
2
|
+
|
|
3
|
+
Runtime data for the LingoTweaker proofreading engine, language `pt`.
|
|
4
|
+
Installing this package is enough for `lt_py` to find the data:
|
|
5
|
+
|
|
6
|
+
```python
|
|
7
|
+
import lt_py
|
|
8
|
+
|
|
9
|
+
engine = lt_py.Engine("pt-US") # or the appropriate long code
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
`data_dir()` exposes the absolute data path if you prefer to pass it
|
|
13
|
+
explicitly (`lt_py.Engine(..., data_dir=data_dir())`) or to set `LT_DATA_DIR`.
|
|
14
|
+
|
|
15
|
+
This is the same per-language data attached to each LingoTweaker GitHub
|
|
16
|
+
Release. Vendored rule data, dictionaries and models keep their upstream
|
|
17
|
+
licenses; see `THIRD_PARTY_NOTICES.md` in the repository.
|
|
18
|
+
|
|
19
|
+
License (packaging code): LGPL-2.1-or-later.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Runtime data for the LingoTweaker engine, language `pt`.
|
|
2
|
+
|
|
3
|
+
`data_dir()` returns the absolute path of the data directory; pass it to the
|
|
4
|
+
binding (`lt_py.Engine("...", data_dir=...)`) or set `LT_DATA_DIR`. `lt_py`
|
|
5
|
+
discovers this package automatically for a matching language.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
DATA_DIR = Path(__file__).resolve().parent / "data"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def data_dir() -> str:
|
|
14
|
+
"""Absolute path of the runtime data directory."""
|
|
15
|
+
return str(DATA_DIR)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__all__ = ["DATA_DIR", "data_dir"]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Roman numbers
|
|
2
|
+
1:(.)(.)(.) \1
|
|
3
|
+
2:(.)(.)(.) \1\1
|
|
4
|
+
3:(.)(.)(.) \1\1\1
|
|
5
|
+
4:(.)(.)(.) \1\2
|
|
6
|
+
5:(.)(.)(.) \2
|
|
7
|
+
6:(.)(.)(.) \2\1
|
|
8
|
+
7:(.)(.)(.) \2\1\1
|
|
9
|
+
8:(.)(.)(.) \2\1\1\1
|
|
10
|
+
9:(.)(.)(.) \1\3
|
|
11
|
+
|
|
12
|
+
(\d) $(\1:IVX)
|
|
13
|
+
(\d)(\d) $(\1:XLC)$2
|
|
14
|
+
(\d)(\d\d) $(\1:CDM)$2
|
|
15
|
+
|
|
16
|
+
([123])(\d\d\d) $(\1:Mxx)$2 # [:Roman-large:]
|
|
17
|
+
(\d+)(\d\d\d) \($1\)$2 # [:Roman-large:]
|
|
18
|
+
|
|
19
|
+
([123])(\d\d\d) $(\1:M--)$2
|
|
20
|
+
([123]\d{3})(\d\d\d) $(overline $1)$2 # overline: ×1000
|
|
21
|
+
(\d{1,3})(\d\d\d) $(overline $1)$2 # overline: ×1000
|
|
22
|
+
([123]\d{3})(\d{5}) \|$(overline $1)\|$2 # bar: ×100
|
|
23
|
+
(\d{1,3})(\d{5}) \|$(overline $1)\|$2
|
|
24
|
+
(\d+) \1
|
|
25
|
+
|
|
26
|
+
== overline ==
|
|
27
|
+
|
|
28
|
+
(.*)(.) $(overline \1)\2̅ # recursive overline
|
|
29
|
+
|
|
30
|
+
== historical ==
|
|
31
|
+
|
|
32
|
+
(\d)(\d\d\d) $(\1:ↀↁↂ)$2
|
|
33
|
+
([123])(\d\d\d\d) $(\1:ↂ--)$(historical \2)
|
|
34
|
+
(.*) $1
|
|
35
|
+
|
|
36
|
+
== help ==
|
|
37
|
+
|
|
38
|
+
help Modules\nRoman-large (language code): multiple parenthesized form\nRoman: overline (×1000) with bar (×100)\nFunctions: historical – with special Unicode characters for 1000, 5000 and 10000
|