r3256 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r3255‎ | r3256 | r3257 >
Date:06:07, 22 April 2004
Author:vibber
Status:old (Comments)
Tags:historical 
Comment:
Initial revision
Modified paths:
  • /trunk/extensions (added) (history)
  • /trunk/extensions/wikihiero (added) (history)
  • /trunk/extensions/wikihiero/index.php (added) (history)
  • /trunk/extensions/wikihiero/readme.txt (added) (history)
  • /trunk/extensions/wikihiero/test.html (added) (history)
  • /trunk/extensions/wikihiero/wh_generate.php (added) (history)
  • /trunk/extensions/wikihiero/wh_language.php (added) (history)
  • /trunk/extensions/wikihiero/wh_list.php (added) (history)
  • /trunk/extensions/wikihiero/wh_table.php (added) (history)
  • /trunk/extensions/wikihiero/wikihiero.php (added) (history)

Diff [purge]

Index: trunk/extensions/wikihiero/wh_list.php
@@ -0,0 +1,1120 @@
 2+<?php
 3+
 4+// File created by wh_generate.php version 0.2.6
 5+// 2004/03/26 pm31 18:50
 6+
 7+$wh_prefabs = array(
 8+ "a&A1",
 9+ "a&b&t",
 10+ "a&D",
 11+ "a&F51a&Z2",
 12+ "a&n&D",
 13+ "a&r&t",
 14+ "a&t&x",
 15+ "A&t",
 16+ "A1&n",
 17+ "A1&r",
 18+ "Aa16&m",
 19+ "Aa8&D",
 20+ "b&Hb",
 21+ "b&t",
 22+ "B2&Z2",
 23+ "bA&k",
 24+ "D&d&t",
 25+ "D&d",
 26+ "D&ra",
 27+ "D&t&N17",
 28+ "D&t&tA",
 29+ "D&t",
 30+ "d&w",
 31+ "D&z&f",
 32+ "D&z",
 33+ "D52&t&r",
 34+ "f&n&d",
 35+ "f&r&t",
 36+ "F39&Z1",
 37+ "G14&t",
 38+ "Hmw&kA",
 39+ "ini&n&n",
 40+ "ini&n",
 41+ "ir&n&f",
 42+ "ir&n&k",
 43+ "ir&r&f",
 44+ "ir&t&f",
 45+ "ir&t&n",
 46+ "m&&t",
 47+ "m&a",
 48+ "m&f",
 49+ "m&n",
 50+ "m&r",
 51+ "m&t",
 52+ "mn&n&t",
 53+ "mn&n&x",
 54+ "mr&&r&r",
 55+ "mr&r&r",
 56+ "mr&r&t",
 57+ "n&A1",
 58+ "n&D",
 59+ "n&f&n",
 60+ "n&f&t",
 61+ "n&n&a",
 62+ "n&n&f",
 63+ "n&nH",
 64+ "n&nm&m",
 65+ "n&t&f",
 66+ "n&t&k",
 67+ "n&t&t",
 68+ "n&U19&nw",
 69+ "n&w",
 70+ "n&wa&w",
 71+ "n&x&f",
 72+ "n&xAst&t",
 73+ "n&xt",
 74+ "nswt&bity",
 75+ "p&z&f",
 76+ "pr&r&t",
 77+ "r&a&k",
 78+ "r&a&t",
 79+ "r&A1",
 80+ "r&D&d",
 81+ "r&f&n",
 82+ "r&n&f",
 83+ "r&r&t",
 84+ "r&r",
 85+ "r&t",
 86+ "S28&Z2",
 87+ "sSm&m",
 88+ "sti&t",
 89+ "stp&s",
 90+ "t&A",
 91+ "t&A19",
 92+ "t&H",
 93+ "t&I12",
 94+ "t&M30",
 95+ "t&nw",
 96+ "t&r&f",
 97+ "t&r",
 98+ "t&s",
 99+ "t&sti",
 100+ "t&T30",
 101+ "w&&t",
 102+ "w&t",
 103+ "w&y",
 104+ "wa&W&a",
 105+ "wn&n&t",
 106+ "wr&r&t",
 107+ "x&f&t",
 108+ "x&mt&t",
 109+ "x&r&t&Y1",
 110+ "x&r&t",
 111+ "Y1&A1",
 112+ "Y1&n&f",
 113+ "z&A1&Z1",
 114+ "z&A1",
 115+ "z&Ab&b",
 116+ "z&Dr&r",
 117+ "z&w",
 118+ "z&X&k",
 119+ "z&x&r",
 120+ "Z6&A1",
 121+);
 122+
 123+$wh_files = array(
 124+ "a&A1" => array( 37, 38 ),
 125+ "a&b&t" => array( 37, 38 ),
 126+ "a&D" => array( 37, 38 ),
 127+ "a&F51a&Z2" => array( 38, 38 ),
 128+ "a&n&D" => array( 37, 38 ),
 129+ "a&r&t" => array( 45, 38 ),
 130+ "a&t&x" => array( 37, 38 ),
 131+ "A&t" => array( 38, 38 ),
 132+ "A1&n" => array( 37, 38 ),
 133+ "A1&r" => array( 38, 38 ),
 134+ "A1" => array( 29, 38 ),
 135+ "A10" => array( 38, 38 ),
 136+ "A11" => array( 26, 38 ),
 137+ "A113" => array( 32, 38 ),
 138+ "A12" => array( 25, 38 ),
 139+ "A12D" => array( 28, 38 ),
 140+ "A13" => array( 30, 38 ),
 141+ "A14" => array( 36, 34 ),
 142+ "A14A" => array( 35, 38 ),
 143+ "A15" => array( 38, 21 ),
 144+ "A16" => array( 25, 38 ),
 145+ "A17" => array( 29, 38 ),
 146+ "A17A" => array( 36, 38 ),
 147+ "A18" => array( 24, 38 ),
 148+ "A19" => array( 24, 38 ),
 149+ "A1s" => array( 22, 27 ),
 150+ "A2" => array( 27, 38 ),
 151+ "A20" => array( 28, 38 ),
 152+ "A21" => array( 24, 38 ),
 153+ "A21A" => array( 24, 38 ),
 154+ "A22" => array( 26, 38 ),
 155+ "A23" => array( 24, 38 ),
 156+ "A24" => array( 23, 38 ),
 157+ "A25" => array( 32, 38 ),
 158+ "A25A" => array( 30, 38 ),
 159+ "A25as" => array( 21, 27 ),
 160+ "A26" => array( 27, 38 ),
 161+ "A27" => array( 25, 38 ),
 162+ "A28" => array( 24, 38 ),
 163+ "A29" => array( 22, 38 ),
 164+ "A2s" => array( 20, 27 ),
 165+ "A3" => array( 28, 38 ),
 166+ "A30" => array( 21, 38 ),
 167+ "A31" => array( 22, 38 ),
 168+ "A316" => array( 33, 38 ),
 169+ "A32" => array( 22, 38 ),
 170+ "A33" => array( 23, 38 ),
 171+ "A335" => array( 27, 38 ),
 172+ "A34" => array( 24, 38 ),
 173+ "A347" => array( 20, 38 ),
 174+ "A35" => array( 30, 38 ),
 175+ "A36" => array( 37, 38 ),
 176+ "A37" => array( 37, 38 ),
 177+ "A38" => array( 36, 38 ),
 178+ "A39" => array( 44, 38 ),
 179+ "A4" => array( 29, 38 ),
 180+ "A40" => array( 24, 36 ),
 181+ "A40s" => array( 18, 27 ),
 182+ "A41" => array( 22, 38 ),
 183+ "A42" => array( 30, 38 ),
 184+ "A43" => array( 20, 38 ),
 185+ "A44" => array( 32, 37 ),
 186+ "A45" => array( 22, 37 ),
 187+ "A46" => array( 30, 38 ),
 188+ "A47" => array( 32, 38 ),
 189+ "A48" => array( 26, 38 ),
 190+ "A49" => array( 25, 38 ),
 191+ "A5" => array( 27, 36 ),
 192+ "A50" => array( 30, 38 ),
 193+ "A51" => array( 30, 38 ),
 194+ "A52" => array( 35, 38 ),
 195+ "A53" => array( 12, 38 ),
 196+ "A54" => array( 38, 11 ),
 197+ "A55" => array( 38, 26 ),
 198+ "A56" => array( 35, 38 ),
 199+ "A59" => array( 27, 38 ),
 200+ "A6" => array( 32, 38 ),
 201+ "A7" => array( 38, 38 ),
 202+ "A8" => array( 27, 38 ),
 203+ "A9" => array( 24, 38 ),
 204+ "Aa1" => array( 18, 18 ),
 205+ "Aa10" => array( 37, 8 ),
 206+ "Aa11" => array( 38, 7 ),
 207+ "Aa12" => array( 33, 5 ),
 208+ "Aa13" => array( 37, 8 ),
 209+ "Aa14" => array( 37, 12 ),
 210+ "Aa15" => array( 36, 10 ),
 211+ "Aa16&m" => array( 24, 38 ),
 212+ "Aa16" => array( 23, 11 ),
 213+ "Aa17" => array( 22, 18 ),
 214+ "Aa18" => array( 25, 29 ),
 215+ "Aa19" => array( 23, 26 ),
 216+ "Aa2" => array( 20, 20 ),
 217+ "Aa20" => array( 11, 38 ),
 218+ "Aa21" => array( 14, 38 ),
 219+ "Aa22" => array( 38, 38 ),
 220+ "Aa23" => array( 38, 25 ),
 221+ "Aa24" => array( 38, 17 ),
 222+ "Aa25" => array( 27, 38 ),
 223+ "Aa26" => array( 13, 38 ),
 224+ "Aa27" => array( 16, 38 ),
 225+ "Aa28" => array( 8, 38 ),
 226+ "Aa29" => array( 8, 38 ),
 227+ "Aa3" => array( 27, 20 ),
 228+ "Aa30" => array( 9, 38 ),
 229+ "Aa30A" => array( 38, 9 ),
 230+ "Aa31" => array( 17, 38 ),
 231+ "Aa32" => array( 9, 38 ),
 232+ "Aa4" => array( 28, 18 ),
 233+ "Aa40" => array( 37, 38 ),
 234+ "Aa41" => array( 38, 38 ),
 235+ "Aa5" => array( 32, 32 ),
 236+ "Aa6" => array( 37, 17 ),
 237+ "Aa7" => array( 36, 15 ),
 238+ "Aa8&D" => array( 38, 38 ),
 239+ "Aa8" => array( 38, 8 ),
 240+ "Aa9" => array( 36, 8 ),
 241+ "b&Hb" => array( 38, 38 ),
 242+ "b&t" => array( 18, 38 ),
 243+ "B1" => array( 23, 38 ),
 244+ "B10" => array( 24, 38 ),
 245+ "B11" => array( 26, 38 ),
 246+ "B12" => array( 36, 38 ),
 247+ "B1s" => array( 16, 27 ),
 248+ "B2&Z2" => array( 36, 38 ),
 249+ "B2" => array( 26, 38 ),
 250+ "B23B" => array( 26, 38 ),
 251+ "B3" => array( 25, 38 ),
 252+ "B4" => array( 21, 38 ),
 253+ "B5" => array( 27, 38 ),
 254+ "B6" => array( 27, 38 ),
 255+ "B7" => array( 32, 38 ),
 256+ "B8" => array( 25, 38 ),
 257+ "B9" => array( 28, 38 ),
 258+ "bA&k" => array( 38, 38 ),
 259+ "Ba14" => array( 8, 40 ),
 260+ "Ba14a" => array( 8, 40 ),
 261+ "Ba14as" => array( 6, 20 ),
 262+ "Ba14s" => array( 6, 20 ),
 263+ "Ba15" => array( 8, 40 ),
 264+ "Ba15a" => array( 8, 40 ),
 265+ "Ba15as" => array( 6, 20 ),
 266+ "Ba15s" => array( 6, 20 ),
 267+ "Ba16" => array( 11, 40 ),
 268+ "Ba16a" => array( 11, 40 ),
 269+ "Ba16as" => array( 6, 20 ),
 270+ "Ba16s" => array( 6, 20 ),
 271+ "Ba17" => array( 8, 40 ),
 272+ "Ba17a" => array( 8, 40 ),
 273+ "Ba17as" => array( 7, 20 ),
 274+ "Ba17s" => array( 7, 20 ),
 275+ "Ba18" => array( 8, 40 ),
 276+ "Ba18a" => array( 8, 40 ),
 277+ "Ba18as" => array( 6, 20 ),
 278+ "Ba18s" => array( 6, 20 ),
 279+ "Ba19" => array( 6, 40 ),
 280+ "Ba19a" => array( 6, 40 ),
 281+ "Ba19as" => array( 4, 20 ),
 282+ "Ba19s" => array( 4, 20 ),
 283+ "BLACKDOT" => array( 12, 12 ),
 284+ "C1" => array( 20, 38 ),
 285+ "C10" => array( 18, 38 ),
 286+ "C11" => array( 30, 38 ),
 287+ "C12" => array( 20, 38 ),
 288+ "C17" => array( 21, 38 ),
 289+ "C18" => array( 23, 38 ),
 290+ "C19" => array( 13, 38 ),
 291+ "C2" => array( 25, 38 ),
 292+ "C20" => array( 18, 38 ),
 293+ "C3" => array( 21, 38 ),
 294+ "C4" => array( 33, 38 ),
 295+ "C5" => array( 33, 38 ),
 296+ "C6" => array( 20, 38 ),
 297+ "C7" => array( 19, 38 ),
 298+ "C8" => array( 22, 38 ),
 299+ "C9" => array( 20, 38 ),
 300+ "Ca0" => array( 5, 50 ),
 301+ "Ca1" => array( 14, 48 ),
 302+ "Ca1a" => array( 14, 50 ),
 303+ "Ca2" => array( 16, 50 ),
 304+ "Ca2a" => array( 16, 48 ),
 305+ "Cah1" => array( 5, 48 ),
 306+ "Cah1a" => array( 5, 50 ),
 307+ "Cah2" => array( 14, 48 ),
 308+ "Cah2a" => array( 14, 50 ),
 309+ "Cah3" => array( 14, 48 ),
 310+ "Cah3a" => array( 14, 50 ),
 311+ "D&d&t" => array( 35, 38 ),
 312+ "D&d" => array( 35, 38 ),
 313+ "D&ra" => array( 35, 38 ),
 314+ "D&t&N17" => array( 35, 38 ),
 315+ "D&t&tA" => array( 35, 38 ),
 316+ "D&t" => array( 35, 38 ),
 317+ "d&w" => array( 37, 38 ),
 318+ "D&z&f" => array( 37, 38 ),
 319+ "D&z" => array( 35, 38 ),
 320+ "D1" => array( 20, 19 ),
 321+ "D10" => array( 38, 30 ),
 322+ "D11" => array( 18, 18 ),
 323+ "D12" => array( 14, 14 ),
 324+ "D13" => array( 38, 6 ),
 325+ "D14" => array( 32, 16 ),
 326+ "D15" => array( 33, 14 ),
 327+ "D16" => array( 7, 25 ),
 328+ "D17" => array( 32, 21 ),
 329+ "D18" => array( 19, 24 ),
 330+ "D19" => array( 25, 26 ),
 331+ "D2" => array( 17, 18 ),
 332+ "D20" => array( 25, 25 ),
 333+ "D21" => array( 38, 11 ),
 334+ "D22" => array( 38, 18 ),
 335+ "D23" => array( 38, 30 ),
 336+ "D24" => array( 38, 8 ),
 337+ "D25" => array( 35, 14 ),
 338+ "D26" => array( 27, 24 ),
 339+ "D27" => array( 20, 14 ),
 340+ "D27A" => array( 20, 18 ),
 341+ "D28" => array( 24, 24 ),
 342+ "D29" => array( 27, 36 ),
 343+ "D3" => array( 37, 20 ),
 344+ "D30" => array( 26, 36 ),
 345+ "D31" => array( 21, 38 ),
 346+ "D32" => array( 21, 34 ),
 347+ "D33" => array( 34, 32 ),
 348+ "D34" => array( 34, 28 ),
 349+ "D34A" => array( 38, 32 ),
 350+ "D35" => array( 37, 8 ),
 351+ "D36" => array( 37, 12 ),
 352+ "D37" => array( 37, 12 ),
 353+ "D38" => array( 37, 12 ),
 354+ "D39" => array( 37, 12 ),
 355+ "D4" => array( 38, 12 ),
 356+ "D40" => array( 37, 12 ),
 357+ "D41" => array( 37, 12 ),
 358+ "D42" => array( 37, 12 ),
 359+ "D43" => array( 38, 15 ),
 360+ "D44" => array( 38, 18 ),
 361+ "D45" => array( 36, 24 ),
 362+ "D46" => array( 37, 12 ),
 363+ "D46A" => array( 38, 18 ),
 364+ "D47" => array( 38, 9 ),
 365+ "D48" => array( 38, 9 ),
 366+ "D49" => array( 27, 16 ),
 367+ "D5" => array( 37, 11 ),
 368+ "D50" => array( 8, 38 ),
 369+ "D51" => array( 38, 8 ),
 370+ "D52&t&r" => array( 38, 38 ),
 371+ "D52" => array( 36, 12 ),
 372+ "D53" => array( 38, 14 ),
 373+ "D54" => array( 22, 18 ),
 374+ "D55" => array( 22, 18 ),
 375+ "D56" => array( 16, 34 ),
 376+ "D57" => array( 38, 32 ),
 377+ "D58" => array( 22, 35 ),
 378+ "D58s" => array( 16, 27 ),
 379+ "D59" => array( 38, 36 ),
 380+ "D6" => array( 37, 14 ),
 381+ "D60" => array( 27, 38 ),
 382+ "D61" => array( 38, 28 ),
 383+ "D62" => array( 37, 28 ),
 384+ "D63" => array( 34, 33 ),
 385+ "D7" => array( 36, 13 ),
 386+ "D8" => array( 38, 12 ),
 387+ "D9" => array( 38, 22 ),
 388+ "E1" => array( 38, 30 ),
 389+ "E10" => array( 38, 27 ),
 390+ "E11" => array( 36, 27 ),
 391+ "E12" => array( 38, 22 ),
 392+ "E13" => array( 27, 38 ),
 393+ "E14" => array( 36, 30 ),
 394+ "E15" => array( 38, 32 ),
 395+ "E16" => array( 38, 38 ),
 396+ "E17" => array( 44, 38 ),
 397+ "E18" => array( 38, 36 ),
 398+ "E19" => array( 33, 38 ),
 399+ "E2" => array( 38, 27 ),
 400+ "E20" => array( 38, 38 ),
 401+ "E21" => array( 42, 23 ),
 402+ "E22" => array( 38, 21 ),
 403+ "E23" => array( 38, 15 ),
 404+ "E24" => array( 49, 20 ),
 405+ "E25" => array( 38, 22 ),
 406+ "E26" => array( 38, 29 ),
 407+ "E27" => array( 22, 38 ),
 408+ "E28" => array( 36, 38 ),
 409+ "E29" => array( 32, 38 ),
 410+ "E3" => array( 38, 29 ),
 411+ "E30" => array( 34, 38 ),
 412+ "E31" => array( 36, 36 ),
 413+ "E32" => array( 31, 25 ),
 414+ "E33" => array( 32, 24 ),
 415+ "E34" => array( 38, 24 ),
 416+ "E4" => array( 41, 38 ),
 417+ "E5" => array( 38, 27 ),
 418+ "E6" => array( 36, 36 ),
 419+ "E7" => array( 34, 32 ),
 420+ "E8" => array( 38, 31 ),
 421+ "E8A" => array( 32, 38 ),
 422+ "E9" => array( 38, 28 ),
 423+ "f&n&d" => array( 37, 38 ),
 424+ "f&r&t" => array( 38, 38 ),
 425+ "F1" => array( 18, 18 ),
 426+ "F10" => array( 15, 38 ),
 427+ "F11" => array( 18, 36 ),
 428+ "F12" => array( 14, 38 ),
 429+ "F13" => array( 32, 24 ),
 430+ "F14" => array( 36, 38 ),
 431+ "F15" => array( 36, 38 ),
 432+ "F16" => array( 38, 23 ),
 433+ "F17" => array( 38, 38 ),
 434+ "F18" => array( 38, 11 ),
 435+ "F19" => array( 38, 19 ),
 436+ "F2" => array( 38, 34 ),
 437+ "F20" => array( 38, 28 ),
 438+ "F21" => array( 24, 19 ),
 439+ "F22" => array( 26, 20 ),
 440+ "F23" => array( 38, 14 ),
 441+ "F24" => array( 38, 14 ),
 442+ "F25" => array( 12, 38 ),
 443+ "F26" => array( 37, 25 ),
 444+ "F27" => array( 18, 38 ),
 445+ "F28" => array( 18, 38 ),
 446+ "F29" => array( 34, 38 ),
 447+ "F3" => array( 36, 24 ),
 448+ "F30" => array( 38, 27 ),
 449+ "F31" => array( 18, 37 ),
 450+ "F31s" => array( 14, 27 ),
 451+ "F32" => array( 38, 9 ),
 452+ "F33" => array( 36, 22 ),
 453+ "F34" => array( 18, 17 ),
 454+ "F35" => array( 12, 38 ),
 455+ "F36" => array( 13, 37 ),
 456+ "F37" => array( 38, 21 ),
 457+ "F37B" => array( 32, 19 ),
 458+ "F38" => array( 22, 15 ),
 459+ "F39&Z1" => array( 31, 38 ),
 460+ "F39" => array( 31, 31 ),
 461+ "F4" => array( 38, 23 ),
 462+ "F40" => array( 38, 31 ),
 463+ "F41" => array( 25, 24 ),
 464+ "F42" => array( 36, 11 ),
 465+ "F43" => array( 18, 20 ),
 466+ "F44" => array( 36, 18 ),
 467+ "F45" => array( 20, 38 ),
 468+ "F46" => array( 35, 11 ),
 469+ "F47" => array( 35, 11 ),
 470+ "F48" => array( 35, 12 ),
 471+ "F49" => array( 35, 12 ),
 472+ "F5" => array( 30, 38 ),
 473+ "F50" => array( 35, 38 ),
 474+ "F51" => array( 14, 17 ),
 475+ "F51A" => array( 17, 14 ),
 476+ "F51B" => array( 17, 14 ),
 477+ "F52" => array( 15, 20 ),
 478+ "F6" => array( 32, 35 ),
 479+ "F7" => array( 37, 28 ),
 480+ "F8" => array( 36, 38 ),
 481+ "F9" => array( 18, 26 ),
 482+ "G1" => array( 35, 38 ),
 483+ "G10" => array( 38, 38 ),
 484+ "G11" => array( 34, 18 ),
 485+ "G12" => array( 34, 21 ),
 486+ "G13" => array( 35, 30 ),
 487+ "G14&t" => array( 38, 38 ),
 488+ "G14" => array( 35, 38 ),
 489+ "G15" => array( 35, 38 ),
 490+ "G16" => array( 41, 38 ),
 491+ "G17" => array( 35, 38 ),
 492+ "G17s" => array( 24, 27 ),
 493+ "G18" => array( 46, 38 ),
 494+ "G19" => array( 38, 38 ),
 495+ "G1s" => array( 25, 27 ),
 496+ "G2" => array( 41, 37 ),
 497+ "G20" => array( 38, 38 ),
 498+ "G21" => array( 36, 38 ),
 499+ "G22" => array( 38, 31 ),
 500+ "G23" => array( 42, 38 ),
 501+ "G24" => array( 38, 25 ),
 502+ "G25" => array( 38, 38 ),
 503+ "G26" => array( 36, 38 ),
 504+ "G26A" => array( 38, 38 ),
 505+ "G27" => array( 37, 27 ),
 506+ "G28" => array( 40, 22 ),
 507+ "G29" => array( 36, 38 ),
 508+ "G3" => array( 38, 38 ),
 509+ "G30" => array( 52, 38 ),
 510+ "G31" => array( 38, 38 ),
 511+ "G32" => array( 37, 38 ),
 512+ "G33" => array( 38, 38 ),
 513+ "G34" => array( 29, 38 ),
 514+ "G35" => array( 38, 31 ),
 515+ "G36" => array( 38, 25 ),
 516+ "G37" => array( 38, 28 ),
 517+ "G38" => array( 38, 38 ),
 518+ "G39" => array( 38, 38 ),
 519+ "G4" => array( 36, 38 ),
 520+ "G40" => array( 38, 34 ),
 521+ "G41" => array( 38, 34 ),
 522+ "G42" => array( 42, 29 ),
 523+ "G43" => array( 27, 38 ),
 524+ "G43s" => array( 18, 28 ),
 525+ "G44" => array( 34, 38 ),
 526+ "G45" => array( 38, 38 ),
 527+ "G46" => array( 28, 38 ),
 528+ "G47" => array( 32, 38 ),
 529+ "G48" => array( 44, 27 ),
 530+ "G49" => array( 38, 20 ),
 531+ "G5" => array( 35, 38 ),
 532+ "G50" => array( 38, 28 ),
 533+ "G51" => array( 37, 30 ),
 534+ "G52" => array( 38, 22 ),
 535+ "G53" => array( 35, 36 ),
 536+ "G54" => array( 37, 31 ),
 537+ "G5s" => array( 25, 27 ),
 538+ "G6" => array( 35, 38 ),
 539+ "G7" => array( 27, 38 ),
 540+ "G7A" => array( 43, 38 ),
 541+ "G7AA" => array( 32, 38 ),
 542+ "G8" => array( 29, 38 ),
 543+ "G9" => array( 30, 38 ),
 544+ "H1" => array( 18, 20 ),
 545+ "H2" => array( 38, 27 ),
 546+ "H3" => array( 19, 24 ),
 547+ "H4" => array( 12, 19 ),
 548+ "H5" => array( 37, 11 ),
 549+ "H6" => array( 11, 38 ),
 550+ "H6A" => array( 17, 38 ),
 551+ "H7" => array( 34, 32 ),
 552+ "H8" => array( 15, 18 ),
 553+ "H8W" => array( 37, 38 ),
 554+ "HASH" => array( 30, 38 ),
 555+ "hatching" => array( 75, 46 ),
 556+ "Hmw&kA" => array( 24, 38 ),
 557+ "H_HASH" => array( 38, 16 ),
 558+ "H_SPACE" => array( 5, 15 ),
 559+ "I1" => array( 36, 33 ),
 560+ "I10" => array( 35, 38 ),
 561+ "I11" => array( 36, 38 ),
 562+ "I12" => array( 21, 38 ),
 563+ "I13" => array( 21, 38 ),
 564+ "I14" => array( 38, 16 ),
 565+ "I15" => array( 36, 20 ),
 566+ "I1S" => array( 35, 25 ),
 567+ "I2" => array( 38, 23 ),
 568+ "I3" => array( 41, 12 ),
 569+ "I4" => array( 37, 31 ),
 570+ "I5" => array( 37, 20 ),
 571+ "I5A" => array( 37, 11 ),
 572+ "I6" => array( 27, 17 ),
 573+ "I7" => array( 36, 28 ),
 574+ "I8" => array( 28, 38 ),
 575+ "I9" => array( 38, 12 ),
 576+ "ini&n&n" => array( 37, 38 ),
 577+ "ini&n" => array( 37, 38 ),
 578+ "ir&n&f" => array( 37, 38 ),
 579+ "ir&n&k" => array( 37, 38 ),
 580+ "ir&r&f" => array( 38, 38 ),
 581+ "ir&t&f" => array( 38, 38 ),
 582+ "ir&t&n" => array( 37, 38 ),
 583+ "K1" => array( 38, 19 ),
 584+ "K2" => array( 37, 16 ),
 585+ "K3" => array( 38, 15 ),
 586+ "K4" => array( 42, 19 ),
 587+ "K5" => array( 38, 13 ),
 588+ "K6" => array( 20, 27 ),
 589+ "K7" => array( 31, 30 ),
 590+ "L1" => array( 24, 36 ),
 591+ "L2" => array( 37, 38 ),
 592+ "L3" => array( 28, 38 ),
 593+ "L4" => array( 45, 22 ),
 594+ "L5" => array( 38, 13 ),
 595+ "L6" => array( 19, 18 ),
 596+ "L7" => array( 25, 38 ),
 597+ "m&&t" => array( 24, 38 ),
 598+ "m&a" => array( 37, 38 ),
 599+ "m&f" => array( 38, 38 ),
 600+ "m&n" => array( 37, 38 ),
 601+ "m&r" => array( 38, 38 ),
 602+ "m&t" => array( 38, 38 ),
 603+ "M1" => array( 15, 38 ),
 604+ "M10" => array( 28, 28 ),
 605+ "M11" => array( 33, 13 ),
 606+ "M12" => array( 12, 38 ),
 607+ "M12s" => array( 10, 27 ),
 608+ "M13" => array( 13, 38 ),
 609+ "M14" => array( 31, 38 ),
 610+ "M15" => array( 25, 38 ),
 611+ "M16" => array( 24, 38 ),
 612+ "M17" => array( 9, 38 ),
 613+ "M17s" => array( 6, 27 ),
 614+ "M18" => array( 12, 38 ),
 615+ "M19" => array( 31, 38 ),
 616+ "M2" => array( 30, 30 ),
 617+ "M20" => array( 38, 38 ),
 618+ "M21" => array( 32, 38 ),
 619+ "M22" => array( 18, 38 ),
 620+ "M23" => array( 18, 38 ),
 621+ "M23s" => array( 12, 27 ),
 622+ "M24" => array( 18, 38 ),
 623+ "M25" => array( 26, 38 ),
 624+ "M26" => array( 26, 38 ),
 625+ "M27" => array( 37, 38 ),
 626+ "M28" => array( 26, 38 ),
 627+ "M29" => array( 7, 38 ),
 628+ "M3" => array( 37, 9 ),
 629+ "M30" => array( 9, 38 ),
 630+ "M31" => array( 16, 29 ),
 631+ "M32" => array( 12, 36 ),
 632+ "M33" => array( 37, 9 ),
 633+ "M34" => array( 16, 38 ),
 634+ "M35" => array( 14, 18 ),
 635+ "M36" => array( 20, 18 ),
 636+ "M37" => array( 25, 19 ),
 637+ "M38" => array( 37, 25 ),
 638+ "M39" => array( 18, 16 ),
 639+ "M4" => array( 12, 38 ),
 640+ "M40" => array( 9, 38 ),
 641+ "M41" => array( 25, 7 ),
 642+ "M42" => array( 25, 25 ),
 643+ "M43" => array( 56, 38 ),
 644+ "M43A" => array( 49, 38 ),
 645+ "M44" => array( 15, 38 ),
 646+ "M5" => array( 14, 38 ),
 647+ "M6" => array( 16, 38 ),
 648+ "M7" => array( 12, 38 ),
 649+ "M8" => array( 36, 19 ),
 650+ "M9" => array( 37, 32 ),
 651+ "mn&n&t" => array( 38, 38 ),
 652+ "mn&n&x" => array( 38, 38 ),
 653+ "mr&&r&r" => array( 49, 38 ),
 654+ "mr&r&r" => array( 38, 38 ),
 655+ "mr&r&t" => array( 45, 38 ),
 656+ "n&A1" => array( 37, 38 ),
 657+ "n&D" => array( 37, 38 ),
 658+ "n&f&n" => array( 38, 38 ),
 659+ "n&f&t" => array( 37, 38 ),
 660+ "n&n&a" => array( 37, 38 ),
 661+ "n&n&f" => array( 38, 38 ),
 662+ "n&nH" => array( 37, 38 ),
 663+ "n&nm&m" => array( 37, 38 ),
 664+ "n&t&f" => array( 37, 38 ),
 665+ "n&t&k" => array( 37, 38 ),
 666+ "n&t&t" => array( 37, 38 ),
 667+ "n&U19&nw" => array( 37, 38 ),
 668+ "n&w" => array( 37, 38 ),
 669+ "n&wa&w" => array( 37, 38 ),
 670+ "n&x&f" => array( 37, 38 ),
 671+ "n&xAst&t" => array( 37, 38 ),
 672+ "n&xt" => array( 37, 38 ),
 673+ "N1" => array( 38, 11 ),
 674+ "N10" => array( 19, 18 ),
 675+ "N11" => array( 38, 12 ),
 676+ "N12" => array( 38, 13 ),
 677+ "N13" => array( 28, 27 ),
 678+ "N14" => array( 23, 22 ),
 679+ "N15" => array( 26, 26 ),
 680+ "N16" => array( 36, 9 ),
 681+ "N17" => array( 36, 6 ),
 682+ "N18" => array( 38, 8 ),
 683+ "N19" => array( 38, 22 ),
 684+ "N2" => array( 33, 38 ),
 685+ "N20" => array( 38, 9 ),
 686+ "N21" => array( 25, 11 ),
 687+ "N22" => array( 29, 11 ),
 688+ "N23" => array( 20, 11 ),
 689+ "N24" => array( 37, 14 ),
 690+ "N25" => array( 38, 16 ),
 691+ "N26" => array( 30, 15 ),
 692+ "N27" => array( 30, 22 ),
 693+ "N28" => array( 28, 15 ),
 694+ "N29" => array( 16, 17 ),
 695+ "N3" => array( 28, 38 ),
 696+ "N30" => array( 38, 16 ),
 697+ "N31" => array( 38, 19 ),
 698+ "N32" => array( 17, 24 ),
 699+ "N33" => array( 18, 18 ),
 700+ "N33A" => array( 41, 7 ),
 701+ "N33B" => array( 7, 7 ),
 702+ "N33C" => array( 11, 11 ),
 703+ "N34" => array( 25, 22 ),
 704+ "N35" => array( 37, 5 ),
 705+ "N35A" => array( 37, 38 ),
 706+ "N35B" => array( 37, 21 ),
 707+ "N35C" => array( 37, 13 ),
 708+ "N36" => array( 38, 9 ),
 709+ "N37" => array( 38, 12 ),
 710+ "N38" => array( 38, 12 ),
 711+ "N39" => array( 38, 10 ),
 712+ "N4" => array( 38, 22 ),
 713+ "N40" => array( 38, 24 ),
 714+ "N41" => array( 19, 19 ),
 715+ "N42" => array( 19, 19 ),
 716+ "N5" => array( 18, 18 ),
 717+ "N6" => array( 36, 20 ),
 718+ "N7" => array( 21, 38 ),
 719+ "N8" => array( 14, 21 ),
 720+ "N9" => array( 18, 18 ),
 721+ "nbAki" => array( 58, 40 ),
 722+ "nswt&bity" => array( 47, 38 ),
 723+ "O1" => array( 31, 16 ),
 724+ "O10" => array( 38, 38 ),
 725+ "O11" => array( 11, 38 ),
 726+ "O12" => array( 37, 38 ),
 727+ "O13" => array( 38, 38 ),
 728+ "O14" => array( 33, 31 ),
 729+ "O15" => array( 38, 38 ),
 730+ "O16" => array( 38, 26 ),
 731+ "O17" => array( 32, 26 ),
 732+ "O18" => array( 33, 38 ),
 733+ "O19" => array( 36, 38 ),
 734+ "O2" => array( 32, 38 ),
 735+ "O20" => array( 24, 38 ),
 736+ "O21" => array( 22, 38 ),
 737+ "O22" => array( 37, 30 ),
 738+ "O23" => array( 41, 38 ),
 739+ "O24" => array( 21, 38 ),
 740+ "O25" => array( 12, 38 ),
 741+ "O26" => array( 28, 38 ),
 742+ "O27" => array( 37, 32 ),
 743+ "O28" => array( 9, 38 ),
 744+ "O29" => array( 38, 7 ),
 745+ "O29V" => array( 7, 38 ),
 746+ "O3" => array( 36, 38 ),
 747+ "O30" => array( 10, 38 ),
 748+ "O31" => array( 38, 9 ),
 749+ "O32" => array( 25, 38 ),
 750+ "O33" => array( 32, 38 ),
 751+ "O34" => array( 37, 6 ),
 752+ "O35" => array( 37, 19 ),
 753+ "O36" => array( 15, 38 ),
 754+ "O37" => array( 40, 26 ),
 755+ "O38" => array( 28, 28 ),
 756+ "O39" => array( 24, 10 ),
 757+ "O4" => array( 23, 18 ),
 758+ "O40" => array( 30, 27 ),
 759+ "O41" => array( 38, 19 ),
 760+ "O42" => array( 37, 19 ),
 761+ "O43" => array( 38, 11 ),
 762+ "O44" => array( 22, 38 ),
 763+ "O45" => array( 19, 18 ),
 764+ "O46" => array( 18, 24 ),
 765+ "O47" => array( 25, 11 ),
 766+ "O48" => array( 18, 18 ),
 767+ "O49" => array( 18, 18 ),
 768+ "O5" => array( 27, 20 ),
 769+ "O50" => array( 18, 18 ),
 770+ "O51" => array( 37, 31 ),
 771+ "O6" => array( 15, 38 ),
 772+ "O7" => array( 15, 38 ),
 773+ "O8" => array( 38, 38 ),
 774+ "O9" => array( 37, 38 ),
 775+ "p&z&f" => array( 38, 38 ),
 776+ "P1" => array( 42, 22 ),
 777+ "P10" => array( 37, 38 ),
 778+ "P11" => array( 8, 38 ),
 779+ "P13" => array( 38, 8 ),
 780+ "P1A" => array( 42, 22 ),
 781+ "P2" => array( 38, 30 ),
 782+ "P3" => array( 38, 24 ),
 783+ "P4" => array( 38, 20 ),
 784+ "P44A" => array( 38, 16 ),
 785+ "P5" => array( 37, 38 ),
 786+ "P6" => array( 12, 38 ),
 787+ "P7" => array( 38, 38 ),
 788+ "P8" => array( 7, 38 ),
 789+ "P8H" => array( 38, 7 ),
 790+ "P9" => array( 30, 38 ),
 791+ "pr&r&t" => array( 45, 38 ),
 792+ "Q1" => array( 18, 38 ),
 793+ "Q2" => array( 36, 24 ),
 794+ "Q3" => array( 12, 15 ),
 795+ "Q4" => array( 31, 20 ),
 796+ "Q5" => array( 38, 15 ),
 797+ "Q6" => array( 38, 24 ),
 798+ "Q7" => array( 20, 37 ),
 799+ "QUERY" => array( 18, 28 ),
 800+ "Q_HASH" => array( 20, 20 ),
 801+ "r&a&k" => array( 38, 38 ),
 802+ "r&a&t" => array( 38, 38 ),
 803+ "r&A1" => array( 38, 38 ),
 804+ "r&D&d" => array( 37, 38 ),
 805+ "r&f&n" => array( 38, 38 ),
 806+ "r&n&f" => array( 38, 38 ),
 807+ "r&r&t" => array( 53, 38 ),
 808+ "r&r" => array( 53, 9 ),
 809+ "r&t" => array( 45, 9 ),
 810+ "R1" => array( 38, 38 ),
 811+ "R10" => array( 23, 33 ),
 812+ "R11" => array( 16, 37 ),
 813+ "R12" => array( 38, 24 ),
 814+ "R13" => array( 27, 38 ),
 815+ "R14" => array( 12, 38 ),
 816+ "R15" => array( 22, 38 ),
 817+ "R16" => array( 12, 38 ),
 818+ "R17" => array( 17, 38 ),
 819+ "R18" => array( 22, 38 ),
 820+ "R19" => array( 18, 38 ),
 821+ "R2" => array( 38, 38 ),
 822+ "R20" => array( 24, 37 ),
 823+ "R21" => array( 16, 36 ),
 824+ "R22" => array( 37, 5 ),
 825+ "R23" => array( 37, 9 ),
 826+ "R24" => array( 38, 16 ),
 827+ "R25" => array( 27, 37 ),
 828+ "R3" => array( 37, 33 ),
 829+ "R4" => array( 36, 15 ),
 830+ "R5" => array( 36, 12 ),
 831+ "R6" => array( 34, 19 ),
 832+ "R7" => array( 16, 28 ),
 833+ "R8" => array( 15, 38 ),
 834+ "R8A" => array( 38, 38 ),
 835+ "R9" => array( 16, 37 ),
 836+ "REDDOT" => array( 12, 12 ),
 837+ "S1" => array( 24, 36 ),
 838+ "S10" => array( 23, 24 ),
 839+ "S106" => array( 30, 9 ),
 840+ "S11" => array( 24, 20 ),
 841+ "S12" => array( 38, 19 ),
 842+ "S13" => array( 38, 38 ),
 843+ "S14" => array( 38, 38 ),
 844+ "S14A" => array( 38, 38 ),
 845+ "S15" => array( 37, 38 ),
 846+ "S16" => array( 22, 34 ),
 847+ "S17" => array( 26, 38 ),
 848+ "S17A" => array( 38, 24 ),
 849+ "S18" => array( 29, 36 ),
 850+ "S19" => array( 32, 28 ),
 851+ "S2" => array( 38, 38 ),
 852+ "S20" => array( 13, 25 ),
 853+ "S21" => array( 19, 18 ),
 854+ "S22" => array( 38, 25 ),
 855+ "S23" => array( 37, 25 ),
 856+ "S24" => array( 38, 8 ),
 857+ "S25" => array( 38, 24 ),
 858+ "S26" => array( 23, 28 ),
 859+ "S27" => array( 34, 38 ),
 860+ "S28&Z2" => array( 36, 38 ),
 861+ "S28" => array( 36, 38 ),
 862+ "S29" => array( 8, 38 ),
 863+ "S29s" => array( 6, 27 ),
 864+ "S3" => array( 29, 38 ),
 865+ "S30" => array( 38, 38 ),
 866+ "S31" => array( 38, 38 ),
 867+ "S32" => array( 38, 11 ),
 868+ "S33" => array( 14, 38 ),
 869+ "S34" => array( 20, 38 ),
 870+ "S35" => array( 28, 38 ),
 871+ "S36" => array( 22, 38 ),
 872+ "S37" => array( 12, 38 ),
 873+ "S38" => array( 10, 38 ),
 874+ "S39" => array( 9, 38 ),
 875+ "S4" => array( 38, 38 ),
 876+ "S40" => array( 11, 38 ),
 877+ "S41" => array( 11, 38 ),
 878+ "S42" => array( 12, 38 ),
 879+ "S43" => array( 7, 38 ),
 880+ "S44" => array( 16, 38 ),
 881+ "S45" => array( 28, 30 ),
 882+ "S5" => array( 30, 38 ),
 883+ "S6" => array( 38, 38 ),
 884+ "S7" => array( 37, 38 ),
 885+ "S8" => array( 37, 38 ),
 886+ "S9" => array( 26, 38 ),
 887+ "SPACE" => array( 38, 13 ),
 888+ "sSm&m" => array( 36, 38 ),
 889+ "sti&t" => array( 27, 38 ),
 890+ "stp&s" => array( 35, 38 ),
 891+ "t&A" => array( 27, 38 ),
 892+ "t&A19" => array( 17, 38 ),
 893+ "t&H" => array( 15, 38 ),
 894+ "t&I12" => array( 18, 38 ),
 895+ "t&M30" => array( 15, 38 ),
 896+ "t&nw" => array( 37, 38 ),
 897+ "t&r&f" => array( 38, 38 ),
 898+ "t&r" => array( 45, 9 ),
 899+ "t&s" => array( 15, 38 ),
 900+ "t&sti" => array( 27, 38 ),
 901+ "t&T30" => array( 38, 23 ),
 902+ "T1" => array( 36, 9 ),
 903+ "T10" => array( 38, 6 ),
 904+ "T11" => array( 37, 8 ),
 905+ "T12" => array( 25, 27 ),
 906+ "T13" => array( 14, 38 ),
 907+ "T14" => array( 11, 38 ),
 908+ "T15" => array( 8, 38 ),
 909+ "T16" => array( 38, 12 ),
 910+ "T17" => array( 38, 25 ),
 911+ "T18" => array( 11, 37 ),
 912+ "T19" => array( 11, 38 ),
 913+ "T2" => array( 37, 21 ),
 914+ "T20" => array( 7, 38 ),
 915+ "T21" => array( 38, 15 ),
 916+ "T22" => array( 11, 38 ),
 917+ "T23" => array( 11, 36 ),
 918+ "T24" => array( 29, 25 ),
 919+ "T25" => array( 20, 37 ),
 920+ "T26" => array( 38, 26 ),
 921+ "T27" => array( 38, 15 ),
 922+ "T28" => array( 19, 18 ),
 923+ "T29" => array( 38, 31 ),
 924+ "T3" => array( 8, 38 ),
 925+ "T30" => array( 38, 18 ),
 926+ "T31" => array( 36, 20 ),
 927+ "T32" => array( 36, 30 ),
 928+ "T33" => array( 38, 18 ),
 929+ "T34" => array( 10, 38 ),
 930+ "T35" => array( 7, 38 ),
 931+ "T4" => array( 15, 38 ),
 932+ "T5" => array( 35, 38 ),
 933+ "T6" => array( 35, 38 ),
 934+ "T7" => array( 38, 11 ),
 935+ "T7A" => array( 20, 38 ),
 936+ "T8" => array( 9, 38 ),
 937+ "T8A" => array( 11, 38 ),
 938+ "T8B" => array( 38, 11 ),
 939+ "T9" => array( 38, 7 ),
 940+ "T9A" => array( 38, 8 ),
 941+ "THREE" => array( 34, 24 ),
 942+ "Tr_HSPACE" => array( 5, 15 ),
 943+ "Tr_SPACE" => array( 38, 13 ),
 944+ "TWO" => array( 21, 24 ),
 945+ "U1" => array( 36, 38 ),
 946+ "U10" => array( 34, 28 ),
 947+ "U11" => array( 29, 38 ),
 948+ "U12" => array( 29, 38 ),
 949+ "U13" => array( 37, 26 ),
 950+ "U14" => array( 38, 14 ),
 951+ "U15" => array( 38, 16 ),
 952+ "U16" => array( 38, 25 ),
 953+ "U17" => array( 32, 23 ),
 954+ "U18" => array( 38, 29 ),
 955+ "U19" => array( 34, 25 ),
 956+ "U2" => array( 38, 24 ),
 957+ "U20" => array( 36, 9 ),
 958+ "U21" => array( 36, 22 ),
 959+ "U22" => array( 12, 24 ),
 960+ "U23" => array( 8, 38 ),
 961+ "U24" => array( 12, 38 ),
 962+ "U25" => array( 15, 38 ),
 963+ "U26" => array( 12, 38 ),
 964+ "U27" => array( 8, 38 ),
 965+ "U28" => array( 13, 38 ),
 966+ "U29" => array( 13, 38 ),
 967+ "U3" => array( 38, 38 ),
 968+ "U30" => array( 16, 22 ),
 969+ "U31" => array( 37, 16 ),
 970+ "U32" => array( 14, 38 ),
 971+ "U33" => array( 9, 38 ),
 972+ "U34" => array( 12, 38 ),
 973+ "U35" => array( 32, 38 ),
 974+ "U35s" => array( 23, 27 ),
 975+ "U36" => array( 8, 38 ),
 976+ "U37" => array( 32, 26 ),
 977+ "U38" => array( 38, 38 ),
 978+ "U39" => array( 12, 38 ),
 979+ "U4" => array( 38, 38 ),
 980+ "U40" => array( 20, 38 ),
 981+ "U41" => array( 20, 34 ),
 982+ "U5" => array( 38, 24 ),
 983+ "U6" => array( 24, 37 ),
 984+ "U7" => array( 36, 18 ),
 985+ "U8" => array( 30, 16 ),
 986+ "U9" => array( 34, 22 ),
 987+ "V1" => array( 10, 20 ),
 988+ "V10" => array( 38, 19 ),
 989+ "V10A" => array( 14, 40 ),
 990+ "V11" => array( 19, 19 ),
 991+ "V11A" => array( 16, 40 ),
 992+ "V12" => array( 29, 18 ),
 993+ "V13" => array( 38, 10 ),
 994+ "V14" => array( 38, 10 ),
 995+ "V15" => array( 38, 25 ),
 996+ "V16" => array( 37, 19 ),
 997+ "V17" => array( 13, 38 ),
 998+ "V18" => array( 13, 38 ),
 999+ "V19" => array( 23, 23 ),
 1000+ "V2" => array( 38, 16 ),
 1001+ "V20" => array( 12, 13 ),
 1002+ "V21" => array( 35, 38 ),
 1003+ "V22" => array( 38, 25 ),
 1004+ "V23" => array( 38, 27 ),
 1005+ "V24" => array( 7, 38 ),
 1006+ "V25" => array( 9, 38 ),
 1007+ "V26" => array( 38, 9 ),
 1008+ "V27" => array( 38, 7 ),
 1009+ "V28" => array( 10, 38 ),
 1010+ "V29" => array( 18, 38 ),
 1011+ "V3" => array( 38, 15 ),
 1012+ "V30" => array( 38, 12 ),
 1013+ "V31" => array( 38, 11 ),
 1014+ "V31A" => array( 38, 11 ),
 1015+ "V32" => array( 38, 12 ),
 1016+ "V33" => array( 16, 22 ),
 1017+ "V34" => array( 18, 26 ),
 1018+ "V35" => array( 19, 24 ),
 1019+ "V36" => array( 18, 38 ),
 1020+ "V37" => array( 27, 24 ),
 1021+ "V38" => array( 11, 38 ),
 1022+ "V39" => array( 18, 38 ),
 1023+ "V4" => array( 32, 36 ),
 1024+ "V5" => array( 20, 38 ),
 1025+ "V6" => array( 11, 22 ),
 1026+ "V7" => array( 9, 26 ),
 1027+ "V8" => array( 12, 28 ),
 1028+ "V9" => array( 20, 20 ),
 1029+ "VTHREE" => array( 25, 34 ),
 1030+ "V_HASH" => array( 15, 38 ),
 1031+ "w&&t" => array( 18, 38 ),
 1032+ "w&t" => array( 36, 38 ),
 1033+ "w&y" => array( 38, 38 ),
 1034+ "W1" => array( 20, 38 ),
 1035+ "W10" => array( 21, 14 ),
 1036+ "W10A" => array( 15, 15 ),
 1037+ "W11" => array( 21, 18 ),
 1038+ "W12" => array( 21, 18 ),
 1039+ "W13" => array( 21, 19 ),
 1040+ "W14" => array( 12, 38 ),
 1041+ "W15" => array( 19, 38 ),
 1042+ "W16" => array( 26, 38 ),
 1043+ "W17" => array( 32, 38 ),
 1044+ "W18" => array( 40, 38 ),
 1045+ "W19" => array( 15, 38 ),
 1046+ "W19s" => array( 10, 27 ),
 1047+ "W2" => array( 24, 38 ),
 1048+ "W20" => array( 18, 37 ),
 1049+ "W21" => array( 21, 21 ),
 1050+ "W22" => array( 12, 19 ),
 1051+ "W23" => array( 19, 20 ),
 1052+ "W24" => array( 16, 17 ),
 1053+ "W25" => array( 17, 38 ),
 1054+ "W3" => array( 38, 14 ),
 1055+ "W4" => array( 38, 38 ),
 1056+ "W5" => array( 38, 34 ),
 1057+ "W6" => array( 22, 14 ),
 1058+ "W7" => array( 25, 22 ),
 1059+ "W8" => array( 38, 12 ),
 1060+ "W9" => array( 16, 24 ),
 1061+ "wa&W&a" => array( 36, 38 ),
 1062+ "wn&n&t" => array( 37, 38 ),
 1063+ "wr&r&t" => array( 38, 38 ),
 1064+ "x&f&t" => array( 38, 38 ),
 1065+ "x&mt&t" => array( 36, 38 ),
 1066+ "x&r&t&Y1" => array( 45, 38 ),
 1067+ "x&r&t" => array( 45, 38 ),
 1068+ "X1" => array( 20, 11 ),
 1069+ "X2" => array( 13, 20 ),
 1070+ "X3" => array( 10, 19 ),
 1071+ "X4" => array( 38, 10 ),
 1072+ "X5" => array( 38, 11 ),
 1073+ "X6" => array( 24, 18 ),
 1074+ "X7" => array( 12, 17 ),
 1075+ "X8" => array( 19, 38 ),
 1076+ "xAswt" => array( 38, 38 ),
 1077+ "Y1&A1" => array( 38, 38 ),
 1078+ "Y1&n&f" => array( 38, 38 ),
 1079+ "Y1" => array( 38, 10 ),
 1080+ "Y1V" => array( 10, 38 ),
 1081+ "Y2" => array( 38, 10 ),
 1082+ "Y3" => array( 31, 38 ),
 1083+ "Y4" => array( 31, 38 ),
 1084+ "Y5" => array( 38, 13 ),
 1085+ "Y6" => array( 12, 23 ),
 1086+ "Y7" => array( 18, 36 ),
 1087+ "Y8" => array( 21, 38 ),
 1088+ "z&A1&Z1" => array( 38, 38 ),
 1089+ "z&A1" => array( 38, 38 ),
 1090+ "z&Ab&b" => array( 38, 38 ),
 1091+ "z&Dr&r" => array( 38, 38 ),
 1092+ "z&w" => array( 38, 38 ),
 1093+ "z&X&k" => array( 38, 38 ),
 1094+ "z&x&r" => array( 38, 38 ),
 1095+ "Z1" => array( 4, 16 ),
 1096+ "Z10" => array( 24, 15 ),
 1097+ "Z11" => array( 23, 38 ),
 1098+ "Z1s" => array( 4, 11 ),
 1099+ "Z2" => array( 38, 11 ),
 1100+ "Z2s" => array( 28, 11 ),
 1101+ "Z2ss" => array( 18, 11 ),
 1102+ "Z3" => array( 2, 38 ),
 1103+ "Z3A" => array( 11, 38 ),
 1104+ "Z3as" => array( 11, 18 ),
 1105+ "Z4" => array( 16, 14 ),
 1106+ "Z4B" => array( 20, 20 ),
 1107+ "Z5" => array( 14, 14 ),
 1108+ "Z6&A1" => array( 38, 38 ),
 1109+ "Z6" => array( 38, 21 ),
 1110+ "Z7" => array( 12, 17 ),
 1111+ "Z8" => array( 34, 11 ),
 1112+ "Z9" => array( 16, 16 ),
 1113+ "Z91" => array( 12, 4 ),
 1114+ "Z92" => array( 12, 15 ),
 1115+ "Z93" => array( 12, 26 ),
 1116+ "Z94" => array( 12, 38 ),
 1117+ "Z95" => array( 12, 38 ),
 1118+ "Z98A" => array( 5, 15 ),
 1119+);
 1120+
 1121+?>
