Index: trunk/extensions/wikihiero/wh_list.php |
— | — | @@ -1,10 +1,8 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | // File created by generateTables.php version 0.3.0alpha |
5 | | -// 2011/08/20 at 07:34 |
| 5 | +// 2011/08/20 at 09:31 |
6 | 6 | |
7 | | -global $wh_prefabs, $wh_files; |
8 | | - |
9 | 7 | $wh_prefabs = array( |
10 | 8 | "a&A1", |
11 | 9 | "a&b&t", |
— | — | @@ -1119,3 +1117,457 @@ |
1120 | 1118 | "Z98A" => array( 5, 15 ), |
1121 | 1119 | ); |
1122 | 1120 | |
| 1121 | + |
| 1122 | +$wh_phonemes = array( // convertion table phoneme -> gardiner code |
| 1123 | + "mSa" => "A12", |
| 1124 | + "xr" => "A15", |
| 1125 | + "Xrd" => "A17", |
| 1126 | + "sr" => "A21", |
| 1127 | + "mniw" => "A33", |
| 1128 | + "qiz" => "A38", |
| 1129 | + "iry" => "A47", |
| 1130 | + "Sps" => "A50", |
| 1131 | + "Spsi" => "A51", |
| 1132 | +/* |
| 1133 | + "x" => "J1", |
| 1134 | + "mAa" => "J11", |
| 1135 | + "gs" => "J13", |
| 1136 | + "im" => "J13", |
| 1137 | + "M" => "J15", |
| 1138 | + "sA" => "J17", |
| 1139 | + "apr" => "J20", |
| 1140 | + "wDa" => "J21", |
| 1141 | + "nD" => "J27", |
| 1142 | + "qd" => "J28", |
| 1143 | + "Xkr" => "J30", |
| 1144 | + "Hp" => "J5", |
| 1145 | + "qn" => "J8", |
| 1146 | +*/ |
| 1147 | + "x" => "Aa1", |
| 1148 | + "mAa" => "Aa11", |
| 1149 | + "gs" => "Aa13", |
| 1150 | + "im" => "Aa13", |
| 1151 | + "M" => "Aa15", |
| 1152 | + "sA" => "Aa17", |
| 1153 | + "apr" => "Aa20", |
| 1154 | + "wDa" => "Aa21", |
| 1155 | + "nD" => "Aa27", |
| 1156 | + "qd" => "Aa28", |
| 1157 | + "Xkr" => "Aa30", |
| 1158 | + "Hp" => "Aa5", |
| 1159 | + "qn" => "Aa8", |
| 1160 | + |
| 1161 | + "msi" => "B3", |
| 1162 | + "mAat" => "C10", |
| 1163 | + "HH" => "C11", |
| 1164 | + "DHwty" => "C3", |
| 1165 | + "Xnmw" => "C4", |
| 1166 | + "inpw" => "C6", |
| 1167 | + "stX" => "C7", |
| 1168 | + "mnw" => "C8", |
| 1169 | + "tp" => "D1", |
| 1170 | + "wDAt" => "D10", |
| 1171 | + "R" => "D153", |
| 1172 | + "fnD" => "D19", |
| 1173 | + "Hr" => "D2", |
| 1174 | + "r" => "D21", |
| 1175 | + "rA" => "D21", |
| 1176 | + "spt" => "D24", |
| 1177 | + "spty" => "D25", |
| 1178 | + "mnD" => "D27", |
| 1179 | + "kA" => "D28", |
| 1180 | + "Sny" => "D3", |
| 1181 | + "aHA" => "D34", |
| 1182 | + "a" => "D36", |
| 1183 | + "ir" => "D4", |
| 1184 | + "Dsr" => "D45", |
| 1185 | + "d" => "D46", |
| 1186 | + "Dba" => "D50", |
| 1187 | + "mt" => "D52", |
| 1188 | + "gH" => "D56", |
| 1189 | + "gHs" => "D56", |
| 1190 | + "rd" => "D56", |
| 1191 | + "sbq" => "D56", |
| 1192 | + "b" => "D58", |
| 1193 | + "ab" => "D59", |
| 1194 | + "wab" => "D60", |
| 1195 | + "sAH" => "D61", |
| 1196 | + "rmi" => "D9", |
| 1197 | + "zAb" => "E17", |
| 1198 | + "mAi" => "E22", |
| 1199 | + "l" => "E23", |
| 1200 | + "rw" => "E23", |
| 1201 | + "Aby" => "E24", |
| 1202 | + "wn" => "E34", |
| 1203 | + "zzmt" => "E6", |
| 1204 | + "wsr" => "F12", |
| 1205 | + "wp" => "F13", |
| 1206 | + "db" => "F16", |
| 1207 | + "Hw" => "F18", |
| 1208 | + "bH" => "F18", |
| 1209 | + "ns" => "F20", |
| 1210 | + "DrD" => "F21", |
| 1211 | + "idn" => "F21", |
| 1212 | + "msDr" => "F21", |
| 1213 | + "sDm" => "F21", |
| 1214 | + "kfA" => "F22", |
| 1215 | + "pH" => "F22", |
| 1216 | + "xpS" => "F23", |
| 1217 | + "wHm" => "F25", |
| 1218 | + "Xn" => "F26", |
| 1219 | + "sti" => "F29", |
| 1220 | + "Sd" => "F30", |
| 1221 | + "ms" => "F31", |
| 1222 | + "X" => "F32", |
| 1223 | + "sd" => "F33", |
| 1224 | + "ib" => "F34", |
| 1225 | + "nfr" => "F35", |
| 1226 | + "zmA" => "F36", |
| 1227 | + "imAx" => "F39", |
| 1228 | + "HAt" => "F4", |
| 1229 | + "Aw" => "F40", |
| 1230 | + "spr" => "F42", |
| 1231 | + "isw" => "F44", |
| 1232 | + "iwa" => "F44", |
| 1233 | + "pXr" => "F46", |
| 1234 | + "qAb" => "F46", |
| 1235 | + "SsA" => "F5", |
| 1236 | + "A" => "G1", |
| 1237 | + "mwt" => "G14", |
| 1238 | + "nbty" => "G16", |
| 1239 | + "m" => "G17", |
| 1240 | + "mm" => "G18", |
| 1241 | + "AA" => "G2", |
| 1242 | + "nH" => "G21", |
| 1243 | + "Db" => "G22", |
| 1244 | + "rxyt" => "G23", |
| 1245 | + "Ax" => "G25", |
| 1246 | + "dSr" => "G27", |
| 1247 | + "gm" => "G28", |
| 1248 | + "bA" => "G29", |
| 1249 | + "baHi" => "G32", |
| 1250 | + "aq" => "G35", |
| 1251 | + "wr" => "G36", |
| 1252 | + "nDs" => "G37", |
| 1253 | + "gb" => "G38", |
| 1254 | + "zA" => "G39", |
| 1255 | + "tyw" => "G4", |
| 1256 | + "pA" => "G40", |
| 1257 | + "xn" => "G41", |
| 1258 | + "wSA" => "G42", |
| 1259 | + "w" => "G43", |
| 1260 | + "ww" => "G44", |
| 1261 | + "mAw" => "G46", |
| 1262 | + "TA" => "G47", |
| 1263 | + "snD" => "G54", |
| 1264 | + "pq" => "H2", |
| 1265 | + "wSm" => "H2", |
| 1266 | + "pAq" => "H3", |
| 1267 | + "nr" => "H4", |
| 1268 | + "Sw" => "H6", |
| 1269 | + "aSA" => "I1", |
| 1270 | + "D" => "I10", |
| 1271 | + "DD" => "I11", |
| 1272 | + "Styw" => "I2", |
| 1273 | + "mzH" => "I3", |
| 1274 | + "sbk" => "I4", |
| 1275 | + "sAq" => "I5", |
| 1276 | + "km" => "I6", |
| 1277 | + "Hfn" => "I8", |
| 1278 | + "f" => "I9", |
| 1279 | + "in" => "K1", |
| 1280 | + "ad" => "K3", |
| 1281 | + "XA" => "K4", |
| 1282 | + "bz" => "K5", |
| 1283 | + "nSmt" => "K6", |
| 1284 | + "xpr" => "L1", |
| 1285 | + "bit" => "L2", |
| 1286 | + "srqt" => "L7", |
| 1287 | + "iAm" => "M1", |
| 1288 | + "wdn" => "M11", |
| 1289 | + "xA" => "M12", |
| 1290 | + "1000" => "M12", |
| 1291 | + "wAD" => "M13", |
| 1292 | + "HA" => "M16", |
| 1293 | + "i" => "M17", |
| 1294 | + "ii" => "M18", |
| 1295 | + "Hn" => "M2", |
| 1296 | + "sxt" => "M20", |
| 1297 | + "sm" => "M21", |
| 1298 | + "nn" => "M22A", |
| 1299 | + "sw" => "M23", |
| 1300 | + "rsw" => "M24", |
| 1301 | + "Sma" => "M26", |
| 1302 | + "nDm" => "M29", |
| 1303 | + "xt" => "M3", |
| 1304 | + "bnr" => "M30", |
| 1305 | + "bdt" => "M34", |
| 1306 | + "Dr" => "M36", |
| 1307 | + "rnp" => "M4", |
| 1308 | + "iz" => "M40", |
| 1309 | + "tr" => "M6", |
| 1310 | + "SA" => "M8", |
| 1311 | + "zSn" => "M9", |
| 1312 | + "pt" => "N1", |
| 1313 | + "Abd" => "N11", |
| 1314 | + "iaH" => "N11", |
| 1315 | + "dwA" => "N14", |
| 1316 | + "sbA" => "N14", |
| 1317 | + "dwAt" => "N15", |
| 1318 | + "tA" => "N16", |
| 1319 | + "iw" => "N18", |
| 1320 | + "wDb" => "N20", |
| 1321 | + "spAt" => "N24", |
| 1322 | + "xAst" => "N25", |
| 1323 | + "Dw" => "N26", |
| 1324 | + "Axt" => "N27", |
| 1325 | + "xa" => "N28", |
| 1326 | + "q" => "N29", |
| 1327 | + "iAt" => "N30", |
| 1328 | + "n" => "N35", |
| 1329 | + "mw" => "N35A", |
| 1330 | + "S" => "N37", |
| 1331 | + "iAdt" => "N4", |
| 1332 | + "idt" => "N4", |
| 1333 | + "Sm" => "N40", |
| 1334 | + "id" => "N41", |
| 1335 | + "hrw" => "N5", |
| 1336 | + "ra" => "N5", |
| 1337 | + "zw" => "N5", |
| 1338 | + "Hnmmt" => "N8", |
| 1339 | + "pzD" => "N9", |
| 1340 | + "pr" => "O1", |
| 1341 | + "aH" => "O11", |
| 1342 | + "wsxt" => "O15", |
| 1343 | + "kAr" => "O18", |
| 1344 | + "zH" => "O22", |
| 1345 | + "txn" => "O25", |
| 1346 | + "iwn" => "O28", |
| 1347 | + "aA" => "O29", |
| 1348 | + "zxnt" => "O30", |
| 1349 | + "z" => "O34", |
| 1350 | + "zb" => "O35", |
| 1351 | + "inb" => "O36", |
| 1352 | + "qnbt" => "O38A", |
| 1353 | + "h" => "O4", |
| 1354 | + "Szp" => "O42", |
| 1355 | + "ipt" => "O45", |
| 1356 | + "nxn" => "O47", |
| 1357 | + "niwt" => "O49", |
| 1358 | + "zp" => "O50", |
| 1359 | + "Snwt" => "O51", |
| 1360 | + "Hwt" => "O6", |
| 1361 | + "wHa" => "P4", |
| 1362 | + "TAw" => "P5", |
| 1363 | + "nfw" => "P5", |
| 1364 | + "aHa" => "P6", |
| 1365 | + "xrw" => "P8", |
| 1366 | + "st" => "Q1", |
| 1367 | + "wz" => "Q2", |
| 1368 | + "p" => "Q3", |
| 1369 | + "qrsw" => "Q6", |
| 1370 | + "xAt" => "R1", |
| 1371 | + "xAwt" => "R1", |
| 1372 | + "Dd" => "R11", |
| 1373 | + "dd" => "R11", |
| 1374 | + "imnt" => "R14", |
| 1375 | + "iAb" => "R15", |
| 1376 | + "wx" => "R16", |
| 1377 | + "xm" => "R22", |
| 1378 | + "Htp" => "R4", |
| 1379 | + "kAp" => "R5", |
| 1380 | + "kp" => "R5", |
| 1381 | + "snTr" => "R7", |
| 1382 | + "nTr" => "R8", |
| 1383 | + "nTrw" => "R8A", |
| 1384 | + "bd" => "R9", |
| 1385 | + "HDt" => "S1", |
| 1386 | + "mDH" => "S10", |
| 1387 | + "wsx" => "S11", |
| 1388 | + "nbw" => "S12", |
| 1389 | + "THn" => "S15", |
| 1390 | + "tHn" => "S15", |
| 1391 | + "mnit" => "S18", |
| 1392 | + "sDAw" => "S19", |
| 1393 | + "xtm" => "S20", |
| 1394 | + "sT" => "S22", |
| 1395 | + "dmD" => "S23", |
| 1396 | + "Tz" => "S24", |
| 1397 | + "Sndyt" => "S26", |
| 1398 | + "mnxt" => "S27", |
| 1399 | + "s" => "S29", |
| 1400 | + "N" => "S3", |
| 1401 | + "dSrt" => "S3", |
| 1402 | + "sf" => "S30", |
| 1403 | + "siA" => "S32", |
| 1404 | + "Tb" => "S33", |
| 1405 | + "anx" => "S34", |
| 1406 | + "Swt" => "S35", |
| 1407 | + "xw" => "S37", |
| 1408 | + "HqA" => "S38", |
| 1409 | + "awt" => "S39", |
| 1410 | + "wAs" => "S40", |
| 1411 | + "Dam" => "S41", |
| 1412 | + "abA" => "S42", |
| 1413 | + "sxm" => "S42", |
| 1414 | + "xrp" => "S42", |
| 1415 | + "md" => "S43", |
| 1416 | + "Ams" => "S44", |
| 1417 | + "nxxw" => "S45", |
| 1418 | + "K" => "S56", |
| 1419 | + "sxmty" => "S6", |
| 1420 | + "xprS" => "S7", |
| 1421 | + "Atf" => "S8", |
| 1422 | + "Swty" => "S9", |
| 1423 | + "pD" => "T10", |
| 1424 | + "sXr" => "T11", |
| 1425 | + "zin" => "T11", |
| 1426 | + "zwn" => "T11", |
| 1427 | + "Ai" => "T12", |
| 1428 | + "Ar" => "T12", |
| 1429 | + "rwD" => "T12", |
| 1430 | + "rwd" => "T12", |
| 1431 | + "rs" => "T13", |
| 1432 | + "qmA" => "T14", |
| 1433 | + "wrrt" => "T17", |
| 1434 | + "Sms" => "T18", |
| 1435 | + "qs" => "T19", |
| 1436 | + "wa" => "T21", |
| 1437 | + "sn" => "T22", |
| 1438 | + "iH" => "T24", |
| 1439 | + "DbA" => "T25", |
| 1440 | + "Xr" => "T28", |
| 1441 | + "nmt" => "T29", |
| 1442 | + "HD" => "T3", |
| 1443 | + "sSm" => "T31", |
| 1444 | + "nm" => "T34", |
| 1445 | + "HDD" => "T6", |
| 1446 | + "pd" => "T9", |
| 1447 | + "mA" => "U1", |
| 1448 | + "it" => "U10", |
| 1449 | + "HqAt" => "U11", |
| 1450 | + "Sna" => "U13", |
| 1451 | + "hb" => "U13", |
| 1452 | + "tm" => "U15", |
| 1453 | + "biA" => "U16", |
| 1454 | + "grg" => "U17", |
| 1455 | + "stp" => "U21", |
| 1456 | + "mnx" => "U22", |
| 1457 | + "Ab" => "U23", |
| 1458 | + "Hmt" => "U24", |
| 1459 | + "wbA" => "U26", |
| 1460 | + "DA" => "U28", |
| 1461 | + "rtH" => "U31", |
| 1462 | + "zmn" => "U32", |
| 1463 | + "ti" => "U33", |
| 1464 | + "xsf" => "U34", |
| 1465 | + "Hm" => "U36", |
| 1466 | + "mxAt" => "U38", |
| 1467 | + "mr" => "U6", |
| 1468 | + "100" => "V1", |
| 1469 | + "arq" => "V12", |
| 1470 | + "T" => "V13", |
| 1471 | + "iTi" => "V15", |
| 1472 | + "TmA" => "V19", |
| 1473 | + "XAr" => "V19", |
| 1474 | + "mDt" => "V19", |
| 1475 | + "sTA" => "V2", |
| 1476 | + "10" => "V20", |
| 1477 | + "mD" => "V20", |
| 1478 | + "mH" => "V22", |
| 1479 | + "wD" => "V24", |
| 1480 | + "aD" => "V26", |
| 1481 | + "H" => "V28", |
| 1482 | + "sk" => "V29", |
| 1483 | + "wAH" => "V29", |
| 1484 | + "sTAw" => "V3", |
| 1485 | + "nb" => "V30", |
| 1486 | + "k" => "V31", |
| 1487 | + "msn" => "V32", |
| 1488 | + "sSr" => "V33", |
| 1489 | + "idr" => "V37", |
| 1490 | + "wA" => "V4", |
| 1491 | + "snT" => "V5", |
| 1492 | + "sS" => "V6", |
| 1493 | + "Sn" => "V7", |
| 1494 | + "iab" => "W10", |
| 1495 | + "g" => "W11", |
| 1496 | + "nzt" => "W11", |
| 1497 | + "Hz" => "W14", |
| 1498 | + "xnt" => "W17", |
| 1499 | + "mi" => "W19", |
| 1500 | + "bAs" => "W2", |
| 1501 | + "Hnqt" => "W22", |
| 1502 | + "nw" => "W24", |
| 1503 | + "ini" => "W25", |
| 1504 | + "Hb" => "W3", |
| 1505 | + "Xnm" => "W9", |
| 1506 | + "t" => "X1", |
| 1507 | + "di" => "X8", |
| 1508 | + "rdi" => "X8", |
| 1509 | + "mDAt" => "Y1", |
| 1510 | + "mnhd" => "Y3", |
| 1511 | + "zS" => "Y3", |
| 1512 | + "mn" => "Y5", |
| 1513 | + "ibA" => "Y6", |
| 1514 | + "zSSt" => "Y8", |
| 1515 | + "imi" => "Z11", |
| 1516 | + "y" => "Z4", |
| 1517 | + "W" => "Z7", |
| 1518 | + |
| 1519 | + "<1" => "Ca1", // cartouche |
| 1520 | + "2>" => "Ca2", |
| 1521 | + "<2" => "Ca2a", |
| 1522 | + "1>" => "Ca1a", |
| 1523 | + "<0" => "Ca1", |
| 1524 | + "0>" => "Ca2", |
| 1525 | + "<h1" => "Cah1", // horus |
| 1526 | + "h1>" => "Cah1a", |
| 1527 | + "<h2" => "Cah2", |
| 1528 | + "h2>" => "Cah2a", |
| 1529 | + "<h3" => "Cah3", |
| 1530 | + "h3>" => "Cah3a", |
| 1531 | + "<h0" => "Cah1", |
| 1532 | + "h0>" => "Cah1a", |
| 1533 | + "<" => "Ca1", // cartouche |
| 1534 | + ">" => "Ca2", |
| 1535 | + "[&" => "Ba16", |
| 1536 | + "&]" => "Ba16", |
| 1537 | + "[{" => "Ba17", |
| 1538 | + "}]" => "Ba17a", |
| 1539 | + "[[" => "Ba15", |
| 1540 | + "]]" => "Ba15a", |
| 1541 | + "[\"" => "", |
| 1542 | + "\"]" => "", |
| 1543 | + "['" => "", |
| 1544 | + "']" => "", |
| 1545 | +); |
| 1546 | + |
| 1547 | +// convertion table for text mode |
| 1548 | +$wh_text_conv = array( |
| 1549 | + "-" => " ", |
| 1550 | + ":" => "-", |
| 1551 | + "*" => "-", |
| 1552 | + "!" => "<br />", |
| 1553 | + "." => "", |
| 1554 | + "=" => "", |
| 1555 | + "(" => "", |
| 1556 | + ")" => "", |
| 1557 | + "<1" => "(", |
| 1558 | + "2>" => ")|", |
| 1559 | + "<2" => "|(", |
| 1560 | + "1>" => ")", |
| 1561 | + "<0" => "(", |
| 1562 | + "0>" => ")|", |
| 1563 | + "<h1" => "[", // horus |
| 1564 | + "h1>" => "]", |
| 1565 | + "<h2" => "[", |
| 1566 | + "h2>" => "]", |
| 1567 | + "<h3" => "[", |
| 1568 | + "h3>" => "]", |
| 1569 | + "<h0" => "[", |
| 1570 | + "h0>" => "]", |
| 1571 | + "<" => "(", // cartouche |
| 1572 | + ">" => ")|", |
| 1573 | +); |
| 1574 | + |
Index: trunk/extensions/wikihiero/generateTables.php |
— | — | @@ -37,6 +37,8 @@ |
38 | 38 | // if ( !MWInit::classExists( 'WikiHiero' ) ) { |
39 | 39 | // $this->error( "Please install WikiHiero first!\n", true ); |
40 | 40 | // } |
| 41 | + |
| 42 | + $this->moreTables = str_replace( "\r", '', $this->moreTables ); |
41 | 43 | } |
42 | 44 | |
43 | 45 | public function execute() { |
— | — | @@ -70,11 +72,515 @@ |
71 | 73 | fwrite( $file, "<?php\n\n" ); |
72 | 74 | fwrite( $file, '// File created by generateTables.php version ' . WikiHiero::VERSION . "\n" ); |
73 | 75 | fwrite( $file, '// ' . date( 'Y/m/d \a\t H:i' ) . "\n\n" ); |
74 | | - fwrite( $file, "global \$wh_prefabs, \$wh_files;\n\n" ); |
75 | | - fwrite( $file, "$wh_prefabs\n\n" ); |
76 | | - fwrite( $file, "$wh_files\n\n" ); |
| 76 | + fwrite( $file, "$wh_prefabs\n\n$wh_files\n\n{$this->moreTables}\n" ); |
77 | 77 | fclose( $file ); |
78 | 78 | } |
| 79 | + |
| 80 | + var $moreTables = ' |
| 81 | +$wh_phonemes = array( // convertion table phoneme -> gardiner code |
| 82 | + "mSa" => "A12", |
| 83 | + "xr" => "A15", |
| 84 | + "Xrd" => "A17", |
| 85 | + "sr" => "A21", |
| 86 | + "mniw" => "A33", |
| 87 | + "qiz" => "A38", |
| 88 | + "iry" => "A47", |
| 89 | + "Sps" => "A50", |
| 90 | + "Spsi" => "A51", |
| 91 | +/* |
| 92 | + "x" => "J1", |
| 93 | + "mAa" => "J11", |
| 94 | + "gs" => "J13", |
| 95 | + "im" => "J13", |
| 96 | + "M" => "J15", |
| 97 | + "sA" => "J17", |
| 98 | + "apr" => "J20", |
| 99 | + "wDa" => "J21", |
| 100 | + "nD" => "J27", |
| 101 | + "qd" => "J28", |
| 102 | + "Xkr" => "J30", |
| 103 | + "Hp" => "J5", |
| 104 | + "qn" => "J8", |
| 105 | +*/ |
| 106 | + "x" => "Aa1", |
| 107 | + "mAa" => "Aa11", |
| 108 | + "gs" => "Aa13", |
| 109 | + "im" => "Aa13", |
| 110 | + "M" => "Aa15", |
| 111 | + "sA" => "Aa17", |
| 112 | + "apr" => "Aa20", |
| 113 | + "wDa" => "Aa21", |
| 114 | + "nD" => "Aa27", |
| 115 | + "qd" => "Aa28", |
| 116 | + "Xkr" => "Aa30", |
| 117 | + "Hp" => "Aa5", |
| 118 | + "qn" => "Aa8", |
| 119 | + |
| 120 | + "msi" => "B3", |
| 121 | + "mAat" => "C10", |
| 122 | + "HH" => "C11", |
| 123 | + "DHwty" => "C3", |
| 124 | + "Xnmw" => "C4", |
| 125 | + "inpw" => "C6", |
| 126 | + "stX" => "C7", |
| 127 | + "mnw" => "C8", |
| 128 | + "tp" => "D1", |
| 129 | + "wDAt" => "D10", |
| 130 | + "R" => "D153", |
| 131 | + "fnD" => "D19", |
| 132 | + "Hr" => "D2", |
| 133 | + "r" => "D21", |
| 134 | + "rA" => "D21", |
| 135 | + "spt" => "D24", |
| 136 | + "spty" => "D25", |
| 137 | + "mnD" => "D27", |
| 138 | + "kA" => "D28", |
| 139 | + "Sny" => "D3", |
| 140 | + "aHA" => "D34", |
| 141 | + "a" => "D36", |
| 142 | + "ir" => "D4", |
| 143 | + "Dsr" => "D45", |
| 144 | + "d" => "D46", |
| 145 | + "Dba" => "D50", |
| 146 | + "mt" => "D52", |
| 147 | + "gH" => "D56", |
| 148 | + "gHs" => "D56", |
| 149 | + "rd" => "D56", |
| 150 | + "sbq" => "D56", |
| 151 | + "b" => "D58", |
| 152 | + "ab" => "D59", |
| 153 | + "wab" => "D60", |
| 154 | + "sAH" => "D61", |
| 155 | + "rmi" => "D9", |
| 156 | + "zAb" => "E17", |
| 157 | + "mAi" => "E22", |
| 158 | + "l" => "E23", |
| 159 | + "rw" => "E23", |
| 160 | + "Aby" => "E24", |
| 161 | + "wn" => "E34", |
| 162 | + "zzmt" => "E6", |
| 163 | + "wsr" => "F12", |
| 164 | + "wp" => "F13", |
| 165 | + "db" => "F16", |
| 166 | + "Hw" => "F18", |
| 167 | + "bH" => "F18", |
| 168 | + "ns" => "F20", |
| 169 | + "DrD" => "F21", |
| 170 | + "idn" => "F21", |
| 171 | + "msDr" => "F21", |
| 172 | + "sDm" => "F21", |
| 173 | + "kfA" => "F22", |
| 174 | + "pH" => "F22", |
| 175 | + "xpS" => "F23", |
| 176 | + "wHm" => "F25", |
| 177 | + "Xn" => "F26", |
| 178 | + "sti" => "F29", |
| 179 | + "Sd" => "F30", |
| 180 | + "ms" => "F31", |
| 181 | + "X" => "F32", |
| 182 | + "sd" => "F33", |
| 183 | + "ib" => "F34", |
| 184 | + "nfr" => "F35", |
| 185 | + "zmA" => "F36", |
| 186 | + "imAx" => "F39", |
| 187 | + "HAt" => "F4", |
| 188 | + "Aw" => "F40", |
| 189 | + "spr" => "F42", |
| 190 | + "isw" => "F44", |
| 191 | + "iwa" => "F44", |
| 192 | + "pXr" => "F46", |
| 193 | + "qAb" => "F46", |
| 194 | + "SsA" => "F5", |
| 195 | + "A" => "G1", |
| 196 | + "mwt" => "G14", |
| 197 | + "nbty" => "G16", |
| 198 | + "m" => "G17", |
| 199 | + "mm" => "G18", |
| 200 | + "AA" => "G2", |
| 201 | + "nH" => "G21", |
| 202 | + "Db" => "G22", |
| 203 | + "rxyt" => "G23", |
| 204 | + "Ax" => "G25", |
| 205 | + "dSr" => "G27", |
| 206 | + "gm" => "G28", |
| 207 | + "bA" => "G29", |
| 208 | + "baHi" => "G32", |
| 209 | + "aq" => "G35", |
| 210 | + "wr" => "G36", |
| 211 | + "nDs" => "G37", |
| 212 | + "gb" => "G38", |
| 213 | + "zA" => "G39", |
| 214 | + "tyw" => "G4", |
| 215 | + "pA" => "G40", |
| 216 | + "xn" => "G41", |
| 217 | + "wSA" => "G42", |
| 218 | + "w" => "G43", |
| 219 | + "ww" => "G44", |
| 220 | + "mAw" => "G46", |
| 221 | + "TA" => "G47", |
| 222 | + "snD" => "G54", |
| 223 | + "pq" => "H2", |
| 224 | + "wSm" => "H2", |
| 225 | + "pAq" => "H3", |
| 226 | + "nr" => "H4", |
| 227 | + "Sw" => "H6", |
| 228 | + "aSA" => "I1", |
| 229 | + "D" => "I10", |
| 230 | + "DD" => "I11", |
| 231 | + "Styw" => "I2", |
| 232 | + "mzH" => "I3", |
| 233 | + "sbk" => "I4", |
| 234 | + "sAq" => "I5", |
| 235 | + "km" => "I6", |
| 236 | + "Hfn" => "I8", |
| 237 | + "f" => "I9", |
| 238 | + "in" => "K1", |
| 239 | + "ad" => "K3", |
| 240 | + "XA" => "K4", |
| 241 | + "bz" => "K5", |
| 242 | + "nSmt" => "K6", |
| 243 | + "xpr" => "L1", |
| 244 | + "bit" => "L2", |
| 245 | + "srqt" => "L7", |
| 246 | + "iAm" => "M1", |
| 247 | + "wdn" => "M11", |
| 248 | + "xA" => "M12", |
| 249 | + "1000" => "M12", |
| 250 | + "wAD" => "M13", |
| 251 | + "HA" => "M16", |
| 252 | + "i" => "M17", |
| 253 | + "ii" => "M18", |
| 254 | + "Hn" => "M2", |
| 255 | + "sxt" => "M20", |
| 256 | + "sm" => "M21", |
| 257 | + "nn" => "M22A", |
| 258 | + "sw" => "M23", |
| 259 | + "rsw" => "M24", |
| 260 | + "Sma" => "M26", |
| 261 | + "nDm" => "M29", |
| 262 | + "xt" => "M3", |
| 263 | + "bnr" => "M30", |
| 264 | + "bdt" => "M34", |
| 265 | + "Dr" => "M36", |
| 266 | + "rnp" => "M4", |
| 267 | + "iz" => "M40", |
| 268 | + "tr" => "M6", |
| 269 | + "SA" => "M8", |
| 270 | + "zSn" => "M9", |
| 271 | + "pt" => "N1", |
| 272 | + "Abd" => "N11", |
| 273 | + "iaH" => "N11", |
| 274 | + "dwA" => "N14", |
| 275 | + "sbA" => "N14", |
| 276 | + "dwAt" => "N15", |
| 277 | + "tA" => "N16", |
| 278 | + "iw" => "N18", |
| 279 | + "wDb" => "N20", |
| 280 | + "spAt" => "N24", |
| 281 | + "xAst" => "N25", |
| 282 | + "Dw" => "N26", |
| 283 | + "Axt" => "N27", |
| 284 | + "xa" => "N28", |
| 285 | + "q" => "N29", |
| 286 | + "iAt" => "N30", |
| 287 | + "n" => "N35", |
| 288 | + "mw" => "N35A", |
| 289 | + "S" => "N37", |
| 290 | + "iAdt" => "N4", |
| 291 | + "idt" => "N4", |
| 292 | + "Sm" => "N40", |
| 293 | + "id" => "N41", |
| 294 | + "hrw" => "N5", |
| 295 | + "ra" => "N5", |
| 296 | + "zw" => "N5", |
| 297 | + "Hnmmt" => "N8", |
| 298 | + "pzD" => "N9", |
| 299 | + "pr" => "O1", |
| 300 | + "aH" => "O11", |
| 301 | + "wsxt" => "O15", |
| 302 | + "kAr" => "O18", |
| 303 | + "zH" => "O22", |
| 304 | + "txn" => "O25", |
| 305 | + "iwn" => "O28", |
| 306 | + "aA" => "O29", |
| 307 | + "zxnt" => "O30", |
| 308 | + "z" => "O34", |
| 309 | + "zb" => "O35", |
| 310 | + "inb" => "O36", |
| 311 | + "qnbt" => "O38A", |
| 312 | + "h" => "O4", |
| 313 | + "Szp" => "O42", |
| 314 | + "ipt" => "O45", |
| 315 | + "nxn" => "O47", |
| 316 | + "niwt" => "O49", |
| 317 | + "zp" => "O50", |
| 318 | + "Snwt" => "O51", |
| 319 | + "Hwt" => "O6", |
| 320 | + "wHa" => "P4", |
| 321 | + "TAw" => "P5", |
| 322 | + "nfw" => "P5", |
| 323 | + "aHa" => "P6", |
| 324 | + "xrw" => "P8", |
| 325 | + "st" => "Q1", |
| 326 | + "wz" => "Q2", |
| 327 | + "p" => "Q3", |
| 328 | + "qrsw" => "Q6", |
| 329 | + "xAt" => "R1", |
| 330 | + "xAwt" => "R1", |
| 331 | + "Dd" => "R11", |
| 332 | + "dd" => "R11", |
| 333 | + "imnt" => "R14", |
| 334 | + "iAb" => "R15", |
| 335 | + "wx" => "R16", |
| 336 | + "xm" => "R22", |
| 337 | + "Htp" => "R4", |
| 338 | + "kAp" => "R5", |
| 339 | + "kp" => "R5", |
| 340 | + "snTr" => "R7", |
| 341 | + "nTr" => "R8", |
| 342 | + "nTrw" => "R8A", |
| 343 | + "bd" => "R9", |
| 344 | + "HDt" => "S1", |
| 345 | + "mDH" => "S10", |
| 346 | + "wsx" => "S11", |
| 347 | + "nbw" => "S12", |
| 348 | + "THn" => "S15", |
| 349 | + "tHn" => "S15", |
| 350 | + "mnit" => "S18", |
| 351 | + "sDAw" => "S19", |
| 352 | + "xtm" => "S20", |
| 353 | + "sT" => "S22", |
| 354 | + "dmD" => "S23", |
| 355 | + "Tz" => "S24", |
| 356 | + "Sndyt" => "S26", |
| 357 | + "mnxt" => "S27", |
| 358 | + "s" => "S29", |
| 359 | + "N" => "S3", |
| 360 | + "dSrt" => "S3", |
| 361 | + "sf" => "S30", |
| 362 | + "siA" => "S32", |
| 363 | + "Tb" => "S33", |
| 364 | + "anx" => "S34", |
| 365 | + "Swt" => "S35", |
| 366 | + "xw" => "S37", |
| 367 | + "HqA" => "S38", |
| 368 | + "awt" => "S39", |
| 369 | + "wAs" => "S40", |
| 370 | + "Dam" => "S41", |
| 371 | + "abA" => "S42", |
| 372 | + "sxm" => "S42", |
| 373 | + "xrp" => "S42", |
| 374 | + "md" => "S43", |
| 375 | + "Ams" => "S44", |
| 376 | + "nxxw" => "S45", |
| 377 | + "K" => "S56", |
| 378 | + "sxmty" => "S6", |
| 379 | + "xprS" => "S7", |
| 380 | + "Atf" => "S8", |
| 381 | + "Swty" => "S9", |
| 382 | + "pD" => "T10", |
| 383 | + "sXr" => "T11", |
| 384 | + "zin" => "T11", |
| 385 | + "zwn" => "T11", |
| 386 | + "Ai" => "T12", |
| 387 | + "Ar" => "T12", |
| 388 | + "rwD" => "T12", |
| 389 | + "rwd" => "T12", |
| 390 | + "rs" => "T13", |
| 391 | + "qmA" => "T14", |
| 392 | + "wrrt" => "T17", |
| 393 | + "Sms" => "T18", |
| 394 | + "qs" => "T19", |
| 395 | + "wa" => "T21", |
| 396 | + "sn" => "T22", |
| 397 | + "iH" => "T24", |
| 398 | + "DbA" => "T25", |
| 399 | + "Xr" => "T28", |
| 400 | + "nmt" => "T29", |
| 401 | + "HD" => "T3", |
| 402 | + "sSm" => "T31", |
| 403 | + "nm" => "T34", |
| 404 | + "HDD" => "T6", |
| 405 | + "pd" => "T9", |
| 406 | + "mA" => "U1", |
| 407 | + "it" => "U10", |
| 408 | + "HqAt" => "U11", |
| 409 | + "Sna" => "U13", |
| 410 | + "hb" => "U13", |
| 411 | + "tm" => "U15", |
| 412 | + "biA" => "U16", |
| 413 | + "grg" => "U17", |
| 414 | + "stp" => "U21", |
| 415 | + "mnx" => "U22", |
| 416 | + "Ab" => "U23", |
| 417 | + "Hmt" => "U24", |
| 418 | + "wbA" => "U26", |
| 419 | + "DA" => "U28", |
| 420 | + "rtH" => "U31", |
| 421 | + "zmn" => "U32", |
| 422 | + "ti" => "U33", |
| 423 | + "xsf" => "U34", |
| 424 | + "Hm" => "U36", |
| 425 | + "mxAt" => "U38", |
| 426 | + "mr" => "U6", |
| 427 | + "100" => "V1", |
| 428 | + "arq" => "V12", |
| 429 | + "T" => "V13", |
| 430 | + "iTi" => "V15", |
| 431 | + "TmA" => "V19", |
| 432 | + "XAr" => "V19", |
| 433 | + "mDt" => "V19", |
| 434 | + "sTA" => "V2", |
| 435 | + "10" => "V20", |
| 436 | + "mD" => "V20", |
| 437 | + "mH" => "V22", |
| 438 | + "wD" => "V24", |
| 439 | + "aD" => "V26", |
| 440 | + "H" => "V28", |
| 441 | + "sk" => "V29", |
| 442 | + "wAH" => "V29", |
| 443 | + "sTAw" => "V3", |
| 444 | + "nb" => "V30", |
| 445 | + "k" => "V31", |
| 446 | + "msn" => "V32", |
| 447 | + "sSr" => "V33", |
| 448 | + "idr" => "V37", |
| 449 | + "wA" => "V4", |
| 450 | + "snT" => "V5", |
| 451 | + "sS" => "V6", |
| 452 | + "Sn" => "V7", |
| 453 | + "iab" => "W10", |
| 454 | + "g" => "W11", |
| 455 | + "nzt" => "W11", |
| 456 | + "Hz" => "W14", |
| 457 | + "xnt" => "W17", |
| 458 | + "mi" => "W19", |
| 459 | + "bAs" => "W2", |
| 460 | + "Hnqt" => "W22", |
| 461 | + "nw" => "W24", |
| 462 | + "ini" => "W25", |
| 463 | + "Hb" => "W3", |
| 464 | + "Xnm" => "W9", |
| 465 | + "t" => "X1", |
| 466 | + "di" => "X8", |
| 467 | + "rdi" => "X8", |
| 468 | + "mDAt" => "Y1", |
| 469 | + "mnhd" => "Y3", |
| 470 | + "zS" => "Y3", |
| 471 | + "mn" => "Y5", |
| 472 | + "ibA" => "Y6", |
| 473 | + "zSSt" => "Y8", |
| 474 | + "imi" => "Z11", |
| 475 | + "y" => "Z4", |
| 476 | + "W" => "Z7", |
| 477 | + |
| 478 | + "<1" => "Ca1", // cartouche |
| 479 | + "2>" => "Ca2", |
| 480 | + "<2" => "Ca2a", |
| 481 | + "1>" => "Ca1a", |
| 482 | + "<0" => "Ca1", |
| 483 | + "0>" => "Ca2", |
| 484 | + "<h1" => "Cah1", // horus |
| 485 | + "h1>" => "Cah1a", |
| 486 | + "<h2" => "Cah2", |
| 487 | + "h2>" => "Cah2a", |
| 488 | + "<h3" => "Cah3", |
| 489 | + "h3>" => "Cah3a", |
| 490 | + "<h0" => "Cah1", |
| 491 | + "h0>" => "Cah1a", |
| 492 | + "<" => "Ca1", // cartouche |
| 493 | + ">" => "Ca2", |
| 494 | + "[&" => "Ba16", |
| 495 | + "&]" => "Ba16", |
| 496 | + "[{" => "Ba17", |
| 497 | + "}]" => "Ba17a", |
| 498 | + "[[" => "Ba15", |
| 499 | + "]]" => "Ba15a", |
| 500 | + "[\"" => "", |
| 501 | + "\"]" => "", |
| 502 | + "[\'" => "", |
| 503 | + "\']" => "", |
| 504 | +); |
| 505 | + |
| 506 | +// convertion table for text mode |
| 507 | +$wh_text_conv = array( |
| 508 | + "-" => " ", |
| 509 | + ":" => "-", |
| 510 | + "*" => "-", |
| 511 | + "!" => "<br />", |
| 512 | + "." => "", |
| 513 | + "=" => "", |
| 514 | + "(" => "", |
| 515 | + ")" => "", |
| 516 | + "<1" => "(", |
| 517 | + "2>" => ")|", |
| 518 | + "<2" => "|(", |
| 519 | + "1>" => ")", |
| 520 | + "<0" => "(", |
| 521 | + "0>" => ")|", |
| 522 | + "<h1" => "[", // horus |
| 523 | + "h1>" => "]", |
| 524 | + "<h2" => "[", |
| 525 | + "h2>" => "]", |
| 526 | + "<h3" => "[", |
| 527 | + "h3>" => "]", |
| 528 | + "<h0" => "[", |
| 529 | + "h0>" => "]", |
| 530 | + "<" => "(", // cartouche |
| 531 | + ">" => ")|", |
| 532 | +); |
| 533 | +'; |
| 534 | + |
| 535 | +/* not used yet |
| 536 | +$wh_syntax = array( |
| 537 | + "-", //block sepatator |
| 538 | + ":", //supperposition |
| 539 | + "*", //juxtaposition |
| 540 | + "(", //open bracket |
| 541 | + ")", //close bracket |
| 542 | + "!!", //end of text |
| 543 | + "!", //end of line |
| 544 | + "..", //blank caracter |
| 545 | + ".", //half-size blank caracter |
| 546 | + "$", //color |
| 547 | + "#", //shade |
| 548 | + "[&", //select |
| 549 | + "&]", |
| 550 | + "[{", |
| 551 | + "}]", |
| 552 | + "[[", |
| 553 | + "]]", |
| 554 | + "[\"", |
| 555 | + "\"]", |
| 556 | + "['", |
| 557 | + "']", |
| 558 | + "<", //cartouche |
| 559 | + ">", |
| 560 | + "<1", |
| 561 | + "2>", |
| 562 | + "<2", |
| 563 | + "1>", |
| 564 | + "<0", |
| 565 | + "0>", |
| 566 | + "<h1", //horus |
| 567 | + "h1>", |
| 568 | + "<h2", |
| 569 | + "h2>", |
| 570 | + "<h3", |
| 571 | + "h3>", |
| 572 | + "<h0", |
| 573 | + "h0>", |
| 574 | + "++", //comment |
| 575 | + "+s", //hieroglyph |
| 576 | + "+t", //transcription |
| 577 | + "+l", //latin-normal |
| 578 | + "+i", //latin-italic |
| 579 | + "+g", //latin-bold (gras) |
| 580 | + "+b", //latin-bold |
| 581 | + "+c", |
| 582 | +); |
| 583 | +*/ |
| 584 | + |
79 | 585 | } |
80 | 586 | |
81 | 587 | $maintClass = "GenerateWikiHieroTables"; |
Index: trunk/extensions/wikihiero/wikihiero.body.php |
— | — | @@ -1,38 +1,35 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -////////////////////////////////////////////////////////////////////////// |
5 | | -// |
6 | | -// WikiHiero - A PHP convert from text using "Manual for the encoding of |
7 | | -// hieroglyphic texts for computer input" syntax to HTML entities (table and |
8 | | -// images). |
9 | | -// |
10 | | -// Copyright (C) 2004 Guillaume Blanchard (Aoineko) |
11 | | -// |
12 | | -// This program is free software; you can redistribute it and/or |
13 | | -// modify it under the terms of the GNU General Public License |
14 | | -// as published by the Free Software Foundation; either version 2 |
15 | | -// of the License, or any later version. |
16 | | -// |
17 | | -// This program is distributed in the hope that it will be useful, |
18 | | -// but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 | | -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20 | | -// GNU General Public License for more details. |
21 | | -// |
22 | | -// You should have received a copy of the GNU General Public License |
23 | | -// along with this program; if not, write to the Free Software |
24 | | -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
25 | | -// |
26 | | -////////////////////////////////////////////////////////////////////////// |
| 4 | +/** |
| 5 | + * WikiHiero - A PHP convert from text using "Manual for the encoding of |
| 6 | + * hieroglyphic texts for computer input" syntax to HTML entities (table and |
| 7 | + * images). |
| 8 | + * |
| 9 | + * Copyright (C) 2004 Guillaume Blanchard (Aoineko) |
| 10 | + * |
| 11 | + * This program is free software; you can redistribute it and/or modify |
| 12 | + * it under the terms of the GNU General Public License as published by |
| 13 | + * the Free Software Foundation; either version 2 of the License, or |
| 14 | + * (at your option) any later version. |
| 15 | + * |
| 16 | + * This program is distributed in the hope that it will be useful, |
| 17 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | + * GNU General Public License for more details. |
| 20 | + * |
| 21 | + * You should have received a copy of the GNU General Public License along |
| 22 | + * with this program; if not, write to the Free Software Foundation, Inc., |
| 23 | + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 24 | + * http://www.gnu.org/copyleft/gpl.html |
| 25 | + */ |
27 | 26 | |
28 | 27 | if ( !defined( 'MEDIAWIKI' ) ) { |
29 | 28 | die( 'Not an entry point' ); |
30 | 29 | } |
31 | 30 | |
32 | | -// ======================================================================== |
33 | | -// I N C L U D E S |
| 31 | +global $wh_phonemes, $wh_prefabs, $wh_files, $wh_phonemes, $wh_text_conv; |
34 | 32 | include( dirname( __FILE__ ) . '/wh_list.php' ); |
35 | 33 | |
36 | | -// ======================================================================== |
37 | 34 | // D E F I N E S |
38 | 35 | define( "WH_TABLE_S", '<table class="mw-hiero-table">' ); |
39 | 36 | define( "WH_TABLE_E", '</table>' ); |
— | — | @@ -70,6 +67,7 @@ |
71 | 68 | private $scale = 100; |
72 | 69 | |
73 | 70 | public function __construct( $scale = WH_SCALE_DEFAULT ) { |
| 71 | + $this->moreTables = str_replace( "\r", '', $this->moreTables ); |
74 | 72 | } |
75 | 73 | |
76 | 74 | /** |
— | — | @@ -203,13 +201,13 @@ |
204 | 202 | return ( WH_HEIGHT - $margin ) * $this->scale / 100; |
205 | 203 | } |
206 | 204 | |
207 | | - // ------------------------------------------------------------------------ |
208 | | - // WikiHieroText - Render hieroglyph text in text mode |
209 | | - // ------------------------------------------------------------------------ |
210 | | - // hiero << text to convert |
211 | | - // line << use line [true|false] (def=false) |
212 | | - // return >> string with converted code |
213 | | - // ------------------------------------------------------------------------ |
| 205 | + /** |
| 206 | + * Render hieroglyph text in text mode |
| 207 | + * |
| 208 | + * @param $hiero string: text to convert |
| 209 | + * @param $line bool: use line (default = false) |
| 210 | + * @return string: converted code |
| 211 | + */ |
214 | 212 | public function renderText( $hiero, $line = false ) { |
215 | 213 | global $wh_text_conv; |
216 | 214 | |
— | — | @@ -234,14 +232,14 @@ |
235 | 233 | return $html; |
236 | 234 | } |
237 | 235 | |
238 | | - // ------------------------------------------------------------------------ |
239 | | - // WikiHiero - Render hieroglyph text |
240 | | - // ------------------------------------------------------------------------ |
241 | | - // hiero << text to convert |
242 | | - // scale << global scale in percentage (def=100%) |
243 | | - // line << use line [true|false] (def=false) |
244 | | - // return >> string with converted code |
245 | | - // ------------------------------------------------------------------------ |
| 236 | + /** |
| 237 | + * Render hieroglyph text |
| 238 | + * |
| 239 | + * @param $hiero string: text to convert |
| 240 | + * @param $scale int: global scale in percentage (default = 100%) |
| 241 | + * @param $line bool: use line (default = false) |
| 242 | + * @return string: converted code |
| 243 | + */ |
246 | 244 | public function renderHtml( $hiero, $scale = WH_SCALE_DEFAULT, $line = false ) { |
247 | 245 | global $wh_prefabs; |
248 | 246 | global $wh_files; |
— | — | @@ -471,510 +469,3 @@ |
472 | 470 | return substr( $file, strlen( WH_IMG_PRE ), -( 1 + strlen( self::IMG_EXT ) ) ); |
473 | 471 | } |
474 | 472 | } |
475 | | - |
476 | | -// ======================================================================== |
477 | | -// G L O B A L S |
478 | | -global $wh_phonemes, $wh_text_conv; |
479 | | - |
480 | | -$wh_phonemes = array( // convertion table phoneme -> gardiner code |
481 | | - "mSa" => "A12", |
482 | | - "xr" => "A15", |
483 | | - "Xrd" => "A17", |
484 | | - "sr" => "A21", |
485 | | - "mniw" => "A33", |
486 | | - "qiz" => "A38", |
487 | | - "iry" => "A47", |
488 | | - "Sps" => "A50", |
489 | | - "Spsi" => "A51", |
490 | | -/* |
491 | | - "x" => "J1", |
492 | | - "mAa" => "J11", |
493 | | - "gs" => "J13", |
494 | | - "im" => "J13", |
495 | | - "M" => "J15", |
496 | | - "sA" => "J17", |
497 | | - "apr" => "J20", |
498 | | - "wDa" => "J21", |
499 | | - "nD" => "J27", |
500 | | - "qd" => "J28", |
501 | | - "Xkr" => "J30", |
502 | | - "Hp" => "J5", |
503 | | - "qn" => "J8", |
504 | | -*/ |
505 | | - "x" => "Aa1", |
506 | | - "mAa" => "Aa11", |
507 | | - "gs" => "Aa13", |
508 | | - "im" => "Aa13", |
509 | | - "M" => "Aa15", |
510 | | - "sA" => "Aa17", |
511 | | - "apr" => "Aa20", |
512 | | - "wDa" => "Aa21", |
513 | | - "nD" => "Aa27", |
514 | | - "qd" => "Aa28", |
515 | | - "Xkr" => "Aa30", |
516 | | - "Hp" => "Aa5", |
517 | | - "qn" => "Aa8", |
518 | | - |
519 | | - "msi" => "B3", |
520 | | - "mAat" => "C10", |
521 | | - "HH" => "C11", |
522 | | - "DHwty" => "C3", |
523 | | - "Xnmw" => "C4", |
524 | | - "inpw" => "C6", |
525 | | - "stX" => "C7", |
526 | | - "mnw" => "C8", |
527 | | - "tp" => "D1", |
528 | | - "wDAt" => "D10", |
529 | | - "R" => "D153", |
530 | | - "fnD" => "D19", |
531 | | - "Hr" => "D2", |
532 | | - "r" => "D21", |
533 | | - "rA" => "D21", |
534 | | - "spt" => "D24", |
535 | | - "spty" => "D25", |
536 | | - "mnD" => "D27", |
537 | | - "kA" => "D28", |
538 | | - "Sny" => "D3", |
539 | | - "aHA" => "D34", |
540 | | - "a" => "D36", |
541 | | - "ir" => "D4", |
542 | | - "Dsr" => "D45", |
543 | | - "d" => "D46", |
544 | | - "Dba" => "D50", |
545 | | - "mt" => "D52", |
546 | | - "gH" => "D56", |
547 | | - "gHs" => "D56", |
548 | | - "rd" => "D56", |
549 | | - "sbq" => "D56", |
550 | | - "b" => "D58", |
551 | | - "ab" => "D59", |
552 | | - "wab" => "D60", |
553 | | - "sAH" => "D61", |
554 | | - "rmi" => "D9", |
555 | | - "zAb" => "E17", |
556 | | - "mAi" => "E22", |
557 | | - "l" => "E23", |
558 | | - "rw" => "E23", |
559 | | - "Aby" => "E24", |
560 | | - "wn" => "E34", |
561 | | - "zzmt" => "E6", |
562 | | - "wsr" => "F12", |
563 | | - "wp" => "F13", |
564 | | - "db" => "F16", |
565 | | - "Hw" => "F18", |
566 | | - "bH" => "F18", |
567 | | - "ns" => "F20", |
568 | | - "DrD" => "F21", |
569 | | - "idn" => "F21", |
570 | | - "msDr" => "F21", |
571 | | - "sDm" => "F21", |
572 | | - "kfA" => "F22", |
573 | | - "pH" => "F22", |
574 | | - "xpS" => "F23", |
575 | | - "wHm" => "F25", |
576 | | - "Xn" => "F26", |
577 | | - "sti" => "F29", |
578 | | - "Sd" => "F30", |
579 | | - "ms" => "F31", |
580 | | - "X" => "F32", |
581 | | - "sd" => "F33", |
582 | | - "ib" => "F34", |
583 | | - "nfr" => "F35", |
584 | | - "zmA" => "F36", |
585 | | - "imAx" => "F39", |
586 | | - "HAt" => "F4", |
587 | | - "Aw" => "F40", |
588 | | - "spr" => "F42", |
589 | | - "isw" => "F44", |
590 | | - "iwa" => "F44", |
591 | | - "pXr" => "F46", |
592 | | - "qAb" => "F46", |
593 | | - "SsA" => "F5", |
594 | | - "A" => "G1", |
595 | | - "mwt" => "G14", |
596 | | - "nbty" => "G16", |
597 | | - "m" => "G17", |
598 | | - "mm" => "G18", |
599 | | - "AA" => "G2", |
600 | | - "nH" => "G21", |
601 | | - "Db" => "G22", |
602 | | - "rxyt" => "G23", |
603 | | - "Ax" => "G25", |
604 | | - "dSr" => "G27", |
605 | | - "gm" => "G28", |
606 | | - "bA" => "G29", |
607 | | - "baHi" => "G32", |
608 | | - "aq" => "G35", |
609 | | - "wr" => "G36", |
610 | | - "nDs" => "G37", |
611 | | - "gb" => "G38", |
612 | | - "zA" => "G39", |
613 | | - "tyw" => "G4", |
614 | | - "pA" => "G40", |
615 | | - "xn" => "G41", |
616 | | - "wSA" => "G42", |
617 | | - "w" => "G43", |
618 | | - "ww" => "G44", |
619 | | - "mAw" => "G46", |
620 | | - "TA" => "G47", |
621 | | - "snD" => "G54", |
622 | | - "pq" => "H2", |
623 | | - "wSm" => "H2", |
624 | | - "pAq" => "H3", |
625 | | - "nr" => "H4", |
626 | | - "Sw" => "H6", |
627 | | - "aSA" => "I1", |
628 | | - "D" => "I10", |
629 | | - "DD" => "I11", |
630 | | - "Styw" => "I2", |
631 | | - "mzH" => "I3", |
632 | | - "sbk" => "I4", |
633 | | - "sAq" => "I5", |
634 | | - "km" => "I6", |
635 | | - "Hfn" => "I8", |
636 | | - "f" => "I9", |
637 | | - "in" => "K1", |
638 | | - "ad" => "K3", |
639 | | - "XA" => "K4", |
640 | | - "bz" => "K5", |
641 | | - "nSmt" => "K6", |
642 | | - "xpr" => "L1", |
643 | | - "bit" => "L2", |
644 | | - "srqt" => "L7", |
645 | | - "iAm" => "M1", |
646 | | - "wdn" => "M11", |
647 | | - "xA" => "M12", |
648 | | - "1000" => "M12", |
649 | | - "wAD" => "M13", |
650 | | - "HA" => "M16", |
651 | | - "i" => "M17", |
652 | | - "ii" => "M18", |
653 | | - "Hn" => "M2", |
654 | | - "sxt" => "M20", |
655 | | - "sm" => "M21", |
656 | | - "nn" => "M22A", |
657 | | - "sw" => "M23", |
658 | | - "rsw" => "M24", |
659 | | - "Sma" => "M26", |
660 | | - "nDm" => "M29", |
661 | | - "xt" => "M3", |
662 | | - "bnr" => "M30", |
663 | | - "bdt" => "M34", |
664 | | - "Dr" => "M36", |
665 | | - "rnp" => "M4", |
666 | | - "iz" => "M40", |
667 | | - "tr" => "M6", |
668 | | - "SA" => "M8", |
669 | | - "zSn" => "M9", |
670 | | - "pt" => "N1", |
671 | | - "Abd" => "N11", |
672 | | - "iaH" => "N11", |
673 | | - "dwA" => "N14", |
674 | | - "sbA" => "N14", |
675 | | - "dwAt" => "N15", |
676 | | - "tA" => "N16", |
677 | | - "iw" => "N18", |
678 | | - "wDb" => "N20", |
679 | | - "spAt" => "N24", |
680 | | - "xAst" => "N25", |
681 | | - "Dw" => "N26", |
682 | | - "Axt" => "N27", |
683 | | - "xa" => "N28", |
684 | | - "q" => "N29", |
685 | | - "iAt" => "N30", |
686 | | - "n" => "N35", |
687 | | - "mw" => "N35A", |
688 | | - "S" => "N37", |
689 | | - "iAdt" => "N4", |
690 | | - "idt" => "N4", |
691 | | - "Sm" => "N40", |
692 | | - "id" => "N41", |
693 | | - "hrw" => "N5", |
694 | | - "ra" => "N5", |
695 | | - "zw" => "N5", |
696 | | - "Hnmmt" => "N8", |
697 | | - "pzD" => "N9", |
698 | | - "pr" => "O1", |
699 | | - "aH" => "O11", |
700 | | - "wsxt" => "O15", |
701 | | - "kAr" => "O18", |
702 | | - "zH" => "O22", |
703 | | - "txn" => "O25", |
704 | | - "iwn" => "O28", |
705 | | - "aA" => "O29", |
706 | | - "zxnt" => "O30", |
707 | | - "z" => "O34", |
708 | | - "zb" => "O35", |
709 | | - "inb" => "O36", |
710 | | - "qnbt" => "O38A", |
711 | | - "h" => "O4", |
712 | | - "Szp" => "O42", |
713 | | - "ipt" => "O45", |
714 | | - "nxn" => "O47", |
715 | | - "niwt" => "O49", |
716 | | - "zp" => "O50", |
717 | | - "Snwt" => "O51", |
718 | | - "Hwt" => "O6", |
719 | | - "wHa" => "P4", |
720 | | - "TAw" => "P5", |
721 | | - "nfw" => "P5", |
722 | | - "aHa" => "P6", |
723 | | - "xrw" => "P8", |
724 | | - "st" => "Q1", |
725 | | - "wz" => "Q2", |
726 | | - "p" => "Q3", |
727 | | - "qrsw" => "Q6", |
728 | | - "xAt" => "R1", |
729 | | - "xAwt" => "R1", |
730 | | - "Dd" => "R11", |
731 | | - "dd" => "R11", |
732 | | - "imnt" => "R14", |
733 | | - "iAb" => "R15", |
734 | | - "wx" => "R16", |
735 | | - "xm" => "R22", |
736 | | - "Htp" => "R4", |
737 | | - "kAp" => "R5", |
738 | | - "kp" => "R5", |
739 | | - "snTr" => "R7", |
740 | | - "nTr" => "R8", |
741 | | - "nTrw" => "R8A", |
742 | | - "bd" => "R9", |
743 | | - "HDt" => "S1", |
744 | | - "mDH" => "S10", |
745 | | - "wsx" => "S11", |
746 | | - "nbw" => "S12", |
747 | | - "THn" => "S15", |
748 | | - "tHn" => "S15", |
749 | | - "mnit" => "S18", |
750 | | - "sDAw" => "S19", |
751 | | - "xtm" => "S20", |
752 | | - "sT" => "S22", |
753 | | - "dmD" => "S23", |
754 | | - "Tz" => "S24", |
755 | | - "Sndyt" => "S26", |
756 | | - "mnxt" => "S27", |
757 | | - "s" => "S29", |
758 | | - "N" => "S3", |
759 | | - "dSrt" => "S3", |
760 | | - "sf" => "S30", |
761 | | - "siA" => "S32", |
762 | | - "Tb" => "S33", |
763 | | - "anx" => "S34", |
764 | | - "Swt" => "S35", |
765 | | - "xw" => "S37", |
766 | | - "HqA" => "S38", |
767 | | - "awt" => "S39", |
768 | | - "wAs" => "S40", |
769 | | - "Dam" => "S41", |
770 | | - "abA" => "S42", |
771 | | - "sxm" => "S42", |
772 | | - "xrp" => "S42", |
773 | | - "md" => "S43", |
774 | | - "Ams" => "S44", |
775 | | - "nxxw" => "S45", |
776 | | - "K" => "S56", |
777 | | - "sxmty" => "S6", |
778 | | - "xprS" => "S7", |
779 | | - "Atf" => "S8", |
780 | | - "Swty" => "S9", |
781 | | - "pD" => "T10", |
782 | | - "sXr" => "T11", |
783 | | - "zin" => "T11", |
784 | | - "zwn" => "T11", |
785 | | - "Ai" => "T12", |
786 | | - "Ar" => "T12", |
787 | | - "rwD" => "T12", |
788 | | - "rwd" => "T12", |
789 | | - "rs" => "T13", |
790 | | - "qmA" => "T14", |
791 | | - "wrrt" => "T17", |
792 | | - "Sms" => "T18", |
793 | | - "qs" => "T19", |
794 | | - "wa" => "T21", |
795 | | - "sn" => "T22", |
796 | | - "iH" => "T24", |
797 | | - "DbA" => "T25", |
798 | | - "Xr" => "T28", |
799 | | - "nmt" => "T29", |
800 | | - "HD" => "T3", |
801 | | - "sSm" => "T31", |
802 | | - "nm" => "T34", |
803 | | - "HDD" => "T6", |
804 | | - "pd" => "T9", |
805 | | - "mA" => "U1", |
806 | | - "it" => "U10", |
807 | | - "HqAt" => "U11", |
808 | | - "Sna" => "U13", |
809 | | - "hb" => "U13", |
810 | | - "tm" => "U15", |
811 | | - "biA" => "U16", |
812 | | - "grg" => "U17", |
813 | | - "stp" => "U21", |
814 | | - "mnx" => "U22", |
815 | | - "Ab" => "U23", |
816 | | - "Hmt" => "U24", |
817 | | - "wbA" => "U26", |
818 | | - "DA" => "U28", |
819 | | - "rtH" => "U31", |
820 | | - "zmn" => "U32", |
821 | | - "ti" => "U33", |
822 | | - "xsf" => "U34", |
823 | | - "Hm" => "U36", |
824 | | - "mxAt" => "U38", |
825 | | - "mr" => "U6", |
826 | | - "100" => "V1", |
827 | | - "arq" => "V12", |
828 | | - "T" => "V13", |
829 | | - "iTi" => "V15", |
830 | | - "TmA" => "V19", |
831 | | - "XAr" => "V19", |
832 | | - "mDt" => "V19", |
833 | | - "sTA" => "V2", |
834 | | - "10" => "V20", |
835 | | - "mD" => "V20", |
836 | | - "mH" => "V22", |
837 | | - "wD" => "V24", |
838 | | - "aD" => "V26", |
839 | | - "H" => "V28", |
840 | | - "sk" => "V29", |
841 | | - "wAH" => "V29", |
842 | | - "sTAw" => "V3", |
843 | | - "nb" => "V30", |
844 | | - "k" => "V31", |
845 | | - "msn" => "V32", |
846 | | - "sSr" => "V33", |
847 | | - "idr" => "V37", |
848 | | - "wA" => "V4", |
849 | | - "snT" => "V5", |
850 | | - "sS" => "V6", |
851 | | - "Sn" => "V7", |
852 | | - "iab" => "W10", |
853 | | - "g" => "W11", |
854 | | - "nzt" => "W11", |
855 | | - "Hz" => "W14", |
856 | | - "xnt" => "W17", |
857 | | - "mi" => "W19", |
858 | | - "bAs" => "W2", |
859 | | - "Hnqt" => "W22", |
860 | | - "nw" => "W24", |
861 | | - "ini" => "W25", |
862 | | - "Hb" => "W3", |
863 | | - "Xnm" => "W9", |
864 | | - "t" => "X1", |
865 | | - "di" => "X8", |
866 | | - "rdi" => "X8", |
867 | | - "mDAt" => "Y1", |
868 | | - "mnhd" => "Y3", |
869 | | - "zS" => "Y3", |
870 | | - "mn" => "Y5", |
871 | | - "ibA" => "Y6", |
872 | | - "zSSt" => "Y8", |
873 | | - "imi" => "Z11", |
874 | | - "y" => "Z4", |
875 | | - "W" => "Z7", |
876 | | - |
877 | | - "<1" => "Ca1", // cartouche |
878 | | - "2>" => "Ca2", |
879 | | - "<2" => "Ca2a", |
880 | | - "1>" => "Ca1a", |
881 | | - "<0" => "Ca1", |
882 | | - "0>" => "Ca2", |
883 | | - "<h1" => "Cah1", // horus |
884 | | - "h1>" => "Cah1a", |
885 | | - "<h2" => "Cah2", |
886 | | - "h2>" => "Cah2a", |
887 | | - "<h3" => "Cah3", |
888 | | - "h3>" => "Cah3a", |
889 | | - "<h0" => "Cah1", |
890 | | - "h0>" => "Cah1a", |
891 | | - "<" => "Ca1", // cartouche |
892 | | - ">" => "Ca2", |
893 | | - "[&" => "Ba16", |
894 | | - "&]" => "Ba16", |
895 | | - "[{" => "Ba17", |
896 | | - "}]" => "Ba17a", |
897 | | - "[[" => "Ba15", |
898 | | - "]]" => "Ba15a", |
899 | | - "[\"" => "", |
900 | | - "\"]" => "", |
901 | | - "['" => "", |
902 | | - "']" => "", |
903 | | -); |
904 | | - |
905 | | -/* not used yet |
906 | | -$wh_syntax = array( |
907 | | - "-", //block sepatator |
908 | | - ":", //supperposition |
909 | | - "*", //juxtaposition |
910 | | - "(", //open bracket |
911 | | - ")", //close bracket |
912 | | - "!!", //end of text |
913 | | - "!", //end of line |
914 | | - "..", //blank caracter |
915 | | - ".", //half-size blank caracter |
916 | | - "$", //color |
917 | | - "#", //shade |
918 | | - "[&", //select |
919 | | - "&]", |
920 | | - "[{", |
921 | | - "}]", |
922 | | - "[[", |
923 | | - "]]", |
924 | | - "[\"", |
925 | | - "\"]", |
926 | | - "['", |
927 | | - "']", |
928 | | - "<", //cartouche |
929 | | - ">", |
930 | | - "<1", |
931 | | - "2>", |
932 | | - "<2", |
933 | | - "1>", |
934 | | - "<0", |
935 | | - "0>", |
936 | | - "<h1", //horus |
937 | | - "h1>", |
938 | | - "<h2", |
939 | | - "h2>", |
940 | | - "<h3", |
941 | | - "h3>", |
942 | | - "<h0", |
943 | | - "h0>", |
944 | | - "++", //comment |
945 | | - "+s", //hieroglyph |
946 | | - "+t", //transcription |
947 | | - "+l", //latin-normal |
948 | | - "+i", //latin-italic |
949 | | - "+g", //latin-bold (gras) |
950 | | - "+b", //latin-bold |
951 | | - "+c", |
952 | | -); |
953 | | -*/ |
954 | | - |
955 | | -// convertion table for text mode |
956 | | -$wh_text_conv = array( |
957 | | - "-" => " ", |
958 | | - ":" => "-", |
959 | | - "*" => "-", |
960 | | - "!" => "<br />", |
961 | | - "." => "", |
962 | | - "=" => "", |
963 | | - "(" => "", |
964 | | - ")" => "", |
965 | | - "<1" => "(", |
966 | | - "2>" => ")|", |
967 | | - "<2" => "|(", |
968 | | - "1>" => ")", |
969 | | - "<0" => "(", |
970 | | - "0>" => ")|", |
971 | | - "<h1" => "[", // horus |
972 | | - "h1>" => "]", |
973 | | - "<h2" => "[", |
974 | | - "h2>" => "]", |
975 | | - "<h3" => "[", |
976 | | - "h3>" => "]", |
977 | | - "<h0" => "[", |
978 | | - "h0>" => "]", |
979 | | - "<" => "(", // cartouche |
980 | | - ">" => ")|", |
981 | | -); |