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