1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: TransliterationModules.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_i18n_TransliterationModules_idl__
31 #define __com_sun_star_i18n_TransliterationModules_idl__
33 //=============================================================================
35 module com
{ module sun
{ module star
{ module i18n
{
37 //=============================================================================
39 /** Old transliteration module enumeration to use with
40 <member>XTransliteration::loadModule()</member>
43 published
enum TransliterationModules
45 /// Transliterate a string from upper case to lower case
46 UPPERCASE_LOWERCASE
= 1,
47 /// Transliterate a string from lower case to upper case
48 LOWERCASE_UPPERCASE
= 2,
49 /// Transliterate a string from half width character to full width character
50 HALFWIDTH_FULLWIDTH
= 3,
51 /// Transliterate a string from full width character to half width character
52 FULLWIDTH_HALFWIDTH
= 4,
53 /// Transliterate a Japanese string from Katakana to Hiragana
54 KATAKANA_HIRAGANA
= 5,
55 /// Transliterate a Japanese string from Hiragnan to Katakana
56 HIRAGANA_KATAKANA
= 6,
57 /// Transliterate an ascii number string to Simplified Chinese lower case number string in spellout format
58 NumToTextLower_zh_CN
= 7,
59 /// Transliterate an ascii number string to Simplified Chinese upper case number string in spellout format
60 NumToTextUpper_zh_CN
= 8,
61 /// Transliterate an ascii number string to Traditional Chinese lower case number string in spellout format
62 NumToTextLower_zh_TW
= 9,
63 /// Transliterate an ascii number string to Traditional Chinese upper case number string in spellout format
64 NumToTextUpper_zh_TW
= 10,
65 /// Transliterate an ascii number string to formal Korean Hangul number string in spellout format
66 NumToTextFormalHangul_ko
= 11,
67 /// Transliterate an ascii number string to formal Korean Hanja lower case number string in spellout format
68 NumToTextFormalLower_ko
= 12,
69 /// Transliterate an ascii number string to formal Korean Hanja upper case number string in spellout format
70 NumToTextFormalUpper_ko
= 13,
71 NON_IGNORE_MASK
= 0x000000ff,
73 /// Ignore case when comparing strings by transliteration service
74 IGNORE_CASE
= 0x00000100,
75 /// Ignore Hiragana and Katakana when comparing strings by transliteration service
76 IGNORE_KANA
= 0x00000200, // ja_JP
77 /// Ignore full width and half width character when comparing strings by transliteration service
78 IGNORE_WIDTH
= 0x00000400, // ja_JP
79 // not used yet = 0x00000800,
80 /// Ignore Japanese traditional Kanji character in Japanese fuzzy search
81 ignoreTraditionalKanji_ja_JP
= 0x00001000,
82 /// Ignore Japanese traditional Katakana and Hiragana character in Japanese fuzzy search
83 ignoreTraditionalKana_ja_JP
= 0x00002000,
84 /// Ignore dash or minus sign in Japanese fuzzy search
85 ignoreMinusSign_ja_JP
= 0x00004000,
86 /// Ignore Hiragana and Katakana iteration mark in Japanese fuzzy search
87 ignoreIterationMark_ja_JP
= 0x00008000,
88 /// Ignore separator punctuations in Japanese fuzzy search
89 ignoreSeparator_ja_JP
= 0x00010000,
90 /// Ignore Katakana and Hiragana Zi/Zi and Zu/Zu in Japanese fuzzy search
91 ignoreZiZu_ja_JP
= 0x00020000,
92 /// Ignore Katakana and Hiragana Ba/Gua and Ha/Fa in Japanese fuzzy search
93 ignoreBaFa_ja_JP
= 0x00040000,
94 /// Ignore Katakana and Hiragana Tsui/Tea/Ti and Dyi/Ji in Japanese fuzzy search
95 ignoreTiJi_ja_JP
= 0x00080000,
96 /// Ignore Katakana and Hiragana Hyu/Fyu and Byu/Gyu in Japanese fuzzy search
97 ignoreHyuByu_ja_JP
= 0x00100000,
98 /// Ignore Katakana and Hiragana Se/Sye and Ze/Je in Japanese fuzzy search
99 ignoreSeZe_ja_JP
= 0x00200000,
100 /// Ignore Katakana YA/A which follows the character in either I or E row in Japanese fuzzy search
101 ignoreIandEfollowedByYa_ja_JP
= 0x00400000,
102 /// Ignore Katakana KI/KU which follows the character in SA column in Japanese fuzzy search
103 ignoreKiKuFollowedBySa_ja_JP
= 0x00800000,
104 /// Ignore Japanese normal and small sized character in Japanese fuzzy search
105 ignoreSize_ja_JP
= 0x01000000,
106 /// Ignore Japanese prolonged sound mark in Japanese fuzzy search
107 ignoreProlongedSoundMark_ja_JP
= 0x02000000,
108 /// Ignore middle dot in Japanese fuzzy search
109 ignoreMiddleDot_ja_JP
= 0x04000000,
110 /// Ignore white space characters, include space, TAB, return, etc. in Japanese fuzzy search
111 ignoreSpace_ja_JP
= 0x08000000,
112 /// transliterate Japanese small sized character to normal sized character
113 smallToLarge_ja_JP
= 0x10000000,
114 /// transliterate Japanese normal sized character to small sized character
115 largeToSmall_ja_JP
= 0x20000000,
119 //=============================================================================