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