\ No newline at end of file
Property changes on: trunk/extensions/wikihiero/wh_list.php
___________________________________________________________________
Added: svn:keywords
11122 + Author Date Id Revision
Added: svn:eol-style
21123 + native
Index: trunk/extensions/wikihiero/wikihiero.php
@@ -0,0 +1,1005 @@
 2+<?php
 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+//////////////////////////////////////////////////////////////////////////
 27+
 28+ //========================================================================
 29+ // I N C L U D E S
 30+ include "wh_list.php";
 31+
 32+ //========================================================================
 33+ // D E F I N E S
 34+ define("WH_TABLE_S", "<table border='0' cellspacing='0' cellpadding='0'>");
 35+ define("WH_TABLE_E", "</table>");
 36+ define("WH_TD_S", "<td align='center' valign='middle'>");
 37+ define("WH_TD_E", "</td>");
 38+
 39+ define("WH_MODE_DEFAULT", -1); // use default mode
 40+ define("WH_MODE_TEXT", 0); // text only
 41+ define("WH_MODE_HTML", 1); // HTML without CSS
 42+ define("WH_MODE_STYLE", 2); // HTML and CSS // not supporter
 43+ define("WH_MODE_IMAGE", 3); // picture (PNG) // not supporter
 44+
 45+ define("WH_TYPE_NONE", 0);
 46+ define("WH_TYPE_GLYPH", 1); // rendered items
 47+ define("WH_TYPE_CODE", 2); // single code as ':', '*', '!', '(' or ')'
 48+ define("WH_TYPE_SPECIAL", 3); // advanced code (more than 1 caracter)
 49+ define("WH_TYPE_END", 4); // end of line '!'
 50+
 51+ define("WH_SCALE_DEFAULT", -1); // use default scale
 52+ define("WH_HEIGHT", 44);
 53+ define("WH_IMG_MARGIN", 1); // default value
 54+ define("WH_CARTOUCHE_WIDTH", 2); // default value
 55+
 56+ define("WH_VER_MAJ", 0);
 57+ define("WH_VER_MED", 2);
 58+ define("WH_VER_MIN", 12);
 59+
 60+ define("WH_IMG_DIR", "$wgScriptPath/extensions/wikihiero/img/" ); //"img/"); //
 61+ define("WH_IMG_PRE", "hiero_");
 62+ define("WH_IMG_EXT", "png");
 63+
 64+ define("WH_DEBUG_MODE", false);
 65+
 66+ //========================================================================
 67+ // G L O B A L S
 68+ $wh_mode = WH_MODE_HTML; // default value
 69+ $wh_scale = 100; // default value
 70+
 71+ $wh_phonemes = array( // convertion table phoneme -> gardiner code
 72+ "mSa" => "A12",
 73+ "xr" => "A15",
 74+ "Xrd" => "A17",
 75+ "sr" => "A21",
 76+ "mniw" => "A33",
 77+ "qiz" => "A38",
 78+ "iry" => "A47",
 79+ "Sps" => "A50",
 80+ "Spsi" => "A51",
 81+/*
 82+ "x" => "J1",
 83+ "mAa" => "J11",
 84+ "gs" => "J13",
 85+ "im" => "J13",
 86+ "M" => "J15",
 87+ "sA" => "J17",
 88+ "apr" => "J20",
 89+ "wDa" => "J21",
 90+ "nD" => "J27",
 91+ "qd" => "J28",
 92+ "Xkr" => "J30",
 93+ "Hp" => "J5",
 94+ "qn" => "J8",
 95+*/
 96+ "x" => "Aa1",
 97+ "mAa" => "Aa11",
 98+ "gs" => "Aa13",
 99+ "im" => "Aa13",
 100+ "M" => "Aa15",
 101+ "sA" => "Aa17",
 102+ "apr" => "Aa20",
 103+ "wDa" => "Aa21",
 104+ "nD" => "Aa27",
 105+ "qd" => "Aa28",
 106+ "Xkr" => "Aa30",
 107+ "Hp" => "Aa5",
 108+ "qn" => "Aa8",
 109+
 110+ "msi" => "B3",
 111+ "mAat" => "C10",
 112+ "HH" => "C11",
 113+ "DHwty" => "C3",
 114+ "Xnmw" => "C4",
 115+ "inpw" => "C6",
 116+ "stX" => "C7",
 117+ "mnw" => "C8",
 118+ "tp" => "D1",
 119+ "wDAt" => "D10",
 120+ "R" => "D153",
 121+ "fnD" => "D19",
 122+ "Hr" => "D2",
 123+ "r" => "D21",
 124+ "rA" => "D21",
 125+ "spt" => "D24",
 126+ "spty" => "D25",
 127+ "mnD" => "D27",
 128+ "kA" => "D28",
 129+ "Sny" => "D3",
 130+ "aHA" => "D34",
 131+ "a" => "D36",
 132+ "ir" => "D4",
 133+ "Dsr" => "D45",
 134+ "d" => "D46",
 135+ "Dba" => "D50",
 136+ "mt" => "D52",
 137+ "gH" => "D56",
 138+ "gHs" => "D56",
 139+ "rd" => "D56",
 140+ "sbq" => "D56",
 141+ "b" => "D58",
 142+ "ab" => "D59",
 143+ "wab" => "D60",
 144+ "sAH" => "D61",
 145+ "rmi" => "D9",
 146+ "zAb" => "E17",
 147+ "mAi" => "E22",
 148+ "l" => "E23",
 149+ "rw" => "E23",
 150+ "Aby" => "E24",
 151+ "wn" => "E34",
 152+ "zzmt" => "E6",
 153+ "wsr" => "F12",
 154+ "wp" => "F13",
 155+ "db" => "F16",
 156+ "Hw" => "F18",
 157+ "bH" => "F18",
 158+ "ns" => "F20",
 159+ "DrD" => "F21",
 160+ "idn" => "F21",
 161+ "msDr" => "F21",
 162+ "sDm" => "F21",
 163+ "kfA" => "F22",
 164+ "pH" => "F22",
 165+ "xpS" => "F23",
 166+ "wHm" => "F25",
 167+ "Xn" => "F26",
 168+ "sti" => "F29",
 169+ "Sd" => "F30",
 170+ "ms" => "F31",
 171+ "X" => "F32",
 172+ "sd" => "F33",
 173+ "ib" => "F34",
 174+ "nfr" => "F35",
 175+ "zmA" => "F36",
 176+ "imAx" => "F39",
 177+ "HAt" => "F4",
 178+ "Aw" => "F40",
 179+ "spr" => "F42",
 180+ "isw" => "F44",
 181+ "iwa" => "F44",
 182+ "pXr" => "F46",
 183+ "qAb" => "F46",
 184+ "SsA" => "F5",
 185+ "A" => "G1",
 186+ "mwt" => "G14",
 187+ "nbty" => "G16",
 188+ "m" => "G17",
 189+ "mm" => "G18",
 190+ "AA" => "G2",
 191+ "nH" => "G21",
 192+ "Db" => "G22",
 193+ "rxyt" => "G23",
 194+ "Ax" => "G25",
 195+ "dSr" => "G27",
 196+ "gm" => "G28",
 197+ "bA" => "G29",
 198+ "baHi" => "G32",
 199+ "aq" => "G35",
 200+ "wr" => "G36",
 201+ "nDs" => "G37",
 202+ "gb" => "G38",
 203+ "zA" => "G39",
 204+ "tyw" => "G4",
 205+ "pA" => "G40",
 206+ "xn" => "G41",
 207+ "wSA" => "G42",
 208+ "w" => "G43",
 209+ "ww" => "G44",
 210+ "mAw" => "G46",
 211+ "TA" => "G47",
 212+ "snD" => "G54",
 213+ "pq" => "H2",
 214+ "wSm" => "H2",
 215+ "pAq" => "H3",
 216+ "nr" => "H4",
 217+ "Sw" => "H6",
 218+ "aSA" => "I1",
 219+ "D" => "I10",
 220+ "DD" => "I11",
 221+ "Styw" => "I2",
 222+ "mzH" => "I3",
 223+ "sbk" => "I4",
 224+ "sAq" => "I5",
 225+ "km" => "I6",
 226+ "Hfn" => "I8",
 227+ "f" => "I9",
 228+ "in" => "K1",
 229+ "ad" => "K3",
 230+ "XA" => "K4",
 231+ "bz" => "K5",
 232+ "nSmt" => "K6",
 233+ "xpr" => "L1",
 234+ "bit" => "L2",
 235+ "srqt" => "L7",
 236+ "iAm" => "M1",
 237+ "wdn" => "M11",
 238+ "xA" => "M12",
 239+ "1000" => "M12",
 240+ "wAD" => "M13",
 241+ "HA" => "M16",
 242+ "i" => "M17",
 243+ "ii" => "M18",
 244+ "Hn" => "M2",
 245+ "sxt" => "M20",
 246+ "sm" => "M21",
 247+ "nn" => "M22A",
 248+ "sw" => "M23",
 249+ "rsw" => "M24",
 250+ "Sma" => "M26",
 251+ "nDm" => "M29",
 252+ "xt" => "M3",
 253+ "bnr" => "M30",
 254+ "bdt" => "M34",
 255+ "Dr" => "M36",
 256+ "rnp" => "M4",
 257+ "iz" => "M40",
 258+ "tr" => "M6",
 259+ "SA" => "M8",
 260+ "zSn" => "M9",
 261+ "pt" => "N1",
 262+ "Abd" => "N11",
 263+ "iaH" => "N11",
 264+ "dwA" => "N14",
 265+ "sbA" => "N14",
 266+ "dwAt" => "N15",
 267+ "tA" => "N16",
 268+ "iw" => "N18",
 269+ "wDb" => "N20",
 270+ "spAt" => "N24",
 271+ "xAst" => "N25",
 272+ "Dw" => "N26",
 273+ "Axt" => "N27",
 274+ "xa" => "N28",
 275+ "q" => "N29",
 276+ "iAt" => "N30",
 277+ "n" => "N35",
 278+ "mw" => "N35A",
 279+ "S" => "N37",
 280+ "iAdt" => "N4",
 281+ "idt" => "N4",
 282+ "Sm" => "N40",
 283+ "id" => "N41",
 284+ "hrw" => "N5",
 285+ "ra" => "N5",
 286+ "zw" => "N5",
 287+ "Hnmmt" => "N8",
 288+ "pzD" => "N9",
 289+ "pr" => "O1",
 290+ "aH" => "O11",
 291+ "wsxt" => "O15",
 292+ "kAr" => "O18",
 293+ "zH" => "O22",
 294+ "txn" => "O25",
 295+ "iwn" => "O28",
 296+ "aA" => "O29",
 297+ "zxnt" => "O30",
 298+ "z" => "O34",
 299+ "zb" => "O35",
 300+ "inb" => "O36",
 301+ "qnbt" => "O38A",
 302+ "h" => "O4",
 303+ "Szp" => "O42",
 304+ "ipt" => "O45",
 305+ "nxn" => "O47",
 306+ "niwt" => "O49",
 307+ "zp" => "O50",
 308+ "Snwt" => "O51",
 309+ "Hwt" => "O6",
 310+ "wHa" => "P4",
 311+ "TAw" => "P5",
 312+ "nfw" => "P5",
 313+ "aHa" => "P6",
 314+ "xrw" => "P8",
 315+ "st" => "Q1",
 316+ "wz" => "Q2",
 317+ "p" => "Q3",
 318+ "qrsw" => "Q6",
 319+ "xAt" => "R1",
 320+ "xAwt" => "R1",
 321+ "Dd" => "R11",
 322+ "dd" => "R11",
 323+ "imnt" => "R14",
 324+ "iAb" => "R15",
 325+ "wx" => "R16",
 326+ "xm" => "R22",
 327+ "Htp" => "R4",
 328+ "kAp" => "R5",
 329+ "kp" => "R5",
 330+ "snTr" => "R7",
 331+ "nTr" => "R8",
 332+ "nTrw" => "R8A",
 333+ "bd" => "R9",
 334+ "HDt" => "S1",
 335+ "mDH" => "S10",
 336+ "wsx" => "S11",
 337+ "nbw" => "S12",
 338+ "THn" => "S15",
 339+ "tHn" => "S15",
 340+ "mnit" => "S18",
 341+ "sDAw" => "S19",
 342+ "xtm" => "S20",
 343+ "sT" => "S22",
 344+ "dmD" => "S23",
 345+ "Tz" => "S24",
 346+ "Sndyt" => "S26",
 347+ "mnxt" => "S27",
 348+ "s" => "S29",
 349+ "N" => "S3",
 350+ "dSrt" => "S3",
 351+ "sf" => "S30",
 352+ "siA" => "S32",
 353+ "Tb" => "S33",
 354+ "anx" => "S34",
 355+ "Swt" => "S35",
 356+ "xw" => "S37",
 357+ "HqA" => "S38",
 358+ "awt" => "S39",
 359+ "wAs" => "S40",
 360+ "Dam" => "S41",
 361+ "abA" => "S42",
 362+ "sxm" => "S42",
 363+ "xrp" => "S42",
 364+ "md" => "S43",
 365+ "Ams" => "S44",
 366+ "nxxw" => "S45",
 367+ "K" => "S56",
 368+ "sxmty" => "S6",
 369+ "xprS" => "S7",
 370+ "Atf" => "S8",
 371+ "Swty" => "S9",
 372+ "pD" => "T10",
 373+ "sXr" => "T11",
 374+ "zin" => "T11",
 375+ "zwn" => "T11",
 376+ "Ai" => "T12",
 377+ "Ar" => "T12",
 378+ "rwD" => "T12",
 379+ "rwd" => "T12",
 380+ "rs" => "T13",
 381+ "qmA" => "T14",
 382+ "wrrt" => "T17",
 383+ "Sms" => "T18",
 384+ "qs" => "T19",
 385+ "wa" => "T21",
 386+ "sn" => "T22",
 387+ "iH" => "T24",
 388+ "DbA" => "T25",
 389+ "Xr" => "T28",
 390+ "nmt" => "T29",
 391+ "HD" => "T3",
 392+ "sSm" => "T31",
 393+ "nm" => "T34",
 394+ "HDD" => "T6",
 395+ "pd" => "T9",
 396+ "mA" => "U1",
 397+ "it" => "U10",
 398+ "HqAt" => "U11",
 399+ "Sna" => "U13",
 400+ "hb" => "U13",
 401+ "tm" => "U15",
 402+ "biA" => "U16",
 403+ "grg" => "U17",
 404+ "stp" => "U21",
 405+ "mnx" => "U22",
 406+ "Ab" => "U23",
 407+ "Hmt" => "U24",
 408+ "wbA" => "U26",
 409+ "DA" => "U28",
 410+ "rtH" => "U31",
 411+ "zmn" => "U32",
 412+ "ti" => "U33",
 413+ "xsf" => "U34",
 414+ "Hm" => "U36",
 415+ "mxAt" => "U38",
 416+ "mr" => "U6",
 417+ "100" => "V1",
 418+ "arq" => "V12",
 419+ "T" => "V13",
 420+ "iTi" => "V15",
 421+ "TmA" => "V19",
 422+ "XAr" => "V19",
 423+ "mDt" => "V19",
 424+ "sTA" => "V2",
 425+ "10" => "V20",
 426+ "mD" => "V20",
 427+ "mH" => "V22",
 428+ "wD" => "V24",
 429+ "aD" => "V26",
 430+ "H" => "V28",
 431+ "sk" => "V29",
 432+ "wAH" => "V29",
 433+ "sTAw" => "V3",
 434+ "nb" => "V30",
 435+ "k" => "V31",
 436+ "msn" => "V32",
 437+ "sSr" => "V33",
 438+ "idr" => "V37",
 439+ "wA" => "V4",
 440+ "snT" => "V5",
 441+ "sS" => "V6",
 442+ "Sn" => "V7",
 443+ "iab" => "W10",
 444+ "g" => "W11",
 445+ "nzt" => "W11",
 446+ "Hz" => "W14",
 447+ "xnt" => "W17",
 448+ "mi" => "W19",
 449+ "bAs" => "W2",
 450+ "Hnqt" => "W22",
 451+ "nw" => "W24",
 452+ "ini" => "W25",
 453+ "Hb" => "W3",
 454+ "Xnm" => "W9",
 455+ "t" => "X1",
 456+ "di" => "X8",
 457+ "rdi" => "X8",
 458+ "mDAt" => "Y1",
 459+ "mnhd" => "Y3",
 460+ "zS" => "Y3",
 461+ "mn" => "Y5",
 462+ "ibA" => "Y6",
 463+ "zSSt" => "Y8",
 464+ "imi" => "Z11",
 465+ "y" => "Z4",
 466+ "W" => "Z7",
 467+
 468+ "<1" => "Ca1", //cartouche
 469+ "2>" => "Ca2",
 470+ "<2" => "Ca2a",
 471+ "1>" => "Ca1a",
 472+ "<0" => "Ca1",
 473+ "0>" => "Ca2",
 474+ "<h1" => "Cah1", //horus
 475+ "h1>" => "Cah1a",
 476+ "<h2" => "Cah2",
 477+ "h2>" => "Cah2a",
 478+ "<h3" => "Cah3",
 479+ "h3>" => "Cah3a",
 480+ "<h0" => "Cah1",
 481+ "h0>" => "Cah1a",
 482+ "<" => "Ca1", //cartouche
 483+ ">" => "Ca2",
 484+ "[&" => "Ba16",
 485+ "&]" => "Ba16",
 486+ "[{" => "Ba17",
 487+ "}]" => "Ba17a",
 488+ "[[" => "Ba15",
 489+ "]]" => "Ba15a",
 490+ "[\"" => "",
 491+ "\"]" => "",
 492+ "['" => "",
 493+ "']" => "",
 494+ );
 495+
 496+/* not used yet
 497+ $wh_syntax = array(
 498+ "-", //block sepatator
 499+ ":", //supperposition
 500+ "*", //juxtaposition
 501+ "(", //open bracket
 502+ ")", //close bracket
 503+ "!!", //end of text
 504+ "!", //end of line
 505+ "..", //blank caracter
 506+ ".", //half-size blank caracter
 507+ "$", //color
 508+ "#", //shade
 509+ "[&", //select
 510+ "&]",
 511+ "[{",
 512+ "}]",
 513+ "[[",
 514+ "]]",
 515+ "[\"",
 516+ "\"]",
 517+ "['",
 518+ "']",
 519+ "<", //cartouche
 520+ ">",
 521+ "<1",
 522+ "2>",
 523+ "<2",
 524+ "1>",
 525+ "<0",
 526+ "0>",
 527+ "<h1", //horus
 528+ "h1>",
 529+ "<h2",
 530+ "h2>",
 531+ "<h3",
 532+ "h3>",
 533+ "<h0",
 534+ "h0>",
 535+ "++", //comment
 536+ "+s", //hieroglyph
 537+ "+t", //transcription
 538+ "+l", //latin-normal
 539+ "+i", //latin-italic
 540+ "+g", //latin-bold (gras)
 541+ "+b", //latin-bold
 542+ "+c",
 543+ );
 544+*/
 545+
 546+ // convertion table for text mode
 547+ $wh_text_conv = array(
 548+ "-" => " ",
 549+ ":" => "-",
 550+ "*" => "-",
 551+ "!" => "<br/>",
 552+ "." => "",
 553+ "=" => "",
 554+ "(" => "",
 555+ ")" => "",
 556+ "<1" => "(",
 557+ "2>" => ")|",
 558+ "<2" => "|(",
 559+ "1>" => ")",
 560+ "<0" => "(",
 561+ "0>" => ")|",
 562+ "<h1" => "[", //horus
 563+ "h1>" => "]",
 564+ "<h2" => "[",
 565+ "h2>" => "]",
 566+ "<h3" => "[",
 567+ "h3>" => "]",
 568+ "<h0" => "[",
 569+ "h0>" => "]",
 570+ "<" => "(", //cartouche
 571+ ">" => ")|",
 572+ );
 573+
 574+ //========================================================================
 575+ // F U N C T I O N S
 576+
 577+ //------------------------------------------------------------------------
 578+ // WH_RenderGlyph - Render a glyph
 579+ //------------------------------------------------------------------------
 580+ // glyph << glyph's code to render
 581+ // option << option to add into <img> tag (use for height)
 582+ // return >> a string to add to the stream
 583+ //------------------------------------------------------------------------
 584+ function WH_RenderGlyph($glyph, $option="")
 585+ {
 586+ global $wh_mode;
 587+ global $wh_phonemes;
 588+ global $wh_files;
 589+ global $wh_scale;
 590+
 591+ if($glyph == "..")
 592+ {
 593+ $width = WH_HEIGHT;
 594+ return "<table width='{$width}px' border='0' cellspacing='0' cellpadding='0'><tr><td>&nbsp;</td></tr></table>";
 595+ }
 596+ else if($glyph == ".")
 597+ {
 598+ $width = WH_HEIGHT/2;
 599+ return "<table width='{$width}px' border='0' cellspacing='0' cellpadding='0'><tr><td>&nbsp;</td></tr></table>";
 600+ }
 601+ else if($glyph == '<')
 602+ {
 603+ $height = intval(WH_HEIGHT * $wh_scale / 100);
 604+ $code = $wh_phonemes[$glyph];
 605+ return "<img src='".htmlspecialchars(WH_IMG_DIR.WH_IMG_PRE."{$code}.".WH_IMG_EXT)."' height='{$height}px' title='".htmlspecialchars($glyph)."' alt='".htmlspecialchars($glyph)."' />";
 606+ }
 607+ else if($glyph == '>')
 608+ {
 609+ $height = intval(WH_HEIGHT * $wh_scale / 100);
 610+ $code = $wh_phonemes[$glyph];
 611+ return "<img src='".htmlspecialchars(WH_IMG_DIR.WH_IMG_PRE."{$code}.".WH_IMG_EXT)."' height='{$height}px' title='".htmlspecialchars($glyph)."' alt='".htmlspecialchars($glyph)."' />";
 612+ }
 613+
 614+ if(array_key_exists($glyph, $wh_phonemes))
 615+ {
 616+ $code = $wh_phonemes[$glyph];
 617+ if(array_key_exists($code, $wh_files))
 618+ return "<img style='margin:".WH_IMG_MARGIN."px;' $option src='".htmlspecialchars(WH_IMG_DIR.WH_IMG_PRE."{$code}.".WH_IMG_EXT)."' title='".htmlspecialchars($code[$glyph])."' alt='".htmlspecialchars($glyph)."' />";
 619+ else
 620+ return "<font title='".htmlspecialchars($code)."'>".htmlspecialchars($glyph)."</font>";
 621+ }
 622+ else if(array_key_exists($glyph, $wh_files))
 623+ return "<img style='margin:".WH_IMG_MARGIN."px;' $option src='".htmlspecialchars(WH_IMG_DIR.WH_IMG_PRE."{$glyph}.".WH_IMG_EXT)."' title='".htmlspecialchars($glyph)."' alt='".htmlspecialchars($glyph)."' />";
 624+ else
 625+ return htmlspecialchars($glyph);
 626+ }
 627+
 628+ //------------------------------------------------------------------------
 629+ // WH_Resize - Resize a glyph
 630+ //------------------------------------------------------------------------
 631+ // item << glyph's code
 632+ // is_cartouche << true if glyph inside a cartouche
 633+ // total << total size of a group for multi-glyph block
 634+ // return >> size
 635+ //------------------------------------------------------------------------
 636+ function WH_Resize($item, $is_cartouche=false, $total=0)
 637+ {
 638+ global $wh_phonemes;
 639+ global $wh_files;
 640+ global $wh_scale;
 641+
 642+ if(array_key_exists($item, $wh_phonemes))
 643+ $glyph = $wh_phonemes[$item];
 644+ else
 645+ $glyph = $item;
 646+
 647+ $margin = 2 * WH_IMG_MARGIN;
 648+ if($is_cartouche)
 649+ $margin += 2 * intval(WH_CARTOUCHE_WIDTH * $wh_scale / 100);
 650+
 651+ if(array_key_exists($glyph, $wh_files))
 652+ {
 653+ $height = $margin + $wh_files[$glyph][1];
 654+ if($total)
 655+ {
 656+ if($total > WH_HEIGHT)
 657+ return (intval( $height * WH_HEIGHT / $total ) - $margin) * $wh_scale / 100;
 658+ else
 659+ return ($height - $margin) * $wh_scale / 100;
 660+ }
 661+ else
 662+ {
 663+ if($height > WH_HEIGHT)
 664+ return (intval( WH_HEIGHT * WH_HEIGHT / $height ) - $margin) * $wh_scale / 100;
 665+ else
 666+ return ($height - $margin) * $wh_scale / 100;
 667+ }
 668+ }
 669+
 670+ return (WH_HEIGHT - $margin) * $wh_scale / 100;
 671+ }
 672+
 673+ //========================================================================
 674+ //
 675+ // W i k i H i e r o
 676+ //
 677+
 678+ //------------------------------------------------------------------------
 679+ // WikiHiero - Render hieroglyph text
 680+ //------------------------------------------------------------------------
 681+ // hiero << text to convert
 682+ // mode << convertion mode [DEFAULT|TEXT|HTML|STYLE|IMAGE] (def=HTML)
 683+ // scale << global scale in percentage (def=100%)
 684+ // line << use line [true|false] (def=false)
 685+ // return >> string with converted code
 686+ //------------------------------------------------------------------------
 687+ function WikiHiero($hiero, $mode=WH_MODE_DEFAULT, $scale=WH_SCALE_DEFAULT, $line=false)
 688+ {
 689+ if($mode != WH_MODE_DEFAULT)
 690+ $wh_mode = $mode;
 691+
 692+ switch($wh_mode)
 693+ {
 694+ case WH_MODE_TEXT: return WikiHieroText($hiero, $line);
 695+ case WH_MODE_HTML: return WikiHieroHTML($hiero, $scale, $line);
 696+ case WH_MODE_STYLE: die("ERROR: CSS version not yet implemented");
 697+ case WH_MODE_IMAGE: die("ERROR: Image version not yet implemented");
 698+ }
 699+ die("ERROR: Unknow mode!");
 700+ }
 701+
 702+ //------------------------------------------------------------------------
 703+ // WikiHieroText - Render hieroglyph text in text mode
 704+ //------------------------------------------------------------------------
 705+ // hiero << text to convert
 706+ // line << use line [true|false] (def=false)
 707+ // return >> string with converted code
 708+ //------------------------------------------------------------------------
 709+ function WikiHieroText($hiero, $line=false)
 710+ {
 711+ global $wh_text_conv;
 712+
 713+ $html = "";
 714+
 715+ if($line)
 716+ $html .= "<hr />\n";
 717+
 718+ for($char=0; $char<strlen($hiero); $char++)
 719+ {
 720+ if(array_key_exists($hiero[$char], $wh_text_conv))
 721+ {
 722+ $html .= $wh_text_conv[$hiero[$char]];
 723+ if($hiero[$char] == '!')
 724+ if($line)
 725+ $html .= "<hr />\n";
 726+ }
 727+ else
 728+ $html .= $hiero[$char];
 729+ }
 730+
 731+ return $html;
 732+ }
 733+
 734+ //------------------------------------------------------------------------
 735+ // WikiHiero - Render hieroglyph text
 736+ //------------------------------------------------------------------------
 737+ // hiero << text to convert
 738+ // scale << global scale in percentage (def=100%)
 739+ // line << use line [true|false] (def=false)
 740+ // return >> string with converted code
 741+ //------------------------------------------------------------------------
 742+ function WikiHieroHTML($hiero, $scale=WH_SCALE_DEFAULT, $line=false)
 743+ {
 744+ global $wh_prefabs;
 745+ global $wh_files;
 746+ global $wh_phonemes;
 747+ global $wh_scale;
 748+
 749+ if($scale != WH_SCALE_DEFAULT)
 750+ $wh_scale = $scale;
 751+
 752+ $html = "";
 753+
 754+ if($line)
 755+ $html .= "<hr />\n";
 756+
 757+ //------------------------------------------------------------------------
 758+ // Split text into block, then split block into item
 759+ $block = array();
 760+ $block[0] = array();
 761+ $block[0][0] = "";
 762+ $block_id = 0;
 763+ $item_id = 0;
 764+ $parenthesis = 0;
 765+ $type = WH_TYPE_NONE;
 766+ $is_cartouche = false;
 767+ $is_striped = false;
 768+
 769+ for($char=0; $char<strlen($hiero); $char++)
 770+ {
 771+ if($hiero[$char] == '(')
 772+ {
 773+ $parenthesis++;
 774+ }
 775+ else if($hiero[$char] == ')')
 776+ {
 777+ $parenthesis--;
 778+ }
 779+ if($parenthesis == 0)
 780+ {
 781+ if($hiero[$char] == '-' || $hiero[$char] == ' ')
 782+ {
 783+ if($type != WH_TYPE_NONE)
 784+ {
 785+ $block_id++;
 786+ $block[$block_id] = array();
 787+ $item_id = 0;
 788+ $block[$block_id][$item_id] = "";
 789+ $type = WH_TYPE_NONE;
 790+ }
 791+ }
 792+ }
 793+ else // don't slit block if inside parenthesis
 794+ {
 795+ if($hiero[$char] == '-')
 796+ {
 797+ $item_id++;
 798+ $block[$block_id][$item_id] = '-';
 799+ $type = WH_TYPE_CODE;
 800+ }
 801+ }
 802+ if($hiero[$char] == '!' )
 803+ {
 804+ if($item_id > 0)
 805+ {
 806+ $block_id++;
 807+ $block[$block_id] = array();
 808+ $item_id = 0;
 809+ }
 810+ $block[$block_id][$item_id] = $hiero[$char];
 811+ $type = WH_TYPE_END;
 812+ }
 813+ else if(ereg("[*:()]", $hiero[$char]))
 814+ {
 815+ if($type == WH_TYPE_GLYPH || $type == WH_TYPE_CODE)
 816+ {
 817+ $item_id++;
 818+ $block[$block_id][$item_id] = "";
 819+ }
 820+ $block[$block_id][$item_id] = $hiero[$char];
 821+ $type = WH_TYPE_CODE;
 822+ }
 823+ else if(ctype_alnum($hiero[$char]) || $hiero[$char] == '.' || $hiero[$char] == '<' || $hiero[$char] == '>')
 824+ {
 825+ if($type == WH_TYPE_END)
 826+ {
 827+ $block_id++;
 828+ $block[$block_id] = array();
 829+ $item_id = 0;
 830+ $block[$block_id][$item_id] = "";
 831+ }
 832+ else if($type == WH_TYPE_CODE)
 833+ {
 834+ $item_id++;
 835+ $block[$block_id][$item_id] = "";
 836+ }
 837+ $block[$block_id][$item_id] .= $hiero[$char];
 838+ $type = WH_TYPE_GLYPH;
 839+ }
 840+ }
 841+
 842+ // DEBUG: See the block split table
 843+ if(WH_DEBUG_MODE)
 844+ {
 845+ foreach($block as $code)
 846+ {
 847+ echo "| ";
 848+ foreach($code as $item)
 849+ {
 850+ echo "$item | ";
 851+ }
 852+ echo "<br />\n";
 853+ }
 854+ }
 855+
 856+ $contentHtml = $tableHtml = $tableContentHtml = "";
 857+ //$html .= WH_TABLE_S."<tr>\n";
 858+
 859+ //------------------------------------------------------------------------
 860+ // Loop into all blocks
 861+ foreach($block as $code)
 862+ {
 863+ // simplest case, the block contain only 1 code -> render
 864+ if(count($code) == 1)
 865+ {
 866+ if($code[0] == "!") // end of line
 867+ {
 868+ $tableHtml = "</tr>".WH_TABLE_E.WH_TABLE_S."<tr>\n";
 869+ if($line)
 870+ $contentHtml .= "<hr />\n";
 871+ }
 872+
 873+ else if(strchr($code[0], '<')) // start cartouche
 874+ {
 875+ $contentHtml .= WH_TD_S.WH_RenderGlyph($code[0]).WH_TD_E;
 876+ $is_cartouche = true;
 877+ $contentHtml .= "<td>".WH_TABLE_S."<tr><td height='".intval(WH_CARTOUCHE_WIDTH * $wh_scale / 100)."px' bgcolor='black'></td></tr><tr><td>".WH_TABLE_S."<tr>";
 878+ }
 879+
 880+ else if(strchr($code[0], '>')) // end cartouche
 881+ {
 882+ $contentHtml .= "</tr>".WH_TABLE_E."</td></tr><tr><td height='".intval(WH_CARTOUCHE_WIDTH * $wh_scale / 100)."px' bgcolor='black'></td></tr>".WH_TABLE_E."</td>";
 883+ $is_cartouche = false;
 884+ $contentHtml .= WH_TD_S.WH_RenderGlyph($code[0]).WH_TD_E;
 885+ }
 886+
 887+ else if($code[0] != "") // assum is glyph or '..' or '.'
 888+ {
 889+ $option = "height='".WH_Resize($code[0], $is_cartouche)."px'";
 890+
 891+ $contentHtml .= WH_TD_S.WH_RenderGlyph($code[0], $option).WH_TD_E;
 892+ }
 893+ }
 894+ // block contain more than 1 glyph
 895+ else
 896+ {
 897+ // convert all code into '&' to test prefabs glyph
 898+ $temp = "";
 899+ foreach($code as $t)
 900+ {
 901+ if(ereg("[*:!()]", $t[0]))
 902+ $temp .= "&";
 903+ else
 904+ $temp .= $t;
 905+ }
 906+ // test is block is into tje prefabs list
 907+ if(in_array($temp, $wh_prefabs))
 908+ {
 909+ $option = "height='".WH_Resize($temp, $is_cartouche)."px'";
 910+
 911+ $contentHtml .= WH_TD_S.WH_RenderGlyph($temp, $option).WH_TD_E;
 912+ }
 913+ // block must be manualy compute
 914+ else
 915+ {
 916+ // get block total height
 917+ $line_max = 0;
 918+ $total = 0;
 919+ $height = 0;
 920+ foreach($code as $t)
 921+ {
 922+ if($t == ":")
 923+ {
 924+ if($height > $line_max)
 925+ $line_max = $height;
 926+ $total += $line_max;
 927+ $line_max = 0;
 928+ }
 929+ else if($t == "*")
 930+ {
 931+ if($height > $line_max)
 932+ $line_max = $height;
 933+ }
 934+ else
 935+ {
 936+ if(array_key_exists($t, $wh_phonemes))
 937+ $glyph = $wh_phonemes[$t];
 938+ else
 939+ $glyph = $t;
 940+
 941+ if(array_key_exists($glyph, $wh_files))
 942+ $height = 2 + $wh_files[$glyph][1];
 943+ }
 944+ }
 945+ if($height > $line_max)
 946+ $line_max = $height;
 947+ $total += $line_max;
 948+
 949+ // render all glyph into the block
 950+ $temp = "";
 951+ foreach($code as $t)
 952+ {
 953+ if($t == ":")
 954+ $temp .= "<br />";
 955+ else if($t == "*")
 956+ $temp .= " ";
 957+ else
 958+ {
 959+ // resize the glyph according to the block total height
 960+ $option = "height='".WH_Resize($t, $is_cartouche, $total)."px'";
 961+ $temp .= WH_RenderGlyph($t, $option);
 962+ }
 963+ }
 964+ $contentHtml .= WH_TD_S.$temp.WH_TD_E;
 965+ }
 966+ $contentHtml .= "\n";
 967+ }
 968+ if(strlen($contentHtml) > 0)
 969+ {
 970+ $tableContentHtml .= $tableHtml.$contentHtml;
 971+ $contentHtml = $tableHtml = "";
 972+ }
 973+ }
 974+ if(strlen($tableContentHtml) > 0)
 975+ {
 976+ $html .= WH_TABLE_S."<tr>\n".$tableContentHtml."</tr>".WH_TABLE_E;
 977+ }
 978+
 979+ return $html;
 980+ }
 981+
 982+ //------------------------------------------------------------------------
 983+ // WH_GetCode - Get glyph code from file name
 984+ //------------------------------------------------------------------------
 985+ // file << file name
 986+ // return >> string with converted code
 987+ //------------------------------------------------------------------------
 988+ function WH_GetCode($file)
 989+ {
 990+ return substr($file, strlen(WH_IMG_PRE), -(1+strlen(WH_IMG_EXT)));
 991+ }
 992+
 993+ //------------------------------------------------------------------------
 994+ // WH_GetCode - Get glyph code from file name
 995+ //------------------------------------------------------------------------
 996+ // return >> credit string
 997+ //------------------------------------------------------------------------
 998+ function WH_Credit()
 999+ {
 1000+ $html = "";
 1001+ $html .= "<b>WikiHiero v".WH_VER_MAJ.".".WH_VER_MED.".".WH_VER_MIN."</b>\n";
 1002+ $html .= "by Guillaume Blanchard (Aoineko) under GPL (2004).<br />\n";
 1003+ $html .= "Hieroglyph credit: S. Rosmorduc, G. Watson, J. Hirst (under GFDL).\n";
 1004+ return $html;
 1005+ }
 1006+?>
