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