rsl / stringex

Some [hopefully] useful extensions to Ruby’s String class. It is made up of three libraries: ActsAsUrl [permalink solution with better character translation], Unidecoder [Unicode to Ascii transliteration], and StringExtensions [miscellaneous helper methods for the String class].
MIT License
984 stars 158 forks source link

Change transliteration of 汉 #213

Open timdown opened 1 year ago

timdown commented 1 year ago

Currently, "武汉" is transliterated (via to_url) as "wu-yi". I have it on good authority that this is incorrect and should be transliterated as "wu-han", so this PR changes the transliteration of "汉" to "Han " and adds a test.