merge the formfield patch from ooo-build
[ooovba.git] / i18npool / source / transliteration / ignoreZiZu_ja_JP.cxx
blob0b98145f840881397f65ae77acff458b3da296ae
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ignoreZiZu_ja_JP.cxx,v $
10 * $Revision: 1.9 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_i18npool.hxx"
34 // prevent internal compiler error with MSVC6SP3
35 #include <utility>
37 #define TRANSLITERATION_ZiZu_ja_JP
38 #include <transliteration_Ignore.hxx>
40 namespace com { namespace sun { namespace star { namespace i18n {
42 sal_Unicode
43 ignoreZiZu_ja_JP_translator (const sal_Unicode c)
46 switch (c) {
47 case 0x30C2: // KATAKANA LETTER DI
48 return 0x30B8; // KATAKANA LETTER ZI
50 case 0x3062: // HIRAGANA LETTER DI
51 return 0x3058; // HIRAGANA LETTER ZI
53 case 0x30C5: // KATAKANA LETTER DU
54 return 0x30BA; // KATAKANA LETTER ZU
56 case 0x3065: // HIRAGANA LETTER DU
57 return 0x305A; // HIRAGANA LETTER ZU
59 return c;
62 ignoreZiZu_ja_JP::ignoreZiZu_ja_JP()
64 func = ignoreZiZu_ja_JP_translator;
65 table = 0;
66 map = 0;
67 transliterationName = "ignoreZiZu_ja_JP";
68 implementationName = "com.sun.star.i18n.Transliteration.ignoreZiZu_ja_JP";
71 } } } }