96: def convert_misc_entities
97: dummy = dup
98: {
99: "#822[01]" => "\"",
100: "#821[67]" => "'",
101: "#8230" => "...",
102: "#8211" => "-",
103: "#8212" => "--",
104: "#215" => "x",
105: "gt" => ">",
106: "lt" => "<",
107: "(#8482|trade)" => "(tm)",
108: "(#174|reg)" => "(r)",
109: "(#169|copy)" => "(c)",
110: "(#38|amp)" => "and",
111: "nbsp" => " ",
112: "(#162|cent)" => " cent",
113: "(#163|pound)" => " pound",
114: "(#188|frac14)" => "one fourth",
115: "(#189|frac12)" => "half",
116: "(#190|frac34)" => "three fourths",
117: "(#176|deg)" => " degrees"
118: }.each do |textiled, normal|
119: dummy.gsub!(/&#{textiled};/, normal)
120: end
121: dummy.gsub(/&[^;]+;/, "")
122: end