-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
366 lines (330 loc) · 14.2 KB
/
index.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sinhala Maths Terms Translator</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" />
<style>
.container {
display: flex;
flex-direction: column;
align-items: center;
}
html,
body {
height: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}
footer {
text-align: center;
padding: 10px;
width: 100%;
position: fixed;
bottom: 0;
}
table {
border-collapse: collapse;
width: 50%;
margin-top: 20px;
}
th,
td {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
th {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<div class="container">
<!-- <h4>Mathematical Jargon Translator</h4> -->
<br>
<img src="logo.png" alt="Mathematical Jargon Translator" width="50%">
<br>
<p>
Translate Mathematical Jargon from
<b>Sinhala/Singlish to English</b>. Specially designed for Sri Lankan GCE A/L to
support English-medium students in understanding Sinhala terms. Consider exploring Sinhala medium classes
for a comprehensive learning experience. eg: Ajantha Dissanayake Sir's class.
</p>
<input type="text" id="searchInput" placeholder="Enter Sinhala term..." />
<table id="resultsTable" class="striped highlight ">
<tr>
<th>Sinhala Term</th>
<th>English Translation</th>
</tr>
</table>
</div>
<footer>
Made by <a href="https://hirusha.xyz" target="_blank" rel="noopener noreferrer">@hirushaadi</a>.
<br>
<i>Version 7</i>
</footer>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
const data = {
// Basic
"pramaya,prameya,ප්රමය,ප්රමේය": "Theory",
"aadesha": "Substitutions",
"sulukirim": "Simplifications",
"sarwasama": "Identity",
"angasama": "Congruent",
"baaga,baga": "Fractions",
"thaathwika": "Real",
"thaathwika sankyaa": "Real Numbers",
"sameekarana": "Equation",
"lagu,laguganaka,lagu ganaka": "Logarithms",
"parimaawa,parimawa": "Volume",
"warga pala, wargapala": "Area",
"poorna,purna": "full",
"siddantha,siddhantha,sidantha": "theory",
"poorna siddhantha,poorna siddantha,purna siddhantha,purna siddantha": "full theory",
"anthare": "Difference",
"aikya,ayikya": "Sum",
"parasaya": "Range",
"anshuwa": "Particle",
"siras": "Vertical",
"thiras": "Horizontal",
"lambaka,lamba": "Perpendicular",
"usa": "Height",
"lamba usa,lambausa": "Perpendicular Height",
"dura": "Distance",
"lamba dura,lambadura": "Perpendicular Distance",
"prasthaara,prasthara": "Graphs",
"wishama": "Improper",
"wishama baaga,wishama baga": "Improper Fractions",
"niyama baaga,niyama baga": "Proper Fractions",
"ekaka baaga,ekaka baga": "Proper Fractions",
"darshaka": "Indices",
"karaniya": "Surd",
"balaya": "Power (Algebraic), Force (Mechanics)",
"nishunya,nish unya,ni shunya": "Non Zero (not 0)",
"nikilaya,nikila": "Integer",
"nishunya nikilaya": "Non-zero Integer",
"moola,mula": "Root",
"sankethathmaka,sankethaathmaka,sankethathmakawa,sankethaathmakawa": "In terms of something (eg: x)",
"upakalpanaya": "Show that / derive", // not sure
"saadanaya,sadanaya": "Derivation",
"prathi bimbaya,prathibimbaya": "Reflection",
"wichalya,vichalya": "Variable",
"wichalanaya,vichalanaya": "Change",
"lawaya,lavaya": "Numerator",
"haraya": "Denominator",
"aarohana,arohana": "Ascending Order / Increasing",
"awarohana,avarohana": "Descending Order / Decreasing",
"ankanaya,angkanaya": "Notation",
"prasanaya": "Expand",
"prathamaka,praathamaka": "Prime",
"sankyaa,sankya": "Numbers",
"prathamaka sankyaa,prathamaka sankya,praathamaka sankyaa,praathamaka sankya": "Prime Numbers",
"haraya parimeya kireema, haraya parimeya kirima": "Rationalizing the Denominator",
"yugalaya": "Pair",
"pada": "Term",
"anupaatha,anupatha": "Ratio",
"pramaya,prameya,pramayaya,prameyaya": "Theorem",
"abyanthara,abhyanthara": "Internal",
"baahira,bahira": "External",
"parasparaya": "Reciprocal",
"sammithi": "Symmetry",
"sammithi akshaya": "Axis of Symmetry",
"baajyaya,bajyaya": "Dividend",
"baajakaya,bajakaya": "Divisor",
"labdiya": "Quotient / Division (Differentiation)",
"samagaami,samagami,samagaamee,samagami": "Simultaneous",
"samagaami samikarana,samagami samikarana,samagaamee samikarana,samagami samikarana": "Simultaneous Equations",
"parinaamithiya,parinamathiya": "Transform",
"artha dakawaa natha": "Undefined",
"artha dakawaa nathi padaya": "Undefined Term",
"praanthaya,pranthaya": "Interval",
"parimeya sankyaa": "Rational Numbers",
"aparimeya sankyaa": "Irrational Numbers",
"අධ්යාහෘත": "Implicit",
"anooniya,anooneeya": "Irreducible",
"saadaarana padaya": "General Term",
"abimatha,abhimatha": "Arbitrary",
"samaanupaathika,samanupaathika": "Proportional",
"prathilomeewa samaanupaathika,prathilomayen samaanupaathika": "Inversley Proportional",
"prathibadya,prathibadhya": "Conjugate",
"patha": "loci",
"arda,ardhaa": "half",
"thaneem,thanim": "Construction",
// Shapes
"bahuwasra": "Polygons",
"samanthrashraya,samanthraashraya": "Square",
"riju konaashraya,riju konashraya": "Rectangle",
"panchaasraya,panchasraya": "Pentagon",
"sadashraya,sadaashraya": "Hexagon",
"sapthaasraya": "Setpagon",
"ashtaasraya": "Octagon",
"nawaasraya": "Nonagon",
"dashaasraya": "Decagon",
"savidi": "Regular",
"samantharaashraya,samantharashraya,samaantharaashraya,samaantharashraya": "Paralellogram",
"thrapesiyama": "Trapezium",
"wikarna,vikarna": "Diagonals",
"sama chedanaya": "Intersect mid-point (eg: in a Paralellogram)",
"araya": "Radius",
"paridiya,paridhiya": "Circumference",
// Algebra
"sheshaya,sesha,shesha,ශේෂ": "Remainder",
"sheshaya pramaya,sesha pramaya,shesha pramaya": "Remainder Theorem",
"binna baaga,bina baga,binna baga,bina baaga": "Partial Fractions",
"binna baaga kadeema": "Partial Fraction Decomposition",
"shritha,sritha,shtita": "Expression",
"weejiya,wijiya": "Algebraic",
"weeja ganithaya": "Alebra",
"rekiya,rekeeya,rakiya,rakeeya": "Linear",
"wargaja": "Quadratic",
"wargaja sameekarana": "Quadratic Equations",
"gana": "Cube",
"ganaja": "Cubic",
"ganaja sameekarana": "Cubic Equations",
"maathraya,mathraya": "Degree",
"asamaanatha,asamanatha": "Inequiality",
"prathiloma": "Inverse",
"bahupada": "Polynomials",
"bahupada shritha": "Polynomial Expressions",
"sangunakaya,sang gunakaya,sang,sangunaka,sung": "Coefficient",
"sangunaka samaana kireema": "Equating Coefficients",
"warga poorna,warga purna,varga poorna,varga poorna": "Completing squares",
"warga dekaka antharaya": "Difference of two squares",
"gana dekaka antharaya": "Difference of two cubes",
"warga dekaka aikya": "Sum of two squares",
"gana dekaka aikya": "Sum of two cubes",
"maapanka,mapanka": "Modulus",
"mapanka asamaanathaa,maapanka asamaanathaa,mapanka asamanathaa,maapanka asamanathaa": "Modulus Inequalities",
"dweepada,dwipada": "Binomial / Two Terms",
"dweepada pramaya,dwipada pramaya": "Binomial Theorem",
"saadaka,sadaka": "Factor",
"saadaka kadanawa,sadaka kadanawa": "Factorize",
"saadaka pramaya,sadaka pramaya": "Factor Theorem",
"parimeya shritha": "Algebraic Fractions (eg: f(x)/g(x))",
"kramaropitha,kramaaropitha": "Factorial",
"kramaropitha,kramaaropitha,kramaropitha ankanaya,kramaaropitha ankanaya": "Factorial Notation",
"mahaa podu saadakaya,maha podu saadakaya": "Highest Common Factor (HCF)",
"gaatheeya,gaathiya,gatheeya,gathiya": "Exponential",
"naayaka padaya,nayaka padaya": "Leading Term",
"naayaka sangukanakaya": "Leading Coefficient",
"prakurthi lagu ganaka": "Natural Logarithms",
"prakaashitha shritha,prakashitha shritha": "Explicit Function",
"punaraawarthana,punarawarthana": "Recurrent / Expression with repeated factors",
// Coordinate Geometery
"sarala rekaawa": "Straight Line",
"wurtha": "Circles",
"wurthaya": "Circle",
"kandaanka,candaanka,kandaanca,kandanka": "Coordinates",
"kandaanka thalaya": "Coordinates Plane",
"jaamithiya,gaamithiya,jamithiya,jaamithiya": "Geometery",
"anthakkandaya,anthak kandaya,antakandaya,anthakkandaya,antakkandaya": "Y-intercept",
"chedanaya,chedhanaya": "Intersect",
"chedana lakshaya,chedhana lakshaya": "Point of Intersection",
"sarala rekaa": "Straight Lines",
"anukramanaya": "Gradient / Rate of Change",
"lakshaya": "Point",
"sparshakaya": "Tangent",
"samaanthara,samanthara": "Parallel",
"samachchedakaya,samachedkaya,samach chedakaya": "Bisector",
"lamba samachchedakaya,lamba samachedkaya,lamba samach chedakaya,lambha samachchedakaya,lambha samachedkaya,lambha samach chedakaya": "Bisector",
"eka laksha wana": "Lie on the same point",
"paraamithiya,paramithiya": "Parameter",
"kendrakaya": "Centroid",
"guruthwa kendraya": "Center of Gravity",
"parikendaya": "Circumcenter",
"pralambakendraya,pralambhakendraya": "Orthocenter",
"anthahkendraya,anthakendraya": "Incenter",
// Trig
"kona": "Angles",
"paada": "Side",
"sheersha,shirsha": "Point (eg: of a Triangle)",
"anshaka,angshaka,ansaka": "Degrees",
"radiyana,rediyana": "Radians",
"thrikonamithiya,thrikoonamithiya,trikonamithiya,threkonamithiya,ත්රිකෝණමිතිය": "Triginometery",
"thrikonamithika,thirkoonamithika,trikonamithika": "Trigonometeric",
"thrikonamithika sarwasama": "Trigonometeric Identities",
"sama koni thrikonaya,sama konee thrikonaya": "Equilateral Triangle",
"riju koni thrikonaya,riju konee thrikonaya": "Right angled Triangle",
"sama dweepada thrikonaya,samadweepada thrikonaya,sama dwipada thrikonaya,samadwipada thrikonaya": "Icoseles Triangle",
"wurtha paada,wurtha pada,vurtha paada,vurtha pada": "Quadrant",
"chaapaya,chapaya": "Arc",
"chaapa diga,chapa diga": "Arc Length",
"sulu konagya": "Acute Angle",
"mahaa konaya,maha konaya": "Obtuse Angle",
"dwithwa kona suthraya": "Double Angle Forumlae",
// Vectors
"daishika,dayshika,daeshika,daisika": "Vectors",
"dishaawa, disaawa": "Direction",
"kriwa rekaawa,kriya rekawa": "Line of action",
"thith gunithaya": "Dot Product",
"kathira gunithaya": "Cross Product",
"thrimaana,thrimana": "Three Dimensional",
"thrimaana thalaya,thrimana thalaya": "Three Dimensional Plane",
"ekaka daishika": "Unit Vectors",
// Calculus (general)
"awakala sameekarana": "Differential Equations",
"seema,sima": "Limits",
"saadaarana wisaduma": "General Solution",
"wyakthika wisaduma": "Particular Solution",
"abimatha niyathaya,abhimatha niyathaya": "Arbitrary Constant",
// Integration
"anukalaya,anukala": "Intergral",
"anukalanaya,අනුකලනය": "Integration",
"kotas washayen anukalanaya": "Integration by parts",
"haraskada": "slice",
"anshu maathraya": "",
"nischitha anukalaya": "Defnite Integral",
"anishchitha anukalaya": "Indefinite Integral", // අනිශ්චිත අනුකලය
// Differentiation
"awakala": "Differential",
"awalakalana,අවකලන": "Differentiation",
"sthaawara lakshaya,sthawara lakshaya": "Stationary Point",
"harawum lakshaya": "Turning Point",
"wiyuthpannaya,viyuthpannaya,wiyuth pannaya,viyuth pannaya": "Derivative",
"pramoola darma,pramula darma,pramoola dharma,pramula dharma": "First Principles",
"nathipariwarthana,nathiwarthana": "Point of Inflection",
"anantha shaakaa,anantha shakaa": "Asymptotes",
"x wishayen awakalanaya": "Differentiating with respect to x",
"අධ්යාහෘත අවකලනය": "Implicit Differentiation",
"wenas weeme shreegrathaawaya": "Rate of Change",
// Series
"shreni": "Series",
"samaanthara shreni,samanthara shreni": "Artithmetic Progressions",
"gunoththara shreni,gunothara shreni": "Geometric Progressions",
"ganithabyanaya": "Proof by Mathematical Induction",
// Complex Numbers
"sangkeerana sankyaa": "Complex Numbers",
"drawaka": "Polar",
"drawaka kandaankda": "Polar Coordinates",
"athaathwika": "Imaginary",
"athaathwika sankyaa": "Imaginary Numbers",
"sangkeerana sankyaawaka prathibadya,sangkeerana sankyaawaka prathibadhya": "Complex Conjugate",
"wisthaaraya,wistharaya": "Argument",
"pradaana wisthaaraya,pradaana wistharaya,pradana wisthaaraya,pradana wistharaya": "Principal Argument",
"maapanka wisthaara aakaaraya": "Modulus-Argument Form",
"arda sarala rekaawa": "Half (Straight) Line",
};
function search() {
const query = $("#searchInput").val().trim().toLowerCase();
const resultsTable = $("#resultsTable");
// clear
resultsTable.html("<tr><th>Sinhala Term</th><th>English Translation</th></tr>");
$.each(data, function (key, value) {
if (key.includes(query)) {
resultsTable.append(`<tr><td>${key}</td><td>${value}</td></tr>`);
}
});
}
$("#searchInput").keypress(function (e) {
search();
});
</script>
</body>
</html>