-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsca2.html
112 lines (110 loc) · 3.3 KB
/
sca2.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text-html; charset=utf-8">
<title>sca2 - sound change applier</title>
<link rel="stylesheet" href="sca2.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" text="#000000">
<form id="theform" action="">
<table width="100%">
<tr><td bgcolor="#EEC25A">
<h2><br> <a href="kit.html"><img src="kit-gears.gif" border=0 align="absmiddle" height="53" width="60"></a> SCA²</h2>
</td></tr>
</td></tr>
</table>
<i>This is a Javascript update of the Sound Change Applier. It now handles Unicode, and some rule upgrades— press the Help button for full documentation.
<p>(Note: this is beta code; report errors to me at markrose at zompist.com.)
<p>—Mark Rosenfelder, 2012</i>
<hr>
<table width="100%">
<tr>
<td colspan="2">
Categories:
<br>
<textarea id="cats" rows="10" cols="40">
V=aeiou
L=āēīōū
C=ptcqbdgmnlrhs
F=ie
B=ou
S=ptc
Z=bdg
</textarea>
</td>
<td rowspan="3">
Sound changes:
<br>
<textarea id="rules" rows="30" cols="35">
[sm]//_#
i/j/_V
L/V/_
e//Vr_#
v//V_V
u/o/_#
gn/nh/_
S/Z/V_V
c/i/F_t
c/u/B_t
p//V_t
ii/i/_
e//C_rV
</textarea>
<td rowspan="3">
Input lexicon:
<br>
<textarea id="ilex" rows="30" cols="20">
lector
doctor
focus
jocus
districtus
cīvitatem
adoptare
opera
secundus
fīliam
pōntem
</textarea>
</td>
<td rowspan="3">
<h3>Output lexicon</h3>
<br>
<div id="olex"></div>
</textarea>
</td>
</tr>
<tr><td>
<p>Output format:
<br><input type ="radio" name="outtype" value="text" checked>output
<br><input type ="radio" name="outtype" value="arro">input → output
<br><input type ="radio" name="outtype" value="dict">output [input]
<br><input type="checkbox" name="showdiff">Show differences from last run</input>
<br><input type="checkbox" name="report">Report which rules apply</input>
<br><input type="checkbox" name="rewout" checked>Rewrite on output</input>
</td><td>
<p><input type="button" value="Apply" onClick="process();">
<p><input type="button" value="Parse .sc" onClick="parsesc();">
<br><input type="button" value="Back to .sc" onClick="intosc();">
<p><input type="button" value="Help me!" onClick="helpme();">
<br><input type="button" value="IPA" onClick="showipa();">
</td></tr>
<tr>
<td colspan="2">
Rewrite rules:
<br>
<textarea id="rewrite" name="rewrite" rows="7" cols="20">lh|lj</textarea>
</td>
</tr>
</table>
<hr>
<h3>Output</h3>
<br>
<div id="mytext"> </div>
</form>
<hr>
<center><a href="default.html"><img src="homeg.gif" border=0 alt="Home"></a></center>
<script src="jquery-1.11.3.js" type="text/javascript"></script>
<script src="sca2.js" type="text/javascript"></script>
</body>
</html>