Sha256: 4511991f03432ea5219a8fc1e2f61e29b4e92b6530a3468c9ad3451470976cf6
Contents?: true
Size: 812 Bytes
Versions: 13
Compression:
Stored size: 812 Bytes
Contents
--- :transforms: - :direction: both :rules: - "::NFD (NFC);" - "$tone = [̄́̌̀̆] ;" - "e {($tone) r} > r &Pinyin-NumericPinyin($1);" - "($tone) ( [i o n u {o n} {n g}]) > $2 &Pinyin-NumericPinyin($1);" - "($tone) > &Pinyin-NumericPinyin($1);" - "$vowel = [aAeEiIoOuU {ü} {Ü} vV];" - "$consonant = [[a-z A-Z] - [$vowel]];" - "$digit = [1-5];" - "$1 &NumericPinyin-Pinyin($3) $2 < ([aAeE]) ($vowel* $consonant*) ($digit);" - "$1 &NumericPinyin-Pinyin($3) $2 < ([oO]) ([$vowel-[aeAE]]* $consonant*) ($digit);" - "$1 &NumericPinyin-Pinyin($3) $2 < ($vowel) ($consonant*) ($digit);" - "&NumericPinyin-Pinyin($1) < [:letter:] {($digit)};" - "::NFC (NFD);" :source: Latin :target: NumericPinyin :variant: ~
Version data entries
13 entries across 13 versions & 2 rubygems