org-ruby 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ == 0.8.2 / 2013-11-09
2
+
3
+ * Manage the #+INCLUDE tag in org files (contribution by pierre-lecocq)
4
+ * #+INCLUDE is disabled by default. Needs either ORG_RUBY_INCLUDE_ROOT or
5
+ ORG_RUBY_ENABLE_INCLUDE_FILES environment variables in order to be enabled.
6
+ * Link abbreviations with #+LINK tag are supported (by pierre-lecocq too, thanks!)
7
+ * Strip prepended commas added by Emacs Org mode to src/example blocks
8
+
1
9
  == 0.8.1 / 2013-02-17
2
10
 
3
11
  * Fix for html escaping when code is inline
data/lib/org-ruby.rb CHANGED
@@ -21,7 +21,7 @@ require 'org-ruby/tilt'
21
21
  module OrgRuby
22
22
 
23
23
  # :stopdoc:
24
- VERSION = '0.8.1'
24
+ VERSION = '0.8.2'
25
25
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
26
26
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
27
27
  # :startdoc:
@@ -28,6 +28,9 @@ module Orgmode
28
28
  # The export state of this headline. See +ValidExportStates+.
29
29
  attr_accessor :export_state
30
30
 
31
+ # Include the property drawer items found for the headline
32
+ attr_accessor :property_drawer
33
+
31
34
  # This is the regex that matches a line
32
35
  LineRegexp = /^\*+\s+/
33
36
 
@@ -47,6 +50,7 @@ module Orgmode
47
50
  @body_lines = []
48
51
  @tags = []
49
52
  @export_state = :exclude
53
+ @property_drawer = { }
50
54
  if (@line =~ LineRegexp) then
51
55
  @level = $&.strip.length + offset
52
56
  @headline_text = $'.strip
@@ -58,8 +58,7 @@ module Orgmode
58
58
  # write out one of the block tags in the HtmlBlockTag constant to
59
59
  # put this information in the HTML stream.
60
60
  def push_mode(mode, indent)
61
- super(mode)
62
- @list_indent_stack.push(indent)
61
+ super(mode, indent)
63
62
 
64
63
  if HtmlBlockTag[mode]
