OLD | NEW |
1 # *************************************************************************** | 1 # *************************************************************************** |
2 # * | 2 # * |
3 # * Copyright (C) 2004-2013, International Business Machines | 3 # * Copyright (C) 2004-2014, International Business Machines |
4 # * Corporation; Unicode, Inc.; and others. All Rights Reserved. | 4 # * Corporation; Unicode, Inc.; and others. All Rights Reserved. |
5 # * | 5 # * |
6 # *************************************************************************** | 6 # *************************************************************************** |
7 # File: Latin_NumericPinyin.txt | 7 # File: Latin_NumericPinyin.txt |
8 # Generated from CLDR | 8 # Generated from CLDR |
9 # | 9 # |
10 ::NFD (NFC); | 10 ::NFD (NFC); |
11 $tone = [\u0304\u0301\u030C\u0300\u0306] ; | 11 $tone = [\u0304\u0301\u030C\u0300\u0306] ; |
12 e {($tone) r} → r &Pinyin-NumericPinyin($1); | 12 e {($tone) r} → r &Pinyin-NumericPinyin($1); |
13 ($tone) ( [i o n u {o n} {n g}]) → $2 &Pinyin-NumericPinyin($1); | 13 ($tone) ( [i o n u {o n} {n g}]) → $2 &Pinyin-NumericPinyin($1); |
14 ($tone) → &Pinyin-NumericPinyin($1); | 14 ($tone) → &Pinyin-NumericPinyin($1); |
15 $vowel = [aAeEiIoOuUüÜ {u\u0308} {U\u0308} ]; | 15 $vowel = [aAeEiIoOuU {u\u0308} {U\u0308} vV]; |
16 $consonant = [[a-z A-Z] - [$vowel]]; | 16 $consonant = [[a-z A-Z] - [$vowel]]; |
17 $digit = [1-5]; | 17 $digit = [1-5]; |
18 $1 &NumericPinyin-Pinyin($3) $2 ← ([aAeE]) ($vowel* $consonant*) ($digit); | 18 $1 &NumericPinyin-Pinyin($3) $2 ← ([aAeE]) ($vowel* $consonant*) ($digit); |
19 $1 &NumericPinyin-Pinyin($3) $2 ← ([oO]) ([$vowel-[aeAE]]* $consonant*) ($digit)
; | 19 $1 &NumericPinyin-Pinyin($3) $2 ← ([oO]) ([$vowel-[aeAE]]* $consonant*) ($digit)
; |
20 $1 &NumericPinyin-Pinyin($3) $2 ← ($vowel) ($consonant*) ($digit); | 20 $1 &NumericPinyin-Pinyin($3) $2 ← ($vowel) ($consonant*) ($digit); |
21 &NumericPinyin-Pinyin($1) ← [:letter:] {($digit)}; | 21 &NumericPinyin-Pinyin($1) ← [:letter:] {($digit)}; |
22 ::NFC (NFD); | 22 ::NFC (NFD); |
OLD | NEW |