1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_i18n_TransliterationModules_idl__ 24#define __com_sun_star_i18n_TransliterationModules_idl__ 25 26//============================================================================= 27 28module com { module sun { module star { module i18n { 29 30//============================================================================= 31 32/** Old transliteration module enumeration. 33 34 <p> Use with <member>XTransliteration::loadModule()</member> and 35 <member scope="com::sun::star::util">SearchOptions::transliterateFlags</member> </p> 36 37 <p> Note that values >=0x100 are logically or'ed with other values! </p> 38 */ 39 40published enum TransliterationModules 41{ 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, 69 IGNORE_MASK = -0x100, 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, 113 END_OF_MODULE = 0 114}; 115 116//============================================================================= 117}; }; }; }; 118 119#endif 120