\ No newline at end of file
Property changes on: trunk/extensions/wikihiero/wikihiero.php
___________________________________________________________________
Added: svn:keywords
11007 + Author Date Id Revision
Added: svn:eol-style
21008 + native
Index: trunk/extensions/wikihiero/test.html
@@ -0,0 +1,159 @@
 2+<html>
 3+ <head>
 4+ <style>
 5+ span.hiero {
 6+ white-space: nowrap;
 7+ text-align: center;
 8+ display: block;
 9+ height: 46px;
 10+ }
 11+ span.hiero span,
 12+ span.hiero span span,
 13+ span.hiero span span span {
 14+ margin: 0;
 15+ padding: 0;
 16+ background-position: center;
 17+ background-repeat:no-repeat;
 18+ text-align: center;
 19+ vertical-align: center;
 20+ display: block;
 21+ float: left;
 22+ }
 23+ span.hiero span {
 24+ height: 38px;
 25+ width: 29px;
 26+ }
 27+ span.hiero span span {
 28+ height: 20px;
 29+ width:20px;
 30+ }
 31+ span.hiero span span span {
 32+ height: 12px;
 33+ width:14px;
 34+ }
 35+ /* be nice to bad screenreaders, display: none nodes aren't
 36+ ** read by some, most notably claws.
 37+ */
 38+ span.hiero * code {
 39+ display: block;
 40+ width: 0;
 41+ height: 0;
 42+ overflow: hidden;
 43+ }
 44+ /* debugging */
 45+ /*span.hiero span span {
 46+ border: 1px solid Red;
 47+ }*/
 48+
 49+ /*
 50+ ** Alternate version
 51+ */
 52+
 53+ span.imghiero * {
 54+ float: left;
 55+ display: block;
 56+ text-align: center;
 57+ vertical-align: middle;
 58+ }
 59+ </style>
 60+ </head>
 61+ <body>
 62+ <h3>ROW:</h3>
 63+
 64+ <tt>&lt;hiero&gt;A1-A2-Aa1*Aa2:Aa3-A3-A4&lt;/hiero&gt;</tt>
 65+
 66+ <hr>
 67+ <h3>TABLE:</h3>
 68+
 69+ <table border='0' cellspacing='0' cellpadding='0'>
 70+ <tr>
 71+ <td><img src='img/hiero_A1.png' /></td>
 72+ <td><img src='img/hiero_A2.png' /></td>
 73+ <td>
 74+ <table cellspacing='0' cellpadding='0'>
 75+ <tr><td><img src='img/hiero_Aa1.png' /><img src='img/hiero_Aa2.png' /></td></td>
 76+ </table>
 77+ <center><img src='img/hiero_Aa3.png' /></center>
 78+ </td>
 79+ <td><img src='img/hiero_A3.png' /></td>
 80+ <td><img src='img/hiero_A4.png' /></td>
 81+ </tr>
 82+ </table>
 83+
 84+ <hr>
 85+ <h3>SPAN:</h3>
 86+
 87+ <span class="hiero hiero-row-s">
 88+ <span style='background-image: url("img/hiero_A1.png");'><code>- H -</code></span>
 89+ <span style='background-image: url("img/hiero_A2.png");width:27px;'><code>- H -</code></span>
 90+ <span style="width:40px;">
 91+ <span style='background-image:url("img/hiero_Aa1.png"); width:20px;'><code>a</code></span>
 92+ <span style='background-image:url("img/hiero_Aa2.png"); width:20px;'><code>b</code></span>
 93+ <span style='background-image:url("img/hiero_Aa3.png"); width:40px;clear:left;'><code>c</code></span>
 94+ </span>
 95+ <span style='background-image:url("img/hiero_A3.png");width:28px;'><code>- h -</code></span>
 96+ <span style='background-image:url("img/hiero_A4.png");'><code>- h -</code></span>
 97+ </span>
 98+
 99+ <hr>
 100+ <h3>ROW:</h3>
 101+
 102+ <tt>&lt;hiero&gt;A1-A2-(Aa1-Aa2:Aa3):Aa4-A3-A4&lt;/hiero&gt;</tt>
 103+
 104+ <hr>
 105+ <h3>TABLE:</h3>
 106+
 107+ <table border='0' cellspacing='0' cellpadding='0'>
 108+ <tr>
 109+ <td><img src='img/hiero_A1.png' /></td>
 110+ <td><img src='img/hiero_A2.png' /></td>
 111+ <td>
 112+ <table cellspacing='0' cellpadding='0'>
 113+ <tr>
 114+ <td><img src='img/hiero_Aa1.png' height='12' /></td>
 115+ <td><center><img src='img/hiero_Aa2.png' height='12' /><br /><img src='img/hiero_Aa3.png' height='12' /></center></td>
 116+ </tr>
 117+ </table>
 118+ <center><img src='img/hiero_Aa4.png' height='12' /><center>
 119+ </td>
 120+ <td><img src='img/hiero_A3.png' /></td>
 121+ <td><img src='img/hiero_A4.png' /></td>
 122+ </tr>
 123+ </table>
 124+
 125+ <hr>
 126+ <h3>SPAN:</h3>
 127+
 128+ <span class="hiero hiero-row-s">
 129+ <span style='background-image:url("img/hiero_A1.png");'><code>- H -</code></span>
 130+ <span style='background-image:url("img/hiero_A2.png");width:27px;'><code>- H -</code></span>
 131+ <span>
 132+ <span style='background-image:url("img/hiero_Aa1.png");width:12px;'><code>b</code></span>
 133+ <span style="width:12px">
 134+ <span style='background-image:url("img/hiero_Aa2.png");'><code>d</code></span>
 135+ <span style='background-image:url("img/hiero_Aa3.png");clear:left;'><code>d</code></span>
 136+ </span>
 137+ <span style='background-image:url("img/hiero_Aa4.png");clear:left;width:29px;'><code>a</code></span>
 138+ </span>
 139+ <span style='background-image:url("img/hiero_A3.png");width:28px;'><code>- H -</code></span>
 140+ <span style='background-image:url("img/hiero_A4.png");'><code>- H -</code></span>
 141+ </span>
 142+
 143+ <h3>Span with images:</h3>
 144+
 145+ <span class="imghiero">
 146+ <img src='img/hiero_A1.png' alt="H"/>
 147+ <img src='img/hiero_A2.png' alt="H"/>
 148+ <span>
 149+ <img src='img/hiero_Aa1.png' style="margin-top:6px;height:12px;" alt="b"/>
 150+ <span>
 151+ <img src='img/hiero_Aa2.png' style="margin-left:3px;height:12px;" alt="d"/>
 152+ <img src='img/hiero_Aa3.png' style="height:12px;clear:left;" alt="d"/>
 153+ </span>
 154+ <img src='img/hiero_Aa4.png' style="height:12px;clear:left;" alt="a"/>
 155+ </span>
 156+ <img src='img/hiero_A3.png' alt="H"/>
 157+ <img src='img/hiero_A4.png' alt="H"/>
 158+ </span>
 159+ </body>
 160+ </html>
