os/textandloc/textandlocutils/jplangutil/src/jplangutil.tables.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description: 
sl@0
    15
*     Conversion tables used in JPLangUtil.cpp.
sl@0
    16
* 
sl@0
    17
*
sl@0
    18
*/
sl@0
    19
sl@0
    20
sl@0
    21
#ifndef __JPLANGUTIL_TABLES_H__
sl@0
    22
#define __JPLANGUTIL_TABLES_H__
sl@0
    23
sl@0
    24
// INCLUDES
sl@0
    25
#include <e32std.h>
sl@0
    26
sl@0
    27
// CONSTANTS
sl@0
    28
const TText KMiddleDotMap[] =      { 0xff65 , 0x30fb };
sl@0
    29
const TText KLetterWoMap[] =       { 0xff66 , 0x30f2 };
sl@0
    30
const TText KSmallLetterAMap[] =   { 0xff67 , 0x30a1 };
sl@0
    31
const TText KSmallLetterIMap[] =   { 0xff68 , 0x30a3 };
sl@0
    32
const TText KSmallLetterUMap[] =   { 0xff69 , 0x30a5 };
sl@0
    33
const TText KSmallLetterEMap[] =   { 0xff6a , 0x30a7 };
sl@0
    34
const TText KSmallLetterOMap[] =   { 0xff6b , 0x30a9 };
sl@0
    35
const TText KSmallLetterYaMap[] =  { 0xff6c , 0x30e3 };
sl@0
    36
const TText KSmallLetterYuMap[] =  { 0xff6d , 0x30e5 };
sl@0
    37
const TText KSmallLetterYoMap[] =  { 0xff6e , 0x30e7 };
sl@0
    38
const TText KSmallLetterTsuMap[] = { 0xff6f , 0x30c3 };
sl@0
    39
const TText KProlongedSoundMap[] = { 0xff70 , 0x30fc };
sl@0
    40
const TText KLetterAMap[] =   { 0xff71 , 0x30a2 };
sl@0
    41
const TText KLetterIMap[] =   { 0xff72 , 0x30a4 };
sl@0
    42
const TText KLetterUMap[] =   { 0xff73 , 0x30a6 };
sl@0
    43
const TText KLetterEMap[] =   { 0xff74 , 0x30a8 };
sl@0
    44
const TText KLetterOMap[] =   { 0xff75 , 0x30aa };
sl@0
    45
const TText KLetterKaMap[] =  { 0xff76 , 0x30ab };
sl@0
    46
const TText KLetterKiMap[] =  { 0xff77 , 0x30ad };
sl@0
    47
const TText KLetterKuMap[] =  { 0xff78 , 0x30af };
sl@0
    48
const TText KLetterKeMap[] =  { 0xff79 , 0x30b1 };
sl@0
    49
const TText KLetterKoMap[] =  { 0xff7a , 0x30b3 };
sl@0
    50
const TText KLetterSaMap[] =  { 0xff7b , 0x30b5 };
sl@0
    51
const TText KLetterShiMap[] = { 0xff7c , 0x30b7 };
sl@0
    52
const TText KLetterSuMap[] =  { 0xff7d , 0x30b9 };
sl@0
    53
const TText KLetterSeMap[] =  { 0xff7e , 0x30bb };
sl@0
    54
const TText KLetterSoMap[] =  { 0xff7f , 0x30bd };
sl@0
    55
const TText KLetterTaMap[] =  { 0xff80 , 0x30bf };
sl@0
    56
const TText KLetterTiMap[] =  { 0xff81 , 0x30c1 };
sl@0
    57
const TText KLetterTsuMap[] = { 0xff82 , 0x30c4 };
sl@0
    58
const TText KLetterTeMap[] =  { 0xff83 , 0x30c6 };
sl@0
    59
const TText KLetterToMap[] =  { 0xff84 , 0x30c8 };
sl@0
    60
const TText KLetterNaMap[] =  { 0xff85 , 0x30ca };
sl@0
    61
const TText KLetterNiMap[] =  { 0xff86 , 0x30cb };
sl@0
    62
const TText KLetterNuMap[] =  { 0xff87 , 0x30cc };
sl@0
    63
const TText KLetterNeMap[] =  { 0xff88 , 0x30cd };
sl@0
    64
const TText KLetterNoMap[] =  { 0xff89 , 0x30ce };
sl@0
    65
const TText KLetterHaMap[] =  { 0xff8a , 0x30cf };
sl@0
    66
