Rev 232 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 232 | Rev 289 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | <!DOCTYPE html> |
1 | <!DOCTYPE html> |
| 2 | <html lang="en""> |
2 | <html lang="en"> |
| 3 | <head> |
3 | <head> |
| 4 | <meta charset="UTF-8"> |
4 | <meta charset="UTF-8"> |
| 5 | <title>Golic Vulcan – Federation Standard English Dictionary</title> |
5 | <title>Golic Vulcan – Federation Standard English Dictionary</title> |
| 6 | <style type="text/css"> |
6 | <style type="text/css"> |
| 7 | body {
|
7 | body {
|
| Line 28... | Line 28... | ||
| 28 | font-family: sans-serif; |
28 | font-family: sans-serif; |
| 29 | font-size: small; |
29 | font-size: small; |
| 30 | font-weight: bold; |
30 | font-weight: bold; |
| 31 | } |
31 | } |
| 32 | 32 | ||
| - | 33 | <?php
|
|
| - | 34 | $source_lang = 'vuh-Latn-Gol'; |
|
| - | 35 | ?>
|
|
| - | 36 | i[lang="<?php echo $source_lang; ?>"] { |
|
| - | 37 | font-style: normal; |
|
| - | 38 | } |
|
| - | 39 | ||
| 33 | i em {
|
40 | i em {
|
| 34 | font-weight: bold; |
41 | font-weight: bold; |
| 35 | } |
42 | } |
| - | 43 | ||
| - | 44 | #toggle {
|
|
| - | 45 | position: fixed; |
|
| - | 46 | top: 0; |
|
| - | 47 | right: 0; |
|
| - | 48 | } |
|
| 36 | </style> |
49 | </style> |
| - | 50 | <script type="text/javascript" src="/scripts/object.js"></script> |
|
| - | 51 | <script type="text/javascript" src="/scripts/dom/xpath.js"></script> |
|
| - | 52 | <script type="text/javascript">var LANG_VULCAN = '<?php echo $source_lang; ?>';</script> |
|
| - | 53 | <script type="text/javascript" src="/application/scripts/vulcan-media-script.js"></script> |
|
| 37 | </head> |
54 | </head> |
| 38 | 55 | ||
| 39 | <body> |
56 | <body onload="document.getElementById('toggle').click()">
|
| 40 | <?php
|
57 | <?php
|
| 41 | $source_lang = 'vuh-Latn-Gol'; |
- | |
| 42 | $target_lang = 'en-Latn-Federation'; |
58 | $target_lang = 'en-Latn-Federation'; |
| 43 | $lines = file('vuh-gol-en.dict'); |
59 | $lines = file('vuh-gol-en.dict'); |
| 44 | ?>
|
60 | ?>
|
| 45 | <h1>Golic Vulcan – Federation Standard English Dictionary</h1> |
61 | <h1>Golic Vulcan – Federation Standard English Dictionary</h1> |
| - | 62 | <button type="button" id="toggle" onclick="mediaScript(this)"><span class="text">Media Script</span></button> |
|
| 46 | <?php
|
63 | <?php
|
| 47 | define('REGEXP_PREFIX_EXAMPLE', '/^ex\s*=\s*/'); |
64 | define('REGEXP_PREFIX_EXAMPLE', '/^ex\s*=\s*/'); |
| 48 | 65 | ||
| 49 | if ($lines) |
66 | if ($lines) |
| 50 | {
|
67 | {
|
| Line 136... | Line 153... | ||
| 136 | '/\\s+~/', |
153 | '/\\s+~/', |
| 137 | ), |
154 | ), |
| 138 | array( |
155 | array( |
| 139 | '“\\1”', |
156 | '“\\1”', |
| 140 | '<abbr class="type-or-context" lang="' . $target_lang . '">\\1</abbr>', |
157 | '<abbr class="type-or-context" lang="' . $target_lang . '">\\1</abbr>', |
| 141 | '\\1<i lang="' . $source_lang . '">\\2</i>', |
158 | '\\1<i lang="' . $source_lang . '" class="text">\\2</i>', |
| 142 | '/\\1', |
159 | '/\\1', |
| 143 | '<em>\\1</em>', |
160 | '<em>\\1</em>', |
| 144 | ' ~', |
161 | ' ~', |
| 145 | ), |
162 | ), |
| 146 | $matches['transl']); |
163 | $matches['transl']); |
| 147 | 164 | ||
| 148 | echo ($is_example ? "<i lang='$source_lang'>" : "<b lang='$source_lang'>") |
165 | echo ($is_example ? "<i lang='$source_lang' class='text'>" : "<b lang='$source_lang' class='text'>") |
| 149 | . $phrase |
166 | . $phrase |
| 150 | . ($is_example ? '</i>' : '</b>') |
167 | . ($is_example ? '</i>' : '</b>') |
| 151 | . " <span lang='$target_lang'>" . $transl . '</span>'; |
168 | . " <span lang='$target_lang'>" . $transl . '</span>'; |
| 152 | 169 | ||
| 153 | $last_indent = $indent; |
170 | $last_indent = $indent; |