scriptconv-copyleft 0.4.0a9__tar.gz → 0.4.1a1__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.4.0a9 → scriptconv_copyleft-0.4.1a1}/PKG-INFO +1 -1
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/mul.py +2 -1
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/version.py +2 -2
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft.egg-info/PKG-INFO +1 -1
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft.egg-info/SOURCES.txt +1 -0
- scriptconv_copyleft-0.4.1a1/tests/test_espeak_nul_byte.py +16 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/LICENSE +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/README.md +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/pyproject.toml +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/__init__.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/__init__.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/__init__.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/kog2p/__init__.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/kog2p/rulebook.txt +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/SOURCE +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kirciai.tsv +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kreipiniai.tsv +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_raides.tsv +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/eu.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/fa.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/gl.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/he.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/ja.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/ja_prosody.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/ko.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/lt.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/th.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/readings.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft.egg-info/dependency_links.txt +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft.egg-info/requires.txt +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft.egg-info/top_level.txt +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/setup.cfg +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_docs_examples.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_espeak_acute_stress.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_espeak_french_english_switch.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_espeak_get_lang_case.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_espeak_long_line.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_espeak_lt_accent.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_g2pfa_eraab.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_hebrew_ipa.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_lang_default_region.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_match_lang_direction.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_match_lang_preferred_value.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_misaki_en_alphabet.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_misaki_ja_reader.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_misaki_vi.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_misaki_zh_zero.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_openjtalk_prosody.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_phonemizers_base.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_phonemizers_cjk_ar.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_phonemizers_friendly_import_errors.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_phonemizers_identity.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_phonemizers_misaki_british.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_phonemizers_punctuation.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_readings.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_tltk.py +0 -0
- {scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/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.4.
|
|
3
|
+
Version: 0.4.1a1
|
|
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
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/mul.py
RENAMED
|
@@ -316,7 +316,8 @@ class EspeakPhonemizer(BasePhonemizer):
|
|
|
316
316
|
# Without --stdin, espeak-ng reads stdin in 1,000-byte pieces and cuts a
|
|
317
317
|
# longer line mid-word. With it, espeak-ng drops the last byte of the input.
|
|
318
318
|
command.append('--stdin')
|
|
319
|
-
|
|
319
|
+
# espeak-ng reads the input as a C string, so a NUL ends it
|
|
320
|
+
input_text = input_text.replace("\x00", " ") + "\n"
|
|
320
321
|
|
|
321
322
|
# Standard arguments for subprocess.run
|
|
322
323
|
subprocess_args = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# START_VERSION_BLOCK
|
|
2
2
|
VERSION_MAJOR = 0
|
|
3
3
|
VERSION_MINOR = 4
|
|
4
|
-
VERSION_BUILD =
|
|
5
|
-
VERSION_ALPHA =
|
|
4
|
+
VERSION_BUILD = 1
|
|
5
|
+
VERSION_ALPHA = 1
|
|
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.4.0a9 → scriptconv_copyleft-0.4.1a1}/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.4.
|
|
3
|
+
Version: 0.4.1a1
|
|
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
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft.egg-info/SOURCES.txt
RENAMED
|
@@ -37,6 +37,7 @@ tests/test_espeak_french_english_switch.py
|
|
|
37
37
|
tests/test_espeak_get_lang_case.py
|
|
38
38
|
tests/test_espeak_long_line.py
|
|
39
39
|
tests/test_espeak_lt_accent.py
|
|
40
|
+
tests/test_espeak_nul_byte.py
|
|
40
41
|
tests/test_g2pfa_eraab.py
|
|
41
42
|
tests/test_hebrew_ipa.py
|
|
42
43
|
tests/test_lang_default_region.py
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
|
|
3
|
+
from scriptconv_copyleft.phonemizers.mul import EspeakPhonemizer
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@pytest.fixture(scope="module")
|
|
7
|
+
def espeak():
|
|
8
|
+
phonemizer = EspeakPhonemizer()
|
|
9
|
+
if not phonemizer._has_binary():
|
|
10
|
+
pytest.skip("espeak-ng binary not installed")
|
|
11
|
+
return phonemizer
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@pytest.mark.parametrize("text, lang", [("مرحبا\x00بك", "ar"), ("\x00hello", "en"), ("hello\x00world", "en")])
|
|
15
|
+
def test_a_nul_byte_reads_as_a_space(espeak, text, lang):
|
|
16
|
+
assert espeak.phonemize_string(text, lang) == espeak.phonemize_string(text.replace("\x00", " "), lang)
|
|
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.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/eu.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/fa.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/gl.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/he.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/ja.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/ko.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/scriptconv_copyleft/phonemizers/lt.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/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.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_espeak_acute_stress.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_espeak_get_lang_case.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_lang_default_region.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_match_lang_direction.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_match_lang_preferred_value.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/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
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_phonemizers_cjk_ar.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_phonemizers_identity.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_phonemizers_misaki_british.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.4.0a9 → scriptconv_copyleft-0.4.1a1}/tests/test_phonemizers_punctuation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|