const TText KLetterHiMap[] =  { 0xff8b , 0x30d2 };
sl@0
    67
const TText KLetterFuMap[] =  { 0xff8c , 0x30d5 };
sl@0
    68
const TText KLetterHeMap[] =  { 0xff8d , 0x30d8 };
sl@0
    69
const TText KLetterHoMap[] =  { 0xff8e , 0x30db };
sl@0
    70
const TText KLetterMaMap[] =  { 0xff8f , 0x30de };
sl@0
    71
const TText KLetterMiMap[] =  { 0xff90 , 0x30df };
sl@0
    72
const TText KLetterMuMap[] =  { 0xff91 , 0x30e0 };
sl@0
    73
const TText KLetterMeMap[] =  { 0xff92 , 0x30e1 };
sl@0
    74
const TText KLetterMoMap[] =  { 0xff93 , 0x30e2 };
sl@0
    75
const TText KLetterYaMap[] =  { 0xff94 , 0x30e4 };
sl@0
    76
const TText KLetterYuMap[] =  { 0xff95 , 0x30e6 };
sl@0
    77
const TText KLetterYoMap[] =  { 0xff96 , 0x30e8 };
sl@0
    78
const TText KLetterRaMap[] =  { 0xff97 , 0x30e9 };
sl@0
    79
const TText KLetterRiMap[] =  { 0xff98 , 0x30ea };
sl@0
    80
const TText KLetterRuMap[] =  { 0xff99 , 0x30eb };
sl@0
    81
const TText KLetterReMap[] =  { 0xff9a , 0x30ec };
sl@0
    82
const TText KLetterRoMap[] =  { 0xff9b , 0x30ed };
sl@0
    83
const TText KLetterWaMap[] =  { 0xff9c , 0x30ef };
sl@0
    84
const TText KLetterNMap[] =   { 0xff9d , 0x30f3 };
sl@0
    85
const TText KVoicedSoundMarkMap[] =     { 0xff9e , 0x309b };
sl@0
    86
const TText KSemiVoicedSoundMarkMap[] = { 0xff9f , 0x309c };
sl@0
    87
sl@0
    88
const TText* const KHalfToFullWidthKatakanaCharTable[] =
sl@0
    89
    {
sl@0
    90
    KMiddleDotMap,
sl@0
    91
    KLetterWoMap,
sl@0
    92
    KSmallLetterAMap,
sl@0
    93
    KSmallLetterIMap,
sl@0
    94
    KSmallLetterUMap,
sl@0
    95
    KSmallLetterEMap,
sl@0
    96
    KSmallLetterOMap,
sl@0
    97
    KSmallLetterYaMap,
sl@0
    98
    KSmallLetterYuMap,
sl@0
    99
    KSmallLetterYoMap,
sl@0
   100
    KSmallLetterTsuMap,
sl@0
   101
    KProlongedSoundMap,
sl@0
   102
    KLetterAMap,
sl@0
   103
    KLetterIMap,
sl@0
   104
    KLetterUMap,
sl@0
   105
    KLetterEMap,
sl@0
   106
    KLetterOMap,
sl@0
   107
    KLetterKaMap,
sl@0
   108
    KLetterKiMap,
sl@0
   109
    KLetterKuMap,
sl@0
   110
    KLetterKeMap,
sl@0
   111
    KLetterKoMap,
sl@0
   112
    KLetterSaMap,
sl@0
   113
    KLetterShiMap,
sl@0
   114
    KLetterSuMap,
sl@0
   115
    KLetterSeMap,
sl@0
   116
    KLetterSoMap,
sl@0
   117
    KLetterTaMap,
sl@0
   118
    KLetterTiMap,
sl@0
   119
    KLetterTsuMap,
sl@0
   120
    KLetterTeMap,
sl@0
   121
    KLetterToMap,
sl@0
   122
    KLetterNaMap,
sl@0
   123
    KLetterNiMap,
sl@0
   124
    KLetterNuMap,
sl@0
   125
    KLetterNeMap,
sl@0
   126
    KLetterNoMap,
sl@0
   127
    KLetterHaMap,
sl@0
   128
    KLetterHiMap,
sl@0
   129
    KLetterFuMap,
sl@0
   130
    KLetterHeMap,
sl@0
   131
    KLetterHoMap,
sl@0
   132
    KLetterMaMap,
sl@0
   133
    KLetterMiMap,
sl@0
   134
    KLetterMuMap,
sl@0
   135
    KLetterMeMap,
sl@0
   136
    KLetterMoMap,
sl@0
   137
    KLetterYaMap,
sl@0
   138
    KLetterYuMap,
sl@0
   139
    KLetterYoMap,
sl@0
   140
    KLetterRaMap,
sl@0
   141
    KLetterRiMap,
sl@0
   142
    KLetterRuMap,
sl@0
   143
    KLetterReMap,
sl@0
   144
    KLetterRoMap,
sl@0
   145
    KLetterWaMap,
sl@0
   146
    KLetterNMap,
sl@0
   147
    KVoicedSoundMarkMap,
sl@0
   148
    KSemiVoicedSoundMarkMap
sl@0
   149
    };