Property changes on: trunk/extensions/wikihiero/test.html
___________________________________________________________________
Added: svn:keywords
1161 + Author Date Id Revision
Added: svn:eol-style
2162 + native
Index: trunk/extensions/wikihiero/wh_language.php
@@ -0,0 +1,460 @@
 2+<?php
 3+
 4+ $wh_language = array(
 5+ "Lang" => array(
 6+ "fr" => "Français",
 7+ "en" => "English",
 8+ "sv" => "Svenska",
 9+ "nl" => "Nederlands",
 10+ "ja" => "日本語",
 11+ "zh" => "中文",
 12+ "eo" => "Esperanto",
 13+ "ia" => "Interlingua",
 14+ "pt" => "Português", ),
 15+ "Syntax" => array(
 16+ "en" => "Syntax",
 17+ "eo" => "Sintakso",
 18+ "fr" => "Syntaxe",
 19+ "ia" => "Syntaxe",
 20+ "pt" => "Sintaxe",
 21+ "ja" => "文法",
 22+ "zh" => "语法",
 23+ "nl" => "Syntax",
 24+ "sv" => "Syntax" ),
 25+ "!" => array(
 26+ "en" => "end of line",
 27+ "eo" => "linifino",
 28+ "fr" => "fin de ligne",
 29+ "ia" => "fin de linea",
 30+ "pt" => "fim de linha",
 31+ "ja" => "行の終わり",
 32+ "zh" => "一行中止",
 33+ "nl" => "einde van regel",
 34+ "sv" => "radbrytning" ),
 35+ "-" => array(
 36+ "en" => "separator",
 37+ "eo" => "disigilo",
 38+ "fr" => "separateur",
 39+ "ia" => "separator",
 40+ "pt" => "separador",
 41+ "ja" => "セパレータ",
 42+ "zh" => "分隔符",
 43+ "nl" => "scheidingsteken",
 44+ "sv" => "separator" ),
 45+ ":" => array(
 46+ "en" => "subdivision",
 47+ "eo" => "subdivido",
 48+ "fr" => "subdivision",
 49+ "ia" => "subdivision",
 50+ "pt" => "subdivisão",
 51+ "ja" => "小区間",
 52+ "zh" => "分割",
 53+ "nl" => "onderverdeling",
 54+ "sv" => "underavdelning" ),
 55+ "*" => array(
 56+ "en" => "juxtaposition",
 57+ "eo" => "apudmeto",
 58+ "fr" => "juxtaposition",
 59+ "ia" => "juxtaposition",
 60+ "pt" => "justaposição",
 61+ "ja" => "対置",
 62+ "zh" => "并列",
 63+ "nl" => "nevenschikking",
 64+ "sv" => "juxaposition (stående förbindelse)" ),
 65+ "Tables" => array(
 66+ "en" => "Hieroglyph tables",
 67+ "eo" => "Hieroglifaj tabeloj",
 68+ "fr" => "Tables des hiéroglyphes",
 69+ "ia" => "Tabellas de hieroglyphos",
 70+ "pt" => "Tabelas de hieroglifos",
 71+ "ja" => "ヒエログラフの表",
 72+ "zh" => "象形文字表",
 73+ "nl" => "Tabellen met hiërogliefen",
 74+ "sv" => "Hieroglyftabeller" ),
 75+ "Convert" => array(
 76+ "en" => "Convert",
 77+ "eo" => "Konverti",
 78+ "fr" => "Convertir",
 79+ "ia" => "Converter",
 80+ "pt" => "Converter",
 81+ "ja" => "変換",
 82+ "zh" => "转换",
 83+ "nl" => "Converteer",
 84+ "sv" => "Konvertera" ),
 85+ "Text" => array(
 86+ "en" => "Type your text here",
 87+ "eo" => "Tajpu vian tekston tie ĉi",
 88+ "fr" => "Tapez votre texte ici",
 89+ "ia" => "Scribe tu texto hic",
 90+ "pt" => "Digite o seu texto aqui",
 91+ "ja" => "テクスト",
 92+ "zh" => "在这里输入文本",
 93+ "nl" => "Type hier een tekst",
 94+ "sv" => "Skriv din text här" ),
 95+ "TEXT" => array(
 96+ "en" => "Use text only",
 97+ "eo" => "Uzu nur tekston",
 98+ "fr" => "Utiliser seulement du texte",
 99+ "ia" => "Usar solmente texto",
 100+ "pt" => "Usar somente texto",
 101+ "ja" => "テクストのみ",
 102+ "zh" => "只能使用文本格式",
 103+ "nl" => "Gebruik alleen tekst",
 104+ "sv" => "Använd enbart text" ),
 105+ "HTML" => array(
 106+ "en" => "Use standard HTML only",
 107+ "eo" => "Uzu nur standardan HTMLon",
 108+ "fr" => "Utiliser seulement le HTML standard",
 109+ "ia" => "Usar solmente HTML standard",
 110+ "pt" => "Usar somente HTML padrão",
 111+ "ja" => "標準的HTMLのみ",
 112+ "zh" => "只能使用标准HTML",
 113+ "nl" => "Gebruik alleen standaard HTML",
 114+ "sv" => "Använd endast standard-HTML" ),
 115+ "CSS" => array(
 116+ "en" => "Use HTML and Cascading Style Sheets",
 117+ "eo" => "Uzu HTMLon kaj kaskadajn folistilojn (CSS)",
 118+ "fr" => "Utiliser le HTML et les feuilles de style",
 119+ "ia" => "Usar HTML e folios de stilo (CSS)",
 120+ "pt" => "Usar HTML e folhas de estilo (CSS)",
 121+ "ja" => "HTMLとCSS",
 122+ "zh" => "使用HTML和CCS",
 123+ "nl" => "Gebruik HMTL and Cascading Style Sheets",
 124+ "sv" => "Använd HTML och Cascading Style Shhets" ),
 125+ "Image" => array(
 126+ "en" => "Create an image (PNG)",
 127+ "eo" => "Kreu PNG-bildon",
 128+ "fr" => "Créer une image (PNG)",
 129+ "ia" => "Crear un imagine (PNG)",
 130+ "pt" => "Criar uma imagem (PNG)",
 131+ "ja" => "画像を生成(PNG)",
 132+ "zh" => "创建一幅图像(PNG)",
 133+ "nl" => "Genereer een afbeelding (PNG)",
 134+ "sv" => "Skapa en PNG-bild" ),
 135+ "Mode" => array(
 136+ "en" => "Select the convert mode",
 137+ "eo" => "Elektu la konvertmodon",
 138+ "fr" => "Selectionnez le mode de conversion",
 139+ "ia" => "Selectiona le modo de conversion",
 140+ "pt" => "Selecione o modo de conversão",
 141+ "ja" => "変換のタイプを選んで下さい",
 142+ "zh" => "请选择转换模式",
 143+ "nl" => "Kies de wijze van omzetten",
 144+ "sv" => "Välj konverteringsmetod" ),
 145+ "Size" => array(
 146+ "en" => "Select the lines height",
 147+ "eo" => "Elektu la linialtecon",
 148+ "fr" => "Selectionnez la hauteur des lignes",
 149+ "ia" => "Selectiona le altor del lineas",
 150+ "pt" => "Selecione a altura das linhas",
 151+ "ja" => "行幅を指定して下さい",
 152+ "zh" => "请选择行高",
 153+ "nl" => "Selecteer de regelhoogte",
 154+ "sv" => "Välj radhöjd" ),
 155+
 156+/* ADD 2004/03/25 - START */
 157+
 158+ "Scale" => array(
 159+ "en" => "Scale",
 160+ "eo" => "Skalo",
 161+ "fr" => "Échelle",
 162+ "ia" => "Scala",
 163+ "pt" => "Escala",
 164+ "ja" => "スケール", ),
 165+
 166+ "Line" => array(
 167+ "en" => "Line",
 168+ "eo" => "Linio",
 169+ "fr" => "Ligne",
 170+ "ia" => "Linea",
 171+ "pt" => "Linha",
 172+ "ja" => "線", ),
 173+
 174+/* ADD 2004/03/25 - END */
 175+
 176+ "Phoneme" => array(
 177+ "en" => "Phonemes",
 178+ "eo" => "Fonemoj",
 179+ "fr" => "Phonèmes",
 180+ "ia" => "Phonemas",
 181+ "pt" => "Fonemas",
 182+ "ja" => "音素",
 183+ "zh" => "音素",
 184+ "nl" => "Fonemen",
 185+ "sv" => "Fonem" ),
 186+ "A" => array(
 187+ "en" => "Man and his occupations",
 188+ "eo" => "Viro kaj liaj okupoj",
 189+ "fr" => "Hommes et leurs occupations",
 190+ "ia" => "Le homine e su occupationes",
 191+ "pt" => "O homem e suas ocupações",
 192+ "ja" => "男性と職業",
 193+ "zh" => "男人和他的职业",
 194+ "nl" => "De man en zijn bezigheden",
 195+ "sv" => "Mannen och hans sysslor" ),
 196+ "B" => array(
 197+ "en" => "Woman and her occupations",
 198+ "eo" => "Virino kaj ŝiaj okupoj",
 199+ "fr" => "Femmes et leurs occupations",
 200+ "ia" => "Le femina e su occupationes",
 201+ "pt" => "A mulher e suas ocupações",
 202+ "ja" => "女性と職業",
 203+ "zh" => "女人和她的职业",
 204+ "nl" => "De vrouw en haar bezigheden",
 205+ "sv" => "Kvinnan och hennes sysslor" ),
 206+ "C" => array(
 207+ "en" => "Anthropomorphic Deities",
 208+ "eo" => "Homformaj diuloj",
 209+ "fr" => "Divinités",
 210+ "ia" => "Divinitates anthropomorphe",
 211+ "pt" => "Divindades antropomorfas",
 212+ "ja" => "擬人化された神",
 213+ "zh" => "神",
 214+ "nl" => "Anthropomorfe Goden",
 215+ "sv" => "Gudomligheter" ),
 216+ "D" => array(
 217+ "en" => "Parts of the Human Body",
 218+ "eo" => "Homkorpaj partoj",
 219+ "fr" => "Parties du corps humain",
 220+ "ia" => "Partes del corpore human",
 221+ "pt" => "Partes do corpo humano",
 222+ "ja" => "人の身体の一部",
 223+ "zh" => "人体的部分",
 224+ "nl" => "Delen van het menselijk lichaam",
 225+ "sv" => "Kroppens delar" ),
 226+ "E" => array(
 227+ "en" => "Mammals",
 228+ "eo" => "Mamuloj",
 229+ "fr" => "Animaux mammifères",
 230+ "ia" => "Mammiferos",
 231+ "pt" => "Mamíferos",
 232+ "ja" => "哺乳類",
 233+ "zh" => "哺乳动物",
 234+ "nl" => "Zoogdieren",
 235+ "sv" => "Däggdjur" ),
 236+ "F" => array(
 237+ "en" => "Parts of Mammals",
 238+ "eo" => "Mamulaj partoj",
 239+ "fr" => "Parties de mammifères",
 240+ "ia" => "Partes de mammiferos",
 241+ "pt" => "Partes de mamíferos",
 242+ "ja" => "哺乳類の一部",
 243+ "zh" => "哺乳动物的部分",
 244+ "nl" => "Delen van zoogdieren",
 245+ "sv" => "Däggdjurens kroppsdelar" ),
 246+ "G" => array(
 247+ "en" => "Birds",
 248+ "eo" => "Birdoj",
 249+ "fr" => "Oiseaux",
 250+ "ia" => "Aves",
 251+ "pt" => "Aves",
 252+ "ja" => "鳥類",
 253+ "zh" => "鸟",
 254+ "nl" => "Vogels",
 255+ "sv" => "Fåglar" ),
 256+ "H" => array(
 257+ "en" => "Parts of Birds",
 258+ "eo" => "Birdaj partoj",
 259+ "fr" => "Parties d'oiseaux",
 260+ "ia" => "Partes de aves",
 261+ "pt" => "Partes de aves",
 262+ "ja" => "鳥の一部",
 263+ "zh" => "鸟的部分",
 264+ "nl" => "Delen van vogels",
 265+ "sv" => "Fåglarnas kroppsdelar" ),
 266+ "I" => array(
 267+ "en" => "Amphibious Animals, Reptiles, etc.",
 268+ "eo" => "Amfibiaj bestoj, Reptilioj, ktp.",
 269+ "fr" => "Amphibiens, reptiles, etc.",
 270+ "ia" => "Amphibios, reptiles, etc.",
 271+ "pt" => "Anfíbios, répteis, etc.",
 272+ "ja" => "両棲類、爬虫類、など",
 273+ "zh" => "两栖动物、爬行动物等等",
 274+ "nl" => "Ampfibieën, Reptielen, etc",
 275+ "sv" => "Insekter" ),
 276+ "J" => array(
 277+ "en" => "?",
 278+ "eo" => "?", ),
 279+ "K" => array(
 280+ "en" => "Fishes and Parts of Fishes",
 281+ "eo" => "Fiŝoj kaj Fiŝaj partoj",
 282+ "fr" => "Poissons et parties de poissons",
 283+ "ia" => "Pisces e partes de pisces",
 284+ "pt" => "Peixes e partes de peixes",
 285+ "ja" => "魚類、または魚の一部",
 286+ "zh" => "鱼类或鱼类的部分",
 287+ "nl" => "Vissen en delen daarvan",
 288+ "sv" => "Fiskar och fiskarnas kroppsdelar", ),
 289+ "L" => array(
 290+ "en" => "Invertebrata and Lesser Animals",
 291+ "eo" => "Invertebruloj kaj malgrandaj bestoj",
 292+ "fr" => "Invertébrés",
 293+ "ia" => "Invertebratos",
 294+ "pt" => "Invertebrados",
 295+ "ja" => "Invertebrata",
 296+ "zh" => "无脊椎动物",
 297+ "nl" => "Invertebraten en lagere dieren",
 298+ "sv" => "Ryggradslösa djur och mindre djur", ),
 299+ "M" => array(
 300+ "en" => "Trees and Plants",
 301+ "eo" => "Arboj kaj Plantoj",
 302+ "fr" => "Végétaux",
 303+ "ia" => "Vegetales",
 304+ "pt" => "Vegetais",
 305+ "ja" => "植物",
 306+ "zh" => "植物",
 307+ "nl" => "Bomen en Planten",
 308+ "sv" => "Träd och växter", ),
 309+ "N" => array(
 310+ "en" => "Sky, Earth, Water",
 311+ "eo" => "Ĉielo, Tero, Akvo",
 312+ "fr" => "Ciel, Terre, Eau",
 313+ "ia" => "Celo, terra, aqua",
 314+ "pt" => "Céu, terra, água",
 315+ "ja" => "空、大地、水",
 316+ "zh" => "天空、大地、水",
 317+ "nl" => "Hemel, Aarde, Water",
 318+ "sv" => "Himmel, jord, vatten", ),
 319+ "O" => array(
 320+ "en" => "Buildings and Parts of Buildings",
 321+ "eo" => "Konstruaĵoj kaj konstruaĵaj partoj",
 322+ "fr" => "Bâtiments et parties de bâtiments",
 323+ "ia" => "Edificios e partes de edificios",
 324+ "pt" => "Edifícios e partes de edifícios",
 325+ "ja" => "建物とその一部",
 326+ "zh" => "建筑和建筑的部分",
 327+ "nl" => "Gebouwen en delen daarvan",
 328+ "sv" => "Byggnader och byggnadsdelar", ),
 329+ "P" => array(
 330+ "en" => "Ships and Parts of Ships",
 331+ "eo" => "Ŝipoj kaj Ŝipaj partoj",
 332+ "fr" => "Bateaux et parties de bateaux",
 333+ "ia" => "Naves e partes de naves",
 334+ "pt" => "Embarcações e partes de embarcações",
 335+ "ja" => "船舶類とその一部",
 336+ "zh" => "船舶和船舶的部分",
 337+ "nl" => "Schepen en delen daarvan",
 338+ "sv" => "Fartyg och delar av fartyg", ),
 339+ "Q" => array(
 340+ "en" => "Domestic and Funerary Furniture",
 341+ "eo" => "Domaĵoj kaj Funebraĵoj",
 342+ "fr" => "Fournitures domestiques et funéraires",
 343+ "ia" => "Mobiliario domestic e funerari",
 344+ "pt" => "Mobiliário doméstico e funerário",
 345+ "ja" => "家具と葬具",
 346+ "zh" => "陪葬的家具和仆人",
 347+ "nl" => "Meubels (ook voor begrafenissen)",
 348+ "sv" => "Möbler och begravningsföremål", ),
 349+ "R" => array(
 350+ "en" => "Temple Furniture and Sacret Emblems",
 351+ "eo" => "Templaj objektoj kaj Sanktegaj Emblemoj",
 352+ "fr" => "Fournitures et emblèmes sacrés",
 353+ "ia" => "Mobiliario templari e emblemas sacrate",
 354+ "pt" => "Mobiliário templário e emblemas sagrados",
 355+ "ja" => "寺院の祭具と聖なる紋章",
 356+ "zh" => "寺院祭具和祭祀徽章",
 357+ "nl" => "Tempelinrichting en heilige emblemen",
 358+ "sv" => "Tempelinredning och heliga emblem", ),
 359+ "S" => array(
 360+ "en" => "Crowns, Dress, Staves, etc.",
 361+ "eo" => "Kronoj, Vestoj, Iloj, ktp.",
 362+ "fr" => "Couronnes, Vêtements, Ustensiles",
 363+ "ia" => "Coronas, vestes, sceptros, etc.",
 364+ "pt" => "Coroas, vestes, cetros, etc.",
 365+ "ja" => "王冠、ドレス、杖",
 366+ "zh" => "王冠、服饰、棍仗等等",
 367+ "nl" => "Kronen, Kledij, Hulpmiddelen als een staf e.d.",
 368+ "sv" => "Kronor, kläder, utensilier", ),
 369+ "T" => array(
 370+ "en" => "Warfare, Hunting, Butchery",
 371+ "eo" => "Milito, Ĉaso, Buĉado",
 372+ "fr" => "Armes, Chasse, Boucherie",
 373+ "ia" => "Guerra, chassa, macelleria",
 374+ "pt" => "Guerra, caça, carniçaria",
 375+ "ja" => "戦、狩、肉捌き",
 376+ "zh" => "战争、狩猎、屠场",
 377+ "nl" => "Oorlog, Jacht, Slagerij",
 378+ "sv" => "Krig, jakt, slakt", ),
 379+ "U" => array(
 380+ "en" => "Agriculture, Crafts and Professions",
 381+ "eo" => "Agrikulturo, Metioj kaj Profesioj",
 382+ "fr" => "Instruments agricoles et outils",
 383+ "ia" => "Agricultura, mestieros e professiones",
 384+ "pt" => "Agricultura, ofícios e profissões",
 385+ "ja" => "農耕具と職業",
 386+ "zh" => "农业、手工业",
 387+ "nl" => "Landbouw, Nijverheid, Werktuigen",
 388+ "sv" => "Jordbruksredskap", ),
 389+ "V" => array(
 390+ "en" => "Rope, Fibre, Baskets, Bags, etc.",
 391+ "eo" => "Ŝnuroj, Korboj, Sakoj",
 392+ "fr" => "Cordes, Corbeilles, Sacs",
 393+ "ia" => "Cordas, fibras, corbes, saccos, etc.",
 394+ "pt" => "Cordas, fibras, cestos, sacos, etc.",
 395+ "ja" => "ロープ、繊維、バスケット、バッグなど",
 396+ "zh" => "绳、纤维、篮子、袋子等等",
 397+ "nl" => "Touw, Manden, Zakken, e.d.",
 398+ "sv" => "Rep, korgar o.dyl.", ),
 399+ "W" => array(
 400+ "en" => "Vessels of Stone and Earthenware",
 401+ "eo" => "Vazoj el ŝtono kaj kuirita tero",
 402+ "fr" => "Vases",
 403+ "ia" => "Vasos",
 404+ "pt" => "Vasos",
 405+ "ja" => "壺などの土器類",
 406+ "zh" => "石陶容器",
 407+ "nl" => "Vazen",
 408+ "sv" => "Skålar och kärl", ),
 409+ "X" => array(
 410+ "en" => "Loaves and Cakes",
 411+ "eo" => "Panoj kaj Kukoj",
 412+ "fr" => "Pains",
 413+ "ia" => "Panes e tortas",
 414+ "pt" => "Pães e bolos",
 415+ "ja" => "パン",
 416+ "zh" => "面包和蛋糕",
 417+ "nl" => "Brood, Deegwaren",
 418+ "sv" => "Bröd", ),
 419+ "Y" => array(
 420+ "en" => "Writing, Games, Music",
 421+ "eo" => "Skribado, Ludoj, Muziko",
 422+ "fr" => "Ecriture, Jeux, Musique",
 423+ "ia" => "Scriptura, jocos, musica",
 424+ "pt" => "Escrita, jogos, música",
 425+ "ja" => "文書、ゲーム、音楽",
 426+ "zh" => "写作、游戏、音乐",
 427+ "nl" => "Schrijven, Spel, Muziek",
 428+ "sv" => "Skrift, spel, musik", ),
 429+ "Z" => array(
 430+ "en" => "Strokes, Geometrical Figures, etc.",
 431+ "eo" => "Strekoj, Geometriaj Figuroj, ktp.",
 432+ "fr" => "Traits et formes géométriques",
 433+ "ia" => "Tractos e formas geometric",
 434+ "pt" => "Traços e formas geométricas",
 435+ "ja" => "線、幾何学図形など",
 436+ "zh" => "线、几何图形等等",
 437+ "nl" => "Lijnen, Geometrische figuren",
 438+ "sv" => "Linjer, geometriska figurer o.dyl.", ),
 439+ "Aa" => array(
 440+ "en" => "Unclassified",
 441+ "eo" => "Neklasifikita",
 442+ "fr" => "Signes non classés",
 443+ "ia" => "Signos non classificate",
 444+ "pt" => "Signos não classificados",
 445+ "ja" => "その他",
 446+ "zh" => "未分类",
 447+ "nl" => "Niet geclassificeerd",
 448+ "sv" => "Övrigt", ),
 449+ "All" => array(
 450+ "en" => "All hierogplyph",
 451+ "eo" => "Ĉiuj hieroglifoj",
 452+ "fr" => "Tous les hiéroglyphes",
 453+ "ia" => "Tote le hieroglyphos",
 454+ "pt" => "Todos os hieroglifos",
 455+ "ja" => "全ヒエログリフ",
 456+ "zh" => "所有象形文字",
 457+ "nl" => "Alle hiërogliefen",
 458+ "sv" => "Alla hieroglyfer", ),
 459+ );
 460+
 461+?>
