scriptconv-copyleft 0.3.3a1__tar.gz → 0.4.0a1__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.3.3a1 → scriptconv_copyleft-0.4.0a1}/PKG-INFO +2 -2
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/pyproject.toml +1 -1
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/mul.py +10 -1
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/version.py +2 -2
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft.egg-info/PKG-INFO +2 -2
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft.egg-info/SOURCES.txt +1 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft.egg-info/requires.txt +1 -1
- scriptconv_copyleft-0.4.0a1/tests/test_misaki_en_alphabet.py +28 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/LICENSE +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/README.md +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/__init__.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/__init__.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/__init__.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/kog2p/__init__.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/kog2p/rulebook.txt +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/SOURCE +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kirciai.tsv +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_kreipiniai.tsv +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/_vendored/reginute/lt_raides.tsv +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/eu.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/fa.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/gl.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/he.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/ja.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/ja_prosody.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/ko.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/lt.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/th.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/readings.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft.egg-info/dependency_links.txt +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft.egg-info/top_level.txt +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/setup.cfg +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_espeak_acute_stress.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_espeak_french_english_switch.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_espeak_get_lang_case.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_espeak_long_line.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_espeak_lt_accent.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_g2pfa_eraab.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_hebrew_ipa.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_lang_default_region.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_match_lang_direction.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_match_lang_preferred_value.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_misaki_ja_reader.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_misaki_vi.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_misaki_zh_zero.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_openjtalk_prosody.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_phonemizers_base.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_phonemizers_cjk_ar.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_phonemizers_friendly_import_errors.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_phonemizers_identity.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_phonemizers_misaki_british.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_phonemizers_punctuation.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_readings.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_tltk.py +0 -0
- {scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/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.
|
|
3
|
+
Version: 0.4.0a1
|
|
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
|
|
@@ -23,7 +23,7 @@ License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md
|
|
|
23
23
|
License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING
|
|
24
24
|
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING
|
|
25
25
|
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE
|
|
26
|
-
Requires-Dist: scriptconv[phonemizers]>=0.0.
|
|
26
|
+
Requires-Dist: scriptconv[phonemizers]>=0.0.4a161
|
|
27
27
|
Provides-Extra: espeak
|
|
28
28
|
Requires-Dist: espyak; extra == "espeak"
|
|
29
29
|
Provides-Extra: transphone
|
|
@@ -16,7 +16,7 @@ license-files = [
|
|
|
16
16
|
"scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING",
|
|
17
17
|
"scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE",
|
|
18
18
|
]
|
|
19
|
-
dependencies = ["scriptconv[phonemizers]>=0.0.
|
|
19
|
+
dependencies = ["scriptconv[phonemizers]>=0.0.4a161"]
|
|
20
20
|
authors = [
|
|
21
21
|
{ name = "TigreGotico", email = "contact@tigregotico.com" }
|
|
22
22
|
]
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/mul.py
RENAMED
|
@@ -534,9 +534,18 @@ class MisakiPhonemizer(BasePhonemizer):
|
|
|
534
534
|
# (sharing the dispatch base). The base class above remains a back-compat
|
|
535
535
|
# dispatcher for the legacy ``misaki`` phoneme type.
|
|
536
536
|
class MisakiEnPhonemizer(MisakiPhonemizer):
|
|
537
|
-
"""misaki English (curated us/gb lexicons + spacy; espeak only as OOV fallback).
|
|
537
|
+
"""misaki English (curated us/gb lexicons + spacy; espeak only as OOV fallback).
|
|
538
|
+
|
|
539
|
+
misaki writes IPA with its own codes for diphthongs and affricates (``A``, ``I``,
|
|
540
|
+
``O``, ``ʤ``). ``Alphabet.MISAKI`` names those codes; ``Alphabet.IPA`` gives the
|
|
541
|
+
same output, as the voices trained on it expect.
|
|
542
|
+
"""
|
|
538
543
|
MISAKI_LANGS = ['en-US', 'en-GB']
|
|
539
544
|
|
|
545
|
+
def __init__(self, alphabet: Alphabet = Alphabet.IPA):
|
|
546
|
+
_check_alphabet(self, alphabet, [Alphabet.IPA, Alphabet.MISAKI])
|
|
547
|
+
super().__init__(alphabet)
|
|
548
|
+
|
|
540
549
|
|
|
541
550
|
class MisakiJaPhonemizer(MisakiPhonemizer):
|
|
542
551
|
"""misaki Japanese (cutlet romanizer + ja_words lexicon; needs fugashi/unidic)."""
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/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.
|
|
3
|
+
Version: 0.4.0a1
|
|
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
|
|
@@ -23,7 +23,7 @@ License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/LICENSE.md
|
|
|
23
23
|
License-File: scriptconv_copyleft/phonemizers/_vendored/kog2p/COPYING
|
|
24
24
|
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/COPYING
|
|
25
25
|
License-File: scriptconv_copyleft/phonemizers/_vendored/reginute/LICENSE
|
|
26
|
-
Requires-Dist: scriptconv[phonemizers]>=0.0.
|
|
26
|
+
Requires-Dist: scriptconv[phonemizers]>=0.0.4a161
|
|
27
27
|
Provides-Extra: espeak
|
|
28
28
|
Requires-Dist: espyak; extra == "espeak"
|
|
29
29
|
Provides-Extra: transphone
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft.egg-info/SOURCES.txt
RENAMED
|
@@ -41,6 +41,7 @@ tests/test_hebrew_ipa.py
|
|
|
41
41
|
tests/test_lang_default_region.py
|
|
42
42
|
tests/test_match_lang_direction.py
|
|
43
43
|
tests/test_match_lang_preferred_value.py
|
|
44
|
+
tests/test_misaki_en_alphabet.py
|
|
44
45
|
tests/test_misaki_ja_reader.py
|
|
45
46
|
tests/test_misaki_vi.py
|
|
46
47
|
tests/test_misaki_zh_zero.py
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""misaki English accepts the misaki alphabet and IPA, and refuses the others.
|
|
2
|
+
|
|
3
|
+
``Alphabet.MISAKI`` names the misaki codes (scriptconv ``docs/notation.md``,
|
|
4
|
+
"Misaki → IPA"). Building the phonemizer loads no misaki module, so these tests
|
|
5
|
+
need no misaki install.
|
|
6
|
+
"""
|
|
7
|
+
import unittest
|
|
8
|
+
|
|
9
|
+
from scriptconv.phonemizers.enums import Alphabet
|
|
10
|
+
|
|
11
|
+
from scriptconv_copyleft.phonemizers.mul import MisakiEnPhonemizer
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class TestMisakiEnAlphabet(unittest.TestCase):
|
|
15
|
+
def test_the_misaki_alphabet_is_accepted(self):
|
|
16
|
+
self.assertEqual(MisakiEnPhonemizer(Alphabet.MISAKI).alphabet, Alphabet.MISAKI)
|
|
17
|
+
|
|
18
|
+
def test_ipa_stays_the_default(self):
|
|
19
|
+
self.assertEqual(MisakiEnPhonemizer().alphabet, Alphabet.IPA)
|
|
20
|
+
|
|
21
|
+
def test_an_alphabet_misaki_cannot_write_raises(self):
|
|
22
|
+
for alphabet in (Alphabet.ARPA, Alphabet.XSAMPA, Alphabet.BOPOMOFO):
|
|
23
|
+
with self.subTest(alphabet=alphabet), self.assertRaises(ValueError):
|
|
24
|
+
MisakiEnPhonemizer(alphabet)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
if __name__ == "__main__":
|
|
28
|
+
unittest.main()
|
|
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.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/eu.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/fa.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/gl.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/he.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/ja.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/ko.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/lt.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/scriptconv_copyleft/phonemizers/th.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_espeak_acute_stress.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/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.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_lang_default_region.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_match_lang_direction.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_match_lang_preferred_value.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_phonemizers_cjk_ar.py
RENAMED
|
File without changes
|
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_phonemizers_identity.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_phonemizers_misaki_british.py
RENAMED
|
File without changes
|
{scriptconv_copyleft-0.3.3a1 → scriptconv_copyleft-0.4.0a1}/tests/test_phonemizers_punctuation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|