2006-07-21 01:08:32 +00:00
|
|
|
# ***************************************************************************
|
|
|
|
# *
|
2011-03-12 14:57:18 +00:00
|
|
|
# * Copyright (C) 2004-2011, International Business Machines
|
2006-07-21 01:08:32 +00:00
|
|
|
# * Corporation; Unicode, Inc.; and others. All Rights Reserved.
|
|
|
|
# *
|
|
|
|
# ***************************************************************************
|
|
|
|
# File: Latin_NumericPinyin.txt
|
2006-10-27 17:55:54 +00:00
|
|
|
# Generated from CLDR
|
2006-07-21 01:08:32 +00:00
|
|
|
#
|
2004-08-02 20:06:55 +00:00
|
|
|
::NFD (NFC);
|
|
|
|
$tone = [\u0304\u0301\u030C\u0300\u0306] ;
|
2009-04-24 20:34:20 +00:00
|
|
|
e {($tone) r} → r &Pinyin-NumericPinyin($1);
|
|
|
|
($tone) ( [i o n u {o n} {n g}]) → $2 &Pinyin-NumericPinyin($1);
|
|
|
|
($tone) → &Pinyin-NumericPinyin($1);
|
2005-06-09 17:30:48 +00:00
|
|
|
$vowel = [aAeEiIoOuUüÜ {u\u0308} {U\u0308} ];
|
2004-08-02 20:06:55 +00:00
|
|
|
$consonant = [[a-z A-Z] - [$vowel]];
|
|
|
|
$digit = [1-5];
|
2009-04-24 20:34:20 +00:00
|
|
|
$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)};
|
2004-08-02 20:06:55 +00:00
|
|
|
::NFC (NFD);
|