\ No newline at end of file
Property changes on: trunk/extensions/wikihiero/wh_language.php
___________________________________________________________________
Added: svn:keywords
1462 + Author Date Id Revision
Added: svn:eol-style
2463 + native
Index: trunk/extensions/wikihiero/readme.txt
@@ -0,0 +1,104 @@
 2+//////////////////////////////////////////////////////////////////////////
 3+
 4+ WikiHiero - A PHP converter from text using "Manual for the encoding of
 5+ hieroglyphic texts for computer input" syntax into HTML entities (table and
 6+ images).
 7+
 8+ Copyright (C) 2004 Guillaume Blanchard (Aoineko)
 9+
 10+ This program is free software; you can redistribute it and/or
 11+ modify it under the terms of the GNU General Public License
 12+ as published by the Free Software Foundation; either version 2
 13+ of the License, or any later version.
 14+
 15+ This program is distributed in the hope that it will be useful,
 16+ but WITHOUT ANY WARRANTY; without even the implied warranty of
 17+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 18+ GNU General Public License for more details.
 19+
 20+ You should have received a copy of the GNU General Public License
 21+ along with this program; if not, write to the Free Software
 22+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 23+
 24+//////////////////////////////////////////////////////////////////////////
 25+
 26+ Hieroglyphs pictures
 27+
 28+ Copyright (c) 2004 S. Rosmorduc, G. Watson, J. Hirst
 29+
 30+ Permission is granted to copy, distribute and/or modify those pictures
 31+ under the terms of the GNU Free Documentation License, Version 1.2
 32+ or any later version published by the Free Software Foundation;
 33+ with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
 34+ Texts. A copy of the license is included in the section entitled "GNU
 35+ Free Documentation License".
 36+
 37+//////////////////////////////////////////////////////////////////////////
 38+
 39+== INSTALL AS A WEB PAGE ==
 40+
 41+You need a server running Apache and PHP. WikiHiero was tested with
 42+Apache 1.3.27 and PHP 4.3.3, but must work with oldest version.
 43+
 44+1) Copy all file to your server.
 45+2) Enjoy!
 46+
 47+If you rename the pictures directory, pictures prefix or extension, please
 48+modify "wikihiero.php" to fit your changes. If you modify any picture size,
 49+or add/remove pictures, you need to run "wh_generate.php" to build an updated
 50+"wh_list.php".
 51+
 52+
 53+== ADD WIKI-HIERO TO YOUR HOMEPAGE, FORUM ==
 54+
 55+You need a server running Apache and PHP. WikiHiero was tested with
 56+Apache 1.3.27 and PHP 4.3.3, but must work with oldest version.
 57+
 58+1) Copy "hikihiero.php", "wh_list.php" and "img" directory to your server.
 59+2) Include "hikihiero.php" at the top of the file where you want to use it:
 60+ <?php include "hikihiero.php"; ?>
 61+ In both file are not in the same folder, don't forget to specify the path.
 62+3) Where you want show hieroglyphs, add the line
 63+ <?php echo WikiHiero("my_text"); ?>
 64+4) Enjoy!
 65+
 66+If you rename the pictures directory, pictures prefix or extension, please
 67+modify "wikihiero.php" to fit your changes. If you modify any picture size,
 68+or add/remove pictures, you need to run "wh_generate.php" to build an updated
 69+"wh_list.php".
 70+
 71+== Version history ==
 72+
 73+0.2.0: New parser
 74+
 75+0.2.1: Fix link to hieroglyph tables
 76+
 77+0.2.2:
 78+- Fix hieroglyph size when into a [[w:cartouche|cartouche]]
 79+- Fix phonemes table to use 'Aa' category rather than 'J'
 80+
 81+0.2.3: Add Swedish interface
 82+
 83+0.2.4: Add Japanese and Dutch interface
 84+
 85+0.2.5:
 86+- Fix Swedish interface
 87+- Create a function to handle language entries lack
 88+- Change 'height' option by a 'scale' (in percentage)
 89+- Add a 'line' option to split text lines
 90+
 91+0.2.6:
 92+- Add source annotation.
 93+- Support of both '-' and ' ' as separator
 94+
 95+0.2.7:
 96+- Add parsing process duration.
 97+- Add download section
 98+
 99+0.2.8:
 100+- Add Chinese interface.
 101+- Minor fix
 102+
 103+0.2.9:
 104+- Add Esperanto interface.
 105+- Fix cartouche size
