111: def convert_vulgar_fractions
112: dummy = dup
113: {
114: "(¼|¼|¼)" => "one fourth",
115: "(½|½|½)" => "half",
116: "(¾|¾|¾)" => "three fourths",
117: "(⅓|⅓)" => "one third",
118: "(⅔|⅔)" => "two thirds",
119: "(⅕|⅕)" => "one fifth",
120: "(⅖|⅖)" => "two fifths",
121: "(⅗|⅗)" => "three fifths",
122: "(⅘|⅘)" => "four fifths",
123: "(⅙|⅙)" => "one sixth",
124: "(⅚|⅚)" => "five sixths",
125: "(⅛|⅛)" => "one eighth",
126: "(⅜|⅜)" => "three eighths",
127: "(⅝|⅝)" => "five eighths",
128: "(⅞|⅞)" => "seven eighths"
129: }.each do |textiled, normal|
130: dummy.gsub!(/#{textiled}/, normal)
131: end
132: dummy
133: end