scriptconv 0.0.4a150__tar.gz → 0.0.4a152__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-0.0.4a150/scriptconv.egg-info → scriptconv-0.0.4a152}/PKG-INFO +9 -4
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/README.md +7 -3
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/pyproject.toml +1 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/__init__.py +0 -3
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/__main__.py +12 -12
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/conventions.py +36 -69
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/notation.py +65 -188
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/__init__.py +4 -9
- scriptconv-0.0.4a152/scriptconv/phonemizers/_thirdparty/nemo/NOTICE +34 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/base.py +128 -356
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/enums.py +1 -0
- scriptconv-0.0.4a152/scriptconv/phonemizers/nemo_ipa.py +245 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/registry.py +32 -64
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/readings.py +12 -24
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/scripts.py +27 -104
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/version.py +1 -1
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152/scriptconv.egg-info}/PKG-INFO +9 -4
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv.egg-info/SOURCES.txt +3 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_base.py +2 -1
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_identity.py +1 -1
- scriptconv-0.0.4a152/tests/test_phonemizers_nemo_ipa.py +160 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_wheel_licences.py +2 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/LICENSE +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/cangjie.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/data/LICENSE.cangjie5 +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/data/__init__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/data/cangjie5_tc.tsv.gz +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/diacritics.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/frontend.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/graph.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_identity_cache.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_moved.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_revision.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/LICENSE.f5tts +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/LICENSE.hangul_to_ipa +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/__init__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/bw2ipa.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/LICENSE +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/UPSTREAM.md +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/__init__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/__main__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/align.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/LICENSE.cmudict +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/LICENSE.homograph-data +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/align.json +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/g2p.json +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/g2p.npz +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/homographs.json +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/lexicon.json +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/lexicon.tsv +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/sources.json +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/convert.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/abbreviations.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/chat.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/endings.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/exceptions.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/function_words.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/homograph_fixes.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/homograph_rules.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/letters.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/phrases.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/units.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/engine.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/g2p.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/homographs.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/morphology.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/normalize.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/sentence.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/symbols.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/tables.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/f5tts.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/g2pw/LICENSE +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/g2pw/__init__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/g2pw/bert-base-chinese_s2t_dict.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/g2pw/bopomofo_to_pinyin_wo_tune_dict.json +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/g2pw/char_bopomofo_dict.json +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/hangul2ipa.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/aspiration.csv +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/assimilation.csv +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/double_coda.csv +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/hanja.tsv +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/ipa.csv +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/neutralization.csv +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/tensification.csv +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/yale.csv +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/leokani/LICENSE +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/leokani/LICENSE-CC-BY-4.0.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/leokani/NOTICE +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/leokani/__init__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/leokani/leokani_g2p.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/nakdimon/LICENSE +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/nakdimon/__init__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/__init__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/codeswitch.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/diacritize.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/dialectal.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/english_g2p.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/espeak.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/frontend.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/levantine_g2p.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/normalize.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/phoneme_inventory.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/vosk_g2p.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/zh_num.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_vendored/__init__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_vendored/matoub_kab/LICENSE.md +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_vendored/matoub_kab/__init__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/africa.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ar.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ber.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/dizione.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/en.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/eu.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/f5tts.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/fa.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/g2pw.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ghana.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/gl.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/he.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ja.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ko.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/leokani.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/lir.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/mul.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/mwl.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/o2ipa.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/openjtalk_engine.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/pt.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ru.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/shami.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/vi.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/zh.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/py.typed +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/testing/__init__.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/testing/compare.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/translit.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv.egg-info/dependency_links.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv.egg-info/requires.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv.egg-info/top_level.txt +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/setup.cfg +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_arabic_diacritics_routing.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_arpa_stress.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_backend_table.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_byt5_lang_prefix.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_cangjie.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_charsiu_match_tags.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_cli.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_conventions.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_core_imports.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_diacritics.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_diacritics_graph.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_diacritics_nakdimon.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_diacritics_nfd_letters.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_doc_pages.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_errors_policy.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_examples.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_chunks.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_join.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_order.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_phonemizer_lang.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_say_as.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_stage_edges.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_graph.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_graph_lossless.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_gruut_lexicon_cache.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_he_extra_declares_phonikud.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_identity_cache.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_lang_default_region.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_match_lang_direction.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_match_lang_preferred_value.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_notation.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_notation_sources.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_notation_strict.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_openjtalk_engine.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_cjk_ar.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_copyleft_he_ja_th.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_dizione.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_dizione_long_tokens.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_epitran_english.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_epitran_japanese.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_epitran_korean.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_espeak_lt_accent.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_eu_euskaphone.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_f5tts.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_friendly_import_errors.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_g2pw.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_goruut_marks.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_goruut_server.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_grapheme_arguments.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_kolokwa.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_leokani.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_marks.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_matoub_kab.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_mwl_barranquenho.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_o2i_lexicons.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_phonetisaurus.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_phonetisaurus_engine.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_pt_tugaphone.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_punctuation.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_ru.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_shami_digit_runs.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_shami_inventory.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_readings_zh.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_scripts.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_scripts_stressonnx_compat.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_sister_packages.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_stress_marks.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_testing_compare.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_translit.py +0 -0
- {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_tugaphone_identity_no_revision.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scriptconv
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4a152
|
|
4
4
|
Summary: The one stop for text conversion: a zero-dependency script & phoneme-notation core — ISO-15924 detection & metadata, IPA↔ARPABET/X-SAMPA/Lexique/Kirshenbaum/Cotovía/RFE, Buckwalter↔Arabic, Hangul→jamo, kana — with phonemizer integrations behind optional extras
|
|
5
5
|
License-Expression: Apache-2.0 AND MIT AND LicenseRef-CMUdict
|
|
6
6
|
Project-URL: Homepage, https://github.com/TigreGotico/scriptconv
|
|
@@ -30,6 +30,7 @@ License-File: scriptconv/phonemizers/_thirdparty/leokani/LICENSE
|
|
|
30
30
|
License-File: scriptconv/phonemizers/_thirdparty/leokani/NOTICE
|
|
31
31
|
License-File: scriptconv/phonemizers/_thirdparty/leokani/LICENSE-CC-BY-4.0.txt
|
|
32
32
|
License-File: scriptconv/phonemizers/_thirdparty/nakdimon/LICENSE
|
|
33
|
+
License-File: scriptconv/phonemizers/_thirdparty/nemo/NOTICE
|
|
33
34
|
Provides-Extra: ja
|
|
34
35
|
Requires-Dist: scriptconv-copyleft[ja]>=0.1.2a1; extra == "ja"
|
|
35
36
|
Provides-Extra: zh
|
|
@@ -505,8 +506,8 @@ Three rules hold for every backend:
|
|
|
505
506
|
and phonetisaurus need a local `model=` path. These download on first use:
|
|
506
507
|
the phonikud and Nakdimon Hebrew diacritizers, the fp32 text2tashkeel
|
|
507
508
|
weights, the stressonnx models, the g2pW model, the Leokani G2P and
|
|
508
|
-
kolokwa-g2p models,
|
|
509
|
-
the `g2pen` backend.
|
|
509
|
+
kolokwa-g2p models, the two data files of the `nemo_ipa` backend, a named
|
|
510
|
+
DeepPhonemizer checkpoint and the NLTK data of the `g2pen` backend.
|
|
510
511
|
[docs/backends.md](docs/backends.md#model-files) names each cache location.
|
|
511
512
|
- **orthography2ipa uses the packaged lexicons.** The `o2i` extra installs
|
|
512
513
|
[o2i-lexicons](https://github.com/TigreGotico/o2i-lexicons), which holds
|
|
@@ -588,6 +589,7 @@ part in this table:
|
|
|
588
589
|
| dizione dictionary, alignment table and model (CMUdict) | CMUdict | `scriptconv/phonemizers/_thirdparty/dizione/built/LICENSE.cmudict` |
|
|
589
590
|
| dizione homograph weights (Wikipedia Homograph Data) | Apache-2.0 | `scriptconv/phonemizers/_thirdparty/dizione/built/LICENSE.homograph-data` |
|
|
590
591
|
| Leokani G2P English phonemizer of Milliwatt Labs | MIT | `scriptconv/phonemizers/_thirdparty/leokani/LICENSE` and `NOTICE` |
|
|
592
|
+
| NVIDIA NeMo IpaG2p logic, in the `nemo_ipa` backend (no NeMo file) | Apache-2.0 | `scriptconv/phonemizers/_thirdparty/nemo/NOTICE` |
|
|
591
593
|
|
|
592
594
|
The CMUdict licence is BSD-2-Clause with one added sentence and an
|
|
593
595
|
acknowledgement. It has no SPDX identifier, so the wheel names it
|
|
@@ -602,7 +604,10 @@ notice file.
|
|
|
602
604
|
The Leokani G2P model files are CC BY 4.0, and the wheel holds the text of
|
|
603
605
|
that licence in `scriptconv/phonemizers/_thirdparty/leokani/`. The model of
|
|
604
606
|
the `kolokwa` backend is MIT. Neither model is in the wheel: each backend
|
|
605
|
-
downloads its model.
|
|
607
|
+
downloads its model. The `nemo_ipa` backend downloads two NVIDIA files in the
|
|
608
|
+
copies of the Magpie TTS checkpoint: a pronunciation dictionary, which is the
|
|
609
|
+
CMU Pronouncing Dictionary with IPA pronunciations, and a heteronyms file. Both
|
|
610
|
+
are Apache-2.0 in the NeMo tree. Neither file is in the wheel.
|
|
606
611
|
|
|
607
612
|
The phonemizer wrappers whose code, engine or dependencies are under a
|
|
608
613
|
copyleft or a non-commercial licence are in two sister packages:
|
|
@@ -312,8 +312,8 @@ Three rules hold for every backend:
|
|
|
312
312
|
and phonetisaurus need a local `model=` path. These download on first use:
|
|
313
313
|
the phonikud and Nakdimon Hebrew diacritizers, the fp32 text2tashkeel
|
|
314
314
|
weights, the stressonnx models, the g2pW model, the Leokani G2P and
|
|
315
|
-
kolokwa-g2p models,
|
|
316
|
-
the `g2pen` backend.
|
|
315
|
+
kolokwa-g2p models, the two data files of the `nemo_ipa` backend, a named
|
|
316
|
+
DeepPhonemizer checkpoint and the NLTK data of the `g2pen` backend.
|
|
317
317
|
[docs/backends.md](docs/backends.md#model-files) names each cache location.
|
|
318
318
|
- **orthography2ipa uses the packaged lexicons.** The `o2i` extra installs
|
|
319
319
|
[o2i-lexicons](https://github.com/TigreGotico/o2i-lexicons), which holds
|
|
@@ -395,6 +395,7 @@ part in this table:
|
|
|
395
395
|
| dizione dictionary, alignment table and model (CMUdict) | CMUdict | `scriptconv/phonemizers/_thirdparty/dizione/built/LICENSE.cmudict` |
|
|
396
396
|
| dizione homograph weights (Wikipedia Homograph Data) | Apache-2.0 | `scriptconv/phonemizers/_thirdparty/dizione/built/LICENSE.homograph-data` |
|
|
397
397
|
| Leokani G2P English phonemizer of Milliwatt Labs | MIT | `scriptconv/phonemizers/_thirdparty/leokani/LICENSE` and `NOTICE` |
|
|
398
|
+
| NVIDIA NeMo IpaG2p logic, in the `nemo_ipa` backend (no NeMo file) | Apache-2.0 | `scriptconv/phonemizers/_thirdparty/nemo/NOTICE` |
|
|
398
399
|
|
|
399
400
|
The CMUdict licence is BSD-2-Clause with one added sentence and an
|
|
400
401
|
acknowledgement. It has no SPDX identifier, so the wheel names it
|
|
@@ -409,7 +410,10 @@ notice file.
|
|
|
409
410
|
The Leokani G2P model files are CC BY 4.0, and the wheel holds the text of
|
|
410
411
|
that licence in `scriptconv/phonemizers/_thirdparty/leokani/`. The model of
|
|
411
412
|
the `kolokwa` backend is MIT. Neither model is in the wheel: each backend
|
|
412
|
-
downloads its model.
|
|
413
|
+
downloads its model. The `nemo_ipa` backend downloads two NVIDIA files in the
|
|
414
|
+
copies of the Magpie TTS checkpoint: a pronunciation dictionary, which is the
|
|
415
|
+
CMU Pronouncing Dictionary with IPA pronunciations, and a heteronyms file. Both
|
|
416
|
+
are Apache-2.0 in the NeMo tree. Neither file is in the wheel.
|
|
413
417
|
|
|
414
418
|
The phonemizer wrappers whose code, engine or dependencies are under a
|
|
415
419
|
copyleft or a non-commercial licence are in two sister packages:
|
|
@@ -22,6 +22,7 @@ license-files = [
|
|
|
22
22
|
"scriptconv/phonemizers/_thirdparty/leokani/NOTICE",
|
|
23
23
|
"scriptconv/phonemizers/_thirdparty/leokani/LICENSE-CC-BY-4.0.txt",
|
|
24
24
|
"scriptconv/phonemizers/_thirdparty/nakdimon/LICENSE",
|
|
25
|
+
"scriptconv/phonemizers/_thirdparty/nemo/NOTICE",
|
|
25
26
|
]
|
|
26
27
|
requires-python = ">=3.11"
|
|
27
28
|
dependencies = []
|
|
@@ -33,9 +33,6 @@ conventions:
|
|
|
33
33
|
Orthographic conventions — script-scoped decorations orthogonal to
|
|
34
34
|
identity (tashkeel, niqqud, wakachigaki, pinyin tone spelling…).
|
|
35
35
|
Scripts are nodes; conventions are parameters, never nodes.
|
|
36
|
-
|
|
37
|
-
Zero required runtime dependencies (stdlib only); the readings module
|
|
38
|
-
needs the optional ``ja``/``zh`` extras.
|
|
39
36
|
"""
|
|
40
37
|
|
|
41
38
|
from scriptconv.scripts import (
|
|
@@ -83,19 +83,19 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
83
83
|
return 1
|
|
84
84
|
|
|
85
85
|
dispatch = {
|
|
86
|
-
"convert":
|
|
87
|
-
"detect":
|
|
88
|
-
"distribution":
|
|
89
|
-
"direction":
|
|
90
|
-
"decompose":
|
|
91
|
-
"lang":
|
|
92
|
-
"strip":
|
|
93
|
-
"restyle":
|
|
94
|
-
"conventions":
|
|
95
|
-
"route":
|
|
96
|
-
"phonemize":
|
|
86
|
+
"convert": _do_convert,
|
|
87
|
+
"detect": _do_detect,
|
|
88
|
+
"distribution": _do_distribution,
|
|
89
|
+
"direction": _do_direction,
|
|
90
|
+
"decompose": _do_decompose,
|
|
91
|
+
"lang": _do_lang,
|
|
92
|
+
"strip": _do_strip,
|
|
93
|
+
"restyle": _do_restyle,
|
|
94
|
+
"conventions": _do_conventions,
|
|
95
|
+
"route": _do_route,
|
|
96
|
+
"phonemize": _do_phonemize,
|
|
97
97
|
}
|
|
98
|
-
dispatch[args.command]()
|
|
98
|
+
dispatch[args.command](args)
|
|
99
99
|
return 0
|
|
100
100
|
|
|
101
101
|
|
|
@@ -1,46 +1,27 @@
|
|
|
1
1
|
"""Orthographic conventions — script-scoped decorations, orthogonal to identity.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
word segmentation) are orthography too, but live behind the optional
|
|
26
|
-
extras, like :mod:`scriptconv.readings`;
|
|
27
|
-
* transitions that need contextual *prediction* (restoring tashkeel or
|
|
28
|
-
niqqud, i.e. diacritization) are linguistic inference, so they belong to
|
|
29
|
-
:mod:`scriptconv.diacritics` and not to this module, as grapheme-to-phoneme
|
|
30
|
-
belongs to :mod:`scriptconv.phonemizers`. Their absence is queryable data,
|
|
31
|
-
not a runtime surprise.
|
|
32
|
-
|
|
33
|
-
What is **not** a convention: marks that are letter identity rather than
|
|
34
|
-
decoration. Vietnamese tone diacritics spell different words, Arabic
|
|
35
|
-
hamza/madda (U+0653–U+0655) distinguish letters, and stripping them corrupts
|
|
36
|
-
text — none are registered. Casing on bicameral scripts *is* a convention in
|
|
37
|
-
the sense used here, but the stdlib (``str.lower``/``str.casefold``) already
|
|
38
|
-
models it correctly, so it is deliberately not duplicated.
|
|
39
|
-
|
|
40
|
-
``jamo-form`` is the registry's one documented impurity: compatibility vs
|
|
41
|
-
conjoining jamo is a Unicode *representation* convention rather than an
|
|
42
|
-
orthographic one, registered because free text genuinely occurs in both
|
|
43
|
-
repertoires and the restyle is deterministic.
|
|
3
|
+
A script is text identity and a node of the conversion graph
|
|
4
|
+
(:mod:`scriptconv.scripts`). A convention is a decoration that a script's
|
|
5
|
+
orthography can carry or omit: vocalization (Arabic tashkeel, Hebrew niqqud),
|
|
6
|
+
justification (kashida), spacing (Japanese wakachigaki), or exclusive
|
|
7
|
+
spellings of the same information (pinyin tone marks or digits). A convention
|
|
8
|
+
is a parameter, never a node, and plays no part in script detection.
|
|
9
|
+
|
|
10
|
+
Each convention declares its *styles*, the exclusive states its text can be
|
|
11
|
+
in: ``("marked", "none")`` for a binary decoration, or named spellings such as
|
|
12
|
+
``("mark", "number", "none")``. :func:`restyle` runs a transition between two
|
|
13
|
+
styles; :func:`strip` and :func:`apply` restyle to and from ``"none"``.
|
|
14
|
+
Stripping and deterministic respelling need no dependency. A transition that
|
|
15
|
+
needs a dictionary (applying wakachigaki is word segmentation) needs an
|
|
16
|
+
optional extra. Restoring tashkeel or niqqud is prediction, so it belongs to
|
|
17
|
+
:mod:`scriptconv.diacritics` and has no transition here.
|
|
18
|
+
|
|
19
|
+
Marks that are letter identity are not conventions: Vietnamese tone marks and
|
|
20
|
+
Arabic hamza/madda (U+0653–U+0655) spell different words, so stripping them
|
|
21
|
+
corrupts the text. Casing is left to ``str.lower`` and ``str.casefold``.
|
|
22
|
+
``jamo-form`` (compatibility or conjoining jamo) is a Unicode representation
|
|
23
|
+
choice, not an orthographic one; it is registered because free text holds
|
|
24
|
+
both and the restyle is deterministic.
|
|
44
25
|
"""
|
|
45
26
|
from __future__ import annotations
|
|
46
27
|
|
|
@@ -175,19 +156,15 @@ class Convention:
|
|
|
175
156
|
# Shared helpers
|
|
176
157
|
# ---------------------------------------------------------------------------
|
|
177
158
|
|
|
178
|
-
def
|
|
179
|
-
return any(lo <= cp <= hi for lo, hi in ranges)
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
def _range_strip(ranges: Tuple[Tuple[int, int], ...]) -> Callable[[str], str]:
|
|
159
|
+
def _range_strip(pattern: re.Pattern) -> Callable[[str], str]:
|
|
183
160
|
def _strip(text: str) -> str:
|
|
184
|
-
return ""
|
|
161
|
+
return pattern.sub("", text)
|
|
185
162
|
return _strip
|
|
186
163
|
|
|
187
164
|
|
|
188
|
-
def _range_detector(
|
|
165
|
+
def _range_detector(pattern: re.Pattern) -> Callable[[str], Optional[str]]:
|
|
189
166
|
def _detect(text: str) -> Optional[str]:
|
|
190
|
-
return "marked" if
|
|
167
|
+
return "marked" if pattern.search(text) else "none"
|
|
191
168
|
return _detect
|
|
192
169
|
|
|
193
170
|
|
|
@@ -212,21 +189,12 @@ _WAKACHI_SPACE = re.compile(r"[ ]+")
|
|
|
212
189
|
|
|
213
190
|
|
|
214
191
|
def _wakachigaki_strip(text: str) -> str:
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
after = text[m.end():m.end() + 1]
|
|
222
|
-
if not (before and after and _is_japanese_flank(before[-1])
|
|
223
|
-
and _is_japanese_flank(after)):
|
|
224
|
-
out.append(m.group(0))
|
|
225
|
-
i = m.end()
|
|
226
|
-
else:
|
|
227
|
-
out.append(text[i])
|
|
228
|
-
i += 1
|
|
229
|
-
return "".join(out)
|
|
192
|
+
def space(m: re.Match) -> str:
|
|
193
|
+
start, end = m.span()
|
|
194
|
+
if start and end < len(text) and _is_japanese_flank(text[start - 1]) and _is_japanese_flank(text[end]):
|
|
195
|
+
return ""
|
|
196
|
+
return m.group(0)
|
|
197
|
+
return _WAKACHI_SPACE.sub(space, text)
|
|
230
198
|
|
|
231
199
|
|
|
232
200
|
def _wakachigaki_apply(text: str) -> str:
|
|
@@ -284,9 +252,7 @@ def _mark_syllable(syl: str, tone: int) -> str:
|
|
|
284
252
|
break
|
|
285
253
|
if pos == -1:
|
|
286
254
|
return syl
|
|
287
|
-
|
|
288
|
-
"NFC", syl[:pos + 1] + _TONE_COMBINING[tone] + syl[pos + 1:])
|
|
289
|
-
return marked
|
|
255
|
+
return unicodedata.normalize("NFC", syl[:pos + 1] + _TONE_COMBINING[tone] + syl[pos + 1:])
|
|
290
256
|
|
|
291
257
|
|
|
292
258
|
_NUM_SYL = re.compile(r"([a-zA-ZüÜ:]+)([0-5])")
|
|
@@ -449,10 +415,11 @@ def _marks(id: str, name: str, scripts: Tuple[str, ...],
|
|
|
449
415
|
ranges: Tuple[Tuple[int, int], ...], reference: str,
|
|
450
416
|
*, default: str = "marked") -> Convention:
|
|
451
417
|
"""A binary decoration: strippable marks with a range-based detector."""
|
|
418
|
+
pattern = re.compile("[" + "".join(f"{re.escape(chr(lo))}-{re.escape(chr(hi))}" for lo, hi in ranges) + "]")
|
|
452
419
|
return Convention(id, name, scripts, None, ("marked", "none"), default,
|
|
453
420
|
ranges, reference,
|
|
454
|
-
transitions=(Transition("marked", "none", _range_strip(
|
|
455
|
-
detector=_range_detector(
|
|
421
|
+
transitions=(Transition("marked", "none", _range_strip(pattern)),),
|
|
422
|
+
detector=_range_detector(pattern))
|
|
456
423
|
|
|
457
424
|
|
|
458
425
|
CONVENTION_REGISTRY: Dict[str, Convention] = {c.id: c for c in (
|