1*d1766043SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d1766043SAndrew Rist * distributed with this work for additional information 6*d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9*d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10*d1766043SAndrew Rist * 11*d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d1766043SAndrew Rist * 13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d1766043SAndrew Rist * software distributed under the License is distributed on an 15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17*d1766043SAndrew Rist * specific language governing permissions and limitations 18*d1766043SAndrew Rist * under the License. 19*d1766043SAndrew Rist * 20*d1766043SAndrew Rist *************************************************************/ 21*d1766043SAndrew Rist 22*d1766043SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_i18n_TransliterationModules_idl__ 24cdf0e10cSrcweir#define __com_sun_star_i18n_TransliterationModules_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir//============================================================================= 27cdf0e10cSrcweir 28cdf0e10cSrcweirmodule com { module sun { module star { module i18n { 29cdf0e10cSrcweir 30cdf0e10cSrcweir//============================================================================= 31cdf0e10cSrcweir 32cdf0e10cSrcweir/** Old transliteration module enumeration. 33cdf0e10cSrcweir 34cdf0e10cSrcweir <p> Use with <member>XTransliteration::loadModule()</member> and 35cdf0e10cSrcweir <member scope="com::sun::star::util">SearchOptions::transliterateFlags</member> </p> 36cdf0e10cSrcweir 37cdf0e10cSrcweir <p> Note that values >=0x100 are logically or'ed with other values! </p> 38cdf0e10cSrcweir */ 39cdf0e10cSrcweir 40cdf0e10cSrcweirpublished enum TransliterationModules 41cdf0e10cSrcweir{ 42cdf0e10cSrcweir /// Transliterate a string from upper case to lower case 43cdf0e10cSrcweir UPPERCASE_LOWERCASE = 1, 44cdf0e10cSrcweir /// Transliterate a string from lower case to upper case 45cdf0e10cSrcweir LOWERCASE_UPPERCASE = 2, 46cdf0e10cSrcweir /// Transliterate a string from half width character to full width character 47cdf0e10cSrcweir HALFWIDTH_FULLWIDTH = 3, 48cdf0e10cSrcweir /// Transliterate a string from full width character to half width character 49cdf0e10cSrcweir FULLWIDTH_HALFWIDTH = 4, 50cdf0e10cSrcweir /// Transliterate a Japanese string from Katakana to Hiragana 51cdf0e10cSrcweir KATAKANA_HIRAGANA = 5, 52cdf0e10cSrcweir /// Transliterate a Japanese string from Hiragnan to Katakana 53cdf0e10cSrcweir HIRAGANA_KATAKANA = 6, 54cdf0e10cSrcweir /// Transliterate an ascii number string to Simplified Chinese lower case number string in spellout format 55cdf0e10cSrcweir NumToTextLower_zh_CN = 7, 56cdf0e10cSrcweir /// Transliterate an ascii number string to Simplified Chinese upper case number string in spellout format 57cdf0e10cSrcweir NumToTextUpper_zh_CN = 8, 58cdf0e10cSrcweir /// Transliterate an ascii number string to Traditional Chinese lower case number string in spellout format 59cdf0e10cSrcweir NumToTextLower_zh_TW = 9, 60cdf0e10cSrcweir /// Transliterate an ascii number string to Traditional Chinese upper case number string in spellout format 61cdf0e10cSrcweir NumToTextUpper_zh_TW = 10, 62cdf0e10cSrcweir /// Transliterate an ascii number string to formal Korean Hangul number string in spellout format 63cdf0e10cSrcweir NumToTextFormalHangul_ko = 11, 64cdf0e10cSrcweir /// Transliterate an ascii number string to formal Korean Hanja lower case number string in spellout format 65cdf0e10cSrcweir NumToTextFormalLower_ko = 12, 66cdf0e10cSrcweir /// Transliterate an ascii number string to formal Korean Hanja upper case number string in spellout format 67cdf0e10cSrcweir NumToTextFormalUpper_ko = 13, 68cdf0e10cSrcweir NON_IGNORE_MASK = 0x000000ff, 69cdf0e10cSrcweir IGNORE_MASK = -0x100, 70cdf0e10cSrcweir /// Ignore case when comparing strings by transliteration service 71cdf0e10cSrcweir IGNORE_CASE = 0x00000100, 72cdf0e10cSrcweir /// Ignore Hiragana and Katakana when comparing strings by transliteration service 73cdf0e10cSrcweir IGNORE_KANA = 0x00000200, // ja_JP 74cdf0e10cSrcweir /// Ignore full width and half width character when comparing strings by transliteration service 75cdf0e10cSrcweir IGNORE_WIDTH = 0x00000400, // ja_JP 76cdf0e10cSrcweir // not used yet = 0x00000800, 77cdf0e10cSrcweir /// Ignore Japanese traditional Kanji character in Japanese fuzzy search 78cdf0e10cSrcweir ignoreTraditionalKanji_ja_JP = 0x00001000, 79cdf0e10cSrcweir /// Ignore Japanese traditional Katakana and Hiragana character in Japanese fuzzy search 80cdf0e10cSrcweir ignoreTraditionalKana_ja_JP = 0x00002000, 81cdf0e10cSrcweir /// Ignore dash or minus sign in Japanese fuzzy search 82cdf0e10cSrcweir ignoreMinusSign_ja_JP = 0x00004000, 83cdf0e10cSrcweir /// Ignore Hiragana and Katakana iteration mark in Japanese fuzzy search 84cdf0e10cSrcweir ignoreIterationMark_ja_JP = 0x00008000, 85cdf0e10cSrcweir /// Ignore separator punctuations in Japanese fuzzy search 86cdf0e10cSrcweir ignoreSeparator_ja_JP = 0x00010000, 87cdf0e10cSrcweir /// Ignore Katakana and Hiragana Zi/Zi and Zu/Zu in Japanese fuzzy search 88cdf0e10cSrcweir ignoreZiZu_ja_JP = 0x00020000, 89cdf0e10cSrcweir /// Ignore Katakana and Hiragana Ba/Gua and Ha/Fa in Japanese fuzzy search 90cdf0e10cSrcweir ignoreBaFa_ja_JP = 0x00040000, 91cdf0e10cSrcweir /// Ignore Katakana and Hiragana Tsui/Tea/Ti and Dyi/Ji in Japanese fuzzy search 92cdf0e10cSrcweir ignoreTiJi_ja_JP = 0x00080000, 93cdf0e10cSrcweir /// Ignore Katakana and Hiragana Hyu/Fyu and Byu/Gyu in Japanese fuzzy search 94cdf0e10cSrcweir ignoreHyuByu_ja_JP = 0x00100000, 95cdf0e10cSrcweir /// Ignore Katakana and Hiragana Se/Sye and Ze/Je in Japanese fuzzy search 96cdf0e10cSrcweir ignoreSeZe_ja_JP = 0x00200000, 97cdf0e10cSrcweir /// Ignore Katakana YA/A which follows the character in either I or E row in Japanese fuzzy search 98cdf0e10cSrcweir ignoreIandEfollowedByYa_ja_JP = 0x00400000, 99cdf0e10cSrcweir /// Ignore Katakana KI/KU which follows the character in SA column in Japanese fuzzy search 100cdf0e10cSrcweir ignoreKiKuFollowedBySa_ja_JP = 0x00800000, 101cdf0e10cSrcweir /// Ignore Japanese normal and small sized character in Japanese fuzzy search 102cdf0e10cSrcweir ignoreSize_ja_JP = 0x01000000, 103cdf0e10cSrcweir /// Ignore Japanese prolonged sound mark in Japanese fuzzy search 104cdf0e10cSrcweir ignoreProlongedSoundMark_ja_JP = 0x02000000, 105cdf0e10cSrcweir /// Ignore middle dot in Japanese fuzzy search 106cdf0e10cSrcweir ignoreMiddleDot_ja_JP = 0x04000000, 107cdf0e10cSrcweir /// Ignore white space characters, include space, TAB, return, etc. in Japanese fuzzy search 108cdf0e10cSrcweir ignoreSpace_ja_JP = 0x08000000, 109cdf0e10cSrcweir /// transliterate Japanese small sized character to normal sized character 110cdf0e10cSrcweir smallToLarge_ja_JP = 0x10000000, 111cdf0e10cSrcweir /// transliterate Japanese normal sized character to small sized character 112cdf0e10cSrcweir largeToSmall_ja_JP = 0x20000000, 113cdf0e10cSrcweir END_OF_MODULE = 0 114cdf0e10cSrcweir}; 115cdf0e10cSrcweir 116cdf0e10cSrcweir//============================================================================= 117cdf0e10cSrcweir}; }; }; }; 118cdf0e10cSrcweir 119cdf0e10cSrcweir#endif 120