skrutable 2.9.1__tar.gz → 2.9.2__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.
- {skrutable-2.9.1 → skrutable-2.9.2}/PKG-INFO +1 -1
- skrutable-2.9.2/src/skrutable/__init__.py +1 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/phonemes.py +9 -9
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/scheme_maps.py +24 -9
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable.egg-info/PKG-INFO +1 -1
- skrutable-2.9.1/src/skrutable/__init__.py +0 -1
- {skrutable-2.9.1 → skrutable-2.9.2}/LICENSE.md +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/README.md +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/setup.cfg +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/setup.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/config.json +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/config.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/generate_scheme_vectors.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/impossible_bigrams.json +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/manual.md +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/meter_identification.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/meter_patterns.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/profiling_runner.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/run_examples.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/scansion.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/scheme_detection.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/scheme_vectors.json +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/scheme_vectors_mbh.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/splitting.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/transliteration.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/utils.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable/virAma_avoidance.py +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable.egg-info/SOURCES.txt +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable.egg-info/dependency_links.txt +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable.egg-info/requires.txt +0 -0
- {skrutable-2.9.1 → skrutable-2.9.2}/src/skrutable.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.9.2"
|
|
@@ -23,7 +23,7 @@ vowels_that_preempt_virAma = ( SLP_vowels + DEV_vowel_mAtrAs +
|
|
|
23
23
|
BENGALI_vowel_mAtrAs + GUJARATI_vowel_mAtrAs )
|
|
24
24
|
|
|
25
25
|
SLP_unvoiced_consonants = ['k','K','c','C','w','W','t','T','p','P','z','S','s']
|
|
26
|
-
SLP_voiced_consonants = ['g','G','N','j','J','Y','q','Q','R','d','D','n','b','B','m','y','r','l','v','h']
|
|
26
|
+
SLP_voiced_consonants = ['g','G','N','j','J','Y','q','Q','R','d','D','n','b','B','m','y','r','l','v','L','h']
|
|
27
27
|
|
|
28
28
|
SLP_consonants = SLP_unvoiced_consonants + SLP_voiced_consonants
|
|
29
29
|
"""Voice distinguished for sake of destroy_spaces functionality.
|
|
@@ -39,15 +39,15 @@ SLP_consonants_for_scansion_set = set(SLP_consonants_for_scansion)
|
|
|
39
39
|
|
|
40
40
|
DEV_consonants = ['क', 'ख', 'ग', 'घ', 'ङ','च', 'छ', 'ज', 'झ', 'ञ',
|
|
41
41
|
'ट', 'ठ', 'ड', 'ढ', 'ण','त', 'थ', 'द', 'ध', 'न','प', 'फ', 'ब', 'भ', 'म',
|
|
42
|
-
'य', 'र', 'ल', 'व','श', 'ष', 'स', 'ह']
|
|
42
|
+
'य', 'र', 'ल', 'व','ळ','श', 'ष', 'स', 'ह']
|
|
43
43
|
|
|
44
44
|
BENGALI_consonants = ['ক', 'খ', 'গ', 'ঘ', 'ঙ','চ', 'ছ', 'জ', 'ঝ', 'ঞ',
|
|
45
45
|
'ট', 'ঠ', 'ড', 'ঢ', 'ণ','ত', 'থ', 'দ', 'ধ', 'ন','প', 'ফ', 'ব', 'ভ', 'ম',
|
|
46
|
-
'য', 'র', 'ল', 'ব','শ', 'ষ', 'স', 'হ']
|
|
46
|
+
'য', 'র', 'ল', 'ল়', 'ব','শ', 'ষ', 'স', 'হ']
|
|
47
47
|
|
|
48
48
|
GUJARATI_consonants = ['ક', 'ખ', 'ગ', 'ઘ', 'ઙ','ચ', 'છ', 'જ', 'ઝ', 'ઞ',
|
|
49
49
|
'ટ', 'ઠ', 'ડ', 'ઢ', 'ણ','ત', 'થ', 'દ', 'ધ', 'ન','પ', 'ફ', 'બ', 'ભ', 'મ',
|
|
50
|
-
'ય', 'ર', 'લ', 'વ','શ', 'ષ', 'સ', 'હ']
|
|
50
|
+
'ય', 'ર', 'લ', 'ળ', 'વ','શ', 'ષ', 'સ', 'હ']
|
|
51
51
|
|
|
52
52
|
# lookup table to use like e.g. SLP_and_indic_consonants['BENGALI']
|
|
53
53
|
SLP_and_indic_consonants = ( SLP_consonants + DEV_consonants +
|
|
@@ -58,24 +58,24 @@ SLP_and_indic_consonants = ( SLP_consonants + DEV_consonants +
|
|
|
58
58
|
Roman_upper = [chr(n) for n in range(65,91)]
|
|
59
59
|
Roman_lower = [chr(n) for n in range(97,123)]
|
|
60
60
|
|
|
61
|
-
SLP_chars = ( [ c for c in Roman_upper if c not in ['
|
|
61
|
+
SLP_chars = ( [ c for c in Roman_upper if c not in ['V','Z'] ]
|
|
62
62
|
+ Roman_lower + ['~'] )
|
|
63
63
|
|
|
64
64
|
IAST_chars = ( [c for c in Roman_lower if c not in ['f','q','w','x','z'] ]
|
|
65
|
-
+ ['ñ','ā','ī','ś','ū','ḍ','ḥ','ḷ','ḹ','ṃ','ṅ','ṇ','ṛ','ṝ','ṣ','ṭ','ẖ','ḫ','ï','ü','ĕ','ŏ']
|
|
65
|
+
+ ['ñ','ā','ī','ś','ū','ḍ','ḥ','ḷ','ḹ','ḻ','ṃ','ṅ','ṇ','ṛ','ṝ','ṣ','ṭ','ẖ','ḫ','ï','ü','ĕ','ŏ']
|
|
66
66
|
+ ['̄', '́', '̇', '̣', '̥', '̱', '̮', '̱', 'ṁ', 'ē', 'ō', '\u0303'] ) # also accept ISO etc. alternates
|
|
67
67
|
# need to add more in case of capital letters, etc.; see scheme_maps.IAST_SLP
|
|
68
68
|
|
|
69
|
-
HK_chars = ( ['A','D','G','H','I','J','M','N','R','S','T','U']
|
|
69
|
+
HK_chars = ( ['A','D','G','H','I','J','L','M','N','R','S','T','U']
|
|
70
70
|
+ [c for c in Roman_lower if c not in ['f','q','w','x'] ] )
|
|
71
71
|
|
|
72
72
|
VH_chars = ( ['B','C','D','G','J','K','L','P','R','T'] + ['"','.','~']
|
|
73
73
|
+ [ c for c in Roman_lower if c not in ['f','q','w','x','z'] ] )
|
|
74
74
|
|
|
75
|
-
ITRANS_chars = ( ['C','D','E','I','L','N','O','R','S','T'] + ['.','^','~']
|
|
75
|
+
ITRANS_chars = ( ['C','D','E','I','L','N','O','R','S','T','Y'] + ['.','^','~']
|
|
76
76
|
+ [c for c in Roman_lower if c not in ['f','q','v','x','z'] ] )
|
|
77
77
|
|
|
78
|
-
WX_chars = list({tup[0] for tup in scheme_maps.WX_SLP})
|
|
78
|
+
WX_chars = list({tup[0] for tup in scheme_maps.WX_SLP if tup[0] != 'lY'}) + ['lY']
|
|
79
79
|
|
|
80
80
|
# build Indic sets from respective scheme maps, but exclude numbers
|
|
81
81
|
|
|
@@ -12,7 +12,7 @@ c ch j jh ñ c C j J Y c ch j jh J
|
|
|
12
12
|
ṭ ṭh ḍ ḍh ṇ w W q Q R T Th D Dh N
|
|
13
13
|
t th d dh n t T d D n t th d dh n
|
|
14
14
|
p ph b bh m p P b B m p ph b bh m
|
|
15
|
-
y r l v
|
|
15
|
+
y r l v ḻ y r l v L y r l v L
|
|
16
16
|
ś ṣ s h ṃ ḥ ' S z s h M H ' z S s h M H '
|
|
17
17
|
|
|
18
18
|
(IASTREDUCED: a a i i u u ... jh n t th d dh n t ... s s s h m h ')
|
|
@@ -25,7 +25,7 @@ DEV
|
|
|
25
25
|
ट ठ ड ढ ण
|
|
26
26
|
त थ द ध न
|
|
27
27
|
प फ ब भ म
|
|
28
|
-
य र ल व
|
|
28
|
+
य र ल व ळ
|
|
29
29
|
श ष स ह ं ः ऽ
|
|
30
30
|
१ २ ३ ४ ५ ६ ७ ८ ९ ०
|
|
31
31
|
|
|
@@ -37,7 +37,7 @@ BENGALI
|
|
|
37
37
|
ট ঠ ড ঢ ণ
|
|
38
38
|
ত থ দ ধ ন
|
|
39
39
|
প ফ ব ভ ম
|
|
40
|
-
য র ল ব
|
|
40
|
+
য র ল ব ল়
|
|
41
41
|
শ ষ স হ ং ঃ ঽ
|
|
42
42
|
১ ২ ৩ ৪ ৫ ৬ ৭ ৮ ৯ ০
|
|
43
43
|
|
|
@@ -49,7 +49,7 @@ GUJARATI
|
|
|
49
49
|
ટ ઠ ડ ઢ ણ
|
|
50
50
|
ત થ દ ધ ન
|
|
51
51
|
પ ફ બ ભ મ
|
|
52
|
-
ય ર લ વ
|
|
52
|
+
ય ર લ વ ળ
|
|
53
53
|
શ ષ સ હ ં ઃ ઽ
|
|
54
54
|
૧ ૨ ૩ ૪ ૫ ૬ ૭ ૮ ૯ ૦
|
|
55
55
|
|
|
@@ -61,7 +61,7 @@ c ch j jh ~n c C j J F
|
|
|
61
61
|
.t .th .d .dh .n t T d D N
|
|
62
62
|
t th d dh n w W x X n
|
|
63
63
|
p ph b bh m p P b B m
|
|
64
|
-
y r l v
|
|
64
|
+
y r l v .la y r l v lY
|
|
65
65
|
"s .s s h .m .h .a S R s M H Z
|
|
66
66
|
|
|
67
67
|
ITRANS
|
|
@@ -72,7 +72,7 @@ ch Ch j jh ~n
|
|
|
72
72
|
T Th D Dh N
|
|
73
73
|
t th d dh n
|
|
74
74
|
p ph b bh m
|
|
75
|
-
y r l v
|
|
75
|
+
y r l v L
|
|
76
76
|
sh Sh s h .m H .a
|
|
77
77
|
|
|
78
78
|
CSX REE OAST
|
|
@@ -112,6 +112,7 @@ IAST_SLP = [
|
|
|
112
112
|
('ṭ','ṭ'), ('Ṭ','Ṭ'),
|
|
113
113
|
('ḍ','ḍ'), ('Ḍ','Ḍ'),
|
|
114
114
|
('ṇ','ṇ'), ('Ṇ','Ṇ'),
|
|
115
|
+
('ḻ','ḻ'), ('Ḻ','Ḻ'),
|
|
115
116
|
('ś','ś'), ('Ś','Ś'),
|
|
116
117
|
('ṣ','ṣ'), ('Ṣ','Ṣ'),
|
|
117
118
|
('ḥ','ḥ'), ('Ḥ','Ḥ'),
|
|
@@ -127,7 +128,7 @@ IAST_SLP = [
|
|
|
127
128
|
('U','u'),('V','v'),('W','w'),('X','x'),('Y','y'),('Z','z'),
|
|
128
129
|
('Ā','ā'),('Ī','ī'),('Ū','ū'),('Ṛ','ṛ'), ('Ḷ','ḷ'),
|
|
129
130
|
('Ṅ','ṅ'),('Ñ','ñ'),('Ṭ','ṭ'),('Ḍ','ḍ'),('Ṇ','ṇ'),
|
|
130
|
-
('Ś','ś'),('Ṣ','ṣ'),('Ḥ','ḥ'),('Ḫ','h'),('Ṃ','ṃ'),
|
|
131
|
+
('Ḻ','ḻ'),('Ś','ś'),('Ṣ','ṣ'),('Ḥ','ḥ'),('Ḫ','h'),('Ṃ','ṃ'),
|
|
131
132
|
# Transliteration 1: careful ordering to avoid bleeding/feeding
|
|
132
133
|
('ṭh','W'),
|
|
133
134
|
('ṭ','w'),
|
|
@@ -156,6 +157,7 @@ IAST_SLP = [
|
|
|
156
157
|
('dh','D'),
|
|
157
158
|
('ph','P'),
|
|
158
159
|
('bh','B'),
|
|
160
|
+
('ḻ','L'),
|
|
159
161
|
('ś','S'),
|
|
160
162
|
('ṣ','z'),
|
|
161
163
|
('ṃ','M'),
|
|
@@ -241,6 +243,7 @@ DEV_SLP = [
|
|
|
241
243
|
('य', 'y'),
|
|
242
244
|
('र', 'r'),
|
|
243
245
|
('ल', 'l'),
|
|
246
|
+
('ळ', 'L'),
|
|
244
247
|
('व', 'v'),
|
|
245
248
|
('श', 'S'),
|
|
246
249
|
('ष', 'z'),
|
|
@@ -318,6 +321,7 @@ BENGALI_SLP = [
|
|
|
318
321
|
('য', 'y'),
|
|
319
322
|
('র', 'r'),
|
|
320
323
|
('ল', 'l'),
|
|
324
|
+
('ল়', 'L'),
|
|
321
325
|
('ব', 'v'),
|
|
322
326
|
('শ', 'S'),
|
|
323
327
|
('ষ', 'z'),
|
|
@@ -395,6 +399,7 @@ GUJARATI_SLP = [
|
|
|
395
399
|
('ય', 'y'),
|
|
396
400
|
('ર', 'r'),
|
|
397
401
|
('લ', 'l'),
|
|
402
|
+
('ળ', 'L'),
|
|
398
403
|
('વ', 'v'),
|
|
399
404
|
('શ', 'S'),
|
|
400
405
|
('ષ', 'z'),
|
|
@@ -456,6 +461,7 @@ VH_SLP = [
|
|
|
456
461
|
('dh','D'),
|
|
457
462
|
('ph','P'),
|
|
458
463
|
('bh','B'),
|
|
464
|
+
('.l','L'),
|
|
459
465
|
('"s','S'),
|
|
460
466
|
('.s','z'),
|
|
461
467
|
("’", "'"),
|
|
@@ -478,6 +484,7 @@ WX_SLP = [
|
|
|
478
484
|
('d','q'), # ḍ
|
|
479
485
|
('x','d'), # d
|
|
480
486
|
('L','x'), # ḷ
|
|
487
|
+
('lY','L'), # ḻ
|
|
481
488
|
# Transliteration 2: roundabout swaps to avoid bleeding/feeding
|
|
482
489
|
# V not used in either scheme
|
|
483
490
|
('t','V'), # ṭ
|
|
@@ -608,6 +615,7 @@ SLP_IAST = [
|
|
|
608
615
|
('D','dh'),
|
|
609
616
|
('P','ph'),
|
|
610
617
|
('B','bh'),
|
|
618
|
+
('L','ḻ'),
|
|
611
619
|
('S','ś'),
|
|
612
620
|
('z','ṣ'),
|
|
613
621
|
# Remain the same: ...
|
|
@@ -690,6 +698,7 @@ SLP_DEV = [
|
|
|
690
698
|
('y', 'य'),
|
|
691
699
|
('r', 'र'),
|
|
692
700
|
('l', 'ल'),
|
|
701
|
+
('L', 'ळ'),
|
|
693
702
|
('v', 'व'),
|
|
694
703
|
('S', 'श'),
|
|
695
704
|
('z', 'ष'),
|
|
@@ -755,6 +764,7 @@ SLP_BENGALI = [
|
|
|
755
764
|
('y', 'য'),
|
|
756
765
|
('r', 'র'),
|
|
757
766
|
('l', 'ল'),
|
|
767
|
+
('L', 'ল়'),
|
|
758
768
|
('v', 'ব'),
|
|
759
769
|
('S', 'শ'),
|
|
760
770
|
('z', 'ষ'),
|
|
@@ -820,6 +830,7 @@ SLP_GUJARATI = [
|
|
|
820
830
|
('y', 'ય'),
|
|
821
831
|
('r', 'ર'),
|
|
822
832
|
('l', 'લ'),
|
|
833
|
+
('L', 'ળ'),
|
|
823
834
|
('v', 'વ'),
|
|
824
835
|
('S', 'શ'),
|
|
825
836
|
('z', 'ષ'),
|
|
@@ -866,6 +877,7 @@ SLP_VH = [
|
|
|
866
877
|
('D','dh'),
|
|
867
878
|
('P','ph'),
|
|
868
879
|
('B','bh'),
|
|
880
|
+
('L','.l'),
|
|
869
881
|
('S','"s'),
|
|
870
882
|
('z','.s'),
|
|
871
883
|
("'",'.a'),
|
|
@@ -873,7 +885,7 @@ SLP_VH = [
|
|
|
873
885
|
|
|
874
886
|
SLP_WX = [
|
|
875
887
|
# Transliteration 1: very careful ordering to avoid bleeding/feeding
|
|
876
|
-
|
|
888
|
+
('L', 'ळ'), # ḻ
|
|
877
889
|
('x','L'), # ḷ
|
|
878
890
|
# now progressively map to what is freed up
|
|
879
891
|
('d','x'), # d
|
|
@@ -897,7 +909,9 @@ SLP_WX = [
|
|
|
897
909
|
('W','V'), # ṭh
|
|
898
910
|
('T','W'), # th
|
|
899
911
|
('V','T'), # ṭh
|
|
900
|
-
# Transliteration 3:
|
|
912
|
+
# Transliteration 3: finish up trickiest case
|
|
913
|
+
('ळ','lY'), # ḻ
|
|
914
|
+
# Transliteration 4: simpler remaining mapping
|
|
901
915
|
("'",'Z'),
|
|
902
916
|
]
|
|
903
917
|
|
|
@@ -996,6 +1010,7 @@ SLP_IASTREDUCED = [
|
|
|
996
1010
|
('D','dh'),
|
|
997
1011
|
('P','ph'),
|
|
998
1012
|
('B','bh'),
|
|
1013
|
+
('L','l'),
|
|
999
1014
|
('S','s'),
|
|
1000
1015
|
('z','s'),
|
|
1001
1016
|
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.9.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|