sl@0
   150
sl@0
   151
const TText KUToVUMap[] =   { 0xff73 , 0x30f4 };
sl@0
   152
const TText KKAToGAMap[] =  { 0xff76 , 0x30ac };
sl@0
   153
const TText KKIToGIMap[] =  { 0xff77 , 0x30ae };
sl@0
   154
const TText KKUToGUMap[] =  { 0xff78 , 0x30b0 };
sl@0
   155
const TText KKEToGEMap[] =  { 0xff79 , 0x30b2 };
sl@0
   156
const TText KKOToGOMap[] =  { 0xff7a , 0x30b4 };
sl@0
   157
const TText KSAToZAMap[] =  { 0xff7b , 0x30b6 };
sl@0
   158
const TText KSHIToJIMap[] = { 0xff7c , 0x30b8 };
sl@0
   159
const TText KSUToZUMap[] =  { 0xff7d , 0x30ba };
sl@0
   160
const TText KSEToZEMap[] =  { 0xff7e , 0x30bc };
sl@0
   161
const TText KSOToZOMap[] =  { 0xff7f , 0x30be };
sl@0
   162
const TText KTAToDAMap[] =  { 0xff80 , 0x30c0 };
sl@0
   163
const TText KCHIToZIMap[] = { 0xff81 , 0x30c2 };
sl@0
   164
const TText KTSUToZUMap[] = { 0xff82 , 0x30c5 };
sl@0
   165
const TText KTEToDEMap[] =  { 0xff83 , 0x30c7 };
sl@0
   166
const TText KTOToDOMap[] =  { 0xff84 , 0x30c9 };
sl@0
   167
const TText KHAToBAMap[] =  { 0xff8a , 0x30d0 };
sl@0
   168
const TText KHIToBIMap[] =  { 0xff8b , 0x30d3 };
sl@0
   169
const TText KFUToBUMap[] =  { 0xff8c , 0x30d6 };
sl@0
   170
const TText KHEToBEMap[] =  { 0xff8d , 0x30d9 };
sl@0
   171
const TText KHOToBOMap[] =  { 0xff8e , 0x30dc };
sl@0
   172
const TText KWAToVAMap[] =  { 0xff9c , 0x30f7 };
sl@0
   173
const TText KWOToVOMap[] =  { 0xff66 , 0x30fa };
sl@0
   174
sl@0
   175
const TText* const KHalfWidthBaseToFullWidthVoicedKatakanaTable[] =
sl@0
   176
    {
sl@0
   177
    KUToVUMap,
sl@0
   178
    KKAToGAMap,
sl@0
   179
    KKIToGIMap,
sl@0
   180
    KKUToGUMap,
sl@0
   181
    KKEToGEMap,
sl@0
   182
    KKOToGOMap,
sl@0
   183
    KSAToZAMap,
sl@0
   184
    KSHIToJIMap,
sl@0
   185
    KSUToZUMap,
sl@0
   186
    KSEToZEMap,
sl@0
   187
    KSOToZOMap,
sl@0
   188
    KTAToDAMap,
sl@0
   189
    KCHIToZIMap,
sl@0
   190
    KTSUToZUMap,
sl@0
   191
    KTEToDEMap,
sl@0
   192
    KTOToDOMap,
sl@0
   193
    KHAToBAMap,
sl@0
   194
    KHIToBIMap,
sl@0
   195
    KFUToBUMap,
sl@0
   196
    KHEToBEMap,
sl@0
   197
    KHOToBOMap,
sl@0
   198
    KWAToVAMap,
sl@0
   199
    KWOToVOMap
sl@0
   200
    };
sl@0
   201
sl@0
   202
const TText KHAToPAMap[] = { 0xff8a , 0x30d1 };
sl@0
   203
