class WirisPlugin::TextFilterTags
Attributes
in_appletclose[RW]
in_appletopen[RW]
in_close[RW]
in_double_quote[RW]
in_entity[RW]
in_mathclose[RW]
in_mathopen[RW]
in_open[RW]
in_quote[RW]
mathTag[RW]
out_close[RW]
out_double_quote[RW]
out_entity[RW]
out_open[RW]
out_quote[RW]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/com/wiris/plugin/impl/TextFilterTags.rb, line 21 def initialize() super() end
newSafeXml()
click to toggle source
# File lib/com/wiris/plugin/impl/TextFilterTags.rb, line 24 def self.newSafeXml() tags = TextFilterTags.new() tags::in_open = Std::fromCharCode(171) tags::in_close = Std::fromCharCode(187) tags::in_entity = Std::fromCharCode(167) tags::in_quote = "`" tags::in_double_quote = Std::fromCharCode(168) tags::mathTag = "math" tags::init(tags,nil) return tags end
newXml(mathNamespace)
click to toggle source
# File lib/com/wiris/plugin/impl/TextFilterTags.rb, line 35 def self.newXml(mathNamespace) tags = TextFilterTags.new() tags::in_open = "<" tags::in_close = ">" tags::in_entity = "&" tags::in_quote = "\'" tags::in_double_quote = "\"" tags::mathTag = "math" tags::init(tags,mathNamespace) return tags end
Public Instance Methods
init(tags, mathNamespace)
click to toggle source
# File lib/com/wiris/plugin/impl/TextFilterTags.rb, line 46 def init(tags, mathNamespace) if mathNamespace != nil tags::mathTag = (mathNamespace + ":") + tags::mathTag end tags::in_appletopen = @in_open + "APPLET" tags::in_appletclose = (@in_open + "/APPLET") + @in_close tags::in_mathopen = @in_open + @mathTag tags::in_mathclose = ((@in_open + "/") + @mathTag) + @in_close tags::out_open = "<" tags::out_close = ">" tags::out_entity = "&" tags::out_quote = "\'" tags::out_double_quote = "\"" end