|
|
| Line 19: |
Line 19: |
|
| |
|
| local export = {} | | local export = {} |
|
| |
| local function same(foo, bar)
| |
| foo, bar = mw.ustring.toNFD(foo), mw.ustring.toNFD(bar) -- decompose diacritics
| |
| foo, bar = match(foo, "^."), match(bar, "^.") -- sort out the letter
| |
| return foo == bar and true or false
| |
| end
| |
|
| |
|
| local first_rules = { | | local first_rules = { |