2012
1st Nov. 20012
2012
6th Nov. 20012
7th Nov. 20012
2012

Remarks on revised part of the tools

15th & 30th June 2014
17th Aug. 2014

Yumi Ousaka, Yasutomo Nishi and Sunao Kasamatsu

We released analysis tools that were created in Java for analysing texts in Sanskrit, Påli and ArdhaMågadhî in 2005. Recently we revised them so as to be able to display some error messages, toremove some errors in tools, and to improve some tools. Figs. 1 and 2 show our completely renewed
tool sets. We will give some remarks on using these tools.

Revise of 6 metre
analysis tools(30.06.2014)

revise ofAMgPrSerwordIndexMerge3.jar,
PaliPrSerwordIndexMerge3.ja,
SktPrSerwordIndexMerge3.jar

Revise of 3 Index sets
(17.08.2014)

Revise of 3 Index sets
(17.08.2014)–1–1. Pali96 Fonts
Table 1 shows the keyboard input of the Pali96 font on Mac OS and the ASCII codes for the letters.
Three alphabet tables for Sanskrit (Skt), Påli and Ardha-Mågadhî (AMg) are shown in Tables 2, 3 and4, respectively.
We revised the Pali96 fonts as follows (see Table 1):(a) We changed the font face of characters ® and Â from ® and Â, respectively, but their ASCII codes
remain the same . As shown in Table 1, special characters such as ‘®’ are typed by pressing astandard character such as ‘r’ together with the Option key. These characters are used in texts inSanskrit .
(b) We created a special character ‘Ô’ with ASCII code number 239. We can input this by pressing astandard character ‘j’ together with both the Option key and Shift key. This character is used intexts in Sanskrit.
(c) Note that the special key ‘¬’ keeps its ASCII code and keyboard input as before. This is aconsonant in Påli.
Special attention must be paid to four special characters (¡, ™ , £ and ’), that are listed in the last partof the table. The first two must be used when preparing text for metre analysis or when producing anindex to a canonical text consisting mainly of poetry (verse). The third one is used when producing apāda index. The last one is used for the presentation of the prodelision form.

–2–

