81: def convert_misc_entities
82: dummy = dup
83: {
84: "#822[01]" => "\"",
85: "#821[67]" => "'",
86: "#8230" => "...",
87: "#8211" => "-",
88: "#8212" => "--",
89: "#215" => "x",
90: "gt" => ">",
91: "lt" => "<",
92: "(#8482|trade)" => "(tm)",
93: "(#174|reg)" => "(r)",
94: "(#169|copy)" => "(c)",
95: "(#38|amp)" => "and",
96: "nbsp" => " ",
97: "(#162|cent)" => " cent",
98: "(#163|pound)" => " pound",
99: "(#188|frac14)" => "one fourth",
100: "(#189|frac12)" => "half",
101: "(#190|frac34)" => "three fourths",
102: "(#176|deg)" => " degrees "
103: }.each do |textiled, normal|
104: dummy.gsub!(/&#{textiled};/, normal)
105: end
106: dummy.gsub(/&[^;]+;/, "").strip
107: end