skrutable 2.9.0__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.0 → skrutable-2.9.2}/PKG-INFO +1 -1
- skrutable-2.9.2/src/skrutable/__init__.py +1 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/meter_identification.py +3 -3
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/phonemes.py +9 -9
- skrutable-2.9.2/src/skrutable/profiling_runner.py +111 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/scheme_maps.py +24 -9
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable.egg-info/PKG-INFO +1 -1
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable.egg-info/SOURCES.txt +1 -0
- skrutable-2.9.0/src/skrutable/__init__.py +0 -1
- {skrutable-2.9.0 → skrutable-2.9.2}/LICENSE.md +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/README.md +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/setup.cfg +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/setup.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/config.json +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/config.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/generate_scheme_vectors.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/impossible_bigrams.json +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/manual.md +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/meter_patterns.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/run_examples.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/scansion.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/scheme_detection.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/scheme_vectors.json +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/scheme_vectors_mbh.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/splitting.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/transliteration.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/utils.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable/virAma_avoidance.py +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable.egg-info/dependency_links.txt +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable.egg-info/requires.txt +0 -0
- {skrutable-2.9.0 → skrutable-2.9.2}/src/skrutable.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.9.2"
|
|
@@ -1576,7 +1576,9 @@ class VerseTester(object):
|
|
|
1576
1576
|
close1 = abs(eff1 - std_ardha[0]) <= 1
|
|
1577
1577
|
close2 = abs(eff2 - std_ardha[1]) <= 1
|
|
1578
1578
|
if close1 and close2:
|
|
1579
|
-
#
|
|
1579
|
+
# For hypermetric ardhas (1 mora over), attempt krama rescue before
|
|
1580
|
+
# reporting as imperfect. A g→l flip removes 1 mora; if it also passes
|
|
1581
|
+
# gaṇa validation, the ardha is rescued to perfect.
|
|
1580
1582
|
g8_morae_close = 4 if jAti_name == 'āryāgīti' else 2
|
|
1581
1583
|
four_line_pre = len(w_p) >= 4
|
|
1582
1584
|
_cache_key_close = (ardha1_w, ardha2_w, jAti_name)
|
|
@@ -1780,8 +1782,6 @@ class VerseTester(object):
|
|
|
1780
1782
|
continue
|
|
1781
1783
|
|
|
1782
1784
|
# Decompose each ardha into mātrā-gaṇas and validate against Hahn's rules.
|
|
1783
|
-
# Cache keyed on (ardha weights, jāti name) — constant across wiggle candidates
|
|
1784
|
-
# when resplit_keep_midpoint is True (ardhas never change, only cd split does).
|
|
1785
1785
|
g8_morae = 4 if jAti_name == 'āryāgīti' else 2
|
|
1786
1786
|
_cache_key = (ardha1_w, ardha2_w, jAti_name)
|
|
1787
1787
|
if _cache_key in self._jAti_ardha_cache:
|
|
@@ -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
|
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Profiling runner: runs identify_meter_batch on a corpus N times and reports
|
|
3
|
+
mean ± range for key metrics. Use this to compare branches — differences
|
|
4
|
+
smaller than the observed run-to-run range are noise.
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
cd src
|
|
8
|
+
python skrutable/profiling_runner.py /path/to/corpus.txt [--runs N] [--no-parallel]
|
|
9
|
+
|
|
10
|
+
--runs defaults to 5. --no-parallel uses identify_meter in a loop instead of
|
|
11
|
+
identify_meter_batch (no multiprocessing); wall-clock equals CPU time.
|
|
12
|
+
Results print to stderr (same as flush_profiling_report).
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
import sys
|
|
16
|
+
import os
|
|
17
|
+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
|
18
|
+
import time
|
|
19
|
+
import skrutable.utils as _utils
|
|
20
|
+
_utils._DEBUG_TIMING = True
|
|
21
|
+
|
|
22
|
+
import skrutable.meter_identification as _mi
|
|
23
|
+
from skrutable.meter_identification import MeterIdentifier, flush_profiling_report
|
|
24
|
+
|
|
25
|
+
_SCAN_KEYS = ('scan_clean', 'scan_translit', 'scan_syllabify', 'scan_weights', 'scan_morae_gana')
|
|
26
|
+
_ID_CASCADE_KEYS = ('anuzwuB', 'ardhatraya', 'samavftta_etc', 'samavftta', 'upajAti',
|
|
27
|
+
'ardhasamavftta_perfect', 'vizamavftta', 'jAti',
|
|
28
|
+
'lev_samavftta', 'lev_upajAti', 'lev_ardha', 'lev_vizama')
|
|
29
|
+
_SCAN_LABELS = ('clean', 'transl', 'syl', 'wts', 'mor+g')
|
|
30
|
+
_ID_CASCADE_LABELS = ('anuṣṭ', 'anuṣṭ3', 'vftta↑', 'samav', 'upajāti',
|
|
31
|
+
'ardha✓', 'vizama', 'jāti',
|
|
32
|
+
'lev✗sama', 'lev✗upaj', 'lev✗ardh', 'lev✗visa')
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def run_once(verses, no_parallel=False):
|
|
36
|
+
_mi._category_totals.clear()
|
|
37
|
+
_utils._section_totals.clear()
|
|
38
|
+
|
|
39
|
+
MI = MeterIdentifier()
|
|
40
|
+
t0 = time.perf_counter()
|
|
41
|
+
if no_parallel:
|
|
42
|
+
for v in verses:
|
|
43
|
+
MI.identify_meter(v, resplit_option='resplit_max', resplit_keep_midpoint=True)
|
|
44
|
+
else:
|
|
45
|
+
MI.identify_meter_batch(verses, resplit_option='resplit_max', resplit_keep_midpoint=True)
|
|
46
|
+
wall = time.perf_counter() - t0
|
|
47
|
+
|
|
48
|
+
scan_total = sum(
|
|
49
|
+
sum(_mi._category_totals.get(cat, {}).get(k, 0.0) for cat in _mi._category_totals)
|
|
50
|
+
for k in _SCAN_KEYS
|
|
51
|
+
)
|
|
52
|
+
types_total = sum(
|
|
53
|
+
sum(_mi._category_totals.get(cat, {}).get(k, 0.0) for cat in _mi._category_totals)
|
|
54
|
+
for k in _ID_CASCADE_KEYS
|
|
55
|
+
)
|
|
56
|
+
candidates = _utils._section_totals.get('wiggle_count', 0)
|
|
57
|
+
buckets = {}
|
|
58
|
+
for key in _SCAN_KEYS + _ID_CASCADE_KEYS:
|
|
59
|
+
buckets[key] = sum(_mi._category_totals.get(cat, {}).get(key, 0.0) for cat in _mi._category_totals)
|
|
60
|
+
return {'scan': scan_total, 'types': types_total, 'wall': wall, 'candidates': candidates,
|
|
61
|
+
**buckets}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def main():
|
|
65
|
+
args = sys.argv[1:]
|
|
66
|
+
no_parallel = '--no-parallel' in args
|
|
67
|
+
args = [a for a in args if a != '--no-parallel']
|
|
68
|
+
|
|
69
|
+
n_runs = 5
|
|
70
|
+
if '--runs' in args:
|
|
71
|
+
idx = args.index('--runs')
|
|
72
|
+
n_runs = int(args[idx + 1])
|
|
73
|
+
args = args[:idx] + args[idx + 2:]
|
|
74
|
+
|
|
75
|
+
if not args:
|
|
76
|
+
print(f"Usage: python {sys.argv[0]} /path/to/corpus.txt [--runs N] [--no-parallel]", file=sys.stderr)
|
|
77
|
+
sys.exit(1)
|
|
78
|
+
|
|
79
|
+
corpus_path = args[0]
|
|
80
|
+
|
|
81
|
+
with open(corpus_path, encoding='utf-8') as f:
|
|
82
|
+
verses = f.read().splitlines()
|
|
83
|
+
|
|
84
|
+
mode = 'no-parallel' if no_parallel else 'multiprocess'
|
|
85
|
+
print(f"\nRunning {n_runs} passes over {len(verses)} verses ({mode})...", file=sys.stderr)
|
|
86
|
+
|
|
87
|
+
results = []
|
|
88
|
+
for i in range(n_runs):
|
|
89
|
+
r = run_once(verses, no_parallel=no_parallel)
|
|
90
|
+
print(f" run {i+1}: scan∑ {r['scan']:.2f}s types∑ {r['types']:.2f}s wall {r['wall']:.2f}s candidates {r['candidates']}", file=sys.stderr)
|
|
91
|
+
results.append(r)
|
|
92
|
+
|
|
93
|
+
print(file=sys.stderr)
|
|
94
|
+
col = 14
|
|
95
|
+
print(f" {'metric':{col}} {'mean':>8} {'min':>8} {'max':>8} {'range':>8}", file=sys.stderr)
|
|
96
|
+
print(f" {'-'*56}", file=sys.stderr)
|
|
97
|
+
|
|
98
|
+
summary_metrics = [
|
|
99
|
+
('scan', 'scan∑'),
|
|
100
|
+
('types', 'types∑'),
|
|
101
|
+
('wall', 'wall-clock'),
|
|
102
|
+
] + list(zip(_SCAN_KEYS, _SCAN_LABELS)) + list(zip(_ID_CASCADE_KEYS, _ID_CASCADE_LABELS))
|
|
103
|
+
|
|
104
|
+
for key, label in summary_metrics:
|
|
105
|
+
vals = [r[key] for r in results]
|
|
106
|
+
mean = sum(vals) / len(vals)
|
|
107
|
+
print(f" {label:{col}} {mean:>7.2f}s {min(vals):>7.2f}s {max(vals):>7.2f}s {max(vals)-min(vals):>7.2f}s", file=sys.stderr)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
if __name__ == '__main__':
|
|
111
|
+
main()
|
|
@@ -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
|
]
|
|
@@ -11,6 +11,7 @@ src/skrutable/manual.md
|
|
|
11
11
|
src/skrutable/meter_identification.py
|
|
12
12
|
src/skrutable/meter_patterns.py
|
|
13
13
|
src/skrutable/phonemes.py
|
|
14
|
+
src/skrutable/profiling_runner.py
|
|
14
15
|
src/skrutable/run_examples.py
|
|
15
16
|
src/skrutable/scansion.py
|
|
16
17
|
src/skrutable/scheme_detection.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.9.0"
|
|
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
|