Module: Orgmode

Defined in:
lib/org-ruby/html_symbol_replace.rb,
lib/org-ruby/line.rb,
lib/org-ruby/parser.rb,
lib/org-ruby/headline.rb,
lib/org-ruby/output_buffer.rb,
lib/org-ruby/regexp_helper.rb,
lib/org-ruby/html_output_buffer.rb,
lib/org-ruby/textile_output_buffer.rb,
lib/org-ruby/textile_symbol_replace.rb

Overview

Autogenerated by util/gen-special-replace.el

Defined Under Namespace

Classes: Headline, HtmlOutputBuffer, Line, OutputBuffer, Parser, RegexpHelper, TextileOutputBuffer

Class Method Summary collapse

Class Method Details

.special_symbols_to_html(str) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
# File 'lib/org-ruby/html_symbol_replace.rb', line 4

def Orgmode.special_symbols_to_html(str)
  str.gsub!(/\\Agrave((\{\})|(\s|$))/, "À\\3")
  str.gsub!(/\\agrave((\{\})|(\s|$))/, "à\\3")
  str.gsub!(/\\Aacute((\{\})|(\s|$))/, "Á\\3")
  str.gsub!(/\\aacute((\{\})|(\s|$))/, "á\\3")
  str.gsub!(/\\Acirc((\{\})|(\s|$))/, "Â\\3")
  str.gsub!(/\\acirc((\{\})|(\s|$))/, "â\\3")
  str.gsub!(/\\Atilde((\{\})|(\s|$))/, "Ã\\3")
  str.gsub!(/\\atilde((\{\})|(\s|$))/, "ã\\3")
  str.gsub!(/\\Auml((\{\})|(\s|$))/, "Ä\\3")
  str.gsub!(/\\auml((\{\})|(\s|$))/, "ä\\3")
  str.gsub!(/\\Aring((\{\})|(\s|$))/, "Å\\3")
  str.gsub!(/\\AA((\{\})|(\s|$))/, "Å\\3")
  str.gsub!(/\\aring((\{\})|(\s|$))/, "å\\3")
  str.gsub!(/\\AElig((\{\})|(\s|$))/, "Æ\\3")
  str.gsub!(/\\aelig((\{\})|(\s|$))/, "æ\\3")
  str.gsub!(/\\Ccedil((\{\})|(\s|$))/, "Ç\\3")
  str.gsub!(/\\ccedil((\{\})|(\s|$))/, "ç\\3")
  str.gsub!(/\\Egrave((\{\})|(\s|$))/, "È\\3")
  str.gsub!(/\\egrave((\{\})|(\s|$))/, "è\\3")
  str.gsub!(/\\Eacute((\{\})|(\s|$))/, "É\\3")
  str.gsub!(/\\eacute((\{\})|(\s|$))/, "é\\3")
  str.gsub!(/\\Ecirc((\{\})|(\s|$))/, "Ê\\3")
  str.gsub!(/\\ecirc((\{\})|(\s|$))/, "ê\\3")
  str.gsub!(/\\Euml((\{\})|(\s|$))/, "Ë\\3")
  str.gsub!(/\\euml((\{\})|(\s|$))/, "ë\\3")
  str.gsub!(/\\Igrave((\{\})|(\s|$))/, "Ì\\3")
  str.gsub!(/\\igrave((\{\})|(\s|$))/, "ì\\3")
  str.gsub!(/\\Iacute((\{\})|(\s|$))/, "Í\\3")
  str.gsub!(/\\iacute((\{\})|(\s|$))/, "í\\3")
  str.gsub!(/\\Icirc((\{\})|(\s|$))/, "Î\\3")
  str.gsub!(/\\icirc((\{\})|(\s|$))/, "î\\3")
  str.gsub!(/\\Iuml((\{\})|(\s|$))/, "Ï\\3")
  str.gsub!(/\\iuml((\{\})|(\s|$))/, "ï\\3")
  str.gsub!(/\\Ntilde((\{\})|(\s|$))/, "Ñ\\3")
  str.gsub!(/\\ntilde((\{\})|(\s|$))/, "ñ\\3")
  str.gsub!(/\\Ograve((\{\})|(\s|$))/, "Ò\\3")
  str.gsub!(/\\ograve((\{\})|(\s|$))/, "ò\\3")
  str.gsub!(/\\Oacute((\{\})|(\s|$))/, "Ó\\3")
  str.gsub!(/\\oacute((\{\})|(\s|$))/, "ó\\3")
  str.gsub!(/\\Ocirc((\{\})|(\s|$))/, "Ô\\3")
  str.gsub!(/\\ocirc((\{\})|(\s|$))/, "ô\\3")
  str.gsub!(/\\Otilde((\{\})|(\s|$))/, "Õ\\3")
  str.gsub!(/\\otilde((\{\})|(\s|$))/, "õ\\3")
  str.gsub!(/\\Ouml((\{\})|(\s|$))/, "Ö\\3")
  str.gsub!(/\\ouml((\{\})|(\s|$))/, "ö\\3")
  str.gsub!(/\\Oslash((\{\})|(\s|$))/, "Ø\\3")
  str.gsub!(/\\oslash((\{\})|(\s|$))/, "ø\\3")
  str.gsub!(/\\OElig((\{\})|(\s|$))/, "Œ\\3")
  str.gsub!(/\\oelig((\{\})|(\s|$))/, "œ\\3")
  str.gsub!(/\\Scaron((\{\})|(\s|$))/, "Š\\3")
  str.gsub!(/\\scaron((\{\})|(\s|$))/, "š\\3")
  str.gsub!(/\\szlig((\{\})|(\s|$))/, "ß\\3")
  str.gsub!(/\\Ugrave((\{\})|(\s|$))/, "Ù\\3")
  str.gsub!(/\\ugrave((\{\})|(\s|$))/, "ù\\3")
  str.gsub!(/\\Uacute((\{\})|(\s|$))/, "Ú\\3")
  str.gsub!(/\\uacute((\{\})|(\s|$))/, "ú\\3")
  str.gsub!(/\\Ucirc((\{\})|(\s|$))/, "Û\\3")
  str.gsub!(/\\ucirc((\{\})|(\s|$))/, "û\\3")
  str.gsub!(/\\Uuml((\{\})|(\s|$))/, "Ü\\3")
  str.gsub!(/\\uuml((\{\})|(\s|$))/, "ü\\3")
  str.gsub!(/\\Yacute((\{\})|(\s|$))/, "Ý\\3")
  str.gsub!(/\\yacute((\{\})|(\s|$))/, "ý\\3")
  str.gsub!(/\\Yuml((\{\})|(\s|$))/, "Ÿ\\3")
  str.gsub!(/\\yuml((\{\})|(\s|$))/, "ÿ\\3")
  str.gsub!(/\\fnof((\{\})|(\s|$))/, "ƒ\\3")
  str.gsub!(/\\real((\{\})|(\s|$))/, "ℜ\\3")
  str.gsub!(/\\image((\{\})|(\s|$))/, "ℑ\\3")
  str.gsub!(/\\weierp((\{\})|(\s|$))/, "℘\\3")
  str.gsub!(/\\Alpha((\{\})|(\s|$))/, "Α\\3")
  str.gsub!(/\\alpha((\{\})|(\s|$))/, "α\\3")
  str.gsub!(/\\Beta((\{\})|(\s|$))/, "Β\\3")
  str.gsub!(/\\beta((\{\})|(\s|$))/, "β\\3")
  str.gsub!(/\\Gamma((\{\})|(\s|$))/, "Γ\\3")
  str.gsub!(/\\gamma((\{\})|(\s|$))/, "γ\\3")
  str.gsub!(/\\Delta((\{\})|(\s|$))/, "Δ\\3")
  str.gsub!(/\\delta((\{\})|(\s|$))/, "δ\\3")
  str.gsub!(/\\Epsilon((\{\})|(\s|$))/, "Ε\\3")
  str.gsub!(/\\epsilon((\{\})|(\s|$))/, "ε\\3")
  str.gsub!(/\\varepsilon((\{\})|(\s|$))/, "ε\\3")
  str.gsub!(/\\Zeta((\{\})|(\s|$))/, "Ζ\\3")
  str.gsub!(/\\zeta((\{\})|(\s|$))/, "ζ\\3")
  str.gsub!(/\\Eta((\{\})|(\s|$))/, "Η\\3")
  str.gsub!(/\\eta((\{\})|(\s|$))/, "η\\3")
  str.gsub!(/\\Theta((\{\})|(\s|$))/, "Θ\\3")
  str.gsub!(/\\theta((\{\})|(\s|$))/, "θ\\3")
  str.gsub!(/\\thetasym((\{\})|(\s|$))/, "ϑ\\3")
  str.gsub!(/\\vartheta((\{\})|(\s|$))/, "ϑ\\3")
  str.gsub!(/\\Iota((\{\})|(\s|$))/, "Ι\\3")
  str.gsub!(/\\iota((\{\})|(\s|$))/, "ι\\3")
  str.gsub!(/\\Kappa((\{\})|(\s|$))/, "Κ\\3")
  str.gsub!(/\\kappa((\{\})|(\s|$))/, "κ\\3")
  str.gsub!(/\\Lambda((\{\})|(\s|$))/, "Λ\\3")
  str.gsub!(/\\lambda((\{\})|(\s|$))/, "λ\\3")
  str.gsub!(/\\Mu((\{\})|(\s|$))/, "Μ\\3")
  str.gsub!(/\\mu((\{\})|(\s|$))/, "μ\\3")
  str.gsub!(/\\nu((\{\})|(\s|$))/, "ν\\3")
  str.gsub!(/\\Nu((\{\})|(\s|$))/, "Ν\\3")
  str.gsub!(/\\Xi((\{\})|(\s|$))/, "Ξ\\3")
  str.gsub!(/\\xi((\{\})|(\s|$))/, "ξ\\3")
  str.gsub!(/\\Omicron((\{\})|(\s|$))/, "Ο\\3")
  str.gsub!(/\\omicron((\{\})|(\s|$))/, "ο\\3")
  str.gsub!(/\\Pi((\{\})|(\s|$))/, "Π\\3")
  str.gsub!(/\\pi((\{\})|(\s|$))/, "π\\3")
  str.gsub!(/\\Rho((\{\})|(\s|$))/, "Ρ\\3")
  str.gsub!(/\\rho((\{\})|(\s|$))/, "ρ\\3")
  str.gsub!(/\\Sigma((\{\})|(\s|$))/, "Σ\\3")
  str.gsub!(/\\sigma((\{\})|(\s|$))/, "σ\\3")
  str.gsub!(/\\sigmaf((\{\})|(\s|$))/, "ς\\3")
  str.gsub!(/\\varsigma((\{\})|(\s|$))/, "ς\\3")
  str.gsub!(/\\Tau((\{\})|(\s|$))/, "Τ\\3")
  str.gsub!(/\\Upsilon((\{\})|(\s|$))/, "Υ\\3")
  str.gsub!(/\\upsih((\{\})|(\s|$))/, "ϒ\\3")
  str.gsub!(/\\upsilon((\{\})|(\s|$))/, "υ\\3")
  str.gsub!(/\\Phi((\{\})|(\s|$))/, "Φ\\3")
  str.gsub!(/\\phi((\{\})|(\s|$))/, "φ\\3")
  str.gsub!(/\\Chi((\{\})|(\s|$))/, "Χ\\3")
  str.gsub!(/\\chi((\{\})|(\s|$))/, "χ\\3")
  str.gsub!(/\\acutex((\{\})|(\s|$))/, "´x\\3")
  str.gsub!(/\\Psi((\{\})|(\s|$))/, "Ψ\\3")
  str.gsub!(/\\psi((\{\})|(\s|$))/, "ψ\\3")
  str.gsub!(/\\tau((\{\})|(\s|$))/, "τ\\3")
  str.gsub!(/\\Omega((\{\})|(\s|$))/, "Ω\\3")
  str.gsub!(/\\omega((\{\})|(\s|$))/, "ω\\3")
  str.gsub!(/\\piv((\{\})|(\s|$))/, "ϖ\\3")
  str.gsub!(/\\partial((\{\})|(\s|$))/, "∂\\3")
  str.gsub!(/\\alefsym((\{\})|(\s|$))/, "ℵ\\3")
  str.gsub!(/\\ETH((\{\})|(\s|$))/, "Ð\\3")
  str.gsub!(/\\eth((\{\})|(\s|$))/, "ð\\3")
  str.gsub!(/\\THORN((\{\})|(\s|$))/, "Þ\\3")
  str.gsub!(/\\thorn((\{\})|(\s|$))/, "þ\\3")
  str.gsub!(/\\dots((\{\})|(\s|$))/, "…\\3")
  str.gsub!(/\\hellip((\{\})|(\s|$))/, "…\\3")
  str.gsub!(/\\middot((\{\})|(\s|$))/, "·\\3")
  str.gsub!(/\\iexcl((\{\})|(\s|$))/, "¡\\3")
  str.gsub!(/\\iquest((\{\})|(\s|$))/, "¿\\3")
  str.gsub!(/\\shy((\{\})|(\s|$))/, "­\\3")
  str.gsub!(/\\ndash((\{\})|(\s|$))/, "–\\3")
  str.gsub!(/\\mdash((\{\})|(\s|$))/, "—\\3")
  str.gsub!(/\\quot((\{\})|(\s|$))/, ""\\3")
  str.gsub!(/\\acute((\{\})|(\s|$))/, "´\\3")
  str.gsub!(/\\ldquo((\{\})|(\s|$))/, "“\\3")
  str.gsub!(/\\rdquo((\{\})|(\s|$))/, "”\\3")
  str.gsub!(/\\bdquo((\{\})|(\s|$))/, "„\\3")
  str.gsub!(/\\lsquo((\{\})|(\s|$))/, "‘\\3")
  str.gsub!(/\\rsquo((\{\})|(\s|$))/, "’\\3")
  str.gsub!(/\\sbquo((\{\})|(\s|$))/, "‚\\3")
  str.gsub!(/\\laquo((\{\})|(\s|$))/, "«\\3")
  str.gsub!(/\\raquo((\{\})|(\s|$))/, "»\\3")
  str.gsub!(/\\lsaquo((\{\})|(\s|$))/, "‹\\3")
  str.gsub!(/\\rsaquo((\{\})|(\s|$))/, "›\\3")
  str.gsub!(/\\circ((\{\})|(\s|$))/, "ˆ\\3")
  str.gsub!(/\\vert((\{\})|(\s|$))/, "|\\3")
  str.gsub!(/\\brvbar((\{\})|(\s|$))/, "¦\\3")
  str.gsub!(/\\sect((\{\})|(\s|$))/, "§\\3")
  str.gsub!(/\\amp((\{\})|(\s|$))/, "&\\3")
  str.gsub!(/\\lt((\{\})|(\s|$))/, "<\\3")
  str.gsub!(/\\gt((\{\})|(\s|$))/, ">\\3")
  str.gsub!(/\\tilde((\{\})|(\s|$))/, "˜\\3")
  str.gsub!(/\\dagger((\{\})|(\s|$))/, "†\\3")
  str.gsub!(/\\Dagger((\{\})|(\s|$))/, "‡\\3")
  str.gsub!(/\\nbsp((\{\})|(\s|$))/, " \\3")
  str.gsub!(/\\ensp((\{\})|(\s|$))/, " \\3")
  str.gsub!(/\\emsp((\{\})|(\s|$))/, " \\3")
  str.gsub!(/\\thinsp((\{\})|(\s|$))/, " \\3")
  str.gsub!(/\\curren((\{\})|(\s|$))/, "¤\\3")
  str.gsub!(/\\cent((\{\})|(\s|$))/, "¢\\3")
  str.gsub!(/\\pound((\{\})|(\s|$))/, "£\\3")
  str.gsub!(/\\yen((\{\})|(\s|$))/, "¥\\3")
  str.gsub!(/\\euro((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\EUR((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\EURdig((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\EURhv((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\EURcr((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\EURtm((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\copy((\{\})|(\s|$))/, "©\\3")
  str.gsub!(/\\reg((\{\})|(\s|$))/, "®\\3")
  str.gsub!(/\\trade((\{\})|(\s|$))/, "™\\3")
  str.gsub!(/\\minus((\{\})|(\s|$))/, "−\\3")
  str.gsub!(/\\pm((\{\})|(\s|$))/, "±\\3")
  str.gsub!(/\\plusmn((\{\})|(\s|$))/, "±\\3")
  str.gsub!(/\\times((\{\})|(\s|$))/, "×\\3")
  str.gsub!(/\\frasl((\{\})|(\s|$))/, "⁄\\3")
  str.gsub!(/\\div((\{\})|(\s|$))/, "÷\\3")
  str.gsub!(/\\frac12((\{\})|(\s|$))/, "½\\3")
  str.gsub!(/\\frac14((\{\})|(\s|$))/, "¼\\3")
  str.gsub!(/\\frac34((\{\})|(\s|$))/, "¾\\3")
  str.gsub!(/\\permil((\{\})|(\s|$))/, "‰\\3")
  str.gsub!(/\\sup1((\{\})|(\s|$))/, "¹\\3")
  str.gsub!(/\\sup2((\{\})|(\s|$))/, "²\\3")
  str.gsub!(/\\sup3((\{\})|(\s|$))/, "³\\3")
  str.gsub!(/\\radic((\{\})|(\s|$))/, "√\\3")
  str.gsub!(/\\sum((\{\})|(\s|$))/, "∑\\3")
  str.gsub!(/\\prod((\{\})|(\s|$))/, "∏\\3")
  str.gsub!(/\\micro((\{\})|(\s|$))/, "µ\\3")
  str.gsub!(/\\macr((\{\})|(\s|$))/, "¯\\3")
  str.gsub!(/\\deg((\{\})|(\s|$))/, "°\\3")
  str.gsub!(/\\prime((\{\})|(\s|$))/, "′\\3")
  str.gsub!(/\\Prime((\{\})|(\s|$))/, "″\\3")
  str.gsub!(/\\infin((\{\})|(\s|$))/, "∞\\3")
  str.gsub!(/\\infty((\{\})|(\s|$))/, "∞\\3")
  str.gsub!(/\\prop((\{\})|(\s|$))/, "∝\\3")
  str.gsub!(/\\proptp((\{\})|(\s|$))/, "∝\\3")
  str.gsub!(/\\not((\{\})|(\s|$))/, "¬\\3")
  str.gsub!(/\\land((\{\})|(\s|$))/, "∧\\3")
  str.gsub!(/\\wedge((\{\})|(\s|$))/, "∧\\3")
  str.gsub!(/\\lor((\{\})|(\s|$))/, "∨\\3")
  str.gsub!(/\\vee((\{\})|(\s|$))/, "∨\\3")
  str.gsub!(/\\cap((\{\})|(\s|$))/, "∩\\3")
  str.gsub!(/\\cup((\{\})|(\s|$))/, "∪\\3")
  str.gsub!(/\\int((\{\})|(\s|$))/, "∫\\3")
  str.gsub!(/\\there4((\{\})|(\s|$))/, "∴\\3")
  str.gsub!(/\\sim((\{\})|(\s|$))/, "∼\\3")
  str.gsub!(/\\cong((\{\})|(\s|$))/, "≅\\3")
  str.gsub!(/\\simeq((\{\})|(\s|$))/, "≅\\3")
  str.gsub!(/\\asymp((\{\})|(\s|$))/, "≈\\3")
  str.gsub!(/\\approx((\{\})|(\s|$))/, "≈\\3")
  str.gsub!(/\\ne((\{\})|(\s|$))/, "≠\\3")
  str.gsub!(/\\neq((\{\})|(\s|$))/, "≠\\3")
  str.gsub!(/\\equiv((\{\})|(\s|$))/, "≡\\3")
  str.gsub!(/\\le((\{\})|(\s|$))/, "≤\\3")
  str.gsub!(/\\ge((\{\})|(\s|$))/, "≥\\3")
  str.gsub!(/\\sub((\{\})|(\s|$))/, "⊂\\3")
  str.gsub!(/\\subset((\{\})|(\s|$))/, "⊂\\3")
  str.gsub!(/\\sup((\{\})|(\s|$))/, "⊃\\3")
  str.gsub!(/\\supset((\{\})|(\s|$))/, "⊃\\3")
  str.gsub!(/\\nsub((\{\})|(\s|$))/, "⊄\\3")
  str.gsub!(/\\sube((\{\})|(\s|$))/, "⊆\\3")
  str.gsub!(/\\nsup((\{\})|(\s|$))/, "⊅\\3")
  str.gsub!(/\\supe((\{\})|(\s|$))/, "⊇\\3")
  str.gsub!(/\\forall((\{\})|(\s|$))/, "∀\\3")
  str.gsub!(/\\exist((\{\})|(\s|$))/, "∃\\3")
  str.gsub!(/\\exists((\{\})|(\s|$))/, "∃\\3")
  str.gsub!(/\\empty((\{\})|(\s|$))/, "∅\\3")
  str.gsub!(/\\emptyset((\{\})|(\s|$))/, "∅\\3")
  str.gsub!(/\\isin((\{\})|(\s|$))/, "∈\\3")
  str.gsub!(/\\in((\{\})|(\s|$))/, "∈\\3")
  str.gsub!(/\\notin((\{\})|(\s|$))/, "∉\\3")
  str.gsub!(/\\ni((\{\})|(\s|$))/, "∋\\3")
  str.gsub!(/\\nabla((\{\})|(\s|$))/, "∇\\3")
  str.gsub!(/\\ang((\{\})|(\s|$))/, "∠\\3")
  str.gsub!(/\\angle((\{\})|(\s|$))/, "∠\\3")
  str.gsub!(/\\perp((\{\})|(\s|$))/, "⊥\\3")
  str.gsub!(/\\sdot((\{\})|(\s|$))/, "⋅\\3")
  str.gsub!(/\\cdot((\{\})|(\s|$))/, "⋅\\3")
  str.gsub!(/\\lceil((\{\})|(\s|$))/, "⌈\\3")
  str.gsub!(/\\rceil((\{\})|(\s|$))/, "⌉\\3")
  str.gsub!(/\\lfloor((\{\})|(\s|$))/, "⌊\\3")
  str.gsub!(/\\rfloor((\{\})|(\s|$))/, "⌋\\3")
  str.gsub!(/\\lang((\{\})|(\s|$))/, "⟨\\3")
  str.gsub!(/\\rang((\{\})|(\s|$))/, "⟩\\3")
  str.gsub!(/\\larr((\{\})|(\s|$))/, "←\\3")
  str.gsub!(/\\leftarrow((\{\})|(\s|$))/, "←\\3")
  str.gsub!(/\\gets((\{\})|(\s|$))/, "←\\3")
  str.gsub!(/\\lArr((\{\})|(\s|$))/, "⇐\\3")
  str.gsub!(/\\Leftarrow((\{\})|(\s|$))/, "⇐\\3")
  str.gsub!(/\\uarr((\{\})|(\s|$))/, "↑\\3")
  str.gsub!(/\\uparrow((\{\})|(\s|$))/, "↑\\3")
  str.gsub!(/\\uArr((\{\})|(\s|$))/, "⇑\\3")
  str.gsub!(/\\Uparrow((\{\})|(\s|$))/, "⇑\\3")
  str.gsub!(/\\rarr((\{\})|(\s|$))/, "→\\3")
  str.gsub!(/\\to((\{\})|(\s|$))/, "→\\3")
  str.gsub!(/\\rightarrow((\{\})|(\s|$))/, "→\\3")
  str.gsub!(/\\rArr((\{\})|(\s|$))/, "⇒\\3")
  str.gsub!(/\\Rightarrow((\{\})|(\s|$))/, "⇒\\3")
  str.gsub!(/\\darr((\{\})|(\s|$))/, "↓\\3")
  str.gsub!(/\\downarrow((\{\})|(\s|$))/, "↓\\3")
  str.gsub!(/\\dArr((\{\})|(\s|$))/, "⇓\\3")
  str.gsub!(/\\Downarrow((\{\})|(\s|$))/, "⇓\\3")
  str.gsub!(/\\harr((\{\})|(\s|$))/, "↔\\3")
  str.gsub!(/\\leftrightarrow((\{\})|(\s|$))/, "↔\\3")
  str.gsub!(/\\hArr((\{\})|(\s|$))/, "⇔\\3")
  str.gsub!(/\\Leftrightarrow((\{\})|(\s|$))/, "⇔\\3")
  str.gsub!(/\\crarr((\{\})|(\s|$))/, "↵\\3")
  str.gsub!(/\\hookleftarrow((\{\})|(\s|$))/, "↵\\3")
  str.gsub!(/\\arccos((\{\})|(\s|$))/, "arccos\\3")
  str.gsub!(/\\arcsin((\{\})|(\s|$))/, "arcsin\\3")
  str.gsub!(/\\arctan((\{\})|(\s|$))/, "arctan\\3")
  str.gsub!(/\\arg((\{\})|(\s|$))/, "arg\\3")
  str.gsub!(/\\cos((\{\})|(\s|$))/, "cos\\3")
  str.gsub!(/\\cosh((\{\})|(\s|$))/, "cosh\\3")
  str.gsub!(/\\cot((\{\})|(\s|$))/, "cot\\3")
  str.gsub!(/\\coth((\{\})|(\s|$))/, "coth\\3")
  str.gsub!(/\\csc((\{\})|(\s|$))/, "csc\\3")
  str.gsub!(/\\deg((\{\})|(\s|$))/, "°\\3")
  str.gsub!(/\\det((\{\})|(\s|$))/, "det\\3")
  str.gsub!(/\\dim((\{\})|(\s|$))/, "dim\\3")
  str.gsub!(/\\exp((\{\})|(\s|$))/, "exp\\3")
  str.gsub!(/\\gcd((\{\})|(\s|$))/, "gcd\\3")
  str.gsub!(/\\hom((\{\})|(\s|$))/, "hom\\3")
  str.gsub!(/\\inf((\{\})|(\s|$))/, "inf\\3")
  str.gsub!(/\\ker((\{\})|(\s|$))/, "ker\\3")
  str.gsub!(/\\lg((\{\})|(\s|$))/, "lg\\3")
  str.gsub!(/\\lim((\{\})|(\s|$))/, "lim\\3")
  str.gsub!(/\\liminf((\{\})|(\s|$))/, "liminf\\3")
  str.gsub!(/\\limsup((\{\})|(\s|$))/, "limsup\\3")
  str.gsub!(/\\ln((\{\})|(\s|$))/, "ln\\3")
  str.gsub!(/\\log((\{\})|(\s|$))/, "log\\3")
  str.gsub!(/\\max((\{\})|(\s|$))/, "max\\3")
  str.gsub!(/\\min((\{\})|(\s|$))/, "min\\3")
  str.gsub!(/\\Pr((\{\})|(\s|$))/, "Pr\\3")
  str.gsub!(/\\sec((\{\})|(\s|$))/, "sec\\3")
  str.gsub!(/\\sin((\{\})|(\s|$))/, "sin\\3")
  str.gsub!(/\\sinh((\{\})|(\s|$))/, "sinh\\3")
  str.gsub!(/\\sup((\{\})|(\s|$))/, "⊃\\3")
  str.gsub!(/\\tan((\{\})|(\s|$))/, "tan\\3")
  str.gsub!(/\\tanh((\{\})|(\s|$))/, "tanh\\3")
  str.gsub!(/\\bull((\{\})|(\s|$))/, "•\\3")
  str.gsub!(/\\bullet((\{\})|(\s|$))/, "•\\3")
  str.gsub!(/\\star((\{\})|(\s|$))/, "*\\3")
  str.gsub!(/\\lowast((\{\})|(\s|$))/, "∗\\3")
  str.gsub!(/\\ast((\{\})|(\s|$))/, "∗\\3")
  str.gsub!(/\\odot((\{\})|(\s|$))/, "o\\3")
  str.gsub!(/\\oplus((\{\})|(\s|$))/, "⊕\\3")
  str.gsub!(/\\otimes((\{\})|(\s|$))/, "⊗\\3")
  str.gsub!(/\\checkmark((\{\})|(\s|$))/, "✓\\3")
  str.gsub!(/\\para((\{\})|(\s|$))/, "¶\\3")
  str.gsub!(/\\ordf((\{\})|(\s|$))/, "ª\\3")
  str.gsub!(/\\ordm((\{\})|(\s|$))/, "º\\3")
  str.gsub!(/\\cedil((\{\})|(\s|$))/, "¸\\3")
  str.gsub!(/\\oline((\{\})|(\s|$))/, "‾\\3")
  str.gsub!(/\\uml((\{\})|(\s|$))/, "¨\\3")
  str.gsub!(/\\zwnj((\{\})|(\s|$))/, "‌\\3")
  str.gsub!(/\\zwj((\{\})|(\s|$))/, "‍\\3")
  str.gsub!(/\\lrm((\{\})|(\s|$))/, "‎\\3")
  str.gsub!(/\\rlm((\{\})|(\s|$))/, "‏\\3")
  str.gsub!(/\\smile((\{\})|(\s|$))/, "☺\\3")
  str.gsub!(/\\smiley((\{\})|(\s|$))/, "☺\\3")
  str.gsub!(/\\blacksmile((\{\})|(\s|$))/, "☻\\3")
  str.gsub!(/\\sad((\{\})|(\s|$))/, "☹\\3")
  str.gsub!(/\\clubs((\{\})|(\s|$))/, "♣\\3")
  str.gsub!(/\\clubsuit((\{\})|(\s|$))/, "♣\\3")
  str.gsub!(/\\spades((\{\})|(\s|$))/, "♠\\3")
  str.gsub!(/\\spadesuit((\{\})|(\s|$))/, "♠\\3")
  str.gsub!(/\\hearts((\{\})|(\s|$))/, "♥\\3")
  str.gsub!(/\\heartsuit((\{\})|(\s|$))/, "♥\\3")
  str.gsub!(/\\diams((\{\})|(\s|$))/, "♦\\3")
  str.gsub!(/\\diamondsuit((\{\})|(\s|$))/, "♦\\3")
  str.gsub!(/\\Diamond((\{\})|(\s|$))/, "⋄\\3")
  str.gsub!(/\\loz((\{\})|(\s|$))/, "◊\\3")
end

.special_symbols_to_textile(str) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
# File 'lib/org-ruby/textile_symbol_replace.rb', line 5

def Orgmode.special_symbols_to_textile(str)
  str.gsub!(/\\Agrave((\{\})|(\s|$))/, "À\\3")
  str.gsub!(/\\agrave((\{\})|(\s|$))/, "à\\3")
  str.gsub!(/\\Aacute((\{\})|(\s|$))/, "Á\\3")
  str.gsub!(/\\aacute((\{\})|(\s|$))/, "á\\3")
  str.gsub!(/\\Acirc((\{\})|(\s|$))/, "Â\\3")
  str.gsub!(/\\acirc((\{\})|(\s|$))/, "â\\3")
  str.gsub!(/\\Atilde((\{\})|(\s|$))/, "Ã\\3")
  str.gsub!(/\\atilde((\{\})|(\s|$))/, "ã\\3")
  str.gsub!(/\\Auml((\{\})|(\s|$))/, "Ä\\3")
  str.gsub!(/\\auml((\{\})|(\s|$))/, "ä\\3")
  str.gsub!(/\\Aring((\{\})|(\s|$))/, "Å\\3")
  str.gsub!(/\\AA((\{\})|(\s|$))/, "Å\\3")
  str.gsub!(/\\aring((\{\})|(\s|$))/, "å\\3")
  str.gsub!(/\\AElig((\{\})|(\s|$))/, "Æ\\3")
  str.gsub!(/\\aelig((\{\})|(\s|$))/, "æ\\3")
  str.gsub!(/\\Ccedil((\{\})|(\s|$))/, "Ç\\3")
  str.gsub!(/\\ccedil((\{\})|(\s|$))/, "ç\\3")
  str.gsub!(/\\Egrave((\{\})|(\s|$))/, "È\\3")
  str.gsub!(/\\egrave((\{\})|(\s|$))/, "è\\3")
  str.gsub!(/\\Eacute((\{\})|(\s|$))/, "É\\3")
  str.gsub!(/\\eacute((\{\})|(\s|$))/, "é\\3")
  str.gsub!(/\\Ecirc((\{\})|(\s|$))/, "Ê\\3")
  str.gsub!(/\\ecirc((\{\})|(\s|$))/, "ê\\3")
  str.gsub!(/\\Euml((\{\})|(\s|$))/, "Ë\\3")
  str.gsub!(/\\euml((\{\})|(\s|$))/, "ë\\3")
  str.gsub!(/\\Igrave((\{\})|(\s|$))/, "Ì\\3")
  str.gsub!(/\\igrave((\{\})|(\s|$))/, "ì\\3")
  str.gsub!(/\\Iacute((\{\})|(\s|$))/, "Í\\3")
  str.gsub!(/\\iacute((\{\})|(\s|$))/, "í\\3")
  str.gsub!(/\\Icirc((\{\})|(\s|$))/, "Î\\3")
  str.gsub!(/\\icirc((\{\})|(\s|$))/, "î\\3")
  str.gsub!(/\\Iuml((\{\})|(\s|$))/, "Ï\\3")
  str.gsub!(/\\iuml((\{\})|(\s|$))/, "ï\\3")
  str.gsub!(/\\Ntilde((\{\})|(\s|$))/, "Ñ\\3")
  str.gsub!(/\\ntilde((\{\})|(\s|$))/, "ñ\\3")
  str.gsub!(/\\Ograve((\{\})|(\s|$))/, "Ò\\3")
  str.gsub!(/\\ograve((\{\})|(\s|$))/, "ò\\3")
  str.gsub!(/\\Oacute((\{\})|(\s|$))/, "Ó\\3")
  str.gsub!(/\\oacute((\{\})|(\s|$))/, "ó\\3")
  str.gsub!(/\\Ocirc((\{\})|(\s|$))/, "Ô\\3")
  str.gsub!(/\\ocirc((\{\})|(\s|$))/, "ô\\3")
  str.gsub!(/\\Otilde((\{\})|(\s|$))/, "Õ\\3")
  str.gsub!(/\\otilde((\{\})|(\s|$))/, "õ\\3")
  str.gsub!(/\\Ouml((\{\})|(\s|$))/, "Ö\\3")
  str.gsub!(/\\ouml((\{\})|(\s|$))/, "ö\\3")
  str.gsub!(/\\Oslash((\{\})|(\s|$))/, "Ø\\3")
  str.gsub!(/\\oslash((\{\})|(\s|$))/, "ø\\3")
  str.gsub!(/\\OElig((\{\})|(\s|$))/, "Œ\\3")
  str.gsub!(/\\oelig((\{\})|(\s|$))/, "œ\\3")
  str.gsub!(/\\Scaron((\{\})|(\s|$))/, "Š\\3")
  str.gsub!(/\\scaron((\{\})|(\s|$))/, "š\\3")
  str.gsub!(/\\szlig((\{\})|(\s|$))/, "ß\\3")
  str.gsub!(/\\Ugrave((\{\})|(\s|$))/, "Ù\\3")
  str.gsub!(/\\ugrave((\{\})|(\s|$))/, "ù\\3")
  str.gsub!(/\\Uacute((\{\})|(\s|$))/, "Ú\\3")
  str.gsub!(/\\uacute((\{\})|(\s|$))/, "ú\\3")
  str.gsub!(/\\Ucirc((\{\})|(\s|$))/, "Û\\3")
  str.gsub!(/\\ucirc((\{\})|(\s|$))/, "û\\3")
  str.gsub!(/\\Uuml((\{\})|(\s|$))/, "Ü\\3")
  str.gsub!(/\\uuml((\{\})|(\s|$))/, "ü\\3")
  str.gsub!(/\\Yacute((\{\})|(\s|$))/, "Ý\\3")
  str.gsub!(/\\yacute((\{\})|(\s|$))/, "ý\\3")
  str.gsub!(/\\Yuml((\{\})|(\s|$))/, "Ÿ\\3")
  str.gsub!(/\\yuml((\{\})|(\s|$))/, "ÿ\\3")
  str.gsub!(/\\fnof((\{\})|(\s|$))/, "ƒ\\3")
  str.gsub!(/\\real((\{\})|(\s|$))/, "ℜ\\3")
  str.gsub!(/\\image((\{\})|(\s|$))/, "ℑ\\3")
  str.gsub!(/\\weierp((\{\})|(\s|$))/, "℘\\3")
  str.gsub!(/\\Alpha((\{\})|(\s|$))/, "Α\\3")
  str.gsub!(/\\alpha((\{\})|(\s|$))/, "α\\3")
  str.gsub!(/\\Beta((\{\})|(\s|$))/, "Β\\3")
  str.gsub!(/\\beta((\{\})|(\s|$))/, "β\\3")
  str.gsub!(/\\Gamma((\{\})|(\s|$))/, "Γ\\3")
  str.gsub!(/\\gamma((\{\})|(\s|$))/, "γ\\3")
  str.gsub!(/\\Delta((\{\})|(\s|$))/, "Δ\\3")
  str.gsub!(/\\delta((\{\})|(\s|$))/, "δ\\3")
  str.gsub!(/\\Epsilon((\{\})|(\s|$))/, "Ε\\3")
  str.gsub!(/\\epsilon((\{\})|(\s|$))/, "ε\\3")
  str.gsub!(/\\varepsilon((\{\})|(\s|$))/, "ε\\3")
  str.gsub!(/\\Zeta((\{\})|(\s|$))/, "Ζ\\3")
  str.gsub!(/\\zeta((\{\})|(\s|$))/, "ζ\\3")
  str.gsub!(/\\Eta((\{\})|(\s|$))/, "Η\\3")
  str.gsub!(/\\eta((\{\})|(\s|$))/, "η\\3")
  str.gsub!(/\\Theta((\{\})|(\s|$))/, "Θ\\3")
  str.gsub!(/\\theta((\{\})|(\s|$))/, "θ\\3")
  str.gsub!(/\\thetasym((\{\})|(\s|$))/, "ϑ\\3")
  str.gsub!(/\\vartheta((\{\})|(\s|$))/, "ϑ\\3")
  str.gsub!(/\\Iota((\{\})|(\s|$))/, "Ι\\3")
  str.gsub!(/\\iota((\{\})|(\s|$))/, "ι\\3")
  str.gsub!(/\\Kappa((\{\})|(\s|$))/, "Κ\\3")
  str.gsub!(/\\kappa((\{\})|(\s|$))/, "κ\\3")
  str.gsub!(/\\Lambda((\{\})|(\s|$))/, "Λ\\3")
  str.gsub!(/\\lambda((\{\})|(\s|$))/, "λ\\3")
  str.gsub!(/\\Mu((\{\})|(\s|$))/, "Μ\\3")
  str.gsub!(/\\mu((\{\})|(\s|$))/, "μ\\3")
  str.gsub!(/\\nu((\{\})|(\s|$))/, "ν\\3")
  str.gsub!(/\\Nu((\{\})|(\s|$))/, "Ν\\3")
  str.gsub!(/\\Xi((\{\})|(\s|$))/, "Ξ\\3")
  str.gsub!(/\\xi((\{\})|(\s|$))/, "ξ\\3")
  str.gsub!(/\\Omicron((\{\})|(\s|$))/, "Ο\\3")
  str.gsub!(/\\omicron((\{\})|(\s|$))/, "ο\\3")
  str.gsub!(/\\Pi((\{\})|(\s|$))/, "Π\\3")
  str.gsub!(/\\pi((\{\})|(\s|$))/, "π\\3")
  str.gsub!(/\\Rho((\{\})|(\s|$))/, "Ρ\\3")
  str.gsub!(/\\rho((\{\})|(\s|$))/, "ρ\\3")
  str.gsub!(/\\Sigma((\{\})|(\s|$))/, "Σ\\3")
  str.gsub!(/\\sigma((\{\})|(\s|$))/, "σ\\3")
  str.gsub!(/\\sigmaf((\{\})|(\s|$))/, "ς\\3")
  str.gsub!(/\\varsigma((\{\})|(\s|$))/, "ς\\3")
  str.gsub!(/\\Tau((\{\})|(\s|$))/, "Τ\\3")
  str.gsub!(/\\Upsilon((\{\})|(\s|$))/, "Υ\\3")
  str.gsub!(/\\upsih((\{\})|(\s|$))/, "ϒ\\3")
  str.gsub!(/\\upsilon((\{\})|(\s|$))/, "υ\\3")
  str.gsub!(/\\Phi((\{\})|(\s|$))/, "Φ\\3")
  str.gsub!(/\\phi((\{\})|(\s|$))/, "φ\\3")
  str.gsub!(/\\Chi((\{\})|(\s|$))/, "Χ\\3")
  str.gsub!(/\\chi((\{\})|(\s|$))/, "χ\\3")
  str.gsub!(/\\acutex((\{\})|(\s|$))/, "𝑥́\\3")
  str.gsub!(/\\Psi((\{\})|(\s|$))/, "Ψ\\3")
  str.gsub!(/\\psi((\{\})|(\s|$))/, "ψ\\3")
  str.gsub!(/\\tau((\{\})|(\s|$))/, "τ\\3")
  str.gsub!(/\\Omega((\{\})|(\s|$))/, "Ω\\3")
  str.gsub!(/\\omega((\{\})|(\s|$))/, "ω\\3")
  str.gsub!(/\\piv((\{\})|(\s|$))/, "ϖ\\3")
  str.gsub!(/\\partial((\{\})|(\s|$))/, "∂\\3")
  str.gsub!(/\\alefsym((\{\})|(\s|$))/, "ℵ\\3")
  str.gsub!(/\\ETH((\{\})|(\s|$))/, "Ð\\3")
  str.gsub!(/\\eth((\{\})|(\s|$))/, "ð\\3")
  str.gsub!(/\\THORN((\{\})|(\s|$))/, "Þ\\3")
  str.gsub!(/\\thorn((\{\})|(\s|$))/, "þ\\3")
  str.gsub!(/\\dots((\{\})|(\s|$))/, "…\\3")
  str.gsub!(/\\hellip((\{\})|(\s|$))/, "…\\3")
  str.gsub!(/\\middot((\{\})|(\s|$))/, "·\\3")
  str.gsub!(/\\iexcl((\{\})|(\s|$))/, "¡\\3")
  str.gsub!(/\\iquest((\{\})|(\s|$))/, "¿\\3")
  str.gsub!(/\\shy((\{\})|(\s|$))/, "\\3")
  str.gsub!(/\\ndash((\{\})|(\s|$))/, "–\\3")
  str.gsub!(/\\mdash((\{\})|(\s|$))/, "—\\3")
  str.gsub!(/\\quot((\{\})|(\s|$))/, "\"\\3")
  str.gsub!(/\\acute((\{\})|(\s|$))/, "´\\3")
  str.gsub!(/\\ldquo((\{\})|(\s|$))/, "“\\3")
  str.gsub!(/\\rdquo((\{\})|(\s|$))/, "”\\3")
  str.gsub!(/\\bdquo((\{\})|(\s|$))/, "„\\3")
  str.gsub!(/\\lsquo((\{\})|(\s|$))/, "‘\\3")
  str.gsub!(/\\rsquo((\{\})|(\s|$))/, "’\\3")
  str.gsub!(/\\sbquo((\{\})|(\s|$))/, "‚\\3")
  str.gsub!(/\\laquo((\{\})|(\s|$))/, "«\\3")
  str.gsub!(/\\raquo((\{\})|(\s|$))/, "»\\3")
  str.gsub!(/\\lsaquo((\{\})|(\s|$))/, "‹\\3")
  str.gsub!(/\\rsaquo((\{\})|(\s|$))/, "›\\3")
  str.gsub!(/\\circ((\{\})|(\s|$))/, "ˆ\\3")
  str.gsub!(/\\vert((\{\})|(\s|$))/, "|\\3")
  str.gsub!(/\\brvbar((\{\})|(\s|$))/, "¦\\3")
  str.gsub!(/\\sect((\{\})|(\s|$))/, "§\\3")
  str.gsub!(/\\amp((\{\})|(\s|$))/, "&\\3")
  str.gsub!(/\\lt((\{\})|(\s|$))/, "<\\3")
  str.gsub!(/\\gt((\{\})|(\s|$))/, ">\\3")
  str.gsub!(/\\tilde((\{\})|(\s|$))/, "~\\3")
  str.gsub!(/\\dagger((\{\})|(\s|$))/, "†\\3")
  str.gsub!(/\\Dagger((\{\})|(\s|$))/, "‡\\3")
  str.gsub!(/\\nbsp((\{\})|(\s|$))/, " \\3")
  str.gsub!(/\\ensp((\{\})|(\s|$))/, " \\3")
  str.gsub!(/\\emsp((\{\})|(\s|$))/, " \\3")
  str.gsub!(/\\thinsp((\{\})|(\s|$))/, " \\3")
  str.gsub!(/\\curren((\{\})|(\s|$))/, "¤\\3")
  str.gsub!(/\\cent((\{\})|(\s|$))/, "¢\\3")
  str.gsub!(/\\pound((\{\})|(\s|$))/, "£\\3")
  str.gsub!(/\\yen((\{\})|(\s|$))/, "¥\\3")
  str.gsub!(/\\euro((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\EUR((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\EURdig((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\EURhv((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\EURcr((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\EURtm((\{\})|(\s|$))/, "€\\3")
  str.gsub!(/\\copy((\{\})|(\s|$))/, "©\\3")
  str.gsub!(/\\reg((\{\})|(\s|$))/, "®\\3")
  str.gsub!(/\\trade((\{\})|(\s|$))/, "™\\3")
  str.gsub!(/\\minus((\{\})|(\s|$))/, "−\\3")
  str.gsub!(/\\pm((\{\})|(\s|$))/, "±\\3")
  str.gsub!(/\\plusmn((\{\})|(\s|$))/, "±\\3")
  str.gsub!(/\\times((\{\})|(\s|$))/, "×\\3")
  str.gsub!(/\\frasl((\{\})|(\s|$))/, "⁄\\3")
  str.gsub!(/\\div((\{\})|(\s|$))/, "÷\\3")
  str.gsub!(/\\frac12((\{\})|(\s|$))/, "½\\3")
  str.gsub!(/\\frac14((\{\})|(\s|$))/, "¼\\3")
  str.gsub!(/\\frac34((\{\})|(\s|$))/, "¾\\3")
  str.gsub!(/\\permil((\{\})|(\s|$))/, "‰\\3")
  str.gsub!(/\\sup1((\{\})|(\s|$))/, "¹\\3")
  str.gsub!(/\\sup2((\{\})|(\s|$))/, "²\\3")
  str.gsub!(/\\sup3((\{\})|(\s|$))/, "³\\3")
  str.gsub!(/\\radic((\{\})|(\s|$))/, "√\\3")
  str.gsub!(/\\sum((\{\})|(\s|$))/, "∑\\3")
  str.gsub!(/\\prod((\{\})|(\s|$))/, "∏\\3")
  str.gsub!(/\\micro((\{\})|(\s|$))/, "µ\\3")
  str.gsub!(/\\macr((\{\})|(\s|$))/, "¯\\3")
  str.gsub!(/\\deg((\{\})|(\s|$))/, "°\\3")
  str.gsub!(/\\prime((\{\})|(\s|$))/, "′\\3")
  str.gsub!(/\\Prime((\{\})|(\s|$))/, "″\\3")
  str.gsub!(/\\infin((\{\})|(\s|$))/, "∞\\3")
  str.gsub!(/\\infty((\{\})|(\s|$))/, "∞\\3")
  str.gsub!(/\\prop((\{\})|(\s|$))/, "∝\\3")
  str.gsub!(/\\proptp((\{\})|(\s|$))/, "∝\\3")
  str.gsub!(/\\not((\{\})|(\s|$))/, "¬\\3")
  str.gsub!(/\\land((\{\})|(\s|$))/, "∧\\3")
  str.gsub!(/\\wedge((\{\})|(\s|$))/, "∧\\3")
  str.gsub!(/\\lor((\{\})|(\s|$))/, "∨\\3")
  str.gsub!(/\\vee((\{\})|(\s|$))/, "∨\\3")
  str.gsub!(/\\cap((\{\})|(\s|$))/, "∩\\3")
  str.gsub!(/\\cup((\{\})|(\s|$))/, "∪\\3")
  str.gsub!(/\\int((\{\})|(\s|$))/, "∫\\3")
  str.gsub!(/\\there4((\{\})|(\s|$))/, "∴\\3")
  str.gsub!(/\\sim((\{\})|(\s|$))/, "∼\\3")
  str.gsub!(/\\cong((\{\})|(\s|$))/, "≅\\3")
  str.gsub!(/\\simeq((\{\})|(\s|$))/, "≅\\3")
  str.gsub!(/\\asymp((\{\})|(\s|$))/, "≈\\3")
  str.gsub!(/\\approx((\{\})|(\s|$))/, "≈\\3")
  str.gsub!(/\\ne((\{\})|(\s|$))/, "≠\\3")
  str.gsub!(/\\neq((\{\})|(\s|$))/, "≠\\3")
  str.gsub!(/\\equiv((\{\})|(\s|$))/, "≡\\3")
  str.gsub!(/\\le((\{\})|(\s|$))/, "≤\\3")
  str.gsub!(/\\ge((\{\})|(\s|$))/, "≥\\3")
  str.gsub!(/\\sub((\{\})|(\s|$))/, "⊂\\3")
  str.gsub!(/\\subset((\{\})|(\s|$))/, "⊂\\3")
  str.gsub!(/\\sup((\{\})|(\s|$))/, "⊃\\3")
  str.gsub!(/\\supset((\{\})|(\s|$))/, "⊃\\3")
  str.gsub!(/\\nsub((\{\})|(\s|$))/, "⊄\\3")
  str.gsub!(/\\sube((\{\})|(\s|$))/, "⊆\\3")
  str.gsub!(/\\nsup((\{\})|(\s|$))/, "⊅\\3")
  str.gsub!(/\\supe((\{\})|(\s|$))/, "⊇\\3")
  str.gsub!(/\\forall((\{\})|(\s|$))/, "∀\\3")
  str.gsub!(/\\exist((\{\})|(\s|$))/, "∃\\3")
  str.gsub!(/\\exists((\{\})|(\s|$))/, "∃\\3")
  str.gsub!(/\\empty((\{\})|(\s|$))/, "∅\\3")
  str.gsub!(/\\emptyset((\{\})|(\s|$))/, "∅\\3")
  str.gsub!(/\\isin((\{\})|(\s|$))/, "∈\\3")
  str.gsub!(/\\in((\{\})|(\s|$))/, "∈\\3")
  str.gsub!(/\\notin((\{\})|(\s|$))/, "∉\\3")
  str.gsub!(/\\ni((\{\})|(\s|$))/, "∋\\3")
  str.gsub!(/\\nabla((\{\})|(\s|$))/, "∇\\3")
  str.gsub!(/\\ang((\{\})|(\s|$))/, "∠\\3")
  str.gsub!(/\\angle((\{\})|(\s|$))/, "∠\\3")
  str.gsub!(/\\perp((\{\})|(\s|$))/, "⊥\\3")
  str.gsub!(/\\sdot((\{\})|(\s|$))/, "⋅\\3")
  str.gsub!(/\\cdot((\{\})|(\s|$))/, "⋅\\3")
  str.gsub!(/\\lceil((\{\})|(\s|$))/, "⌈\\3")
  str.gsub!(/\\rceil((\{\})|(\s|$))/, "⌉\\3")
  str.gsub!(/\\lfloor((\{\})|(\s|$))/, "⌊\\3")
  str.gsub!(/\\rfloor((\{\})|(\s|$))/, "⌋\\3")
  str.gsub!(/\\lang((\{\})|(\s|$))/, "⟨\\3")
  str.gsub!(/\\rang((\{\})|(\s|$))/, "⟩\\3")
  str.gsub!(/\\larr((\{\})|(\s|$))/, "←\\3")
  str.gsub!(/\\leftarrow((\{\})|(\s|$))/, "←\\3")
  str.gsub!(/\\gets((\{\})|(\s|$))/, "←\\3")
  str.gsub!(/\\lArr((\{\})|(\s|$))/, "⇐\\3")
  str.gsub!(/\\Leftarrow((\{\})|(\s|$))/, "⇐\\3")
  str.gsub!(/\\uarr((\{\})|(\s|$))/, "↑\\3")
  str.gsub!(/\\uparrow((\{\})|(\s|$))/, "↑\\3")
  str.gsub!(/\\uArr((\{\})|(\s|$))/, "⇑\\3")
  str.gsub!(/\\Uparrow((\{\})|(\s|$))/, "⇑\\3")
  str.gsub!(/\\rarr((\{\})|(\s|$))/, "→\\3")
  str.gsub!(/\\to((\{\})|(\s|$))/, "→\\3")
  str.gsub!(/\\rightarrow((\{\})|(\s|$))/, "→\\3")
  str.gsub!(/\\rArr((\{\})|(\s|$))/, "⇒\\3")
  str.gsub!(/\\Rightarrow((\{\})|(\s|$))/, "⇒\\3")
  str.gsub!(/\\darr((\{\})|(\s|$))/, "↓\\3")
  str.gsub!(/\\downarrow((\{\})|(\s|$))/, "↓\\3")
  str.gsub!(/\\dArr((\{\})|(\s|$))/, "⇓\\3")
  str.gsub!(/\\Downarrow((\{\})|(\s|$))/, "⇓\\3")
  str.gsub!(/\\harr((\{\})|(\s|$))/, "↔\\3")
  str.gsub!(/\\leftrightarrow((\{\})|(\s|$))/, "↔\\3")
  str.gsub!(/\\hArr((\{\})|(\s|$))/, "⇔\\3")
  str.gsub!(/\\Leftrightarrow((\{\})|(\s|$))/, "⇔\\3")
  str.gsub!(/\\crarr((\{\})|(\s|$))/, "↵\\3")
  str.gsub!(/\\hookleftarrow((\{\})|(\s|$))/, "↵\\3")
  str.gsub!(/\\arccos((\{\})|(\s|$))/, "arccos\\3")
  str.gsub!(/\\arcsin((\{\})|(\s|$))/, "arcsin\\3")
  str.gsub!(/\\arctan((\{\})|(\s|$))/, "arctan\\3")
  str.gsub!(/\\arg((\{\})|(\s|$))/, "arg\\3")
  str.gsub!(/\\cos((\{\})|(\s|$))/, "cos\\3")
  str.gsub!(/\\cosh((\{\})|(\s|$))/, "cosh\\3")
  str.gsub!(/\\cot((\{\})|(\s|$))/, "cot\\3")
  str.gsub!(/\\coth((\{\})|(\s|$))/, "coth\\3")
  str.gsub!(/\\csc((\{\})|(\s|$))/, "csc\\3")
  str.gsub!(/\\deg((\{\})|(\s|$))/, "deg\\3")
  str.gsub!(/\\det((\{\})|(\s|$))/, "det\\3")
  str.gsub!(/\\dim((\{\})|(\s|$))/, "dim\\3")
  str.gsub!(/\\exp((\{\})|(\s|$))/, "exp\\3")
  str.gsub!(/\\gcd((\{\})|(\s|$))/, "gcd\\3")
  str.gsub!(/\\hom((\{\})|(\s|$))/, "hom\\3")
  str.gsub!(/\\inf((\{\})|(\s|$))/, "inf\\3")
  str.gsub!(/\\ker((\{\})|(\s|$))/, "ker\\3")
  str.gsub!(/\\lg((\{\})|(\s|$))/, "lg\\3")
  str.gsub!(/\\lim((\{\})|(\s|$))/, "lim\\3")
  str.gsub!(/\\liminf((\{\})|(\s|$))/, "liminf\\3")
  str.gsub!(/\\limsup((\{\})|(\s|$))/, "limsup\\3")
  str.gsub!(/\\ln((\{\})|(\s|$))/, "ln\\3")
  str.gsub!(/\\log((\{\})|(\s|$))/, "log\\3")
  str.gsub!(/\\max((\{\})|(\s|$))/, "max\\3")
  str.gsub!(/\\min((\{\})|(\s|$))/, "min\\3")
  str.gsub!(/\\Pr((\{\})|(\s|$))/, "Pr\\3")
  str.gsub!(/\\sec((\{\})|(\s|$))/, "sec\\3")
  str.gsub!(/\\sin((\{\})|(\s|$))/, "sin\\3")
  str.gsub!(/\\sinh((\{\})|(\s|$))/, "sinh\\3")
  str.gsub!(/\\sup((\{\})|(\s|$))/, "sup\\3")
  str.gsub!(/\\tan((\{\})|(\s|$))/, "tan\\3")
  str.gsub!(/\\tanh((\{\})|(\s|$))/, "tanh\\3")
  str.gsub!(/\\bull((\{\})|(\s|$))/, "•\\3")
  str.gsub!(/\\bullet((\{\})|(\s|$))/, "•\\3")
  str.gsub!(/\\star((\{\})|(\s|$))/, "⋆\\3")
  str.gsub!(/\\lowast((\{\})|(\s|$))/, "∗\\3")
  str.gsub!(/\\ast((\{\})|(\s|$))/, "*\\3")
  str.gsub!(/\\odot((\{\})|(\s|$))/, "ʘ\\3")
  str.gsub!(/\\oplus((\{\})|(\s|$))/, "⊕\\3")
  str.gsub!(/\\otimes((\{\})|(\s|$))/, "⊗\\3")
  str.gsub!(/\\checkmark((\{\})|(\s|$))/, "✓\\3")
  str.gsub!(/\\para((\{\})|(\s|$))/, "¶\\3")
  str.gsub!(/\\ordf((\{\})|(\s|$))/, "ª\\3")
  str.gsub!(/\\ordm((\{\})|(\s|$))/, "º\\3")
  str.gsub!(/\\cedil((\{\})|(\s|$))/, "¸\\3")
  str.gsub!(/\\oline((\{\})|(\s|$))/, "‾\\3")
  str.gsub!(/\\uml((\{\})|(\s|$))/, "¨\\3")
  str.gsub!(/\\zwnj((\{\})|(\s|$))/, "‌\\3")
  str.gsub!(/\\zwj((\{\})|(\s|$))/, "‍\\3")
  str.gsub!(/\\lrm((\{\})|(\s|$))/, "‎\\3")
  str.gsub!(/\\rlm((\{\})|(\s|$))/, "‏\\3")
  str.gsub!(/\\smile((\{\})|(\s|$))/, "⌣\\3")
  str.gsub!(/\\smiley((\{\})|(\s|$))/, "☺\\3")
  str.gsub!(/\\blacksmile((\{\})|(\s|$))/, "☻\\3")
  str.gsub!(/\\sad((\{\})|(\s|$))/, "☹\\3")
  str.gsub!(/\\clubs((\{\})|(\s|$))/, "♣\\3")
  str.gsub!(/\\clubsuit((\{\})|(\s|$))/, "♣\\3")
  str.gsub!(/\\spades((\{\})|(\s|$))/, "♠\\3")
  str.gsub!(/\\spadesuit((\{\})|(\s|$))/, "♠\\3")
  str.gsub!(/\\hearts((\{\})|(\s|$))/, "♥\\3")
  str.gsub!(/\\heartsuit((\{\})|(\s|$))/, "♥\\3")
  str.gsub!(/\\diams((\{\})|(\s|$))/, "♦\\3")
  str.gsub!(/\\diamondsuit((\{\})|(\s|$))/, "♦\\3")
  str.gsub!(/\\Diamond((\{\})|(\s|$))/, "⋄\\3")
  str.gsub!(/\\loz((\{\})|(\s|$))/, "◊\\3")
end