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.
Files changed (211) hide show
  1. {scriptconv-0.0.4a150/scriptconv.egg-info → scriptconv-0.0.4a152}/PKG-INFO +9 -4
  2. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/README.md +7 -3
  3. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/pyproject.toml +1 -0
  4. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/__init__.py +0 -3
  5. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/__main__.py +12 -12
  6. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/conventions.py +36 -69
  7. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/notation.py +65 -188
  8. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/__init__.py +4 -9
  9. scriptconv-0.0.4a152/scriptconv/phonemizers/_thirdparty/nemo/NOTICE +34 -0
  10. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/base.py +128 -356
  11. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/enums.py +1 -0
  12. scriptconv-0.0.4a152/scriptconv/phonemizers/nemo_ipa.py +245 -0
  13. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/registry.py +32 -64
  14. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/readings.py +12 -24
  15. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/scripts.py +27 -104
  16. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/version.py +1 -1
  17. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152/scriptconv.egg-info}/PKG-INFO +9 -4
  18. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv.egg-info/SOURCES.txt +3 -0
  19. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_base.py +2 -1
  20. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_identity.py +1 -1
  21. scriptconv-0.0.4a152/tests/test_phonemizers_nemo_ipa.py +160 -0
  22. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_wheel_licences.py +2 -0
  23. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/LICENSE +0 -0
  24. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/cangjie.py +0 -0
  25. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/data/LICENSE.cangjie5 +0 -0
  26. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/data/__init__.py +0 -0
  27. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/data/cangjie5_tc.tsv.gz +0 -0
  28. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/diacritics.py +0 -0
  29. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/frontend.py +0 -0
  30. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/graph.py +0 -0
  31. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_identity_cache.py +0 -0
  32. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_moved.py +0 -0
  33. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_revision.py +0 -0
  34. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/LICENSE.f5tts +0 -0
  35. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/LICENSE.hangul_to_ipa +0 -0
  36. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/__init__.py +0 -0
  37. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/bw2ipa.py +0 -0
  38. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/LICENSE +0 -0
  39. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/UPSTREAM.md +0 -0
  40. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/__init__.py +0 -0
  41. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/__main__.py +0 -0
  42. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/align.py +0 -0
  43. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/LICENSE.cmudict +0 -0
  44. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/LICENSE.homograph-data +0 -0
  45. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/align.json +0 -0
  46. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/g2p.json +0 -0
  47. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/g2p.npz +0 -0
  48. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/homographs.json +0 -0
  49. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/lexicon.json +0 -0
  50. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/lexicon.tsv +0 -0
  51. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/built/sources.json +0 -0
  52. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/convert.py +0 -0
  53. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/abbreviations.txt +0 -0
  54. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/chat.txt +0 -0
  55. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/endings.txt +0 -0
  56. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/exceptions.txt +0 -0
  57. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/function_words.txt +0 -0
  58. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/homograph_fixes.txt +0 -0
  59. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/homograph_rules.txt +0 -0
  60. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/letters.txt +0 -0
  61. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/phrases.txt +0 -0
  62. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/data/units.txt +0 -0
  63. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/engine.py +0 -0
  64. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/g2p.py +0 -0
  65. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/homographs.py +0 -0
  66. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/morphology.py +0 -0
  67. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/normalize.py +0 -0
  68. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/sentence.py +0 -0
  69. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/symbols.py +0 -0
  70. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/dizione/tables.py +0 -0
  71. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/f5tts.py +0 -0
  72. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/g2pw/LICENSE +0 -0
  73. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/g2pw/__init__.py +0 -0
  74. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/g2pw/bert-base-chinese_s2t_dict.txt +0 -0
  75. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/g2pw/bopomofo_to_pinyin_wo_tune_dict.json +0 -0
  76. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/g2pw/char_bopomofo_dict.json +0 -0
  77. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/hangul2ipa.py +0 -0
  78. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/aspiration.csv +0 -0
  79. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/assimilation.csv +0 -0
  80. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/double_coda.csv +0 -0
  81. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/hanja.tsv +0 -0
  82. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/ipa.csv +0 -0
  83. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/neutralization.csv +0 -0
  84. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/tensification.csv +0 -0
  85. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/ko_tables/yale.csv +0 -0
  86. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/leokani/LICENSE +0 -0
  87. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/leokani/LICENSE-CC-BY-4.0.txt +0 -0
  88. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/leokani/NOTICE +0 -0
  89. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/leokani/__init__.py +0 -0
  90. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/leokani/leokani_g2p.py +0 -0
  91. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/nakdimon/LICENSE +0 -0
  92. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/nakdimon/__init__.py +0 -0
  93. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/__init__.py +0 -0
  94. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/codeswitch.py +0 -0
  95. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/diacritize.py +0 -0
  96. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/dialectal.py +0 -0
  97. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/english_g2p.py +0 -0
  98. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/espeak.py +0 -0
  99. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/frontend.py +0 -0
  100. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/levantine_g2p.py +0 -0
  101. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/normalize.py +0 -0
  102. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/shami/phoneme_inventory.py +0 -0
  103. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/vosk_g2p.py +0 -0
  104. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_thirdparty/zh_num.py +0 -0
  105. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_vendored/__init__.py +0 -0
  106. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_vendored/matoub_kab/LICENSE.md +0 -0
  107. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/_vendored/matoub_kab/__init__.py +0 -0
  108. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/africa.py +0 -0
  109. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ar.py +0 -0
  110. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ber.py +0 -0
  111. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/dizione.py +0 -0
  112. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/en.py +0 -0
  113. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/eu.py +0 -0
  114. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/f5tts.py +0 -0
  115. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/fa.py +0 -0
  116. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/g2pw.py +0 -0
  117. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ghana.py +0 -0
  118. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/gl.py +0 -0
  119. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/he.py +0 -0
  120. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ja.py +0 -0
  121. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ko.py +0 -0
  122. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/leokani.py +0 -0
  123. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/lir.py +0 -0
  124. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/mul.py +0 -0
  125. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/mwl.py +0 -0
  126. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/o2ipa.py +0 -0
  127. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/openjtalk_engine.py +0 -0
  128. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/pt.py +0 -0
  129. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/ru.py +0 -0
  130. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/shami.py +0 -0
  131. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/vi.py +0 -0
  132. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/phonemizers/zh.py +0 -0
  133. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/py.typed +0 -0
  134. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/testing/__init__.py +0 -0
  135. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/testing/compare.py +0 -0
  136. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv/translit.py +0 -0
  137. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv.egg-info/dependency_links.txt +0 -0
  138. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv.egg-info/requires.txt +0 -0
  139. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/scriptconv.egg-info/top_level.txt +0 -0
  140. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/setup.cfg +0 -0
  141. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_arabic_diacritics_routing.py +0 -0
  142. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_arpa_stress.py +0 -0
  143. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_backend_table.py +0 -0
  144. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_byt5_lang_prefix.py +0 -0
  145. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_cangjie.py +0 -0
  146. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_charsiu_match_tags.py +0 -0
  147. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_cli.py +0 -0
  148. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_conventions.py +0 -0
  149. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_core_imports.py +0 -0
  150. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_diacritics.py +0 -0
  151. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_diacritics_graph.py +0 -0
  152. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_diacritics_nakdimon.py +0 -0
  153. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_diacritics_nfd_letters.py +0 -0
  154. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_doc_pages.py +0 -0
  155. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_errors_policy.py +0 -0
  156. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_examples.py +0 -0
  157. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend.py +0 -0
  158. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_chunks.py +0 -0
  159. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_join.py +0 -0
  160. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_order.py +0 -0
  161. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_phonemizer_lang.py +0 -0
  162. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_say_as.py +0 -0
  163. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_frontend_stage_edges.py +0 -0
  164. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_graph.py +0 -0
  165. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_graph_lossless.py +0 -0
  166. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_gruut_lexicon_cache.py +0 -0
  167. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_he_extra_declares_phonikud.py +0 -0
  168. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_identity_cache.py +0 -0
  169. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_lang_default_region.py +0 -0
  170. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_match_lang_direction.py +0 -0
  171. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_match_lang_preferred_value.py +0 -0
  172. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_notation.py +0 -0
  173. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_notation_sources.py +0 -0
  174. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_notation_strict.py +0 -0
  175. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_openjtalk_engine.py +0 -0
  176. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_cjk_ar.py +0 -0
  177. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_copyleft_he_ja_th.py +0 -0
  178. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_dizione.py +0 -0
  179. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_dizione_long_tokens.py +0 -0
  180. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_epitran_english.py +0 -0
  181. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_epitran_japanese.py +0 -0
  182. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_epitran_korean.py +0 -0
  183. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_espeak_lt_accent.py +0 -0
  184. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_eu_euskaphone.py +0 -0
  185. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_f5tts.py +0 -0
  186. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_friendly_import_errors.py +0 -0
  187. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_g2pw.py +0 -0
  188. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_goruut_marks.py +0 -0
  189. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_goruut_server.py +0 -0
  190. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_grapheme_arguments.py +0 -0
  191. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_kolokwa.py +0 -0
  192. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_leokani.py +0 -0
  193. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_marks.py +0 -0
  194. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_matoub_kab.py +0 -0
  195. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_mwl_barranquenho.py +0 -0
  196. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_o2i_lexicons.py +0 -0
  197. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_phonetisaurus.py +0 -0
  198. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_phonetisaurus_engine.py +0 -0
  199. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_pt_tugaphone.py +0 -0
  200. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_punctuation.py +0 -0
  201. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_ru.py +0 -0
  202. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_shami_digit_runs.py +0 -0
  203. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_phonemizers_shami_inventory.py +0 -0
  204. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_readings_zh.py +0 -0
  205. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_scripts.py +0 -0
  206. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_scripts_stressonnx_compat.py +0 -0
  207. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_sister_packages.py +0 -0
  208. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_stress_marks.py +0 -0
  209. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_testing_compare.py +0 -0
  210. {scriptconv-0.0.4a150 → scriptconv-0.0.4a152}/tests/test_translit.py +0 -0
  211. {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.4a150
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, a named DeepPhonemizer checkpoint and the NLTK data of
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, a named DeepPhonemizer checkpoint and the NLTK data of
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": lambda: _do_convert(args),
87
- "detect": lambda: _do_detect(args),
88
- "distribution": lambda: _do_distribution(args),
89
- "direction": lambda: _do_direction(args),
90
- "decompose": lambda: _do_decompose(args),
91
- "lang": lambda: _do_lang(args),
92
- "strip": lambda: _do_strip(args),
93
- "restyle": lambda: _do_restyle(args),
94
- "conventions": lambda: _do_conventions(args),
95
- "route": lambda: _do_route(args),
96
- "phonemize": lambda: _do_phonemize(args),
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
- Scripts are text *identity*: character-evident, ISO-15924-coded, the nodes of
4
- scriptconv's conversion space (:mod:`scriptconv.scripts`). Conventions are
5
- *decorations* a script's orthography can carry or omit — optional vocalization
6
- (Arabic tashkeel, Hebrew niqqud), justification (kashida), spacing modes
7
- (Japanese wakachigaki), or mutually-exclusive spellings of the same
8
- information (pinyin tone marks vs digits). A convention never participates in
9
- script detection or conversion routing; it is always a parameter, never a
10
- node.
11
-
12
- Each convention declares its *styles* — the mutually exclusive states its text
13
- can be in. Binary decorations have styles ``("marked", "none")``; variant
14
- conventions name their spellings (``("mark", "number", "none")``). The one
15
- real operation is :func:`restyle`, a partial transition matrix between styles;
16
- :func:`strip` and :func:`apply` are sugar for transitions to and from
17
- ``"none"``.
18
-
19
- Which transitions exist follows the same boundary the rest of scriptconv
20
- draws:
21
-
22
- * stripping and deterministic re-spelling are pure orthography — always
23
- available, zero-dependency;
24
- * transitions that need a *dictionary lookup* (wakachigaki application =
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 _in_ranges(cp: int, ranges: Tuple[Tuple[int, int], ...]) -> bool:
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 "".join(c for c in text if not _in_ranges(ord(c), ranges))
161
+ return pattern.sub("", text)
185
162
  return _strip
186
163
 
187
164
 
188
- def _range_detector(ranges: Tuple[Tuple[int, int], ...]) -> Callable[[str], Optional[str]]:
165
+ def _range_detector(pattern: re.Pattern) -> Callable[[str], Optional[str]]:
189
166
  def _detect(text: str) -> Optional[str]:
190
- return "marked" if any(_in_ranges(ord(c), ranges) for c in text) else "none"
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
- out = []
216
- i = 0
217
- while i < len(text):
218
- m = _WAKACHI_SPACE.match(text, i)
219
- if m:
220
- before = out[-1] if out else ""
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
- marked = unicodedata.normalize(
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(ranges)),),
455
- detector=_range_detector(ranges))
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 (