Table 1. Keyboard input of the Pali96 font and its assignment to the ASCII numeric code: Special characters, such as ‘å’,
are typed by simultaneously pressing the Option key and the normal character key (e.g. ‘a’). The same is true for theother characters, such as ‘µ, ˚,’ etc. The special character ‘î’ is obtained by simultaneously pressing the Option key andthe normal character ‘i’, followed by the keyboard input of the character ‘i’. The character ‘ü’ is obtained in a similarway. The special character ‘Á’ is obtained by simultaneously pressing three keys: the Option key, the Shift key and thenormal character ‘y’. Normal Roman characters, such as ‘a, i’, etc., are typed in the usual way. (Table is replaced by new
one o 6th Nov. 2012. (compare to Table 1))characters
key stroke
ascii code characters
key stroke
ascii codeå<O> + a140»
<O> + }200
î<O> + i, i148‹
<O> + #220
ü<O> + u, u
159›
<O> + $221
˙
<O> + h250
ﬁ
<O> + %
222®
<O> + r168
ﬂ
<O> + &223
Â<O> + <S> + m229‚
<O> + <S> +0226
Ô<O> + <S> + j239¥
<O> + y180µ<O> + m181
Ω<O> + z189˚
<O> + k251
π<O> + p185ª<O> + 9187∫
<O> + b186©
<O> + g169¬
<O> + l194
ç<O> + c141
ß<O> + s167∆
<O> + j198≈
<O> + x197
ˆ<O> + <S> + i
246¡<O> + 1193†
<O> + t160™
<O> + 2170
Á<O> + <S> + y231£
<O> + 3163∂
<O> + d182¢
<O> + 4162
Û<O> + i, U
243∞
<O> + 5176
ñ<O> + n, n150¶
<O> + 7166
ai<O> + !
218•
<O> + 8165
au<O> + "219º<O> + 0188«
<O> + ]
199’
<O> + <S> +[213additional charactersƒ<O> + f196
ã<O> + n, a139
ì<O> + `, i147
ú<O> + e, u156

–3–Tables 2, 3 and 4. Alphabet tables for Sanskrit (Skt), Påli and Ardha-Mågadhî (AMg) in alphabetical order.

–4–2. Program structure.
We developed analysis tools for three different languages, Sanskrit, Påli and Ardha-Mågadhî (seeFigs. 1 and 2). All the tools for the different languages have analogous program sets. We will explain
the program sets by taking as an example a sample set for Sanskrit, which is shown in Table 5.
We have two types of text: one consists mainly of poetry (verse), and the other of prose. For thestudy of the poetry we prepared the three preprogram tools: metre analysis, påda index production andword index production. The production of the påda index is divided into two steps: (1) production of aserial index and (2) production of a reverse index. The serial påda index production tools consist oftwo programs called SktVeSerPadaIndex1.jar and SktVeSerPadaIndex2.jar, where the abbreviations
Skt, Ve and Ser mean Sanskrit, Verse and Serial, respectively. These programs should be used inorder. Instructions about how to use these programs are found in References listed below.

Table 5. Program structure
Text
type

Procedure
MetricalnallysisVersePåda index

Word index

Prose

Word index

Tool

Program name

Neuro method SktNeuroMetreAnalNo1.jar
Pattern
SktPattMatchMetreAnalNo1.jar
matching
SktVeSerPadaIndex1.jar,
Serial
SktVeSerPadaIndexLine2.jar
SktVeRevPadaIndex1.jar,
ReverseSktVeRevPadaIndexLine2.jar
SktVeSerWordIndex1.jar,
Serial
SktVeSerwordIndexLine2.jar,
SktVeRevWordIndex1.jar,
Reverse
SktVeRevWordIndexLine2.jar,
SktPrSerWordIndex0.jar (or)SktPrSerWordIndex1.jar,
SerialSktPrSerWordIndexLine2.jar,
SktPrSerwordIndexMerge3.jar
SktPrRevWordIndex1.jar,
Reverse
SktPrRevWordIndexLine2.jar,
SktPrRevWordIndexMerge3.jar

Improvement in the program are as follows: In the previous version programs could not show error
messages. This was very inconvenient when using our programs. Programs sometimes stopped if thetext form was in violation of the rule. We added a function to the programs that can save the text itself
into an output file after reading it. So the reason the program stopped is easily found by checking theoutput of the text. We show this in the figure below, by using the program for the production of theserial påda index. The left-hand bottom figure shows the input file, and the right-hand bottom fileshows the output file. (Note that the error message on the right-hand top may not be displayed.)
Usually the end line in the output file shows the text line where the program cannot proceed properly.
So you should correct any error included in this line. After removing all errors in the text, this program
will finish properly and save the calculated results together with this text line into the file. Then you
should remove all text lines in this file since these text lines interfere with running the second program
if this program uses the first calculated result to obtain the final result. So please note this when using
our new versions of the programs.
–5–We made programs so as to delete every redundant space of the beginning of each text line, butsometimes this process doesn't work well. So be careful to prepare such a text that does not have someredundant spaces.
Finally let note that the program tools are able to process the plain text form in Mac Roman (seereference (2)). In Macintosh many editors , e.g. Jedit X, Nisus Writer, etc. are available for making
such text files or for opening the calculated files.

–6–3. Simple editor "Edisan5_5.jar" (Revise of keystroke on 8th Nov. 2012)
We designed our Pali96 fount so that each special fount or symbol should be displayed in its proper
form on CRT, where every fount should be assiged a single ASCII code with respect to programcoding. Our fount was originally designed on Mac OS (Classic OS). So there is no problem to use ourfount even on the recent new Mac OSX.
We released the revised simple editor "Edisan5_5.jar." We can type characters of Pali96 fount on
Windows OS and on Linux OS as shown in Table 6 (compare to Table 1). We found that somecharacters cannot be displayed in their proper forms on CRT, although their ASCII codes arepreserved correctly. Unfortunately we cannot improve this difficulty, because it seems like to strongly
relate with OS itself. We hope this may not cause serious problem on using our tools.
Table 6. Key stroke of Pali96 in Edisan5_5. <A> and <S> mean Alt key and Shift key,respectively. Character ˙ can be typed by simultaneously pressing the Alt key and thenormal character key h)characters
key stroke
ascii code characters
key stroke
ascii codeå
<A> + a140»<A> + }200î<A> + i148‹
<A> + <S> + 3220
ü<A> + u159›
<A> + <S> + 4221
˙
<A> + h250
ﬁ
<A> + <S> + 5222®
<A> + r168ﬂ
<A> + <S> + 6223
Â<A> + <S> + m229‚
<A> + <S> + 7226
Ô<A> + <S> + j239¥
<A> + y180µ<A> + m181
Ω<A> + z189˚
<A> + k251
π<A> + p185ª
<A> + 9187∫
<A> + b186©
<A> + g169¬
<A> + l (el)194
ç<A> + c141
ß<A> + s167∆<A> + j198≈

<A> + x (or )<A>+ <S> + e197

ˆ<A>+<S> + i246¡

<A> + 1 (or)<A>+ <S> + g193

†
Á∂
Û
ñ
aiau

<A> + t
<A> + <S> + y<A> + d<A> + <S> + d<A> + n<A> + <S> + 1<A> + <S> + 2

160
231
182
243
150
218
219

™
£
¢
∞¶
•
º

<A> + 2
<A> + 3
<A> + 4
<A> + 5
<A> + 7
<A> + 8
<A> + 0170
163162
176
166
165
188

«

<A> + ]

199’

<A> + <S> +[ (or)<A>+ <S> + h213

<A> + <S> + a

139<A> + <S> + u156

ƒ

<A> + fì<A> + <S> + l (el)additional characters
196
ã
147

ú

–7–4. References
Consult the book (1) below with respect to algorithms of the programs. Instructions about how to use
our programs refer to (2) to (4). These books can be downloaded from the site ofhttps://www.cari.ne.jp/search/.
(1) Y. Ousaka , Automatic Analysis of the Canon in Middle Indo-Aryan by Personal Computerwith Object Files and Their Programs for Macintosh and Windows OS on CD-ROM, Philologica
Asiatica, Monograph Series 19 (2002) 86p.
(see also http://hirose.sendai-nct.ac.jp/~ousaka)(2) Y. Ousaka , Automatic Analysis of the Canon in Middle Indo-Aryan by Personal Computer II:
in both Japanese and English, with Jar Files and Their Java Programs by Java for Macintosh OSX,
Windows XP, and Linux on CD-ROM Philologica Asiatica, Monograph Series 21 (2005) 85p.
(3) Y. Ousaka, Metre Analysis in Middle Indo-Aryan Based on New Combined Method of Neural
Network and Discriminant Analysis, in Philologica Asiatica, Monograph Series 26 (2010) 45(4) S. Kasamatsu, Y. Nishi and Y. Ousaka , Automatic Analysis of the Canon in Middle IndoAryan by Personal Computer III (in Japanese), Bulletin of Chuo Academic Research Institute, No
41 (2012) 35-52.

–8–