summaryrefslogtreecommitdiffstats
path: root/offapi/com/sun/star/i18n/TransliterationModules.idl
blob: f76b85be61d07dfa1b9b2ada0729f7d1416678fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


module com {  module sun {  module star {  module i18n {


/** Old transliteration module enumeration.

    <p> Use with XTransliteration::loadModule() and
    com::sun::star::util::SearchOptions::transliterateFlags() </p>

    <p> Note that values &gt;=0x100 are logically or'ed with other values! </p>
 */

published enum TransliterationModules
{
    /// Transliterate a string from upper case to lower case
    UPPERCASE_LOWERCASE            = 1,
    /// Transliterate a string from lower case to upper case
    LOWERCASE_UPPERCASE            = 2,
    /// Transliterate a string from half width character to full width character
    HALFWIDTH_FULLWIDTH            = 3,
    /// Transliterate a string from full width character to half width character
    FULLWIDTH_HALFWIDTH            = 4,
    /// Transliterate a Japanese string from Katakana to Hiragana
    KATAKANA_HIRAGANA              = 5,
    /// Transliterate a Japanese string from Hiragana to Katakana
    HIRAGANA_KATAKANA              = 6,
    /// Transliterate an ASCII number string to Simplified Chinese lower case number string in spellout format
    NumToTextLower_zh_CN           = 7,
    /// Transliterate an ASCII number string to Simplified Chinese upper case number string in spellout format
    NumToTextUpper_zh_CN           = 8,
    /// Transliterate an ASCII number string to Traditional Chinese lower case number string in spellout format
    NumToTextLower_zh_TW           = 9,
    /// Transliterate an ASCII number string to Traditional Chinese upper case number string in spellout format
    NumToTextUpper_zh_TW           = 10,
    /// Transliterate an ASCII number string to formal Korean Hangul number string in spellout format
    NumToTextFormalHangul_ko       = 11,
    /// Transliterate an ASCII number string to formal Korean Hanja lower case number string in spellout format
    NumToTextFormalLower_ko        = 12,
    /// Transliterate an ASCII number string to formal Korean Hanja upper case number string in spellout format
    NumToTextFormalUpper_ko        = 13,
    NON_IGNORE_MASK                = 0x000000ff,
    IGNORE_MASK                    = -0x100,
    /// Ignore case when comparing strings by transliteration service
    IGNORE_CASE                    = 0x00000100,
    /// Ignore Hiragana and Katakana when comparing strings by transliteration service
    IGNORE_KANA                    = 0x00000200, // ja_JP
    /// Ignore full width and half width character when comparing strings by transliteration service
    IGNORE_WIDTH                   = 0x00000400, // ja_JP
    /// Ignore Japanese traditional Kanji character in Japanese fuzzy search
    IgnoreTraditionalKanji_ja_JP   = 0x00001000,
    /// Ignore Japanese traditional Katakana and Hiragana character in Japanese fuzzy search
    IgnoreTraditionalKana_ja_JP    = 0x00002000,
    /// Ignore dash or minus sign in Japanese fuzzy search
    IgnoreMinusSign_ja_JP          = 0x00004000,
    /// Ignore Hiragana and Katakana iteration mark in Japanese fuzzy search
    IgnoreIterationMark_ja_JP      = 0x00008000,
    /// Ignore separator punctuations in Japanese fuzzy search
    IgnoreSeparator_ja_JP          = 0x00010000,
    /// Ignore Katakana and Hiragana Zi/Zi and Zu/Zu  in Japanese fuzzy search
    IgnoreZiZu_ja_JP               = 0x00020000,
    /// Ignore Katakana and Hiragana Ba/Gua and Ha/Fa in Japanese fuzzy search
    IgnoreBaFa_ja_JP               = 0x00040000,
    /// Ignore Katakana and Hiragana Tsui/Tea/Ti and Dyi/Ji in Japanese fuzzy search
    IgnoreTiJi_ja_JP               = 0x00080000,
    /// Ignore Katakana and Hiragana Hyu/Fyu and Byu/Gyu in Japanese fuzzy search
    IgnoreHyuByu_ja_JP             = 0x00100000,
    /// Ignore Katakana and Hiragana Se/Sye and Ze/Je in Japanese fuzzy search
    IgnoreSeZe_ja_JP               = 0x00200000,
    /// Ignore Katakana YA/A which follows the character in either I or E row in Japanese fuzzy search
    IgnoreIandEfollowedByYa_ja_JP  = 0x00400000,
    /// Ignore Katakana KI/KU which follows the character in SA column in Japanese fuzzy search
    IgnoreKiKuFollowedBySa_ja_JP   = 0x00800000,
    /// Ignore Japanese normal and small sized character in Japanese fuzzy search
    IgnoreSize_ja_JP               = 0x01000000,
    /// Ignore Japanese prolonged sound mark in Japanese fuzzy search
    IgnoreProlongedSoundMark_ja_JP = 0x02000000,
    /// Ignore middle dot in Japanese fuzzy search
    IgnoreMiddleDot_ja_JP          = 0x04000000,
    /// Ignore white space characters, include space, TAB, return, etc. in Japanese fuzzy search
    IgnoreSpace_ja_JP              = 0x08000000,
    /// transliterate Japanese small sized character to normal sized character
    SmallToLarge_ja_JP             = 0x10000000,
    /// transliterate Japanese normal sized character to small sized character
    LargeToSmall_ja_JP             = 0x20000000,
    END_OF_MODULE                  = 0
};

}; }; }; };

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */