Module: ScientificNameDirty::ValidNameLetters0
- Defined in:
- lib/biodiversity/parser/scientific_name_dirty.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
462 463 464 465 466 467 468 469 470 471 472 |
# File 'lib/biodiversity/parser/scientific_name_dirty.rb', line 462 def value res = "" text_value.split("").each do |l| l = "ae" if l == "æ" l = "oe" if l == "œ" res << l end res.tr("àâåãäáçčëéèíìïňññóòôøõöúùüŕřŗššşž", "aaaaaacceeeiiinnnoooooouuurrrsssz") end |