\ No newline at end of file
Property changes on: trunk/extensions/wikihiero/readme.txt
___________________________________________________________________
Added: svn:keywords
1106 + Author Date Id Revision
Added: svn:eol-style
2107 + native
Index: trunk/extensions/wikihiero/wh_table.php
@@ -0,0 +1,115 @@
 2+<?php
 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+//////////////////////////////////////////////////////////////////////////
 27+
 28+ include "wh_language.php";
 29+ include "wikihiero.php";
 30+
 31+ if(array_key_exists("table", $_GET))
 32+ $table = $_GET["table"];
 33+ else
 34+ $table = "All";
 35+
 36+ if(array_key_exists("lang", $_GET))
 37+ $lang = $_GET["lang"];
 38+ else
 39+ $lang = "fr";
 40+
 41+ function WH_Text( $index )
 42+ {
 43+ global $wh_language;
 44+ global $lang;
 45+
 46+ if(isset($wh_language[$index]))
 47+ {
 48+ if(isset($wh_language[$index][$lang]))
 49+ return $wh_language[$index][$lang];
 50+ else
 51+ return $wh_language[$index]["en"];
 52+ }
 53+ return "";
 54+ }
 55+
 56+?>
 57+<html lang=<?php echo $lang; ?>>
 58+ <head>
 59+ <title><?php echo "$table - ".WH_Text($table); ?> - WikiHiero</title>
 60+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
 61+ <link rel="shortcut icon" href="https://www.mediawiki.org/favicon.ico">
 62+ </head>
 63+ <body bgcolor="#DDDDDD">
 64+
 65+ <?php
 66+
 67+ echo "<b>$table</b> - ".WH_Text($table)."<br><br>";
 68+
 69+ if($dh = opendir(WH_IMG_DIR))
 70+ {
 71+ while(($file = readdir($dh)) !== false)
 72+ {
 73+ if($table == "All")
 74+ {
 75+ $code = WH_GetCode($file);
 76+ if(in_array($code, $wh_phonemes))
 77+ echo "<img src=\"".WH_IMG_DIR."$file\" title=\"$code [".array_search($code, $wh_phonemes)."]\">\n";
 78+ else
 79+ echo "<img src=\"".WH_IMG_DIR."$file\" title=\"$code\">\n";
 80+ }
 81+ else if($table == "Phoneme")
 82+ {
 83+ $code = WH_GetCode($file);
 84+ if(in_array($code, $wh_phonemes))
 85+ echo "<img src=\"".WH_IMG_DIR."$file\" title=\"$code [".array_search($code, $wh_phonemes)."]\">\n";
 86+ }
 87+ else if($table == "Aa")
 88+ {
 89+ $code = WH_GetCode($file);
 90+ if((substr($code, 0, 2) == $table) && ctype_digit($code[2]))
 91+ {
 92+ if(in_array($code, $wh_phonemes))
 93+ echo "<img src=\"".WH_IMG_DIR."$file\" title=\"$code [".array_search($code, $wh_phonemes)."]\">\n";
 94+ else
 95+ echo "<img src=\"".WH_IMG_DIR."$file\" title=\"$code\">\n";
 96+ }
 97+ }
 98+ else
 99+ {
 100+ $code = WH_GetCode($file);
 101+ if(($code[0] == $table) && ctype_digit($code[1]))
 102+ {
 103+ if(in_array($code, $wh_phonemes))
 104+ echo "<img src=\"".WH_IMG_DIR."$file\" title=\"$code [".array_search($code, $wh_phonemes)."]\">\n";
 105+ else
 106+ echo "<img src=\"".WH_IMG_DIR."$file\" title=\"$code\">\n";
 107+ }
 108+ }
 109+ }
 110+ closedir($dh);
 111+ }
 112+
 113+ ?>
 114+
 115+ </body>
 116+</html>
