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