org-ruby 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +12 -0
- data/Rakefile +3 -5
- data/announcement.txt +24 -0
- data/doc/History_txt.html +272 -0
- data/doc/OrgRuby.html +149 -0
- data/doc/Orgmode.html +960 -0
- data/doc/Orgmode/Headline.html +522 -0
- data/doc/Orgmode/HtmlOutputBuffer.html +480 -0
- data/doc/Orgmode/Line.html +1251 -0
- data/doc/Orgmode/OutputBuffer.html +810 -0
- data/doc/Orgmode/Parser.html +852 -0
- data/doc/Orgmode/RegexpHelper.html +639 -0
- data/doc/Orgmode/TextileOutputBuffer.html +456 -0
- data/doc/README_rdoc.html +178 -0
- data/doc/announcement_txt.html +142 -0
- data/doc/bin/org-ruby.html +54 -0
- data/doc/created.rid +15 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +306 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/org-ruby/headline_rb.html +52 -0
- data/doc/lib/org-ruby/html_output_buffer_rb.html +52 -0
- data/doc/lib/org-ruby/html_symbol_replace_rb.html +54 -0
- data/doc/lib/org-ruby/line_rb.html +52 -0
- data/doc/lib/org-ruby/output_buffer_rb.html +54 -0
- data/doc/lib/org-ruby/parser_rb.html +56 -0
- data/doc/lib/org-ruby/regexp_helper_rb.html +54 -0
- data/doc/lib/org-ruby/textile_output_buffer_rb.html +54 -0
- data/doc/lib/org-ruby/textile_symbol_replace_rb.html +54 -0
- data/doc/lib/org-ruby_rb.html +52 -0
- data/doc/rdoc.css +763 -0
- data/lib/org-ruby.rb +1 -1
- data/lib/org-ruby/headline.rb +2 -2
- data/lib/org-ruby/html_output_buffer.rb +62 -5
- data/lib/org-ruby/html_symbol_replace.rb +345 -0
- data/lib/org-ruby/line.rb +20 -9
- data/lib/org-ruby/output_buffer.rb +8 -1
- data/lib/org-ruby/parser.rb +47 -19
- data/lib/org-ruby/regexp_helper.rb +16 -0
- data/lib/org-ruby/textile_output_buffer.rb +37 -2
- data/lib/org-ruby/textile_symbol_replace.rb +345 -0
- data/org-ruby.gemspec +41 -0
- data/spec/headline_spec.rb +5 -0
- data/spec/html_examples/advanced-code.html +10 -0
- data/spec/html_examples/advanced-code.org +13 -0
- data/spec/html_examples/blockcomment.html +3 -0
- data/spec/html_examples/blockcomment.org +15 -0
- data/spec/html_examples/center.html +6 -0
- data/spec/html_examples/center.org +7 -0
- data/spec/html_examples/deflist.html +6 -0
- data/spec/html_examples/deflist.org +6 -0
- data/spec/html_examples/footnotes.html +10 -0
- data/spec/html_examples/footnotes.org +7 -0
- data/spec/html_examples/inline-formatting.html +8 -0
- data/spec/html_examples/inline-formatting.org +10 -0
- data/spec/html_examples/inline-images.html +1 -1
- data/spec/html_examples/lists.html +4 -0
- data/spec/html_examples/lists.org +11 -0
- data/spec/html_examples/subsupscript-nil.html +3 -0
- data/spec/html_examples/subsupscript-nil.org +6 -0
- data/spec/html_examples/subsupscript.html +3 -0
- data/spec/html_examples/subsupscript.org +5 -0
- data/spec/html_examples/tables.html +15 -0
- data/spec/html_examples/tables.org +24 -0
- data/spec/line_spec.rb +17 -13
- data/spec/spec_helper.rb +1 -2
- data/spec/textile_examples/center.org +7 -0
- data/spec/textile_examples/center.textile +6 -0
- data/spec/textile_examples/footnotes.org +7 -0
- data/spec/textile_examples/footnotes.textile +8 -0
- data/spec/textile_examples/tables.org +24 -0
- data/spec/textile_examples/tables.textile +17 -0
- data/util/gen-special-replace.el +37 -0
- metadata +111 -19
- data/.gitignore +0 -1
data/lib/org-ruby.rb
CHANGED
data/lib/org-ruby/headline.rb
CHANGED
@@ -41,14 +41,14 @@ module Orgmode
|
|
41
41
|
|
42
42
|
KeywordsRegexp = Regexp.new("^(#{Keywords.join('|')})\$")
|
43
43
|
|
44
|
-
def initialize(line, parser = nil)
|
44
|
+
def initialize(line, parser = nil, offset=0)
|
45
45
|
super(line, parser)
|
46
46
|
@body_lines = []
|
47
47
|
@body_lines << self # Make @body_lines contain the headline?
|
48
48
|
@tags = []
|
49
49
|
@export_state = :exclude
|
50
50
|
if (@line =~ LineRegexp) then
|
51
|
-
@level = $&.strip.length
|
51
|
+
@level = $&.strip.length + offset
|
52
52
|
@headline_text = $'.strip
|
53
53
|
if (@headline_text =~ TagsRegexp) then
|
54
54
|
@tags = $&.split(/:/) # split tag text on semicolon
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require OrgRuby.libpath(*%w[org-ruby html_symbol_replace])
|
1
2
|
require OrgRuby.libpath(*%w[org-ruby output_buffer])
|
2
3
|
|
3
4
|
module Orgmode
|
@@ -8,6 +9,8 @@ module Orgmode
|
|
8
9
|
:paragraph => "p",
|
9
10
|
:ordered_list => "li",
|
10
11
|
:unordered_list => "li",
|
12
|
+
:definition_term => "dt",
|
13
|
+
:definition_descr => "dd",
|
11
14
|
:table_row => "tr",
|
12
15
|
:table_header => "tr",
|
13
16
|
:heading1 => "h1",
|
@@ -21,11 +24,13 @@ module Orgmode
|
|
21
24
|
ModeTag = {
|
22
25
|
:unordered_list => "ul",
|
23
26
|
:ordered_list => "ol",
|
27
|
+
:definition_list => "dl",
|
24
28
|
:table => "table",
|
25
29
|
:blockquote => "blockquote",
|
26
30
|
:example => "pre",
|
27
31
|
:src => "pre",
|
28
|
-
:inline_example => "pre"
|
32
|
+
:inline_example => "pre",
|
33
|
+
:center => "div"
|
29
34
|
}
|
30
35
|
|
31
36
|
attr_reader :options
|
@@ -38,6 +43,7 @@ module Orgmode
|
|
38
43
|
@title_decoration = ""
|
39
44
|
end
|
40
45
|
@options = opts
|
46
|
+
@footnotes = {}
|
41
47
|
@logger.debug "HTML export options: #{@options.inspect}"
|
42
48
|
end
|
43
49
|
|
@@ -50,6 +56,7 @@ module Orgmode
|
|
50
56
|
css_class = ""
|
51
57
|
css_class = " class=\"src\"" if mode == :src
|
52
58
|
css_class = " class=\"example\"" if (mode == :example || mode == :inline_example)
|
59
|
+
css_class = " style=\"text-align: center\"" if mode == :center
|
53
60
|
@logger.debug "#{mode}: <#{ModeTag[mode]}#{css_class}>\n"
|
54
61
|
@output << "<#{ModeTag[mode]}#{css_class}>\n" unless mode == :table and skip_tables?
|
55
62
|
# Entering a new mode obliterates the title decoration
|
@@ -77,11 +84,25 @@ module Orgmode
|
|
77
84
|
@logger.debug "FLUSH CODE ==========> #{@buffer.inspect}"
|
78
85
|
@output << @buffer << "\n"
|
79
86
|
else
|
80
|
-
if
|
87
|
+
if @buffer.length > 0 and @output_type == :definition_list then
|
88
|
+
unless buffer_mode_is_table? and skip_tables?
|
89
|
+
output_indentation
|
90
|
+
d = @buffer.split("::", 2)
|
91
|
+
@output << "<#{HtmlBlockTag[:definition_term]}#{@title_decoration}>" << inline_formatting(d[0].strip) \
|
92
|
+
<< "</#{HtmlBlockTag[:definition_term]}>"
|
93
|
+
if d.length > 1 then
|
94
|
+
@output << "<#{HtmlBlockTag[:definition_descr]}#{@title_decoration}>" << inline_formatting(d[1].strip) \
|
95
|
+
<< "</#{HtmlBlockTag[:definition_descr]}>\n"
|
96
|
+
else
|
97
|
+
@output << "\n"
|
98
|
+
end
|
99
|
+
@title_decoration = ""
|
100
|
+
end
|
101
|
+
elsif @buffer.length > 0 then
|
81
102
|
unless buffer_mode_is_table? and skip_tables?
|
82
103
|
@logger.debug "FLUSH ==========> #{@buffer_mode}"
|
83
104
|
output_indentation
|
84
|
-
@output << "<#{HtmlBlockTag[@output_type]}#{@title_decoration}>"
|
105
|
+
@output << "<#{HtmlBlockTag[@output_type]}#{@title_decoration}>"
|
85
106
|
if (@buffered_lines[0].kind_of?(Headline)) then
|
86
107
|
headline = @buffered_lines[0]
|
87
108
|
raise "Cannot be more than one headline!" if @buffered_lines.length > 1
|
@@ -106,6 +127,23 @@ module Orgmode
|
|
106
127
|
clear_accumulation_buffer!
|
107
128
|
end
|
108
129
|
|
130
|
+
def output_footnotes!
|
131
|
+
return false unless @options[:export_footnotes] and not @footnotes.empty?
|
132
|
+
|
133
|
+
@output << "<div id=\"footnotes\">\n<h2 class=\"footnotes\">Footnotes: </h2>\n<div id=\"text-footnotes\">\n"
|
134
|
+
|
135
|
+
@footnotes.each do |name, defi|
|
136
|
+
@output << "<p class=\"footnote\"><sup><a class=\"footnum\" name=\"fn.#{name}\" href=\"#fnr.#{name}\">#{name}</a></sup>" \
|
137
|
+
<< inline_formatting(defi) \
|
138
|
+
<< "</p>\n"
|
139
|
+
end
|
140
|
+
|
141
|
+
@output << "</div>\n</div>\n"
|
142
|
+
|
143
|
+
return true
|
144
|
+
end
|
145
|
+
|
146
|
+
|
109
147
|
######################################################################
|
110
148
|
private
|
111
149
|
|
@@ -145,8 +183,17 @@ module Orgmode
|
|
145
183
|
str = @re_help.rewrite_emphasis(str) do |marker, s|
|
146
184
|
"#{Tags[marker][:open]}#{s}#{Tags[marker][:close]}"
|
147
185
|
end
|
186
|
+
if @options[:use_sub_superscripts] then
|
187
|
+
str = @re_help.rewrite_subp(str) do |type, text|
|
188
|
+
if type == "_" then
|
189
|
+
"<sub>#{text}</sub>"
|
190
|
+
elsif type == "^" then
|
191
|
+
"<sup>#{text}</sup>"
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
148
195
|
str = @re_help.rewrite_images(str) do |link|
|
149
|
-
"<img src=\"#{link}\"
|
196
|
+
"<a href=\"#{link}\"><img src=\"#{link}\" /></a>"
|
150
197
|
end
|
151
198
|
str = @re_help.rewrite_links(str) do |link, text|
|
152
199
|
text ||= link
|
@@ -158,6 +205,9 @@ module Orgmode
|
|
158
205
|
end
|
159
206
|
link = link.sub(/^file:/i, "") # will default to HTTP
|
160
207
|
link = link.sub(/\.org$/i, ".html")
|
208
|
+
text = text.gsub(/([^\]]*\.(jpg|jpeg|gif|png))/xi) do |img_link|
|
209
|
+
"<img src=\"#{img_link}\" />"
|
210
|
+
end
|
161
211
|
"<a href=\"#{link}\">#{text}</a>"
|
162
212
|
end
|
163
213
|
if (@output_type == :table_row) then
|
@@ -170,8 +220,15 @@ module Orgmode
|
|
170
220
|
str.gsub!(/\s*\|$/, "</th>")
|
171
221
|
str.gsub!(/\s*\|\s*/, "</th><th>")
|
172
222
|
end
|
223
|
+
if @options[:export_footnotes] then
|
224
|
+
str = @re_help.rewrite_footnote(str) do |name, defi|
|
225
|
+
# TODO escape name for url?
|
226
|
+
@footnotes[name] = defi if defi
|
227
|
+
"<sup><a class=\"footref\" name=\"fnr.#{name}\" href=\"#fn.#{name}\">#{name}</a></sup>"
|
228
|
+
end
|
229
|
+
end
|
230
|
+
Orgmode.special_symbols_to_html(str)
|
173
231
|
str
|
174
232
|
end
|
175
|
-
|
176
233
|
end # class HtmlOutputBuffer
|
177
234
|
end # module Orgmode
|
@@ -0,0 +1,345 @@
|
|
1
|
+
# Autogenerated by util/gen-special-replace.el
|
2
|
+
|
3
|
+
module Orgmode
|
4
|
+
def Orgmode.special_symbols_to_html(str)
|
5
|
+
str.gsub!(/\\Agrave((\{\})|(\s|$))/, "À\\3")
|
6
|
+
str.gsub!(/\\agrave((\{\})|(\s|$))/, "à\\3")
|
7
|
+
str.gsub!(/\\Aacute((\{\})|(\s|$))/, "Á\\3")
|
8
|
+
str.gsub!(/\\aacute((\{\})|(\s|$))/, "á\\3")
|
9
|
+
str.gsub!(/\\Acirc((\{\})|(\s|$))/, "Â\\3")
|
10
|
+
str.gsub!(/\\acirc((\{\})|(\s|$))/, "â\\3")
|
11
|
+
str.gsub!(/\\Atilde((\{\})|(\s|$))/, "Ã\\3")
|
12
|
+
str.gsub!(/\\atilde((\{\})|(\s|$))/, "ã\\3")
|
13
|
+
str.gsub!(/\\Auml((\{\})|(\s|$))/, "Ä\\3")
|
14
|
+
str.gsub!(/\\auml((\{\})|(\s|$))/, "ä\\3")
|
15
|
+
str.gsub!(/\\Aring((\{\})|(\s|$))/, "Å\\3")
|
16
|
+
str.gsub!(/\\AA((\{\})|(\s|$))/, "Å\\3")
|
17
|
+
str.gsub!(/\\aring((\{\})|(\s|$))/, "å\\3")
|
18
|
+
str.gsub!(/\\AElig((\{\})|(\s|$))/, "Æ\\3")
|
19
|
+
str.gsub!(/\\aelig((\{\})|(\s|$))/, "æ\\3")
|
20
|
+
str.gsub!(/\\Ccedil((\{\})|(\s|$))/, "Ç\\3")
|
21
|
+
str.gsub!(/\\ccedil((\{\})|(\s|$))/, "ç\\3")
|
22
|
+
str.gsub!(/\\Egrave((\{\})|(\s|$))/, "È\\3")
|
23
|
+
str.gsub!(/\\egrave((\{\})|(\s|$))/, "è\\3")
|
24
|
+
str.gsub!(/\\Eacute((\{\})|(\s|$))/, "É\\3")
|
25
|
+
str.gsub!(/\\eacute((\{\})|(\s|$))/, "é\\3")
|
26
|
+
str.gsub!(/\\Ecirc((\{\})|(\s|$))/, "Ê\\3")
|
27
|
+
str.gsub!(/\\ecirc((\{\})|(\s|$))/, "ê\\3")
|
28
|
+
str.gsub!(/\\Euml((\{\})|(\s|$))/, "Ë\\3")
|
29
|
+
str.gsub!(/\\euml((\{\})|(\s|$))/, "ë\\3")
|
30
|
+
str.gsub!(/\\Igrave((\{\})|(\s|$))/, "Ì\\3")
|
31
|
+
str.gsub!(/\\igrave((\{\})|(\s|$))/, "ì\\3")
|
32
|
+
str.gsub!(/\\Iacute((\{\})|(\s|$))/, "Í\\3")
|
33
|
+
str.gsub!(/\\iacute((\{\})|(\s|$))/, "í\\3")
|
34
|
+
str.gsub!(/\\Icirc((\{\})|(\s|$))/, "Î\\3")
|
35
|
+
str.gsub!(/\\icirc((\{\})|(\s|$))/, "î\\3")
|
36
|
+
str.gsub!(/\\Iuml((\{\})|(\s|$))/, "Ï\\3")
|
37
|
+
str.gsub!(/\\iuml((\{\})|(\s|$))/, "ï\\3")
|
38
|
+
str.gsub!(/\\Ntilde((\{\})|(\s|$))/, "Ñ\\3")
|
39
|
+
str.gsub!(/\\ntilde((\{\})|(\s|$))/, "ñ\\3")
|
40
|
+
str.gsub!(/\\Ograve((\{\})|(\s|$))/, "Ò\\3")
|
41
|
+
str.gsub!(/\\ograve((\{\})|(\s|$))/, "ò\\3")
|
42
|
+
str.gsub!(/\\Oacute((\{\})|(\s|$))/, "Ó\\3")
|
43
|
+
str.gsub!(/\\oacute((\{\})|(\s|$))/, "ó\\3")
|
44
|
+
str.gsub!(/\\Ocirc((\{\})|(\s|$))/, "Ô\\3")
|
45
|
+
str.gsub!(/\\ocirc((\{\})|(\s|$))/, "ô\\3")
|
46
|
+
str.gsub!(/\\Otilde((\{\})|(\s|$))/, "Õ\\3")
|
47
|
+
str.gsub!(/\\otilde((\{\})|(\s|$))/, "õ\\3")
|
48
|
+
str.gsub!(/\\Ouml((\{\})|(\s|$))/, "Ö\\3")
|
49
|
+
str.gsub!(/\\ouml((\{\})|(\s|$))/, "ö\\3")
|
50
|
+
str.gsub!(/\\Oslash((\{\})|(\s|$))/, "Ø\\3")
|
51
|
+
str.gsub!(/\\oslash((\{\})|(\s|$))/, "ø\\3")
|
52
|
+
str.gsub!(/\\OElig((\{\})|(\s|$))/, "Œ\\3")
|
53
|
+
str.gsub!(/\\oelig((\{\})|(\s|$))/, "œ\\3")
|
54
|
+
str.gsub!(/\\Scaron((\{\})|(\s|$))/, "Š\\3")
|
55
|
+
str.gsub!(/\\scaron((\{\})|(\s|$))/, "š\\3")
|
56
|
+
str.gsub!(/\\szlig((\{\})|(\s|$))/, "ß\\3")
|
57
|
+
str.gsub!(/\\Ugrave((\{\})|(\s|$))/, "Ù\\3")
|
58
|
+
str.gsub!(/\\ugrave((\{\})|(\s|$))/, "ù\\3")
|
59
|
+
str.gsub!(/\\Uacute((\{\})|(\s|$))/, "Ú\\3")
|
60
|
+
str.gsub!(/\\uacute((\{\})|(\s|$))/, "ú\\3")
|
61
|
+
str.gsub!(/\\Ucirc((\{\})|(\s|$))/, "Û\\3")
|
62
|
+
str.gsub!(/\\ucirc((\{\})|(\s|$))/, "û\\3")
|
63
|
+
str.gsub!(/\\Uuml((\{\})|(\s|$))/, "Ü\\3")
|
64
|
+
str.gsub!(/\\uuml((\{\})|(\s|$))/, "ü\\3")
|
65
|
+
str.gsub!(/\\Yacute((\{\})|(\s|$))/, "Ý\\3")
|
66
|
+
str.gsub!(/\\yacute((\{\})|(\s|$))/, "ý\\3")
|
67
|
+
str.gsub!(/\\Yuml((\{\})|(\s|$))/, "Ÿ\\3")
|
68
|
+
str.gsub!(/\\yuml((\{\})|(\s|$))/, "ÿ\\3")
|
69
|
+
str.gsub!(/\\fnof((\{\})|(\s|$))/, "ƒ\\3")
|
70
|
+
str.gsub!(/\\real((\{\})|(\s|$))/, "ℜ\\3")
|
71
|
+
str.gsub!(/\\image((\{\})|(\s|$))/, "ℑ\\3")
|
72
|
+
str.gsub!(/\\weierp((\{\})|(\s|$))/, "℘\\3")
|
73
|
+
str.gsub!(/\\Alpha((\{\})|(\s|$))/, "Α\\3")
|
74
|
+
str.gsub!(/\\alpha((\{\})|(\s|$))/, "α\\3")
|
75
|
+
str.gsub!(/\\Beta((\{\})|(\s|$))/, "Β\\3")
|
76
|
+
str.gsub!(/\\beta((\{\})|(\s|$))/, "β\\3")
|
77
|
+
str.gsub!(/\\Gamma((\{\})|(\s|$))/, "Γ\\3")
|
78
|
+
str.gsub!(/\\gamma((\{\})|(\s|$))/, "γ\\3")
|
79
|
+
str.gsub!(/\\Delta((\{\})|(\s|$))/, "Δ\\3")
|
80
|
+
str.gsub!(/\\delta((\{\})|(\s|$))/, "δ\\3")
|
81
|
+
str.gsub!(/\\Epsilon((\{\})|(\s|$))/, "Ε\\3")
|
82
|
+
str.gsub!(/\\epsilon((\{\})|(\s|$))/, "ε\\3")
|
83
|
+
str.gsub!(/\\varepsilon((\{\})|(\s|$))/, "ε\\3")
|
84
|
+
str.gsub!(/\\Zeta((\{\})|(\s|$))/, "Ζ\\3")
|
85
|
+
str.gsub!(/\\zeta((\{\})|(\s|$))/, "ζ\\3")
|
86
|
+
str.gsub!(/\\Eta((\{\})|(\s|$))/, "Η\\3")
|
87
|
+
str.gsub!(/\\eta((\{\})|(\s|$))/, "η\\3")
|
88
|
+
str.gsub!(/\\Theta((\{\})|(\s|$))/, "Θ\\3")
|
89
|
+
str.gsub!(/\\theta((\{\})|(\s|$))/, "θ\\3")
|
90
|
+
str.gsub!(/\\thetasym((\{\})|(\s|$))/, "ϑ\\3")
|
91
|
+
str.gsub!(/\\vartheta((\{\})|(\s|$))/, "ϑ\\3")
|
92
|
+
str.gsub!(/\\Iota((\{\})|(\s|$))/, "Ι\\3")
|
93
|
+
str.gsub!(/\\iota((\{\})|(\s|$))/, "ι\\3")
|
94
|
+
str.gsub!(/\\Kappa((\{\})|(\s|$))/, "Κ\\3")
|
95
|
+
str.gsub!(/\\kappa((\{\})|(\s|$))/, "κ\\3")
|
96
|
+
str.gsub!(/\\Lambda((\{\})|(\s|$))/, "Λ\\3")
|
97
|
+
str.gsub!(/\\lambda((\{\})|(\s|$))/, "λ\\3")
|
98
|
+
str.gsub!(/\\Mu((\{\})|(\s|$))/, "Μ\\3")
|
99
|
+
str.gsub!(/\\mu((\{\})|(\s|$))/, "μ\\3")
|
100
|
+
str.gsub!(/\\nu((\{\})|(\s|$))/, "ν\\3")
|
101
|
+
str.gsub!(/\\Nu((\{\})|(\s|$))/, "Ν\\3")
|
102
|
+
str.gsub!(/\\Xi((\{\})|(\s|$))/, "Ξ\\3")
|
103
|
+
str.gsub!(/\\xi((\{\})|(\s|$))/, "ξ\\3")
|
104
|
+
str.gsub!(/\\Omicron((\{\})|(\s|$))/, "Ο\\3")
|
105
|
+
str.gsub!(/\\omicron((\{\})|(\s|$))/, "ο\\3")
|
106
|
+
str.gsub!(/\\Pi((\{\})|(\s|$))/, "Π\\3")
|
107
|
+
str.gsub!(/\\pi((\{\})|(\s|$))/, "π\\3")
|
108
|
+
str.gsub!(/\\Rho((\{\})|(\s|$))/, "Ρ\\3")
|
109
|
+
str.gsub!(/\\rho((\{\})|(\s|$))/, "ρ\\3")
|
110
|
+
str.gsub!(/\\Sigma((\{\})|(\s|$))/, "Σ\\3")
|
111
|
+
str.gsub!(/\\sigma((\{\})|(\s|$))/, "σ\\3")
|
112
|
+
str.gsub!(/\\sigmaf((\{\})|(\s|$))/, "ς\\3")
|
113
|
+
str.gsub!(/\\varsigma((\{\})|(\s|$))/, "ς\\3")
|
114
|
+
str.gsub!(/\\Tau((\{\})|(\s|$))/, "Τ\\3")
|
115
|
+
str.gsub!(/\\Upsilon((\{\})|(\s|$))/, "Υ\\3")
|
116
|
+
str.gsub!(/\\upsih((\{\})|(\s|$))/, "ϒ\\3")
|
117
|
+
str.gsub!(/\\upsilon((\{\})|(\s|$))/, "υ\\3")
|
118
|
+
str.gsub!(/\\Phi((\{\})|(\s|$))/, "Φ\\3")
|
119
|
+
str.gsub!(/\\phi((\{\})|(\s|$))/, "φ\\3")
|
120
|
+
str.gsub!(/\\Chi((\{\})|(\s|$))/, "Χ\\3")
|
121
|
+
str.gsub!(/\\chi((\{\})|(\s|$))/, "χ\\3")
|
122
|
+
str.gsub!(/\\acutex((\{\})|(\s|$))/, "´x\\3")
|
123
|
+
str.gsub!(/\\Psi((\{\})|(\s|$))/, "Ψ\\3")
|
124
|
+
str.gsub!(/\\psi((\{\})|(\s|$))/, "ψ\\3")
|
125
|
+
str.gsub!(/\\tau((\{\})|(\s|$))/, "τ\\3")
|
126
|
+
str.gsub!(/\\Omega((\{\})|(\s|$))/, "Ω\\3")
|
127
|
+
str.gsub!(/\\omega((\{\})|(\s|$))/, "ω\\3")
|
128
|
+
str.gsub!(/\\piv((\{\})|(\s|$))/, "ϖ\\3")
|
129
|
+
str.gsub!(/\\partial((\{\})|(\s|$))/, "∂\\3")
|
130
|
+
str.gsub!(/\\alefsym((\{\})|(\s|$))/, "ℵ\\3")
|
131
|
+
str.gsub!(/\\ETH((\{\})|(\s|$))/, "Ð\\3")
|
132
|
+
str.gsub!(/\\eth((\{\})|(\s|$))/, "ð\\3")
|
133
|
+
str.gsub!(/\\THORN((\{\})|(\s|$))/, "Þ\\3")
|
134
|
+
str.gsub!(/\\thorn((\{\})|(\s|$))/, "þ\\3")
|
135
|
+
str.gsub!(/\\dots((\{\})|(\s|$))/, "…\\3")
|
136
|
+
str.gsub!(/\\hellip((\{\})|(\s|$))/, "…\\3")
|
137
|
+
str.gsub!(/\\middot((\{\})|(\s|$))/, "·\\3")
|
138
|
+
str.gsub!(/\\iexcl((\{\})|(\s|$))/, "¡\\3")
|
139
|
+
str.gsub!(/\\iquest((\{\})|(\s|$))/, "¿\\3")
|
140
|
+
str.gsub!(/\\shy((\{\})|(\s|$))/, "­\\3")
|
141
|
+
str.gsub!(/\\ndash((\{\})|(\s|$))/, "–\\3")
|
142
|
+
str.gsub!(/\\mdash((\{\})|(\s|$))/, "—\\3")
|
143
|
+
str.gsub!(/\\quot((\{\})|(\s|$))/, ""\\3")
|
144
|
+
str.gsub!(/\\acute((\{\})|(\s|$))/, "´\\3")
|
145
|
+
str.gsub!(/\\ldquo((\{\})|(\s|$))/, "“\\3")
|
146
|
+
str.gsub!(/\\rdquo((\{\})|(\s|$))/, "”\\3")
|
147
|
+
str.gsub!(/\\bdquo((\{\})|(\s|$))/, "„\\3")
|
148
|
+
str.gsub!(/\\lsquo((\{\})|(\s|$))/, "‘\\3")
|
149
|
+
str.gsub!(/\\rsquo((\{\})|(\s|$))/, "’\\3")
|
150
|
+
str.gsub!(/\\sbquo((\{\})|(\s|$))/, "‚\\3")
|
151
|
+
str.gsub!(/\\laquo((\{\})|(\s|$))/, "«\\3")
|
152
|
+
str.gsub!(/\\raquo((\{\})|(\s|$))/, "»\\3")
|
153
|
+
str.gsub!(/\\lsaquo((\{\})|(\s|$))/, "‹\\3")
|
154
|
+
str.gsub!(/\\rsaquo((\{\})|(\s|$))/, "›\\3")
|
155
|
+
str.gsub!(/\\circ((\{\})|(\s|$))/, "ˆ\\3")
|
156
|
+
str.gsub!(/\\vert((\{\})|(\s|$))/, "|\\3")
|
157
|
+
str.gsub!(/\\brvbar((\{\})|(\s|$))/, "¦\\3")
|
158
|
+
str.gsub!(/\\sect((\{\})|(\s|$))/, "§\\3")
|
159
|
+
str.gsub!(/\\amp((\{\})|(\s|$))/, "&\\3")
|
160
|
+
str.gsub!(/\\lt((\{\})|(\s|$))/, "<\\3")
|
161
|
+
str.gsub!(/\\gt((\{\})|(\s|$))/, ">\\3")
|
162
|
+
str.gsub!(/\\tilde((\{\})|(\s|$))/, "˜\\3")
|
163
|
+
str.gsub!(/\\dagger((\{\})|(\s|$))/, "†\\3")
|
164
|
+
str.gsub!(/\\Dagger((\{\})|(\s|$))/, "‡\\3")
|
165
|
+
str.gsub!(/\\nbsp((\{\})|(\s|$))/, " \\3")
|
166
|
+
str.gsub!(/\\ensp((\{\})|(\s|$))/, " \\3")
|
167
|
+
str.gsub!(/\\emsp((\{\})|(\s|$))/, " \\3")
|
168
|
+
str.gsub!(/\\thinsp((\{\})|(\s|$))/, " \\3")
|
169
|
+
str.gsub!(/\\curren((\{\})|(\s|$))/, "¤\\3")
|
170
|
+
str.gsub!(/\\cent((\{\})|(\s|$))/, "¢\\3")
|
171
|
+
str.gsub!(/\\pound((\{\})|(\s|$))/, "£\\3")
|
172
|
+
str.gsub!(/\\yen((\{\})|(\s|$))/, "¥\\3")
|
173
|
+
str.gsub!(/\\euro((\{\})|(\s|$))/, "€\\3")
|
174
|
+
str.gsub!(/\\EUR((\{\})|(\s|$))/, "€\\3")
|
175
|
+
str.gsub!(/\\EURdig((\{\})|(\s|$))/, "€\\3")
|
176
|
+
str.gsub!(/\\EURhv((\{\})|(\s|$))/, "€\\3")
|
177
|
+
str.gsub!(/\\EURcr((\{\})|(\s|$))/, "€\\3")
|
178
|
+
str.gsub!(/\\EURtm((\{\})|(\s|$))/, "€\\3")
|
179
|
+
str.gsub!(/\\copy((\{\})|(\s|$))/, "©\\3")
|
180
|
+
str.gsub!(/\\reg((\{\})|(\s|$))/, "®\\3")
|
181
|
+
str.gsub!(/\\trade((\{\})|(\s|$))/, "™\\3")
|
182
|
+
str.gsub!(/\\minus((\{\})|(\s|$))/, "−\\3")
|
183
|
+
str.gsub!(/\\pm((\{\})|(\s|$))/, "±\\3")
|
184
|
+
str.gsub!(/\\plusmn((\{\})|(\s|$))/, "±\\3")
|
185
|
+
str.gsub!(/\\times((\{\})|(\s|$))/, "×\\3")
|
186
|
+
str.gsub!(/\\frasl((\{\})|(\s|$))/, "⁄\\3")
|
187
|
+
str.gsub!(/\\div((\{\})|(\s|$))/, "÷\\3")
|
188
|
+
str.gsub!(/\\frac12((\{\})|(\s|$))/, "½\\3")
|
189
|
+
str.gsub!(/\\frac14((\{\})|(\s|$))/, "¼\\3")
|
190
|
+
str.gsub!(/\\frac34((\{\})|(\s|$))/, "¾\\3")
|
191
|
+
str.gsub!(/\\permil((\{\})|(\s|$))/, "‰\\3")
|
192
|
+
str.gsub!(/\\sup1((\{\})|(\s|$))/, "¹\\3")
|
193
|
+
str.gsub!(/\\sup2((\{\})|(\s|$))/, "²\\3")
|
194
|
+
str.gsub!(/\\sup3((\{\})|(\s|$))/, "³\\3")
|
195
|
+
str.gsub!(/\\radic((\{\})|(\s|$))/, "√\\3")
|
196
|
+
str.gsub!(/\\sum((\{\})|(\s|$))/, "∑\\3")
|
197
|
+
str.gsub!(/\\prod((\{\})|(\s|$))/, "∏\\3")
|
198
|
+
str.gsub!(/\\micro((\{\})|(\s|$))/, "µ\\3")
|
199
|
+
str.gsub!(/\\macr((\{\})|(\s|$))/, "¯\\3")
|
200
|
+
str.gsub!(/\\deg((\{\})|(\s|$))/, "°\\3")
|
201
|
+
str.gsub!(/\\prime((\{\})|(\s|$))/, "′\\3")
|
202
|
+
str.gsub!(/\\Prime((\{\})|(\s|$))/, "″\\3")
|
203
|
+
str.gsub!(/\\infin((\{\})|(\s|$))/, "∞\\3")
|
204
|
+
str.gsub!(/\\infty((\{\})|(\s|$))/, "∞\\3")
|
205
|
+
str.gsub!(/\\prop((\{\})|(\s|$))/, "∝\\3")
|
206
|
+
str.gsub!(/\\proptp((\{\})|(\s|$))/, "∝\\3")
|
207
|
+
str.gsub!(/\\not((\{\})|(\s|$))/, "¬\\3")
|
208
|
+
str.gsub!(/\\land((\{\})|(\s|$))/, "∧\\3")
|
209
|
+
str.gsub!(/\\wedge((\{\})|(\s|$))/, "∧\\3")
|
210
|
+
str.gsub!(/\\lor((\{\})|(\s|$))/, "∨\\3")
|
211
|
+
str.gsub!(/\\vee((\{\})|(\s|$))/, "∨\\3")
|
212
|
+
str.gsub!(/\\cap((\{\})|(\s|$))/, "∩\\3")
|
213
|
+
str.gsub!(/\\cup((\{\})|(\s|$))/, "∪\\3")
|
214
|
+
str.gsub!(/\\int((\{\})|(\s|$))/, "∫\\3")
|
215
|
+
str.gsub!(/\\there4((\{\})|(\s|$))/, "∴\\3")
|
216
|
+
str.gsub!(/\\sim((\{\})|(\s|$))/, "∼\\3")
|
217
|
+
str.gsub!(/\\cong((\{\})|(\s|$))/, "≅\\3")
|
218
|
+
str.gsub!(/\\simeq((\{\})|(\s|$))/, "≅\\3")
|
219
|
+
str.gsub!(/\\asymp((\{\})|(\s|$))/, "≈\\3")
|
220
|
+
str.gsub!(/\\approx((\{\})|(\s|$))/, "≈\\3")
|
221
|
+
str.gsub!(/\\ne((\{\})|(\s|$))/, "≠\\3")
|
222
|
+
str.gsub!(/\\neq((\{\})|(\s|$))/, "≠\\3")
|
223
|
+
str.gsub!(/\\equiv((\{\})|(\s|$))/, "≡\\3")
|
224
|
+
str.gsub!(/\\le((\{\})|(\s|$))/, "≤\\3")
|
225
|
+
str.gsub!(/\\ge((\{\})|(\s|$))/, "≥\\3")
|
226
|
+
str.gsub!(/\\sub((\{\})|(\s|$))/, "⊂\\3")
|
227
|
+
str.gsub!(/\\subset((\{\})|(\s|$))/, "⊂\\3")
|
228
|
+
str.gsub!(/\\sup((\{\})|(\s|$))/, "⊃\\3")
|
229
|
+
str.gsub!(/\\supset((\{\})|(\s|$))/, "⊃\\3")
|
230
|
+
str.gsub!(/\\nsub((\{\})|(\s|$))/, "⊄\\3")
|
231
|
+
str.gsub!(/\\sube((\{\})|(\s|$))/, "⊆\\3")
|
232
|
+
str.gsub!(/\\nsup((\{\})|(\s|$))/, "⊅\\3")
|
233
|
+
str.gsub!(/\\supe((\{\})|(\s|$))/, "⊇\\3")
|
234
|
+
str.gsub!(/\\forall((\{\})|(\s|$))/, "∀\\3")
|
235
|
+
str.gsub!(/\\exist((\{\})|(\s|$))/, "∃\\3")
|
236
|
+
str.gsub!(/\\exists((\{\})|(\s|$))/, "∃\\3")
|
237
|
+
str.gsub!(/\\empty((\{\})|(\s|$))/, "∅\\3")
|
238
|
+
str.gsub!(/\\emptyset((\{\})|(\s|$))/, "∅\\3")
|
239
|
+
str.gsub!(/\\isin((\{\})|(\s|$))/, "∈\\3")
|
240
|
+
str.gsub!(/\\in((\{\})|(\s|$))/, "∈\\3")
|
241
|
+
str.gsub!(/\\notin((\{\})|(\s|$))/, "∉\\3")
|
242
|
+
str.gsub!(/\\ni((\{\})|(\s|$))/, "∋\\3")
|
243
|
+
str.gsub!(/\\nabla((\{\})|(\s|$))/, "∇\\3")
|
244
|
+
str.gsub!(/\\ang((\{\})|(\s|$))/, "∠\\3")
|
245
|
+
str.gsub!(/\\angle((\{\})|(\s|$))/, "∠\\3")
|
246
|
+
str.gsub!(/\\perp((\{\})|(\s|$))/, "⊥\\3")
|
247
|
+
str.gsub!(/\\sdot((\{\})|(\s|$))/, "⋅\\3")
|
248
|
+
str.gsub!(/\\cdot((\{\})|(\s|$))/, "⋅\\3")
|
249
|
+
str.gsub!(/\\lceil((\{\})|(\s|$))/, "⌈\\3")
|
250
|
+
str.gsub!(/\\rceil((\{\})|(\s|$))/, "⌉\\3")
|
251
|
+
str.gsub!(/\\lfloor((\{\})|(\s|$))/, "⌊\\3")
|
252
|
+
str.gsub!(/\\rfloor((\{\})|(\s|$))/, "⌋\\3")
|
253
|
+
str.gsub!(/\\lang((\{\})|(\s|$))/, "⟨\\3")
|
254
|
+
str.gsub!(/\\rang((\{\})|(\s|$))/, "⟩\\3")
|
255
|
+
str.gsub!(/\\larr((\{\})|(\s|$))/, "←\\3")
|
256
|
+
str.gsub!(/\\leftarrow((\{\})|(\s|$))/, "←\\3")
|
257
|
+
str.gsub!(/\\gets((\{\})|(\s|$))/, "←\\3")
|
258
|
+
str.gsub!(/\\lArr((\{\})|(\s|$))/, "⇐\\3")
|
259
|
+
str.gsub!(/\\Leftarrow((\{\})|(\s|$))/, "⇐\\3")
|
260
|
+
str.gsub!(/\\uarr((\{\})|(\s|$))/, "↑\\3")
|
261
|
+
str.gsub!(/\\uparrow((\{\})|(\s|$))/, "↑\\3")
|
262
|
+
str.gsub!(/\\uArr((\{\})|(\s|$))/, "⇑\\3")
|
263
|
+
str.gsub!(/\\Uparrow((\{\})|(\s|$))/, "⇑\\3")
|
264
|
+
str.gsub!(/\\rarr((\{\})|(\s|$))/, "→\\3")
|
265
|
+
str.gsub!(/\\to((\{\})|(\s|$))/, "→\\3")
|
266
|
+
str.gsub!(/\\rightarrow((\{\})|(\s|$))/, "→\\3")
|
267
|
+
str.gsub!(/\\rArr((\{\})|(\s|$))/, "⇒\\3")
|
268
|
+
str.gsub!(/\\Rightarrow((\{\})|(\s|$))/, "⇒\\3")
|
269
|
+
str.gsub!(/\\darr((\{\})|(\s|$))/, "↓\\3")
|
270
|
+
str.gsub!(/\\downarrow((\{\})|(\s|$))/, "↓\\3")
|
271
|
+
str.gsub!(/\\dArr((\{\})|(\s|$))/, "⇓\\3")
|
272
|
+
str.gsub!(/\\Downarrow((\{\})|(\s|$))/, "⇓\\3")
|
273
|
+
str.gsub!(/\\harr((\{\})|(\s|$))/, "↔\\3")
|
274
|
+
str.gsub!(/\\leftrightarrow((\{\})|(\s|$))/, "↔\\3")
|
275
|
+
str.gsub!(/\\hArr((\{\})|(\s|$))/, "⇔\\3")
|
276
|
+
str.gsub!(/\\Leftrightarrow((\{\})|(\s|$))/, "⇔\\3")
|
277
|
+
str.gsub!(/\\crarr((\{\})|(\s|$))/, "↵\\3")
|
278
|
+
str.gsub!(/\\hookleftarrow((\{\})|(\s|$))/, "↵\\3")
|
279
|
+
str.gsub!(/\\arccos((\{\})|(\s|$))/, "arccos\\3")
|
280
|
+
str.gsub!(/\\arcsin((\{\})|(\s|$))/, "arcsin\\3")
|
281
|
+
str.gsub!(/\\arctan((\{\})|(\s|$))/, "arctan\\3")
|
282
|
+
str.gsub!(/\\arg((\{\})|(\s|$))/, "arg\\3")
|
283
|
+
str.gsub!(/\\cos((\{\})|(\s|$))/, "cos\\3")
|
284
|
+
str.gsub!(/\\cosh((\{\})|(\s|$))/, "cosh\\3")
|
285
|
+
str.gsub!(/\\cot((\{\})|(\s|$))/, "cot\\3")
|
286
|
+
str.gsub!(/\\coth((\{\})|(\s|$))/, "coth\\3")
|
287
|
+
str.gsub!(/\\csc((\{\})|(\s|$))/, "csc\\3")
|
288
|
+
str.gsub!(/\\deg((\{\})|(\s|$))/, "°\\3")
|
289
|
+
str.gsub!(/\\det((\{\})|(\s|$))/, "det\\3")
|
290
|
+
str.gsub!(/\\dim((\{\})|(\s|$))/, "dim\\3")
|
291
|
+
str.gsub!(/\\exp((\{\})|(\s|$))/, "exp\\3")
|
292
|
+
str.gsub!(/\\gcd((\{\})|(\s|$))/, "gcd\\3")
|
293
|
+
str.gsub!(/\\hom((\{\})|(\s|$))/, "hom\\3")
|
294
|
+
str.gsub!(/\\inf((\{\})|(\s|$))/, "inf\\3")
|
295
|
+
str.gsub!(/\\ker((\{\})|(\s|$))/, "ker\\3")
|
296
|
+
str.gsub!(/\\lg((\{\})|(\s|$))/, "lg\\3")
|
297
|
+
str.gsub!(/\\lim((\{\})|(\s|$))/, "lim\\3")
|
298
|
+
str.gsub!(/\\liminf((\{\})|(\s|$))/, "liminf\\3")
|
299
|
+
str.gsub!(/\\limsup((\{\})|(\s|$))/, "limsup\\3")
|
300
|
+
str.gsub!(/\\ln((\{\})|(\s|$))/, "ln\\3")
|
301
|
+
str.gsub!(/\\log((\{\})|(\s|$))/, "log\\3")
|
302
|
+
str.gsub!(/\\max((\{\})|(\s|$))/, "max\\3")
|
303
|
+
str.gsub!(/\\min((\{\})|(\s|$))/, "min\\3")
|
304
|
+
str.gsub!(/\\Pr((\{\})|(\s|$))/, "Pr\\3")
|
305
|
+
str.gsub!(/\\sec((\{\})|(\s|$))/, "sec\\3")
|
306
|
+
str.gsub!(/\\sin((\{\})|(\s|$))/, "sin\\3")
|
307
|
+
str.gsub!(/\\sinh((\{\})|(\s|$))/, "sinh\\3")
|
308
|
+
str.gsub!(/\\sup((\{\})|(\s|$))/, "⊃\\3")
|
309
|
+
str.gsub!(/\\tan((\{\})|(\s|$))/, "tan\\3")
|
310
|
+
str.gsub!(/\\tanh((\{\})|(\s|$))/, "tanh\\3")
|
311
|
+
str.gsub!(/\\bull((\{\})|(\s|$))/, "•\\3")
|
312
|
+
str.gsub!(/\\bullet((\{\})|(\s|$))/, "•\\3")
|
313
|
+
str.gsub!(/\\star((\{\})|(\s|$))/, "*\\3")
|
314
|
+
str.gsub!(/\\lowast((\{\})|(\s|$))/, "∗\\3")
|
315
|
+
str.gsub!(/\\ast((\{\})|(\s|$))/, "∗\\3")
|
316
|
+
str.gsub!(/\\odot((\{\})|(\s|$))/, "o\\3")
|
317
|
+
str.gsub!(/\\oplus((\{\})|(\s|$))/, "⊕\\3")
|
318
|
+
str.gsub!(/\\otimes((\{\})|(\s|$))/, "⊗\\3")
|
319
|
+
str.gsub!(/\\checkmark((\{\})|(\s|$))/, "✓\\3")
|
320
|
+
str.gsub!(/\\para((\{\})|(\s|$))/, "¶\\3")
|
321
|
+
str.gsub!(/\\ordf((\{\})|(\s|$))/, "ª\\3")
|
322
|
+
str.gsub!(/\\ordm((\{\})|(\s|$))/, "º\\3")
|
323
|
+
str.gsub!(/\\cedil((\{\})|(\s|$))/, "¸\\3")
|
324
|
+
str.gsub!(/\\oline((\{\})|(\s|$))/, "‾\\3")
|
325
|
+
str.gsub!(/\\uml((\{\})|(\s|$))/, "¨\\3")
|
326
|
+
str.gsub!(/\\zwnj((\{\})|(\s|$))/, "‌\\3")
|
327
|
+
str.gsub!(/\\zwj((\{\})|(\s|$))/, "‍\\3")
|
328
|
+
str.gsub!(/\\lrm((\{\})|(\s|$))/, "‎\\3")
|
329
|
+
str.gsub!(/\\rlm((\{\})|(\s|$))/, "‏\\3")
|
330
|
+
str.gsub!(/\\smile((\{\})|(\s|$))/, "☺\\3")
|
331
|
+
str.gsub!(/\\smiley((\{\})|(\s|$))/, "☺\\3")
|
332
|
+
str.gsub!(/\\blacksmile((\{\})|(\s|$))/, "☻\\3")
|
333
|
+
str.gsub!(/\\sad((\{\})|(\s|$))/, "☹\\3")
|
334
|
+
str.gsub!(/\\clubs((\{\})|(\s|$))/, "♣\\3")
|
335
|
+
str.gsub!(/\\clubsuit((\{\})|(\s|$))/, "♣\\3")
|
336
|
+
str.gsub!(/\\spades((\{\})|(\s|$))/, "♠\\3")
|
337
|
+
str.gsub!(/\\spadesuit((\{\})|(\s|$))/, "♠\\3")
|
338
|
+
str.gsub!(/\\hearts((\{\})|(\s|$))/, "♥\\3")
|
339
|
+
str.gsub!(/\\heartsuit((\{\})|(\s|$))/, "♥\\3")
|
340
|
+
str.gsub!(/\\diams((\{\})|(\s|$))/, "♦\\3")
|
341
|
+
str.gsub!(/\\diamondsuit((\{\})|(\s|$))/, "♦\\3")
|
342
|
+
str.gsub!(/\\Diamond((\{\})|(\s|$))/, "⋄\\3")
|
343
|
+
str.gsub!(/\\loz((\{\})|(\s|$))/, "◊\\3")
|
344
|
+
end
|
345
|
+
end # module Orgmode
|