\ No newline at end of file
Property changes on: trunk/extensions/wikihiero/wh_table.php
___________________________________________________________________
Added: svn:keywords
1117 + Author Date Id Revision
Added: svn:eol-style
2118 + native
Index: trunk/extensions/wikihiero/index.php
@@ -0,0 +1,240 @@
 2+<?php
 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+//////////////////////////////////////////////////////////////////////////
 27+
 28+ include "wh_language.php";
 29+ include "wikihiero.php";
 30+
 31+ if(isset($_POST["text"]))
 32+ $text = $_POST["text"];
 33+ else
 34+ $text = "anx-G5-zmA:tA:tA-nbty-zmA:tA:tA-sw:t-bit:t-<-zA-ra:.-mn:n-T:w-Htp:t*p->-anx-D:t:N17-!";
 35+
 36+ if(isset($_POST["scale"]))
 37+ $scale = $_POST["scale"];
 38+ else
 39+ $scale = $wh_scale;
 40+
 41+ if(isset($_POST["mode"]))
 42+ $mode = $_POST["mode"];
 43+ else
 44+ $mode = $wh_mode;
 45+
 46+ if(isset($_POST["lang"]))
 47+ $lang = $_POST["lang"];
 48+ else if(isset($_GET["lang"]))
 49+ $lang = $_GET["lang"];
 50+ else
 51+ $lang = "fr";
 52+
 53+ if(isset($_POST["line"]))
 54+ $line = $_POST["line"];
 55+ else
 56+ $line = false;
 57+
 58+ function WH_Text( $index )
 59+ {
 60+ global $wh_language;
 61+ global $lang;
 62+
 63+ if(isset($wh_language[$index]))
 64+ {
 65+ if(isset($wh_language[$index][$lang]))
 66+ return $wh_language[$index][$lang];
 67+ else
 68+ return $wh_language[$index]["en"];
 69+ }
 70+ return "";
 71+ }
 72+
 73+ function WH_Packet( $ext )
 74+ {
 75+ if(file_exists("wikihiero.$ext"))
 76+ {
 77+ $size = filesize("wikihiero.$ext");
 78+ if($size <= 1024*1024)
 79+ return sprintf("<a href=\"wikihiero.$ext\" title=\"%.2f Kb\">%s</a>", filesize("wikihiero.$ext")/1024, strtoupper($ext));
 80+ else
 81+ return sprintf("<a href=\"wikihiero.$ext\" title=\"%.2f Mb\">%s</a>", filesize("wikihiero.$ext")/(1024*1024), strtoupper($ext));
 82+ }
 83+ else
 84+ return "<font title=\"File <wikihiero.$ext> not found!\">".strtoupper($ext)."</font>";
 85+ }
 86+
 87+ function WH_Table( $table )
 88+ {
 89+ global $lang;
 90+ echo "<a href=\"#\" onClick=\"MyWindow=window.open('wh_table.php?table=$table&lang=$lang','$table','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=300,left=20,top=20'); return false;\" title =\"".WH_Text($table)."\">$table</a>";
 91+ }
 92+
 93+ $start_time = microtime();
 94+ list($a_dec, $a_sec) = explode(" ", $start_time);
 95+ $html = WikiHiero($text, $mode, $scale, $line);
 96+ list($b_dec, $b_sec) = explode(" ", microtime());
 97+ $process_time = sprintf("%0.3f sec", $b_sec - $a_sec + $b_dec - $a_dec);
 98+
 99+?>
 100+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 101+<HTML>
 102+ <HEAD>
 103+ <TITLE>WikiHiero</TITLE>
 104+ <META http-equiv="Content-type" content="text/html; charset=UTF-8">
 105+ <META name="Author" content="Guillaume Blanchard">
 106+ <META name="Copyright" content="&copy; 2004 Guillaume Blanchard, Under free GNU Public Licence">
 107+ <LINK rel="shortcut icon" href="https://www.mediawiki.org/favicon.ico">
 108+ <SCRIPT type="text/javascript">
 109+
 110+ function LangLink(l)
 111+ {
 112+ document.wh_form.lang.value = l
 113+ document.wh_form.submit()
 114+ }
 115+
 116+ function DisableScale(l)
 117+ {
 118+ document.wh_form.scale.disabled = l
 119+ }
 120+
 121+ </SCRIPT>
 122+ </HEAD>
 123+ <BODY style="background: #DDDDDD">
 124+
 125+ <TABLE border="0">
 126+ <TR valign="top"><TD>
 127+
 128+ <BIG><?php echo "WikiHiero v".WH_VER_MAJ.".".WH_VER_MED.".".WH_VER_MIN; ?></BIG><BR>
 129+ <SMALL>[<?php
 130+
 131+ reset($wh_language['Lang']);
 132+ while($l = current($wh_language['Lang']))
 133+ {
 134+ if(key($wh_language['Lang']) == $lang)
 135+ echo "<b>$l</b>";
 136+ else
 137+ echo "<a href=\"javascript:LangLink('".key($wh_language['Lang'])."');\">$l</a>";
 138+ next($wh_language['Lang']);
 139+ if($l = current($wh_language['Lang']))
 140+ echo " | ";
 141+ }
 142+ ?>]</SMALL>
 143+ <BR><BR>
 144+
 145+ <form name="wh_form" action="index.php?lang=<?php echo $lang; ?>" method="post">
 146+ <textarea name="text" cols="60" rows="10" title="<?php echo WH_Text("Text"); ?>"><?php echo $text; ?></textarea>
 147+ <br><br>
 148+ <input type="submit" title="<?php echo WH_Text("Convert"); ?>" value="<?php echo WH_Text("Convert"); ?>">
 149+ <select title="<?php echo WH_Text("Mode"); ?>" name="mode">
 150+ <option value="0" <?php if($mode==0) echo "selected"; ?> title="<?php echo WH_Text("TEXT"); ?>" onclick="javascript:DisableScale(true);">Text only
 151+ <option value="1" <?php if($mode==1) echo "selected"; ?> title="<?php echo WH_Text("HTML"); ?>" onclick="javascript:DisableScale(false);">Simple HTML
 152+ <option disabled value="2" <?php if($mode==2) echo "selected"; ?> title="<?php echo WH_Text("CSS"); ?>">HTML & CSS
 153+ <option disabled value="3" <?php if($mode==3) echo "selected"; ?> title="<?php echo WH_Text("Image"); ?>">Image
 154+ </select>
 155+ <?php echo WH_Text("Scale"); ?><input type="range" name="scale" <?php if($mode==0) echo "disabled"; ?> title="<?php echo WH_Text("Size"); ?>" min="1" max="999" size="3" maxlength="3" value="<?php echo $scale; ?>">%
 156+ <?php echo WH_Text("Line"); ?><input type="checkbox" name="line" <?php if($line) echo "checked"; ?>>
 157+ <input type="hidden" name="lang" value="<?php echo $lang; ?>">
 158+ </form>
 159+
 160+ </td><td valign="top">
 161+
 162+ <b><?php echo WH_Text("Syntax"); ?></b><br>
 163+ <tt>-</tt> <?php echo WH_Text("-"); ?><br>
 164+ <tt>:</tt> <?php echo WH_Text(":"); ?><br>
 165+ <tt>*</tt> <?php echo WH_Text("*"); ?><br>
 166+ <tt>!</tt> <?php echo WH_Text("!"); ?><br>
 167+
 168+ <br>
 169+ <b><?php echo WH_Text("Tables"); ?></b><br>
 170+ <?php WH_Table("Phoneme"); ?>
 171+ | <?php WH_Table("A"); ?>
 172+ | <?php WH_Table("B"); ?>
 173+ | <?php WH_Table("C"); ?>
 174+ | <?php WH_Table("D"); ?>
 175+ | <?php WH_Table("E"); ?>
 176+ | <?php WH_Table("F"); ?>
 177+ | <?php WH_Table("G"); ?>
 178+ | <?php WH_Table("H"); ?>
 179+ | <?php WH_Table("I"); ?>
 180+ | <?php WH_Table("J"); ?>
 181+ | <?php WH_Table("K"); ?>
 182+ | <?php WH_Table("L"); ?>
 183+ | <?php WH_Table("M"); ?>
 184+ | <?php WH_Table("N"); ?>
 185+ | <?php WH_Table("O"); ?>
 186+ | <?php WH_Table("P"); ?>
 187+ | <?php WH_Table("Q"); ?>
 188+ | <?php WH_Table("R"); ?>
 189+ | <?php WH_Table("S"); ?>
 190+ | <?php WH_Table("T"); ?>
 191+ | <?php WH_Table("U"); ?>
 192+ | <?php WH_Table("V"); ?>
 193+ | <?php WH_Table("W"); ?>
 194+ | <?php WH_Table("X"); ?>
 195+ | <?php WH_Table("Y"); ?>
 196+ | <?php WH_Table("Z"); ?>
 197+ | <?php WH_Table("Aa"); ?>
 198+ | <?php WH_Table("All"); ?>
 199+ <br><br>
 200+
 201+ <b><?php echo WH_Text("Download"); ?></b><br>
 202+ [<?php echo WH_Packet("rar"); ?>] -
 203+ [<?php echo WH_Packet("zip"); ?>] -
 204+ <a href="readme.txt">ReadMe</a>
 205+
 206+ </td></tr>
 207+ </table>
 208+
 209+ <br>
 210+ <b>Images</b><br>
 211+ <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-style:solid; border-width:1px; padding:1em; border-color:gray; background:#ffffff;">
 212+ <tr valign="middle"><td>
 213+
 214+ <?php echo $html; ?>
 215+
 216+ </td></tr>
 217+ </table>
 218+
 219+ <br>
 220+ <b>Source</b><br>
 221+ <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-style:solid; border-width:1px; padding:1em; border-color:gray; background:#ffffff;">
 222+ <tr valign="middle"><td>
 223+
 224+ <pre><?php echo htmlentities($html); ?></pre>
 225+
 226+ </td></tr>
 227+ </table>
 228+
 229+ <br>
 230+ <table align="right"><tr><td>
 231+ <a href="http://www.mozilla.org/products/firefox/" title="Get Firefox - The free browser">
 232+ <img src="http://www.mozilla.org/products/firefox/buttons/getfirefox_88x31.png"
 233+ width="88" height="31" border="0" alt="Get Firefox - The free browser"></a>
 234+ </td></tr></table>
 235+ <small><?php echo "Parsing duration: $process_time"; ?></small>
 236+
 237+ <br><br>
 238+ <small><?php echo WH_Credit(); ?></small>
 239+
 240+ </body>
 241+</html>
