1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
27 #ifndef __com_sun_star_i18n_TransliterationModules_idl__
28 #define __com_sun_star_i18n_TransliterationModules_idl__
30 //=============================================================================
32 module com
{ module sun
{ module star
{ module i18n
{
34 //=============================================================================
36 /** Old transliteration module enumeration to use with
37 <member>XTransliteration::loadModule()</member>
40 published
enum TransliterationModules
42 /// Transliterate a string from upper case to lower case
43 UPPERCASE_LOWERCASE
= 1,
44 /// Transliterate a string from lower case to upper case
45 LOWERCASE_UPPERCASE
= 2,
46 /// Transliterate a string from half width character to full width character
47 HALFWIDTH_FULLWIDTH
= 3,
48 /// Transliterate a string from full width character to half width character
49 FULLWIDTH_HALFWIDTH
= 4,
50 /// Transliterate a Japanese string from Katakana to Hiragana
51 KATAKANA_HIRAGANA
= 5,
52 /// Transliterate a Japanese string from Hiragnan to Katakana
53 HIRAGANA_KATAKANA
= 6,
54 /// Transliterate an ascii number string to Simplified Chinese lower case number string in spellout format
55 NumToTextLower_zh_CN
= 7,
56 /// Transliterate an ascii number string to Simplified Chinese upper case number string in spellout format
57 NumToTextUpper_zh_CN
= 8,
58 /// Transliterate an ascii number string to Traditional Chinese lower case number string in spellout format
59 NumToTextLower_zh_TW
= 9,
60 /// Transliterate an ascii number string to Traditional Chinese upper case number string in spellout format
61 NumToTextUpper_zh_TW
= 10,
62 /// Transliterate an ascii number string to formal Korean Hangul number string in spellout format
63 NumToTextFormalHangul_ko
= 11,
64 /// Transliterate an ascii number string to formal Korean Hanja lower case number string in spellout format
65 NumToTextFormalLower_ko
= 12,
66 /// Transliterate an ascii number string to formal Korean Hanja upper case number string in spellout format
67 NumToTextFormalUpper_ko
= 13,
68 NON_IGNORE_MASK
= 0x000000ff,
70 /// Ignore case when comparing strings by transliteration service
71 IGNORE_CASE
= 0x00000100,
72 /// Ignore Hiragana and Katakana when comparing strings by transliteration service
73 IGNORE_KANA
= 0x00000200, // ja_JP
74 /// Ignore full width and half width character when comparing strings by transliteration service
75 IGNORE_WIDTH
= 0x00000400, // ja_JP
76 // not used yet = 0x00000800,
77 /// Ignore Japanese traditional Kanji character in Japanese fuzzy search
78 ignoreTraditionalKanji_ja_JP
= 0x00001000,
79 /// Ignore Japanese traditional Katakana and Hiragana character in Japanese fuzzy search
80 ignoreTraditionalKana_ja_JP
= 0x00002000,
81 /// Ignore dash or minus sign in Japanese fuzzy search
82 ignoreMinusSign_ja_JP
= 0x00004000,
83 /// Ignore Hiragana and Katakana iteration mark in Japanese fuzzy search
84 ignoreIterationMark_ja_JP
= 0x00008000,
85 /// Ignore separator punctuations in Japanese fuzzy search
86 ignoreSeparator_ja_JP
= 0x00010000,
87 /// Ignore Katakana and Hiragana Zi/Zi and Zu/Zu in Japanese fuzzy search
88 ignoreZiZu_ja_JP
= 0x00020000,
89 /// Ignore Katakana and Hiragana Ba/Gua and Ha/Fa in Japanese fuzzy search
90 ignoreBaFa_ja_JP
= 0x00040000,
91 /// Ignore Katakana and Hiragana Tsui/Tea/Ti and Dyi/Ji in Japanese fuzzy search
92 ignoreTiJi_ja_JP
= 0x00080000,
93 /// Ignore Katakana and Hiragana Hyu/Fyu and Byu/Gyu in Japanese fuzzy search
94 ignoreHyuByu_ja_JP
= 0x00100000,
95 /// Ignore Katakana and Hiragana Se/Sye and Ze/Je in Japanese fuzzy search
96 ignoreSeZe_ja_JP
= 0x00200000,
97 /// Ignore Katakana YA/A which follows the character in either I or E row in Japanese fuzzy search
98 ignoreIandEfollowedByYa_ja_JP
= 0x00400000,
99 /// Ignore Katakana KI/KU which follows the character in SA column in Japanese fuzzy search
100 ignoreKiKuFollowedBySa_ja_JP
= 0x00800000,
101 /// Ignore Japanese normal and small sized character in Japanese fuzzy search
102 ignoreSize_ja_JP
= 0x01000000,
103 /// Ignore Japanese prolonged sound mark in Japanese fuzzy search
104 ignoreProlongedSoundMark_ja_JP
= 0x02000000,
105 /// Ignore middle dot in Japanese fuzzy search
106 ignoreMiddleDot_ja_JP
= 0x04000000,
107 /// Ignore white space characters, include space, TAB, return, etc. in Japanese fuzzy search
108 ignoreSpace_ja_JP
= 0x08000000,
109 /// transliterate Japanese small sized character to normal sized character
110 smallToLarge_ja_JP
= 0x10000000,
111 /// transliterate Japanese normal sized character to small sized character
112 largeToSmall_ja_JP
= 0x20000000,
116 //=============================================================================