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