-
Notifications
You must be signed in to change notification settings - Fork 1
/
diCrunch_config.php
56 lines (34 loc) · 3.17 KB
/
diCrunch_config.php
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
53
54
55
56
<?PHP
/* Which file extensions are OK for uploading? */
$permitted_files = array("txt", "itx", "htm", "html", "xml",);
/* Processing time limit in seconds */
set_time_limit(5);
/* Intro text */
/* A I U q R W L G J T D P N Y z S M ~ H
etAvad eva jijJAsyaM tattva-jijJAsunAtmanaH |
anvaya-vyatirekAbhyAM yat syAt sarvatra sarvadA || */
$intro_text = <<<CWS
|| ā ī ū ṝ ṛ ḹ ḷ ṅ ñ ṭ ḍ ṇ ẏ ś ṣ ṁ ɱ ḥ ||
bahussutaṃ dhammadharaṃ bhajetha
mittaṃ ulāraṃ paṭibhānavantaṃ |
aññāya atthāni vineyya kaṅkhaṃ
eko care khaggavisāṇakappo ||
CWS;
/* A list of available conversion options */
// uncomment to reactivate deprecated character sets
$convs = array (
"balaram" => "Balaram",
"csx" => "CSX",
"hk" => "Harvard-Kyoto",
"unicode" => "IAST Unicode",
"itrans" => "ITRANS",
"velthuis" => "Velthuis",
//"shakti" => "Shakti Mac",
//"xsanskrit" => "X-Sanskrit",
"remove" => "Remove",
"bengali" => "Bengali script",
"devanagari" => "Devanagari script",
"oriya" => "Oriya script",
);
/* And which ones among them are script? */
$indic_scripts = array("bengali", "devanagari", "oriya");/* And the descriptions for the conversion options. */$legends = array ( 'balaram' => 'Allocating diacritic marks to characters in the extended ASCII range, commonly used in BBT and ISKCON productions. <a href="http://www.dasya.com/~mbest/freeware/fonts1.html" target="_blank">Read more</a>.', 'csx' => 'Acronym for Classical Sanskrit eXtended, an encoding allocating characters to extended ASCII range. <a href="http://www.gruntose.com/asynchronous_school/font_project/font_hp.html" target="_blank">Read more</a>.', 'hk' => 'An ASCII-based transliteration system, including XHK extensions. <a href="http://en.wikipedia.org/wiki/Harvard-Kyoto" target="_blank">Read more</a>.', 'itrans' => 'Acronym for Indian languages TRANSliteration, an ASCII-based transliteration system. <a href="http://en.wikipedia.org/wiki/ITRANS" target="_blank">Read more</a>', "shakti" => "A Mac-based diacritic system, named after a once popular font.", "xsanskrit" => "An encoding used in some old BBT and ISKCON productions, input with a tool called KeySans.", 'velthuis' => 'An ASCII-based transliteration system developed by Frans Velthuis. <a href="http://en.wikipedia.org/wiki/Devanagari_transliteration#Velthuis" target="_blank">Read more</a>', 'unicode' => 'The standard IAST (International Alphabet of Sanskrit Transliteration) diacritics in Unicode. <a href="http://en.wikipedia.org/wiki/IAST" target="_blank">Read more</a>.', 'remove' => 'Strips away diacritics, replacing them with approximate phonetic alternatives: ṣ becomes sh, ṛ becomes ri, the rest are removed.', 'bengali' => 'The script used for writing Bengali, Manipuri and some other languages. <a href="http://en.wikipedia.org/wiki/Bengali_script" target="_blank">Read more</a>.', 'devanagari' => 'The script used for writing Sanskrit, Hindi and several other languages. <a href="http://en.wikipedia.org/wiki/Devanagari_script" target="_blank">Read more</a>.', 'oriya' => 'The script used for writing Oriya and some other languages. <a href="http://en.wikipedia.org/wiki/Oriya_script" target="_blank">Read more</a>.',);?>