-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdemo.py
53 lines (29 loc) · 2.79 KB
/
demo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from aksharamukha import transliterate
from aksharamukha import transliterate_file
''' transliterate_file.process('HK', 'Tamil', "C:\\Users\\vinod\Desktop\\test_conv_aksharamukha.docx")
transliterate_file.process('Devanagari', 'Tamil', "C:\\Users\\vinod\\Desktop\\Agni Suktam.html")
transliterate_file.process('HK', 'Tamil', "C:\\Users\\vinod\\Desktop\\scripts_to_be_added.txt") '''
print(transliterate.process('itrans', 'telugu', 'rAma ##( test )## rAma'))
''' print(transliterate.process('hk', 'siddham', 'buddhaH'))
print(transliterate.process('autodetect', 'iast', 'ꯃꯤꯇꯩ_ꯃꯌꯦꯛ'))
print(transliterate.process('HK', 'Tamil', 'maMgaLa', False))
print(transliterate.process('HK', 'Tamil', 'bRhaspati gaMgA', False, post_options = ['TamilSubScript','TamilRemoveApostrophe']))
print(transliterate.process('Thai', 'Devanagari', 'พุทธัง สะระณัง คัจฉามิ', pre_options=['ThaiOrthography']))
print(transliterate.process('autodetect', 'IAST', 'พุทธัง สะระณัง คัจฉามิ'))
print(transliterate.process('autodetect', 'Vatteluttu', 'พุทธัง สะระณัง คัจฉามิ'))
print(transliterate.auto_detect('ꯃꯤꯇꯩ_ꯃꯌꯦꯛ'))
print(transliterate.process('Devanagari', 'IAST', 'धर्म भारत की श्रमण परम्परा से निकला धर्म और दर्शन है', pre_options=['RemoveSchwaHindi']))
print(transliterate.process('deva', 'taml', 'धर्म भारत की ', param="script_code"))
print(transliterate.process('hi', 'ur', 'धर्म भारत की ', param="lang_code"))
print(transliterate.process('sanskrit', 'telugu', 'धर्म भारत की ', param="lang_name"))
print(transliterate.process('hindi', 'kannada', 'धर्म भारत की ', param="lang_name"))
print(transliterate.process('devanagari', 'granthapandya', 'धर्म'))
print(transliterate.process('hi', 'pa', 'धर्म भारत की ', param="lang_code"))
print(transliterate.process('deva', 'arab', 'धर्म भारत की ', param="script_code"))
print(transliterate.process('autodetect', 'latn-iast', 'धर्म भारत की ', param="script_code"))
print(transliterate.process('la-hK', 'pa-guru', 'namo buddhAya', param="lang_code"))
print(transliterate.process('hi-Deva', 'hi-kthi', 'धर्म भारत की ', param="lang_code"))
print(transliterate.process('hi-Deva', 'mak', 'धर्म भारत की ', param="lang_code"))
print(transliterate.process('hi-Deva', 'cyrl', 'धर्म भारत की ', param="script_code"))
print(transliterate.process('sa-Deva', 'ru', 'धर्म भारत की ', param="lang_code"))
## multiple orthographies associated with script example '''