\ No newline at end of file
Property changes on: trunk/extensions/wikihiero/index.php
___________________________________________________________________
Added: svn:keywords
1242 + Author Date Id Revision
Added: svn:eol-style
2243 + native
Index: trunk/extensions/wikihiero/wh_generate.php
@@ -0,0 +1,93 @@
 2+<?php
 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+//////////////////////////////////////////////////////////////////////////
 27+
 28+ include "wikihiero.php";
 29+
 30+ if(array_key_exists("lang", $_GET))
 31+ $lang = $_GET["lang"];
 32+ else
 33+ $lang = "fr";
 34+
 35+?>
 36+
 37+<html lang=<?php echo $lang; ?>>
 38+ <head>
 39+ <title>WikiHiero - Table generator</title>
 40+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
 41+ <link rel="shortcut icon" href="https://www.mediawiki.org/favicon.ico">
 42+ </head>
 43+ <body bgcolor="#DDDDDD">
 44+
 45+ <big><?php echo "WikiHiero v".WH_VER_MAJ.".".WH_VER_MED.".".WH_VER_MIN; ?></big>
 46+
 47+ <br><br>Parsing hieroglyph files and creating tables...<br><br>
 48+
 49+ <?php
 50+
 51+ $wh_prefabs = "\$wh_prefabs = array(\n";
 52+ $wh_files = "\$wh_files = array(\n";
 53+
 54+ if(is_dir(WH_IMG_DIR))
 55+ {
 56+ if ($dh = opendir(WH_IMG_DIR))
 57+ {
 58+ while (($file = readdir($dh)) !== false)
 59+ {
 60+ if(stristr($file, WH_IMG_EXT))
 61+ {
 62+ list($width, $height, $type, $attr) = getimagesize(WH_IMG_DIR.$file);
 63+ $wh_files .= " \"".WH_GetCode($file)."\" => array( $width, $height ),\n";
 64+ if(strchr($file,'&'))
 65+ $wh_prefabs .= " \"".WH_GetCode($file)."\",\n";
 66+ }
 67+ }
 68+ closedir($dh);
 69+ }
 70+ }
 71+
 72+ $wh_prefabs .= ");";
 73+ $wh_files .= ");";
 74+
 75+ echo "<pre>$wh_prefabs<br><br>";
 76+ echo "$wh_files<br><br></pre>";
 77+
 78+ $file = fopen("wh_list.php", "w+");
 79+ fwrite($file, "<?php\n\n");
 80+ fwrite($file, "// File created by wh_generate.php version ".WH_VER_MAJ.".".WH_VER_MED.".".WH_VER_MIN."\n");
 81+ fwrite($file, "// ".date("Y/m/d at H:i")."\n\n");
 82+ fwrite($file, "$wh_prefabs\n\n");
 83+ fwrite($file, "$wh_files\n\n");
 84+ fwrite($file, "?>");
 85+ fclose($file);
 86+
 87+ //if(file_exists("wh_list(0).php"))
 88+
 89+ ?>
 90+
 91+ <small><?php echo WH_Credit(); ?></small>
 92+
 93+ </body>
 94+</html>
\ No newline at end of file
Property changes on: trunk/extensions/wikihiero/wh_generate.php
___________________________________________________________________
Added: svn:keywords
195 + Author Date Id Revision
Added: svn:eol-style
296 + native

Comments

#Comment by Hashar (talk | contribs)   17:19, 17 August 2011

WikiHiero. The very first extension.

It was moved there since we were tired of fetching several PNG files whenever they got changed or we wanted to fetch a previous revision. Moving it out of "phase3" enabled Aoineko to do whatever he wanted with the png files without upsetting the other developers.

Announcement on wikitech-l by Brion Vibber: http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/9825

Status & tagging log