scriptconv-copyleft 0.7.0a1__tar.gz → 0.7.1a2__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.
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/PKG-INFO +2 -2
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/pyproject.toml +2 -1
- scriptconv_copyleft-0.7.1a2/scriptconv_copyleft/phonemizers/espeak_es_419.json +11 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/mul.py +9 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/version.py +2 -2
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft.egg-info/PKG-INFO +2 -2
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft.egg-info/SOURCES.txt +3 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft.egg-info/requires.txt +1 -1
- scriptconv_copyleft-0.7.1a2/tests/test_espeak_es_419_regions.py +24 -0
- scriptconv_copyleft-0.7.1a2/tests/test_espeak_es_americas.py +36 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/LICENSE +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/README.md +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/__init__.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/__init__.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/__init__.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/__init__.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/kog2p/rulebook.txt +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/LICENSE +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/MODEL_LICENSE.md +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/NOTICE +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/__init__.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/codemix.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/data/LICENSE +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/data/en_fast_lexicon.json.gz +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/data/ne_heteronyms.tsv.gz +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/data/ne_lexicon.tsv.gz +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/frontend.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/inventory.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/pawp/nepali_rules.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/SOURCE +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kirciai.tsv +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kreipiniai.tsv +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_raides.tsv +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/LICENSE +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/NOTICE +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/__init__.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/bilingual.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/LICENSE +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/LICENSE.ruaccent +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/caps_words.json.gz +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/homograph_defaults.json.gz +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/homograph_model.json.gz +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/pronunciations.json.gz +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/stress_forms.json.gz +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/stress_variants.json.gz +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/yo_words.json.gz +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/text.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/eu.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/fa.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/gl.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/he.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/ja.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/ja_prosody.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/ko.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/lt.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/pawp.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/th.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/tiny_vanya.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/readings.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft.egg-info/dependency_links.txt +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft.egg-info/top_level.txt +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/setup.cfg +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_docs_examples.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_espeak_acute_stress.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_espeak_french_english_switch.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_espeak_get_lang_case.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_espeak_long_line.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_espeak_lt_accent.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_espeak_nul_byte.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_g2pfa_eraab.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_hebrew_ipa.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_lang_default_region.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_match_lang_direction.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_match_lang_preferred_value.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_misaki_en_alphabet.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_misaki_ja_reader.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_misaki_vi.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_misaki_zh_zero.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_openjtalk_prosody.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_pawp.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_phonemizers_base.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_phonemizers_cjk_ar.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_phonemizers_friendly_import_errors.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_phonemizers_identity.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_phonemizers_misaki_british.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_phonemizers_punctuation.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_readings.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_tiny_vanya.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_tltk.py +0 -0
- {scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_transphone_extra_declares_auto_installs.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scriptconv-copyleft
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1a2
|
|
4
4
|
Summary: scriptconv phonemizer backends whose code or dependencies are copyleft (GPL, LGPL, AGPL)
|
|
5
5
|
Author-email: TigreGotico <contact@tigregotico.com>
|
|
6
6
|
License-Expression: Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0 AND MIT
|
|
@@ -91,7 +91,7 @@ Requires-Dist: jaconv; python_version < "3.13" and extra == "test"
|
|
|
91
91
|
Requires-Dist: mojimoji; python_version < "3.13" and extra == "test"
|
|
92
92
|
Requires-Dist: unidic-lite; python_version < "3.13" and extra == "test"
|
|
93
93
|
Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "test"
|
|
94
|
-
Requires-Dist: linguatag[langcodes]>=0.
|
|
94
|
+
Requires-Dist: linguatag[langcodes]>=0.22.1a4; extra == "test"
|
|
95
95
|
Requires-Dist: packaging; extra == "test"
|
|
96
96
|
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "test"
|
|
97
97
|
Requires-Dist: tltk<1.11,>=1.6.8; extra == "test"
|
|
@@ -51,7 +51,7 @@ ja = ["pykakasi>=2.3,<3"]
|
|
|
51
51
|
ja-phonemizers = ["pykakasi>=2.3,<3", "pyopenjtalk-plus[onnxruntime]>=0.4.1.post10"]
|
|
52
52
|
th = ["tltk>=1.6.8,<1.11", "pandas>=2", "requests>=2", "unicode-rbnf>=2.4.0"]
|
|
53
53
|
ko = ["g2pk; python_version<'3.13'", "regex"]
|
|
54
|
-
test = ["pytest", "pytest-timeout", "transphone", "pip", "espyak", "pycotovia", "ahotts_g2p", "pykakasi>=2.3,<3", "epitran>=1.26.1", "g2pk; python_version<'3.13'", "regex", "misaki[en,ko,vi,zh]; python_version<'3.13'", "vietnam-number; python_version<'3.13'", "fugashi; python_version<'3.13'", "jaconv; python_version<'3.13'", "mojimoji; python_version<'3.13'", "unidic-lite; python_version<'3.13'", "spacy>=3.7,<4.0; python_version<'3.13'", "linguatag[langcodes]>=0.
|
|
54
|
+
test = ["pytest", "pytest-timeout", "transphone", "pip", "espyak", "pycotovia", "ahotts_g2p", "pykakasi>=2.3,<3", "epitran>=1.26.1", "g2pk; python_version<'3.13'", "regex", "misaki[en,ko,vi,zh]; python_version<'3.13'", "vietnam-number; python_version<'3.13'", "fugashi; python_version<'3.13'", "jaconv; python_version<'3.13'", "mojimoji; python_version<'3.13'", "unidic-lite; python_version<'3.13'", "spacy>=3.7,<4.0; python_version<'3.13'", "linguatag[langcodes]>=0.22.1a4", "packaging", "pyopenjtalk-plus[onnxruntime]>=0.4.1.post10", "tltk>=1.6.8,<1.11", "pandas>=2", "requests>=2", "unicode-rbnf>=2.4.0"]
|
|
55
55
|
|
|
56
56
|
[project.urls]
|
|
57
57
|
Homepage = "https://github.com/TigreGotico/scriptconv-copyleft"
|
|
@@ -65,6 +65,7 @@ include = ["scriptconv_copyleft*"]
|
|
|
65
65
|
version = {attr = "scriptconv_copyleft.version.__version__"}
|
|
66
66
|
|
|
67
67
|
[tool.setuptools.package-data]
|
|
68
|
+
"scriptconv_copyleft.phonemizers" = ["espeak_es_419.json"]
|
|
68
69
|
"scriptconv_copyleft.phonemizers._vendored.kog2p" = ["rulebook.txt", "LICENSE.md", "COPYING"]
|
|
69
70
|
"scriptconv_copyleft.phonemizers._vendored" = ["reginute/*"]
|
|
70
71
|
"scriptconv_copyleft.phonemizers._vendored.pawp" = ["LICENSE", "NOTICE", "MODEL_LICENSE.md", "data/*"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "UN M.49 Standard country or area codes for statistical use, region 419 Latin America and the Caribbean (https://unstats.un.org/unsd/methodology/m49/), plus US for es-US",
|
|
3
|
+
"voice": "es-419",
|
|
4
|
+
"regions": [
|
|
5
|
+
"AI", "AG", "AW", "BS", "BB", "BQ", "VG", "KY", "CU", "CW", "DM", "DO", "GD", "GP", "HT", "JM",
|
|
6
|
+
"MQ", "MS", "PR", "BL", "KN", "LC", "MF", "VC", "SX", "TT", "TC", "VI",
|
|
7
|
+
"BZ", "CR", "SV", "GT", "HN", "MX", "NI", "PA",
|
|
8
|
+
"AR", "BO", "BV", "BR", "CL", "CO", "EC", "FK", "GF", "GY", "PY", "PE", "GS", "SR", "UY", "VE",
|
|
9
|
+
"US"
|
|
10
|
+
]
|
|
11
|
+
}
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/mul.py
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"""multilingual phonemizers"""
|
|
2
2
|
|
|
3
|
+
import json
|
|
3
4
|
import os
|
|
4
5
|
import re
|
|
5
6
|
import subprocess
|
|
@@ -20,6 +21,12 @@ _HK_CANTONESE = frozenset({
|
|
|
20
21
|
})
|
|
21
22
|
|
|
22
23
|
|
|
24
|
+
with open(os.path.join(os.path.dirname(__file__), "espeak_es_419.json"), encoding="utf-8") as _f:
|
|
25
|
+
_ES_419 = json.load(_f)
|
|
26
|
+
# Spanish of the Americas reads with the seseo voice es-419; plain es is Castilian.
|
|
27
|
+
_ESPEAK_ES_419 = frozenset(f"es-{r.lower()}" for r in _ES_419["regions"])
|
|
28
|
+
|
|
29
|
+
|
|
23
30
|
def _is_hk_cantonese(lang: str) -> bool:
|
|
24
31
|
return lang.lower().replace("_", "-") in _HK_CANTONESE
|
|
25
32
|
|
|
@@ -287,6 +294,8 @@ class EspeakPhonemizer(BasePhonemizer):
|
|
|
287
294
|
tag = target_lang.lower().replace("_", "-")
|
|
288
295
|
if tag in ZH_ALIASES:
|
|
289
296
|
return ZH_ALIASES[tag]
|
|
297
|
+
if tag in _ESPEAK_ES_419:
|
|
298
|
+
return _ES_419["voice"]
|
|
290
299
|
if tag in cls.ESPEAK_LANGS:
|
|
291
300
|
return tag
|
|
292
301
|
if tag.split("-")[0] in cls.ESPEAK_LANGS:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# START_VERSION_BLOCK
|
|
2
2
|
VERSION_MAJOR = 0
|
|
3
3
|
VERSION_MINOR = 7
|
|
4
|
-
VERSION_BUILD =
|
|
5
|
-
VERSION_ALPHA =
|
|
4
|
+
VERSION_BUILD = 1
|
|
5
|
+
VERSION_ALPHA = 2
|
|
6
6
|
# END_VERSION_BLOCK
|
|
7
7
|
|
|
8
8
|
__version__ = f"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_BUILD}" + (f"a{VERSION_ALPHA}" if VERSION_ALPHA else "")
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scriptconv-copyleft
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1a2
|
|
4
4
|
Summary: scriptconv phonemizer backends whose code or dependencies are copyleft (GPL, LGPL, AGPL)
|
|
5
5
|
Author-email: TigreGotico <contact@tigregotico.com>
|
|
6
6
|
License-Expression: Apache-2.0 AND GPL-3.0-only AND GPL-3.0-or-later AND CC-BY-4.0 AND MIT
|
|
@@ -91,7 +91,7 @@ Requires-Dist: jaconv; python_version < "3.13" and extra == "test"
|
|
|
91
91
|
Requires-Dist: mojimoji; python_version < "3.13" and extra == "test"
|
|
92
92
|
Requires-Dist: unidic-lite; python_version < "3.13" and extra == "test"
|
|
93
93
|
Requires-Dist: spacy<4.0,>=3.7; python_version < "3.13" and extra == "test"
|
|
94
|
-
Requires-Dist: linguatag[langcodes]>=0.
|
|
94
|
+
Requires-Dist: linguatag[langcodes]>=0.22.1a4; extra == "test"
|
|
95
95
|
Requires-Dist: packaging; extra == "test"
|
|
96
96
|
Requires-Dist: pyopenjtalk-plus[onnxruntime]>=0.4.1.post10; extra == "test"
|
|
97
97
|
Requires-Dist: tltk<1.11,>=1.6.8; extra == "test"
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft.egg-info/SOURCES.txt
RENAMED
|
@@ -10,6 +10,7 @@ scriptconv_copyleft.egg-info/dependency_links.txt
|
|
|
10
10
|
scriptconv_copyleft.egg-info/requires.txt
|
|
11
11
|
scriptconv_copyleft.egg-info/top_level.txt
|
|
12
12
|
scriptconv_copyleft/phonemizers/__init__.py
|
|
13
|
+
scriptconv_copyleft/phonemizers/espeak_es_419.json
|
|
13
14
|
scriptconv_copyleft/phonemizers/eu.py
|
|
14
15
|
scriptconv_copyleft/phonemizers/fa.py
|
|
15
16
|
scriptconv_copyleft/phonemizers/gl.py
|
|
@@ -61,6 +62,8 @@ scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/stress_variants.json.g
|
|
|
61
62
|
scriptconv_copyleft/phonemizers/_vendored/tiny_vanya/data/yo_words.json.gz
|
|
62
63
|
tests/test_docs_examples.py
|
|
63
64
|
tests/test_espeak_acute_stress.py
|
|
65
|
+
tests/test_espeak_es_419_regions.py
|
|
66
|
+
tests/test_espeak_es_americas.py
|
|
64
67
|
tests/test_espeak_french_english_switch.py
|
|
65
68
|
tests/test_espeak_get_lang_case.py
|
|
66
69
|
tests/test_espeak_long_line.py
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""The es-419 region list is the CLDR 419 containment plus US."""
|
|
2
|
+
import json
|
|
3
|
+
import os
|
|
4
|
+
|
|
5
|
+
from linguatag import region_members
|
|
6
|
+
|
|
7
|
+
import scriptconv_copyleft.phonemizers as _pkg
|
|
8
|
+
|
|
9
|
+
_PATH = os.path.join(os.path.dirname(_pkg.__file__), "espeak_es_419.json")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _load():
|
|
13
|
+
with open(_PATH, encoding="utf-8") as f:
|
|
14
|
+
return json.load(f)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def test_regions_equal_cldr_419_plus_us():
|
|
18
|
+
regions = _load()["regions"]
|
|
19
|
+
assert len(regions) == len(set(regions))
|
|
20
|
+
assert set(regions) == set(region_members("419")) | {"US"}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def test_json_states_why_us_is_added():
|
|
24
|
+
assert "plus US for es-US" in _load()["source"]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Spanish of the Americas reads with the espeak-ng voice es-419 (seseo), not Castilian es."""
|
|
2
|
+
import shutil
|
|
3
|
+
|
|
4
|
+
import pytest
|
|
5
|
+
|
|
6
|
+
from scriptconv.phonemizers.enums import Phonemizer
|
|
7
|
+
from scriptconv.phonemizers.registry import get_phonemizer
|
|
8
|
+
|
|
9
|
+
from scriptconv_copyleft.phonemizers.mul import EspeakPhonemizer
|
|
10
|
+
|
|
11
|
+
AMERICAS = ["es-CO", "es-MX", "es-AR", "es-US", "es_cl", "ES-PR"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@pytest.mark.parametrize("tag", AMERICAS)
|
|
15
|
+
def test_americas_tag_resolves_to_es_419(tag):
|
|
16
|
+
assert EspeakPhonemizer.get_lang(tag) == "es-419"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@pytest.mark.parametrize("tag", ["es-ES", "es", "es-GQ"])
|
|
20
|
+
def test_european_and_african_tags_stay_castilian(tag):
|
|
21
|
+
assert EspeakPhonemizer.get_lang(tag) == "es"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@pytest.mark.skipif(shutil.which("espeak-ng") is None, reason="needs the espeak-ng binary")
|
|
25
|
+
@pytest.mark.parametrize("tag", ["es-CO", "es-MX", "es-AR", "es-US"])
|
|
26
|
+
def test_americas_tag_has_no_theta(tag):
|
|
27
|
+
ph = get_phonemizer(Phonemizer.ESPEAK)
|
|
28
|
+
assert ph.phonemize_string("cielo azul zapato", tag) == "sjˈelo asˈul sapˈato"
|
|
29
|
+
assert ph.identity(tag).lang == "es-419"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@pytest.mark.skipif(shutil.which("espeak-ng") is None, reason="needs the espeak-ng binary")
|
|
33
|
+
def test_es_es_keeps_theta():
|
|
34
|
+
ph = get_phonemizer(Phonemizer.ESPEAK)
|
|
35
|
+
assert ph.phonemize_string("cielo azul zapato", "es-ES") == "θjˈelo aθˈul θapˈato"
|
|
36
|
+
assert ph.identity("es-ES").lang == "es"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/eu.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/fa.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/gl.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/he.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/ja.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/ko.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/lt.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/pawp.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/scriptconv_copyleft/phonemizers/th.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_espeak_acute_stress.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_espeak_get_lang_case.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_lang_default_region.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_match_lang_direction.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_match_lang_preferred_value.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_misaki_en_alphabet.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_phonemizers_cjk_ar.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_phonemizers_identity.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_phonemizers_misaki_british.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.7.0a1 → scriptconv_copyleft-0.7.1a2}/tests/test_phonemizers_punctuation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|