Module:User:Erutuon/UTF-8/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Module:User:Erutuon/UTF-8. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.

Function for making a byte pattern that will match any UTF-8 character in a range between and including two characters. May be useful for making transliteration modules more efficient. Then again, it's cryptic and some random person can vandalize the pattern or just accidentally misuse it, making the module fail.

  • Ა-ჿ (0x1C90-0x10FF): [\225-\224][\128-\191][\128-\191]
  • Lua error in Module:User:Erutuon/UTF-8 at line 64: The first character to makeUTF8Pattern (U+10140) should have a lower codepoint than the second (U+3FF).
  • ⿿-〿 (0x2FFF-0x303F): \226[\128-\191][\128-\191]