1*449ab281SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*449ab281SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*449ab281SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*449ab281SAndrew Rist  * distributed with this work for additional information
6*449ab281SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*449ab281SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*449ab281SAndrew Rist  * "License"); you may not use this file except in compliance
9*449ab281SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*449ab281SAndrew Rist  *
11*449ab281SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*449ab281SAndrew Rist  *
13*449ab281SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*449ab281SAndrew Rist  * software distributed under the License is distributed on an
15*449ab281SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*449ab281SAndrew Rist  * KIND, either express or implied.  See the License for the
17*449ab281SAndrew Rist  * specific language governing permissions and limitations
18*449ab281SAndrew Rist  * under the License.
19*449ab281SAndrew Rist  *
20*449ab281SAndrew Rist  *************************************************************/
21*449ab281SAndrew Rist 
22*449ab281SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_i18npool.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #define TRANSLITERATION_ALL
28cdf0e10cSrcweir #include <numtotext_cjk.hxx>
29cdf0e10cSrcweir #include <bullet.h>
30cdf0e10cSrcweir #include <com/sun/star/i18n/NativeNumberMode.hpp>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace i18n {
33cdf0e10cSrcweir 
34cdf0e10cSrcweir #define TRANSLITERATION_NUMTOTEXT( name, number ) \
35cdf0e10cSrcweir NumToText##name::NumToText##name() \
36cdf0e10cSrcweir { \
37cdf0e10cSrcweir         nNativeNumberMode = number; \
38cdf0e10cSrcweir         tableSize = 0; \
39cdf0e10cSrcweir         transliterationName = "NumToText"#name; \
40cdf0e10cSrcweir         implementationName = "com.sun.star.i18n.Transliteration.NumToText"#name; \
41cdf0e10cSrcweir }
42cdf0e10cSrcweir using namespace com::sun::star::i18n::NativeNumberMode;
43cdf0e10cSrcweir 
44cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( Lower_zh_CN, NATNUM4)
45cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( Upper_zh_CN, NATNUM5)
46cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( Lower_zh_TW, NATNUM4)
47cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( Upper_zh_TW, NATNUM5)
48cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( Fullwidth_zh_CN, NATNUM6)
49cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( Fullwidth_zh_TW, NATNUM6)
50cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( Fullwidth_ja_JP, NATNUM6)
51cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( Fullwidth_ko, NATNUM6)
52cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( FormalLower_ko, NATNUM4)
53cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( FormalUpper_ko, NATNUM5)
54cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( FormalHangul_ko, NATNUM10)
55cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( InformalLower_ko, NATNUM7)
56cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( InformalUpper_ko, NATNUM8)
57cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( InformalHangul_ko, NATNUM11)
58cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( KanjiLongTraditional_ja_JP, NATNUM5)
59cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( KanjiLongModern_ja_JP, NATNUM4)
60cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( Date_zh, NATNUM7)
61cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( KanjiShortTraditional_ja_JP, NATNUM8)
62cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT( KanjiShortModern_ja_JP, NATNUM7)
63cdf0e10cSrcweir #undef TRANSLITERATION_NUMTOTEXT
64cdf0e10cSrcweir 
65cdf0e10cSrcweir #define TRANSLITERATION_NUMTOTEXT( name, _table, recycle ) \
66cdf0e10cSrcweir NumToText##name::NumToText##name() \
67cdf0e10cSrcweir { \
68cdf0e10cSrcweir         table = _table;\
69cdf0e10cSrcweir         tableSize = sizeof(_table) / sizeof(sal_Unicode); \
70cdf0e10cSrcweir         recycleSymbol = recycle; \
71cdf0e10cSrcweir         transliterationName = "NumToText"#name; \
72cdf0e10cSrcweir         implementationName = "com.sun.star.i18n.Transliteration.NumToText"#name; \
73cdf0e10cSrcweir }
74cdf0e10cSrcweir 
75cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( AIUFullWidth_ja_JP, table_AIUFullWidth_ja_JP, sal_True)
76cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( AIUHalfWidth_ja_JP, table_AIUHalfWidth_ja_JP, sal_True)
77cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( IROHAFullWidth_ja_JP, table_IROHAFullWidth_ja_JP, sal_True)
78cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( IROHAHalfWidth_ja_JP, table_IROHAHalfWidth_ja_JP, sal_True)
79cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( CircledNumber, table_CircledNumber, sal_False)
80cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( TianGan_zh, table_TianGan_zh, sal_False)
81cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( DiZi_zh, table_DiZi_zh, sal_False)
82cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( HangulJamo_ko, table_HangulJamo_ko, sal_True)
83cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( HangulSyllable_ko, table_HangulSyllable_ko, sal_True)
84cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( HangulCircledJamo_ko, table_HangulCircledJamo_ko, sal_True)
85cdf0e10cSrcweir TRANSLITERATION_NUMTOTEXT ( HangulCircledSyllable_ko, table_HangulCircledSyllable_ko, sal_True)
86cdf0e10cSrcweir #undef TRANSLITERATION_NUMTOTEXT
87cdf0e10cSrcweir 
88cdf0e10cSrcweir } } } }
89