65
64
  unless ((mode_is_table?(mode) and skip_tables?) or
@@ -306,6 +305,7 @@ module Orgmode
306
305
  end
307
306
 
308
307
  if defi
308
+ link = @options[:link_abbrevs][link] if @options[:link_abbrevs].has_key? link
309
309
  "@<a href=\"#{link}\">#{defi}@</a>"
310
310
  else
311
311
  "@<img src=\"#{link}\" alt=\"#{link}\" />"
@@ -359,6 +359,11 @@ module Orgmode
359
359
  strip_regexp = Regexp.new("^" + " " * @code_block_indent)
360
360
  @buffer.gsub!(strip_regexp, "")
361
361
  @code_block_indent = nil
362
+
363
+ # Strip proctective commas generated by Org mode (C-c ')
364
+ @buffer.gsub! /^\s*(,)(\s*)([*]|#\+)/ do |match|
365
+ "#{$2}#{$3}"
366
+ end
362
367
  end
363
368
  end # class HtmlOutputBuffer
364
369
  end # module Orgmode
@@ -2,351 +2,351 @@
2
2
 
3
3
  module Orgmode
4
4
  HtmlEntities = {
5
- "Agrave" => "&Agrave;",
6
- "agrave" => "&agrave;",
7
- "Aacute" => "&Aacute;",
8
- "aacute" => "&aacute;",
9
- "Acirc" => "&Acirc;",
10
- "acirc" => "&acirc;",
11
- "Atilde" => "&Atilde;",
12
- "atilde" => "&atilde;",
13
- "Auml" => "&Auml;",
14
- "auml" => "&auml;",
15
- "Aring" => "&Aring;",
16
- "AA" => "&Aring;",
17
- "aring" => "&aring;",
18
- "AElig" => "&AElig;",
19
- "aelig" => "&aelig;",
20
- "Ccedil" => "&Ccedil;",
21
- "ccedil" => "&ccedil;",
22
- "Egrave" => "&Egrave;",
23
- "egrave" => "&egrave;",
24
- "Eacute" => "&Eacute;",
25
- "eacute" => "&eacute;",
26
- "Ecirc" => "&Ecirc;",
27
- "ecirc" => "&ecirc;",
28
- "Euml" => "&Euml;",
29
- "euml" => "&euml;",
30
- "Igrave" => "&Igrave;",
31
- "igrave" => "&igrave;",
32
- "Iacute" => "&Iacute;",
33
- "iacute" => "&iacute;",
34
- "Icirc" => "&Icirc;",
35
- "icirc" => "&icirc;",
36
- "Iuml" => "&Iuml;",
37
- "iuml" => "&iuml;",
38
- "Ntilde" => "&Ntilde;",
39
- "ntilde" => "&ntilde;",
40
- "Ograve" => "&Ograve;",
41
- "ograve" => "&ograve;",
42
- "Oacute" => "&Oacute;",
43
- "oacute" => "&oacute;",
44
- "Ocirc" => "&Ocirc;",
45
- "ocirc" => "&ocirc;",
46
- "Otilde" => "&Otilde;",
47
- "otilde" => "&otilde;",
48
- "Ouml" => "&Ouml;",
49
- "ouml" => "&ouml;",
50
- "Oslash" => "&Oslash;",
51
- "oslash" => "&oslash;",
52
- "OElig" => "&OElig;",
53
- "oelig" => "&oelig;",
54
- "Scaron" => "&Scaron;",
55
- "scaron" => "&scaron;",
56
- "szlig" => "&szlig;",
57
- "Ugrave" => "&Ugrave;",
58
- "ugrave" => "&ugrave;",
59
- "Uacute" => "&Uacute;",
60
- "uacute" => "&uacute;",
61
- "Ucirc" => "&Ucirc;",
62
- "ucirc" => "&ucirc;",
63
- "Uuml" => "&Uuml;",
64
- "uuml" => "&uuml;",
65
- "Yacute" => "&Yacute;",
66
- "yacute" => "&yacute;",
67
- "Yuml" => "&Yuml;",
68
- "yuml" => "&yuml;",
69
- "fnof" => "&fnof;",
70
- "real" => "&real;",
71
- "image" => "&image;",
72
- "weierp" => "&weierp;",
73
- "Alpha" => "&Alpha;",
74
- "alpha" => "&alpha;",
75
- "Beta" => "&Beta;",
76
- "beta" => "&beta;",
77
- "Gamma" => "&Gamma;",
78
- "gamma" => "&gamma;",
79
- "Delta" => "&Delta;",
80
- "delta" => "&delta;",
81
- "Epsilon" => "&Epsilon;",
82
- "epsilon" => "&epsilon;",
83
- "varepsilon" => "&epsilon;",
84
- "Zeta" => "&Zeta;",
85
- "zeta" => "&zeta;",
86
- "Eta" => "&Eta;",
87
- "eta" => "&eta;",
88
- "Theta" => "&Theta;",
89
- "theta" => "&theta;",
90
- "thetasym" => "&thetasym;",
91
- "vartheta" => "&thetasym;",
92
- "Iota" => "&Iota;",
93
- "iota" => "&iota;",
94
- "Kappa" => "&Kappa;",
95
- "kappa" => "&kappa;",
96
- "Lambda" => "&Lambda;",
97
- "lambda" => "&lambda;",
98
- "Mu" => "&Mu;",
99
- "mu" => "&mu;",
100
- "nu" => "&nu;",
101
- "Nu" => "&Nu;",
102
- "Xi" => "&Xi;",
103
- "xi" => "&xi;",
104
- "Omicron" => "&Omicron;",
105
- "omicron" => "&omicron;",
106
- "Pi" => "&Pi;",
107
- "pi" => "&pi;",
108
- "Rho" => "&Rho;",
109
- "rho" => "&rho;",
110
- "Sigma" => "&Sigma;",
111
- "sigma" => "&sigma;",
112
- "sigmaf" => "&sigmaf;",
113
- "varsigma" => "&sigmaf;",
114
- "Tau" => "&Tau;",
115
- "Upsilon" => "&Upsilon;",
116
- "upsih" => "&upsih;",
117
- "upsilon" => "&upsilon;",
118
- "Phi" => "&Phi;",
119
- "phi" => "&phi;",
120
- "Chi" => "&Chi;",
121
- "chi" => "&chi;",
122
- "acutex" => "&acute;x",
123
- "Psi" => "&Psi;",
124
- "psi" => "&psi;",
125
- "tau" => "&tau;",
126
- "Omega" => "&Omega;",
127
- "omega" => "&omega;",
128
- "piv" => "&piv;",
129
- "partial" => "&part;",
130
- "alefsym" => "&alefsym;",
131
- "ETH" => "&ETH;",
132
- "eth" => "&eth;",
133
- "THORN" => "&THORN;",
134
- "thorn" => "&thorn;",
135
- "dots" => "&hellip;",
136
- "hellip" => "&hellip;",
137
- "middot" => "&middot;",
138
- "iexcl" => "&iexcl;",
139
- "iquest" => "&iquest;",
140
- "shy" => "&shy;",
141
- "ndash" => "&ndash;",
142
- "mdash" => "&mdash;",
143
- "quot" => "&quot;",
144
- "acute" => "&acute;",
145
- "ldquo" => "&ldquo;",
146
- "rdquo" => "&rdquo;",
147
- "bdquo" => "&bdquo;",
148
- "lsquo" => "&lsquo;",
149
- "rsquo" => "&rsquo;",
150
- "sbquo" => "&sbquo;",
151
- "laquo" => "&laquo;",
152
- "raquo" => "&raquo;",
153
- "lsaquo" => "&lsaquo;",
154
- "rsaquo" => "&rsaquo;",
155
- "circ" => "&circ;",
156
- "vert" => "&#124;",
157
- "brvbar" => "&brvbar;",
158
- "sect" => "&sect;",
159
- "amp" => "&amp;",
160
- "lt" => "&lt;",
161
- "gt" => "&gt;",
162
- "tilde" => "&tilde;",
163
- "slash" => "/",
164
- "plus" => "+",
165
- "under" => "_",
166
- "equal" => "=",
167
- "asciicirc" => "^",
168
- "dagger" => "&dagger;",
169
- "Dagger" => "&Dagger;",
170
- "nbsp" => "&nbsp;",
171
- "ensp" => "&ensp;",
172
- "emsp" => "&emsp;",
173
- "thinsp" => "&thinsp;",
174
- "curren" => "&curren;",
175
- "cent" => "&cent;",
176
- "pound" => "&pound;",
177
- "yen" => "&yen;",
178
- "euro" => "&euro;",
179
- "EUR" => "&euro;",
180
- "EURdig" => "&euro;",
181
- "EURhv" => "&euro;",
182
- "EURcr" => "&euro;",
183
- "EURtm" => "&euro;",
184
- "copy" => "&copy;",
185
- "reg" => "&reg;",
186
- "trade" => "&trade;",
187
- "minus" => "&minus;",
188
- "pm" => "&plusmn;",
189
- "plusmn" => "&plusmn;",
190
- "times" => "&times;",
191
- "frasl" => "&frasl;",
192
- "div" => "&divide;",
193
- "frac12" => "&frac12;",
194
- "frac14" => "&frac14;",
195
- "frac34" => "&frac34;",
196
- "permil" => "&permil;",
197
- "sup1" => "&sup1;",
198
- "sup2" => "&sup2;",
199
- "sup3" => "&sup3;",
200
- "radic" => "&radic;",
201
- "sum" => "&sum;",
202
- "prod" => "&prod;",
203
- "micro" => "&micro;",
204
- "macr" => "&macr;",
205
- "deg" => "&deg;",
206
- "prime" => "&prime;",
207
- "Prime" => "&Prime;",
208
- "infin" => "&infin;",
209
- "infty" => "&infin;",
210
- "prop" => "&prop;",
211
- "proptp" => "&prop;",
212
- "not" => "&not;",
213
- "neg" => "&not;",
214
- "land" => "&and;",
215
- "wedge" => "&and;",
216
- "lor" => "&or;",
217
- "vee" => "&or;",
218
- "cap" => "&cap;",
219
- "cup" => "&cup;",
220
- "int" => "&int;",
221
- "there4" => "&there4;",
222
- "sim" => "&sim;",
223
- "cong" => "&cong;",
224
- "simeq" => "&cong;",
225
- "asymp" => "&asymp;",
226
- "approx" => "&asymp;",
227
- "ne" => "&ne;",
228
- "neq" => "&ne;",
229
- "equiv" => "&equiv;",
230
- "le" => "&le;",
231
- "ge" => "&ge;",
232
- "sub" => "&sub;",
233
- "subset" => "&sub;",
234
- "sup" => "&sup;",
235
- "supset" => "&sup;",
236
- "nsub" => "&nsub;",
237
- "sube" => "&sube;",
238
- "nsup" => "&nsup;",
239
- "supe" => "&supe;",
240
- "forall" => "&forall;",
241
- "exist" => "&exist;",
242
- "exists" => "&exist;",
243
- "empty" => "&empty;",
244
- "emptyset" => "&empty;",
245
- "isin" => "&isin;",
246
- "in" => "&isin;",
247
- "notin" => "&notin;",
248
- "ni" => "&ni;",
249
- "nabla" => "&nabla;",
250
- "ang" => "&ang;",
251
- "angle" => "&ang;",
252
- "perp" => "&perp;",
253
- "sdot" => "&sdot;",
254
- "cdot" => "&sdot;",
255
- "lceil" => "&lceil;",
256
- "rceil" => "&rceil;",
257
- "lfloor" => "&lfloor;",
258
- "rfloor" => "&rfloor;",
259
- "lang" => "&lang;",
260
- "rang" => "&rang;",
261
- "larr" => "&larr;",
262
- "leftarrow" => "&larr;",
263
- "gets" => "&larr;",
264
- "lArr" => "&lArr;",
265
- "Leftarrow" => "&lArr;",
266
- "uarr" => "&uarr;",
267
- "uparrow" => "&uarr;",
268
- "uArr" => "&uArr;",
269
- "Uparrow" => "&uArr;",
270
- "rarr" => "&rarr;",
271
- "to" => "&rarr;",
272
- "rightarrow" => "&rarr;",
273
- "rArr" => "&rArr;",
274
- "Rightarrow" => "&rArr;",
275
- "darr" => "&darr;",
276
- "downarrow" => "&darr;",
277
- "dArr" => "&dArr;",
278
- "Downarrow" => "&dArr;",
279
- "harr" => "&harr;",
5
+ "Agrave" => "&Agrave;",
6
+ "agrave" => "&agrave;",
7
+ "Aacute" => "&Aacute;",
8
+ "aacute" => "&aacute;",
9
+ "Acirc" => "&Acirc;",
10
+ "acirc" => "&acirc;",
11
+ "Atilde" => "&Atilde;",
12
+ "atilde" => "&atilde;",
13
+ "Auml" => "&Auml;",
14
+ "auml" => "&auml;",
15
+ "Aring" => "&Aring;",
16
+ "AA" => "&Aring;",
17
+ "aring" => "&aring;",
18
+ "AElig" => "&AElig;",
19
+ "aelig" => "&aelig;",
20
+ "Ccedil" => "&Ccedil;",
21
+ "ccedil" => "&ccedil;",
22
+ "Egrave" => "&Egrave;",
23
+ "egrave" => "&egrave;",
24
+ "Eacute" => "&Eacute;",
25
+ "eacute" => "&eacute;",
26
+ "Ecirc" => "&Ecirc;",
27
+ "ecirc" => "&ecirc;",
28
+ "Euml" => "&Euml;",
29
+ "euml" => "&euml;",
30
+ "Igrave" => "&Igrave;",
31
+ "igrave" => "&igrave;",
32
+ "Iacute" => "&Iacute;",
33
+ "iacute" => "&iacute;",
34
+ "Icirc" => "&Icirc;",
35
+ "icirc" => "&icirc;",
36
+ "Iuml" => "&Iuml;",
37
+ "iuml" => "&iuml;",
38
+ "Ntilde" => "&Ntilde;",
39
+ "ntilde" => "&ntilde;",
40
+ "Ograve" => "&Ograve;",
41
+ "ograve" => "&ograve;",
42
+ "Oacute" => "&Oacute;",
43
+ "oacute" => "&oacute;",
44
+ "Ocirc" => "&Ocirc;",
45
+ "ocirc" => "&ocirc;",
46
+ "Otilde" => "&Otilde;",
47
+ "otilde" => "&otilde;",
48
+ "Ouml" => "&Ouml;",
49
+ "ouml" => "&ouml;",
50
+ "Oslash" => "&Oslash;",
51
+ "oslash" => "&oslash;",
52
+ "OElig" => "&OElig;",
53
+ "oelig" => "&oelig;",
54
+ "Scaron" => "&Scaron;",
55
+ "scaron" => "&scaron;",
56
+ "szlig" => "&szlig;",
57
+ "Ugrave" => "&Ugrave;",
58
+ "ugrave" => "&ugrave;",
59
+ "Uacute" => "&Uacute;",
60
+ "uacute" => "&uacute;",
61
+ "Ucirc" => "&Ucirc;",
62
+ "ucirc" => "&ucirc;",
63
+ "Uuml" => "&Uuml;",
64
+ "uuml" => "&uuml;",
65
+ "Yacute" => "&Yacute;",
66
+ "yacute" => "&yacute;",
67
+ "Yuml" => "&Yuml;",
68
+ "yuml" => "&yuml;",
69
+ "fnof" => "&fnof;",
70
+ "real" => "&real;",
71
+ "image" => "&image;",
72
+ "weierp" => "&weierp;",
73
+ "Alpha" => "&Alpha;",
74
+ "alpha" => "&alpha;",
75
+ "Beta" => "&Beta;",
76
+ "beta" => "&beta;",
77
+ "Gamma" => "&Gamma;",
78
+ "gamma" => "&gamma;",
79
+ "Delta" => "&Delta;",
80
+ "delta" => "&delta;",
81
+ "Epsilon" => "&Epsilon;",
82
+ "epsilon" => "&epsilon;",
83
+ "varepsilon" => "&epsilon;",
84
+ "Zeta" => "&Zeta;",
85
+ "zeta" => "&zeta;",
86
+ "Eta" => "&Eta;",
87
+ "eta" => "&eta;",
88
+ "Theta" => "&Theta;",
89
+ "theta" => "&theta;",
90
+ "thetasym" => "&thetasym;",
91
+ "vartheta" => "&thetasym;",
92
+ "Iota" => "&Iota;",
93
+ "iota" => "&iota;",
94
+ "Kappa" => "&Kappa;",
95
+ "kappa" => "&kappa;",
96
+ "Lambda" => "&Lambda;",
97
+ "lambda" => "&lambda;",
98
+ "Mu" => "&Mu;",
99
+ "mu" => "&mu;",
100
+ "nu" => "&nu;",
101
+ "Nu" => "&Nu;",
102
+ "Xi" => "&Xi;",
103
+ "xi" => "&xi;",
104
+ "Omicron" => "&Omicron;",
105
+ "omicron" => "&omicron;",
106
+ "Pi" => "&Pi;",
107
+ "pi" => "&pi;",
108
+ "Rho" => "&Rho;",
109
+ "rho" => "&rho;",
110
+ "Sigma" => "&Sigma;",
111
+ "sigma" => "&sigma;",
112
+ "sigmaf" => "&sigmaf;",
113
+ "varsigma" => "&sigmaf;",
114
+ "Tau" => "&Tau;",
115
+ "Upsilon" => "&Upsilon;",
116
+ "upsih" => "&upsih;",
117
+ "upsilon" => "&upsilon;",
118
+ "Phi" => "&Phi;",
119
+ "phi" => "&phi;",
120
+ "Chi" => "&Chi;",
121
+ "chi" => "&chi;",
122
+ "acutex" => "&acute;x",
123
+ "Psi" => "&Psi;",
124
+ "psi" => "&psi;",
125
+ "tau" => "&tau;",
126
+ "Omega" => "&Omega;",
127
+ "omega" => "&omega;",
128
+ "piv" => "&piv;",
129
+ "partial" => "&part;",
130
+ "alefsym" => "&alefsym;",
131
+ "ETH" => "&ETH;",
132
+ "eth" => "&eth;",
133
+ "THORN" => "&THORN;",
134
+ "thorn" => "&thorn;",
135
+ "dots" => "&hellip;",
136
+ "hellip" => "&hellip;",
137
+ "middot" => "&middot;",
138
+ "iexcl" => "&iexcl;",
139
+ "iquest" => "&iquest;",
140
+ "shy" => "&shy;",
141
+ "ndash" => "&ndash;",
142
+ "mdash" => "&mdash;",
143
+ "quot" => "&quot;",
144
+ "acute" => "&acute;",
145
+ "ldquo" => "&ldquo;",
146
+ "rdquo" => "&rdquo;",
147
+ "bdquo" => "&bdquo;",
148
+ "lsquo" => "&lsquo;",
149
+ "rsquo" => "&rsquo;",
150
+ "sbquo" => "&sbquo;",
151
+ "laquo" => "&laquo;",
152
+ "raquo" => "&raquo;",
153
+ "lsaquo" => "&lsaquo;",
154
+ "rsaquo" => "&rsaquo;",
155
+ "circ" => "&circ;",
156
+ "vert" => "&#124;",
157
+ "brvbar" => "&brvbar;",
158
+ "sect" => "&sect;",
159
+ "amp" => "&amp;",
160
+ "lt" => "&lt;",
161
+ "gt" => "&gt;",
162
+ "tilde" => "&tilde;",
163
+ "slash" => "/",
164
+ "plus" => "+",
165
+ "under" => "_",
166
+ "equal" => "=",
167
+ "asciicirc" => "^",
168
+ "dagger" => "&dagger;",
169
+ "Dagger" => "&Dagger;",
170
+ "nbsp" => "&nbsp;",
171
+ "ensp" => "&ensp;",
172
+ "emsp" => "&emsp;",
173
+ "thinsp" => "&thinsp;",
174
+ "curren" => "&curren;",
175
+ "cent" => "&cent;",
176
+ "pound" => "&pound;",
177
+ "yen" => "&yen;",
178
+ "euro" => "&euro;",
179
+ "EUR" => "&euro;",
180
+ "EURdig" => "&euro;",
181
+ "EURhv" => "&euro;",
182
+ "EURcr" => "&euro;",
183
+ "EURtm" => "&euro;",
184
+ "copy" => "&copy;",
185
+ "reg" => "&reg;",
186
+ "trade" => "&trade;",
187
+ "minus" => "&minus;",
188
+ "pm" => "&plusmn;",
189
+ "plusmn" => "&plusmn;",
190
+ "times" => "&times;",
191
+ "frasl" => "&frasl;",
192
+ "div" => "&divide;",
193
+ "frac12" => "&frac12;",
194
+ "frac14" => "&frac14;",
195
+ "frac34" => "&frac34;",
196
+ "permil" => "&permil;",
197
+ "sup1" => "&sup1;",
198
+ "sup2" => "&sup2;",
199
+ "sup3" => "&sup3;",
200
+ "radic" => "&radic;",
201
+ "sum" => "&sum;",
202
+ "prod" => "&prod;",
203
+ "micro" => "&micro;",
204
+ "macr" => "&macr;",
205
+ "deg" => "&deg;",
206
+ "prime" => "&prime;",
207
+ "Prime" => "&Prime;",
208
+ "infin" => "&infin;",
209
+ "infty" => "&infin;",
210
+ "prop" => "&prop;",
211
+ "proptp" => "&prop;",
212
+ "not" => "&not;",
213
+ "neg" => "&not;",
214
+ "land" => "&and;",
215
+ "wedge" => "&and;",
216
+ "lor" => "&or;",
217
+ "vee" => "&or;",
218
+ "cap" => "&cap;",
219
+ "cup" => "&cup;",
220
+ "int" => "&int;",
221
+ "there4" => "&there4;",
222
+ "sim" => "&sim;",
223
+ "cong" => "&cong;",
224
+ "simeq" => "&cong;",
225
+ "asymp" => "&asymp;",
226
+ "approx" => "&asymp;",
227
+ "ne" => "&ne;",
228
+ "neq" => "&ne;",
229
+ "equiv" => "&equiv;",
230
+ "le" => "&le;",
231
+ "ge" => "&ge;",
232
+ "sub" => "&sub;",
233
+ "subset" => "&sub;",
234
+ "sup" => "&sup;",
235
+ "supset" => "&sup;",
236
+ "nsub" => "&nsub;",
237
+ "sube" => "&sube;",
238
+ "nsup" => "&nsup;",
239
+ "supe" => "&supe;",
240
+ "forall" => "&forall;",
241
+ "exist" => "&exist;",
242
+ "exists" => "&exist;",
243
+ "empty" => "&empty;",
244
+ "emptyset" => "&empty;",
245
+ "isin" => "&isin;",
246
+ "in" => "&isin;",
247
+ "notin" => "&notin;",
248
+ "ni" => "&ni;",
249
+ "nabla" => "&nabla;",
250
+ "ang" => "&ang;",
251
+ "angle" => "&ang;",
252
+ "perp" => "&perp;",
253
+ "sdot" => "&sdot;",
254
+ "cdot" => "&sdot;",
255
+ "lceil" => "&lceil;",
256
+ "rceil" => "&rceil;",
257
+ "lfloor" => "&lfloor;",
258
+ "rfloor" => "&rfloor;",
259
+ "lang" => "&lang;",
260
+ "rang" => "&rang;",
261
+ "larr" => "&larr;",
262
+ "leftarrow" => "&larr;",
263
+ "gets" => "&larr;",
264
+ "lArr" => "&lArr;",
265
+ "Leftarrow" => "&lArr;",
266
+ "uarr" => "&uarr;",
267
+ "uparrow" => "&uarr;",
268
+ "uArr" => "&uArr;",
269
+ "Uparrow" => "&uArr;",
270
+ "rarr" => "&rarr;",
271
+ "to" => "&rarr;",
272
+ "rightarrow" => "&rarr;",
273
+ "rArr" => "&rArr;",
274
+ "Rightarrow" => "&rArr;",
275
+ "darr" => "&darr;",
276
+ "downarrow" => "&darr;",
277
+ "dArr" => "&dArr;",
278
+ "Downarrow" => "&dArr;",
279
+ "harr" => "&harr;",
280
280
  "leftrightarrow" => "&harr;",
281
- "hArr" => "&hArr;",
281
+ "hArr" => "&hArr;",
282
282
  "Leftrightarrow" => "&hArr;",
283
- "crarr" => "&crarr;",
284
- "hookleftarrow" => "&crarr;",
285
- "arccos" => "arccos",
286
- "arcsin" => "arcsin",
287
- "arctan" => "arctan",
288
- "arg" => "arg",
289
- "cos" => "cos",
290
- "cosh" => "cosh",
291
- "cot" => "cot",
292
- "coth" => "coth",
293
- "csc" => "csc",
294
- "deg" => "&deg;",
295
- "det" => "det",
296
- "dim" => "dim",
297
- "exp" => "exp",
298
- "gcd" => "gcd",
299
- "hom" => "hom",
300
- "inf" => "inf",
301
- "ker" => "ker",
302
- "lg" => "lg",
303
- "lim" => "lim",
304
- "liminf" => "liminf",
305
- "limsup" => "limsup",
306
- "ln" => "ln",
307
- "log" => "log",
308
- "max" => "max",
309
- "min" => "min",
310
- "Pr" => "Pr",
311
- "sec" => "sec",
312
- "sin" => "sin",
313
- "sinh" => "sinh",
314
- "sup" => "&sup;",
315
- "tan" => "tan",
316
- "tanh" => "tanh",
317
- "bull" => "&bull;",
318
- "bullet" => "&bull;",
319
- "star" => "*",
320
- "lowast" => "&lowast;",
321
- "ast" => "&lowast;",
322
- "odot" => "o",
323
- "oplus" => "&oplus;",
324
- "otimes" => "&otimes;",
325
- "checkmark" => "&#10003;",
326
- "para" => "&para;",
327
- "ordf" => "&ordf;",
328
- "ordm" => "&ordm;",
329
- "cedil" => "&cedil;",
330
- "oline" => "&oline;",
331
- "uml" => "&uml;",
332
- "zwnj" => "&zwnj;",
333
- "zwj" => "&zwj;",
334
- "lrm" => "&lrm;",
335
- "rlm" => "&rlm;",
336
- "smile" => "&#9786;",
337
- "smiley" => "&#9786;",
338
- "blacksmile" => "&#9787;",
339
- "sad" => "&#9785;",
340
- "clubs" => "&clubs;",
341
- "clubsuit" => "&clubs;",
342
- "spades" => "&spades;",
343
- "spadesuit" => "&spades;",
344
- "hearts" => "&hearts;",
345
- "heartsuit" => "&heartsuit;",
346
- "diams" => "&diams;",
347
- "diamondsuit" => "&diams;",
348
- "Diamond" => "&diamond;",
349
- "loz" => "&loz;"
283
+ "crarr" => "&crarr;",
284
+ "hookleftarrow" => "&crarr;",
285
+ "arccos" => "arccos",
286
+ "arcsin" => "arcsin",
287
+ "arctan" => "arctan",
288
+ "arg" => "arg",
289
+ "cos" => "cos",
290
+ "cosh" => "cosh",
291
+ "cot" => "cot",
292
+ "coth" => "coth",
293
+ "csc" => "csc",
294
+ "deg" => "&deg;",
295
+ "det" => "det",
296
+ "dim" => "dim",
297
+ "exp" => "exp",
298
+ "gcd" => "gcd",
299
+ "hom" => "hom",
300
+ "inf" => "inf",
301
+ "ker" => "ker",
302
+ "lg" => "lg",
303
+ "lim" => "lim",
304
+ "liminf" => "liminf",
305
+ "limsup" => "limsup",
306
+ "ln" => "ln",
307
+ "log" => "log",
308
+ "max" => "max",
309
+ "min" => "min",
310
+ "Pr" => "Pr",
311
+ "sec" => "sec",
312
+ "sin" => "sin",
313
+ "sinh" => "sinh",
314
+ "sup" => "&sup;",
315
+ "tan" => "tan",
316
+ "tanh" => "tanh",
317
+ "bull" => "&bull;",
318
+ "bullet" => "&bull;",
319
+ "star" => "*",
320
+ "lowast" => "&lowast;",
321
+ "ast" => "&lowast;",
322
+ "odot" => "o",
323
+ "oplus" => "&oplus;",
324
+ "otimes" => "&otimes;",
325
+ "checkmark" => "&#10003;",
326
+ "para" => "&para;",
327
+ "ordf" => "&ordf;",
328
+ "ordm" => "&ordm;",
329
+ "cedil" => "&cedil;",
330
+ "oline" => "&oline;",
331
+ "uml" => "&uml;",
332
+ "zwnj" => "&zwnj;",
333
+ "zwj" => "&zwj;",
334
+ "lrm" => "&lrm;",
335
+ "rlm" => "&rlm;",
336
+ "smile" => "&#9786;",
337
+ "smiley" => "&#9786;",
338
+ "blacksmile" => "&#9787;",
339
+ "sad" => "&#9785;",
340
+ "clubs" => "&clubs;",
341
+ "clubsuit" => "&clubs;",
342
+ "spades" => "&spades;",
343
+ "spadesuit" => "&spades;",
344
+ "hearts" => "&hearts;",
345
+ "heartsuit" => "&heartsuit;",
346
+ "diams" => "&diams;",
347
+ "diamondsuit" => "&diams;",
348
+ "Diamond" => "&diamond;",
349
+ "loz" => "&loz;"
350
350
  }
351
351
  @org_entities_regexp = /\\(there4|sup[123]|frac[13][24]|[a-zA-Z]+)($|\{\}|[^a-zA-Z])/
352
352