const TText KHIToPIMap[] = { 0xff8b , 0x30d4 };
sl@0
   204
const TText KFUToPUMap[] = { 0xff8c , 0x30d7 };
sl@0
   205
const TText KHEToPEMap[] = { 0xff8d , 0x30da };
sl@0
   206
const TText KHOToPOMap[] = { 0xff8e , 0x30dd };
sl@0
   207
sl@0
   208
const TText* const KHalfWidthBaseToFullWidthSemiVoicedKatakanaTable[] =
sl@0
   209
    {
sl@0
   210
    KHAToPAMap,
sl@0
   211
    KHIToPIMap,
sl@0
   212
    KFUToPUMap,
sl@0
   213
    KHEToPEMap,
sl@0
   214
    KHOToPOMap
sl@0
   215
    };
sl@0
   216
sl@0
   217
const TText KSpaceMap[] =     { 0x0020 , 0x3000 };
sl@0
   218
const TText KCentSignMap[] =  { 0x00a2 , 0xffe0 };
sl@0
   219
const TText KPoundSignMap[] = { 0x00a3 , 0xffe1 };
sl@0
   220
const TText KNotSignMap[] =   { 0x00ac , 0xffe2 };
sl@0
   221
const TText KMacronMap[] =    { 0x00af , 0xffe3 };
sl@0
   222
const TText KBrokenBarMap[] = { 0x00a6 , 0xffe4 };
sl@0
   223
const TText KYenSignMap[] =   { 0x00a5 , 0xffe5 };
sl@0
   224
const TText KWonSignMap[] =   { 0x00a9 , 0xffe6 };
sl@0
   225
const TText KLeftWhiteParenthesisMap[] =  { 0x2985 , 0xff5f };
sl@0
   226
const TText KRightWhiteParenthesisMap[] = { 0x2986 , 0xff60 };
sl@0
   227
const TText KIdeographicFullStopMap[] =   { 0xff61 , 0x3002 };
sl@0
   228
const TText KLeftCornerBracketMap[] =     { 0xff62 , 0x300c };
sl@0
   229
const TText KRightCornerBracketMap[] =    { 0xff63 , 0x300d };
sl@0
   230
const TText KIdeographicCommaMap[] =      { 0xff64 , 0x3001 };
sl@0
   231
const TText KFormsLightVerticalMap[] =    { 0xffe8 , 0x2502 };
sl@0
   232
const TText KLeftwardsArrowMap[] =  { 0xffe9 , 0x2190 };
sl@0
   233
const TText KUpwardsArrowMap[] =    { 0xffea , 0x2191 };
sl@0
   234
const TText KRightwardsArrowMap[] = { 0xffeb , 0x2192 };
sl@0
   235
const TText KDownwardsArrowMap[] =  { 0xffec , 0x2193 };
sl@0
   236
const TText KBlackSquareMap[] =     { 0xffed , 0x25a0 };
sl@0
   237
const TText KWhiteCircleMap[] =     { 0xffee , 0x25cb };
sl@0
   238
sl@0
   239
const TText* const KHalfToFullWidthSpecialCharTable[] =
sl@0
   240
    {
sl@0
   241
    KSpaceMap,
sl@0
   242
    KCentSignMap,
sl@0
   243
    KPoundSignMap,
sl@0
   244
    KNotSignMap,
sl@0
   245
    KMacronMap,
sl@0
   246
    KBrokenBarMap,
sl@0
   247
    KYenSignMap,
sl@0
   248
    KWonSignMap,
sl@0
   249
    KLeftWhiteParenthesisMap,
sl@0
   250
    KRightWhiteParenthesisMap,
sl@0
   251
    KIdeographicFullStopMap,
sl@0
   252
    KLeftCornerBracketMap,
sl@0
   253
    KRightCornerBracketMap,
sl@0
   254
    KIdeographicCommaMap,
sl@0
   255
    KFormsLightVerticalMap,
sl@0
   256
    KLeftwardsArrowMap,
sl@0
   257
    KUpwardsArrowMap,
sl@0
   258
    KRightwardsArrowMap,
sl@0
   259
    KDownwardsArrowMap,
sl@0
   260
    KBlackSquareMap,
sl@0
   261
    KWhiteCircleMap
sl@0
   262
    };
sl@0
   263
sl@0
   264
#endif // __JPLANGUTIL_TABLES_H__
sl@0
   265
sl@0
   266
// End of File