annotate WebContent/jscripts/tiny_mce/themes/advanced/js/charmap.js @ 8:11baadcdd2c8

start of new Annotator API implementation.
author casties
date Mon, 19 Mar 2012 14:50:28 +0100
parents 0be9d53a6967
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
1 /**
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
2 * charmap.js
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
3 *
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
4 * Copyright 2009, Moxiecode Systems AB
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
5 * Released under LGPL License.
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
6 *
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
7 * License: http://tinymce.moxiecode.com/license
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
8 * Contributing: http://tinymce.moxiecode.com/contributing
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
9 */
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
10
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
11 tinyMCEPopup.requireLangPack();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
12
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
13 var charmap = [
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
14 [' ', ' ', true, 'no-break space'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
15 ['&', '&', true, 'ampersand'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
16 ['"', '"', true, 'quotation mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
17 // finance
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
18 ['¢', '¢', true, 'cent sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
19 ['€', '€', true, 'euro sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
20 ['£', '£', true, 'pound sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
21 ['¥', '¥', true, 'yen sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
22 // signs
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
23 ['©', '©', true, 'copyright sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
24 ['®', '®', true, 'registered sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
25 ['™', '™', true, 'trade mark sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
26 ['‰', '‰', true, 'per mille sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
27 ['µ', 'µ', true, 'micro sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
28 ['·', '·', true, 'middle dot'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
29 ['•', '•', true, 'bullet'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
30 ['…', '…', true, 'three dot leader'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
31 ['′', '′', true, 'minutes / feet'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
32 ['″', '″', true, 'seconds / inches'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
33 ['§', '§', true, 'section sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
34 ['¶', '¶', true, 'paragraph sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
35 ['ß', 'ß', true, 'sharp s / ess-zed'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
36 // quotations
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
37 ['‹', '‹', true, 'single left-pointing angle quotation mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
38 ['›', '›', true, 'single right-pointing angle quotation mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
39 ['«', '«', true, 'left pointing guillemet'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
40 ['»', '»', true, 'right pointing guillemet'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
41 ['‘', '‘', true, 'left single quotation mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
42 ['’', '’', true, 'right single quotation mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
43 ['“', '“', true, 'left double quotation mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
44 ['”', '”', true, 'right double quotation mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
45 ['‚', '‚', true, 'single low-9 quotation mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
46 ['„', '„', true, 'double low-9 quotation mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
47 ['<', '<', true, 'less-than sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
48 ['>', '>', true, 'greater-than sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
49 ['≤', '≤', true, 'less-than or equal to'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
50 ['≥', '≥', true, 'greater-than or equal to'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
51 ['–', '–', true, 'en dash'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
52 ['—', '—', true, 'em dash'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
53 ['¯', '¯', true, 'macron'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
54 ['‾', '‾', true, 'overline'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
55 ['¤', '¤', true, 'currency sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
56 ['¦', '¦', true, 'broken bar'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
57 ['¨', '¨', true, 'diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
58 ['¡', '¡', true, 'inverted exclamation mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
59 ['¿', '¿', true, 'turned question mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
60 ['ˆ', 'ˆ', true, 'circumflex accent'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
61 ['˜', '˜', true, 'small tilde'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
62 ['°', '°', true, 'degree sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
63 ['−', '−', true, 'minus sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
64 ['±', '±', true, 'plus-minus sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
65 ['÷', '÷', true, 'division sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
66 ['⁄', '⁄', true, 'fraction slash'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
67 ['×', '×', true, 'multiplication sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
68 ['¹', '¹', true, 'superscript one'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
69 ['²', '²', true, 'superscript two'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
70 ['³', '³', true, 'superscript three'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
71 ['¼', '¼', true, 'fraction one quarter'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
72 ['½', '½', true, 'fraction one half'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
73 ['¾', '¾', true, 'fraction three quarters'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
74 // math / logical
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
75 ['ƒ', 'ƒ', true, 'function / florin'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
76 ['∫', '∫', true, 'integral'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
77 ['∑', '∑', true, 'n-ary sumation'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
78 ['∞', '∞', true, 'infinity'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
79 ['√', '√', true, 'square root'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
80 ['∼', '∼', false,'similar to'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
81 ['≅', '≅', false,'approximately equal to'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
82 ['≈', '≈', true, 'almost equal to'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
83 ['≠', '≠', true, 'not equal to'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
84 ['≡', '≡', true, 'identical to'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
85 ['∈', '∈', false,'element of'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
86 ['∉', '∉', false,'not an element of'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
87 ['∋', '∋', false,'contains as member'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
88 ['∏', '∏', true, 'n-ary product'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
89 ['∧', '∧', false,'logical and'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
90 ['∨', '∨', false,'logical or'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
91 ['¬', '¬', true, 'not sign'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
92 ['∩', '∩', true, 'intersection'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
93 ['∪', '∪', false,'union'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
94 ['∂', '∂', true, 'partial differential'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
95 ['∀', '∀', false,'for all'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
96 ['∃', '∃', false,'there exists'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
97 ['∅', '∅', false,'diameter'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
98 ['∇', '∇', false,'backward difference'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
99 ['∗', '∗', false,'asterisk operator'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
100 ['∝', '∝', false,'proportional to'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
101 ['∠', '∠', false,'angle'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
102 // undefined
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
103 ['´', '´', true, 'acute accent'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
104 ['¸', '¸', true, 'cedilla'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
105 ['ª', 'ª', true, 'feminine ordinal indicator'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
106 ['º', 'º', true, 'masculine ordinal indicator'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
107 ['†', '†', true, 'dagger'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
108 ['‡', '‡', true, 'double dagger'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
109 // alphabetical special chars
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
110 ['À', 'À', true, 'A - grave'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
111 ['Á', 'Á', true, 'A - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
112 ['Â', 'Â', true, 'A - circumflex'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
113 ['Ã', 'Ã', true, 'A - tilde'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
114 ['Ä', 'Ä', true, 'A - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
115 ['Å', 'Å', true, 'A - ring above'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
116 ['Æ', 'Æ', true, 'ligature AE'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
117 ['Ç', 'Ç', true, 'C - cedilla'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
118 ['È', 'È', true, 'E - grave'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
119 ['É', 'É', true, 'E - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
120 ['Ê', 'Ê', true, 'E - circumflex'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
121 ['Ë', 'Ë', true, 'E - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
122 ['Ì', 'Ì', true, 'I - grave'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
123 ['Í', 'Í', true, 'I - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
124 ['Î', 'Î', true, 'I - circumflex'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
125 ['Ï', 'Ï', true, 'I - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
126 ['Ð', 'Ð', true, 'ETH'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
127 ['Ñ', 'Ñ', true, 'N - tilde'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
128 ['Ò', 'Ò', true, 'O - grave'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
129 ['Ó', 'Ó', true, 'O - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
130 ['Ô', 'Ô', true, 'O - circumflex'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
131 ['Õ', 'Õ', true, 'O - tilde'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
132 ['Ö', 'Ö', true, 'O - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
133 ['Ø', 'Ø', true, 'O - slash'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
134 ['Œ', 'Œ', true, 'ligature OE'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
135 ['Š', 'Š', true, 'S - caron'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
136 ['Ù', 'Ù', true, 'U - grave'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
137 ['Ú', 'Ú', true, 'U - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
138 ['Û', 'Û', true, 'U - circumflex'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
139 ['Ü', 'Ü', true, 'U - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
140 ['Ý', 'Ý', true, 'Y - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
141 ['Ÿ', 'Ÿ', true, 'Y - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
142 ['Þ', 'Þ', true, 'THORN'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
143 ['à', 'à', true, 'a - grave'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
144 ['á', 'á', true, 'a - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
145 ['â', 'â', true, 'a - circumflex'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
146 ['ã', 'ã', true, 'a - tilde'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
147 ['ä', 'ä', true, 'a - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
148 ['å', 'å', true, 'a - ring above'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
149 ['æ', 'æ', true, 'ligature ae'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
150 ['ç', 'ç', true, 'c - cedilla'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
151 ['è', 'è', true, 'e - grave'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
152 ['é', 'é', true, 'e - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
153 ['ê', 'ê', true, 'e - circumflex'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
154 ['ë', 'ë', true, 'e - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
155 ['ì', 'ì', true, 'i - grave'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
156 ['í', 'í', true, 'i - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
157 ['î', 'î', true, 'i - circumflex'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
158 ['ï', 'ï', true, 'i - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
159 ['ð', 'ð', true, 'eth'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
160 ['ñ', 'ñ', true, 'n - tilde'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
161 ['ò', 'ò', true, 'o - grave'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
162 ['ó', 'ó', true, 'o - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
163 ['ô', 'ô', true, 'o - circumflex'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
164 ['õ', 'õ', true, 'o - tilde'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
165 ['ö', 'ö', true, 'o - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
166 ['ø', 'ø', true, 'o slash'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
167 ['œ', 'œ', true, 'ligature oe'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
168 ['š', 'š', true, 's - caron'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
169 ['ù', 'ù', true, 'u - grave'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
170 ['ú', 'ú', true, 'u - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
171 ['û', 'û', true, 'u - circumflex'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
172 ['ü', 'ü', true, 'u - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
173 ['ý', 'ý', true, 'y - acute'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
174 ['þ', 'þ', true, 'thorn'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
175 ['ÿ', 'ÿ', true, 'y - diaeresis'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
176 ['Α', 'Α', true, 'Alpha'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
177 ['Β', 'Β', true, 'Beta'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
178 ['Γ', 'Γ', true, 'Gamma'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
179 ['Δ', 'Δ', true, 'Delta'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
180 ['Ε', 'Ε', true, 'Epsilon'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
181 ['Ζ', 'Ζ', true, 'Zeta'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
182 ['Η', 'Η', true, 'Eta'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
183 ['Θ', 'Θ', true, 'Theta'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
184 ['Ι', 'Ι', true, 'Iota'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
185 ['Κ', 'Κ', true, 'Kappa'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
186 ['Λ', 'Λ', true, 'Lambda'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
187 ['Μ', 'Μ', true, 'Mu'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
188 ['Ν', 'Ν', true, 'Nu'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
189 ['Ξ', 'Ξ', true, 'Xi'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
190 ['Ο', 'Ο', true, 'Omicron'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
191 ['Π', 'Π', true, 'Pi'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
192 ['Ρ', 'Ρ', true, 'Rho'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
193 ['Σ', 'Σ', true, 'Sigma'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
194 ['Τ', 'Τ', true, 'Tau'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
195 ['Υ', 'Υ', true, 'Upsilon'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
196 ['Φ', 'Φ', true, 'Phi'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
197 ['Χ', 'Χ', true, 'Chi'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
198 ['Ψ', 'Ψ', true, 'Psi'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
199 ['Ω', 'Ω', true, 'Omega'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
200 ['α', 'α', true, 'alpha'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
201 ['β', 'β', true, 'beta'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
202 ['γ', 'γ', true, 'gamma'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
203 ['δ', 'δ', true, 'delta'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
204 ['ε', 'ε', true, 'epsilon'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
205 ['ζ', 'ζ', true, 'zeta'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
206 ['η', 'η', true, 'eta'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
207 ['θ', 'θ', true, 'theta'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
208 ['ι', 'ι', true, 'iota'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
209 ['κ', 'κ', true, 'kappa'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
210 ['λ', 'λ', true, 'lambda'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
211 ['μ', 'μ', true, 'mu'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
212 ['ν', 'ν', true, 'nu'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
213 ['ξ', 'ξ', true, 'xi'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
214 ['ο', 'ο', true, 'omicron'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
215 ['π', 'π', true, 'pi'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
216 ['ρ', 'ρ', true, 'rho'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
217 ['ς', 'ς', true, 'final sigma'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
218 ['σ', 'σ', true, 'sigma'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
219 ['τ', 'τ', true, 'tau'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
220 ['υ', 'υ', true, 'upsilon'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
221 ['φ', 'φ', true, 'phi'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
222 ['χ', 'χ', true, 'chi'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
223 ['ψ', 'ψ', true, 'psi'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
224 ['ω', 'ω', true, 'omega'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
225 // symbols
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
226 ['ℵ', 'ℵ', false,'alef symbol'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
227 ['ϖ', 'ϖ', false,'pi symbol'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
228 ['ℜ', 'ℜ', false,'real part symbol'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
229 ['ϑ','ϑ', false,'theta symbol'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
230 ['ϒ', 'ϒ', false,'upsilon - hook symbol'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
231 ['℘', '℘', false,'Weierstrass p'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
232 ['ℑ', 'ℑ', false,'imaginary part'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
233 // arrows
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
234 ['←', '←', true, 'leftwards arrow'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
235 ['↑', '↑', true, 'upwards arrow'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
236 ['→', '→', true, 'rightwards arrow'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
237 ['↓', '↓', true, 'downwards arrow'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
238 ['↔', '↔', true, 'left right arrow'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
239 ['↵', '↵', false,'carriage return'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
240 ['⇐', '⇐', false,'leftwards double arrow'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
241 ['⇑', '⇑', false,'upwards double arrow'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
242 ['⇒', '⇒', false,'rightwards double arrow'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
243 ['⇓', '⇓', false,'downwards double arrow'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
244 ['⇔', '⇔', false,'left right double arrow'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
245 ['∴', '∴', false,'therefore'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
246 ['⊂', '⊂', false,'subset of'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
247 ['⊃', '⊃', false,'superset of'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
248 ['⊄', '⊄', false,'not a subset of'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
249 ['⊆', '⊆', false,'subset of or equal to'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
250 ['⊇', '⊇', false,'superset of or equal to'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
251 ['⊕', '⊕', false,'circled plus'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
252 ['⊗', '⊗', false,'circled times'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
253 ['⊥', '⊥', false,'perpendicular'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
254 ['⋅', '⋅', false,'dot operator'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
255 ['⌈', '⌈', false,'left ceiling'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
256 ['⌉', '⌉', false,'right ceiling'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
257 ['⌊', '⌊', false,'left floor'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
258 ['⌋', '⌋', false,'right floor'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
259 ['⟨', '〈', false,'left-pointing angle bracket'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
260 ['⟩', '〉', false,'right-pointing angle bracket'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
261 ['◊', '◊', true, 'lozenge'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
262 ['♠', '♠', true, 'black spade suit'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
263 ['♣', '♣', true, 'black club suit'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
264 ['♥', '♥', true, 'black heart suit'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
265 ['♦', '♦', true, 'black diamond suit'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
266 [' ', ' ', false,'en space'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
267 [' ', ' ', false,'em space'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
268 [' ', ' ', false,'thin space'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
269 ['‌', '‌', false,'zero width non-joiner'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
270 ['‍', '‍', false,'zero width joiner'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
271 ['‎', '‎', false,'left-to-right mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
272 ['‏', '‏', false,'right-to-left mark'],
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
273 ['­', '­', false,'soft hyphen']
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
274 ];
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
275
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
276 tinyMCEPopup.onInit.add(function() {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
277 tinyMCEPopup.dom.setHTML('charmapView', renderCharMapHTML());
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
278 addKeyboardNavigation();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
279 });
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
280
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
281 function addKeyboardNavigation(){
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
282 var tableElm, cells, settings;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
283
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
284 cells = tinyMCEPopup.dom.select("a.charmaplink", "charmapgroup");
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
285
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
286 settings ={
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
287 root: "charmapgroup",
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
288 items: cells
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
289 };
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
290 cells[0].tabindex=0;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
291 tinyMCEPopup.dom.addClass(cells[0], "mceFocus");
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
292 if (tinymce.isGecko) {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
293 cells[0].focus();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
294 } else {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
295 setTimeout(function(){
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
296 cells[0].focus();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
297 }, 100);
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
298 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
299 tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
300 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
301
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
302 function renderCharMapHTML() {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
303 var charsPerRow = 20, tdWidth=20, tdHeight=20, i;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
304 var html = '<div id="charmapgroup" aria-labelledby="charmap_label" tabindex="0" role="listbox">'+
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
305 '<table role="presentation" border="0" cellspacing="1" cellpadding="0" width="' + (tdWidth*charsPerRow) +
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
306 '"><tr height="' + tdHeight + '">';
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
307 var cols=-1;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
308
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
309 for (i=0; i<charmap.length; i++) {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
310 var previewCharFn;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
311
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
312 if (charmap[i][2]==true) {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
313 cols++;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
314 previewCharFn = 'previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');';
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
315 html += ''
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
316 + '<td class="charmap">'
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
317 + '<a class="charmaplink" role="button" onmouseover="'+previewCharFn+'" onfocus="'+previewCharFn+'" href="javascript:void(0)" onclick="insertChar(\'' + charmap[i][1].substring(2,charmap[i][1].length-1) + '\');" onclick="return false;" onmousedown="return false;" title="' + charmap[i][3] + ' '+ tinyMCEPopup.editor.translate("advanced_dlg.charmap_usage")+'">'
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
318 + charmap[i][1]
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
319 + '</a></td>';
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
320 if ((cols+1) % charsPerRow == 0)
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
321 html += '</tr><tr height="' + tdHeight + '">';
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
322 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
323 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
324
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
325 if (cols % charsPerRow > 0) {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
326 var padd = charsPerRow - (cols % charsPerRow);
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
327 for (var i=0; i<padd-1; i++)
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
328 html += '<td width="' + tdWidth + '" height="' + tdHeight + '" class="charmap">&nbsp;</td>';
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
329 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
330
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
331 html += '</tr></table></div>';
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
332 html = html.replace(/<tr height="20"><\/tr>/g, '');
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
333
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
334 return html;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
335 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
336
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
337 function insertChar(chr) {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
338 tinyMCEPopup.execCommand('mceInsertContent', false, '&#' + chr + ';');
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
339
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
340 // Refocus in window
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
341 if (tinyMCEPopup.isWindow)
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
342 window.focus();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
343
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
344 tinyMCEPopup.editor.focus();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
345 tinyMCEPopup.close();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
346 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
347
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
348 function previewChar(codeA, codeB, codeN) {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
349 var elmA = document.getElementById('codeA');
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
350 var elmB = document.getElementById('codeB');
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
351 var elmV = document.getElementById('codeV');
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
352 var elmN = document.getElementById('codeN');
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
353
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
354 if (codeA=='#160;') {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
355 elmV.innerHTML = '__';
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
356 } else {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
357 elmV.innerHTML = '&' + codeA;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
358 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
359
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
360 elmB.innerHTML = '&amp;' + codeA;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
361 elmA.innerHTML = '&amp;' + codeB;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
362 elmN.innerHTML = codeN;
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
363 }