/* -*- 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 . */ #ifndef INCLUDED_I18NPOOL_INC_WTT_H #define INCLUDED_I18NPOOL_INC_WTT_H namespace i18npool { /* * Thai character type definition. */ #define CT_CTRL 0 // Control character #define CT_NON 1 // Non-composible #define CT_CONS 2 // Consonant #define CT_LV 3 // Leading vowel #define CT_FV1 4 // Following vowel #define CT_FV2 5 // Following vowel #define CT_FV3 6 #define CT_BV1 7 // Below vowel #define CT_BV2 8 #define CT_BD 9 // Below diacritic #define CT_TONE 10 // Tone #define CT_AD1 11 // Above diacritic #define CT_AD2 12 #define CT_AD3 13 #define CT_AV1 14 // Above vowel #define CT_AV2 15 #define CT_AV3 16 #define MAX_CT 17 static const sal_uInt16 thaiCT[128] = { // Thai character type CT_NON, CT_CONS, CT_CONS, CT_CONS, CT_CONS,CT_CONS, CT_CONS, CT_CONS, //0E00 CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, //0E10 CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_FV3, CT_CONS, CT_FV3, CT_CONS, //0E20 CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_NON, CT_FV1, CT_AV2, CT_FV1, CT_FV1, CT_AV1, CT_AV3, CT_AV2, CT_AV3, //0E30 CT_BV1, CT_BV2, CT_BD, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_LV, CT_LV, CT_LV, CT_LV, CT_LV, CT_FV2, CT_NON, CT_AD2, //0E40 CT_TONE, CT_TONE, CT_TONE, CT_TONE, CT_AD1, CT_AD1, CT_AD3, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, //0E50 CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_CTRL }; #define getCharType(x) ((x >= 0x0E00 && x < 0x0E60) ? thaiCT[x - 0x0E00] : CT_NON) } #endif // INCLUDED_I18NPOOL_INC_WTT_H /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /collabora/co-24.04.10 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/cppcanvas/source/mtfrenderer/textaction.hxx
AgeCommit message (Expand)Author
2023-10-11Drop o3tl::span, can use C++20 std::span directly nowStephan Bergmann
2023-06-18tdf#155810: Pass Kashida insertion positions through canvasKhaled Hosny
2022-12-02tdf#152094 retain more accuracy from RefDevMode::MSO1Caolán McNamara
2022-01-13Recheck modules [a-c]* with IWYUGabor Kelemen
2021-10-30tools::Long->sal_Int32 in the DX arraysNoel Grandin
2021-10-29pass DX array around using o3tl::span instead of pointerNoel Grandin
2020-10-21use tools::Long in comphelper..cuiNoel
2020-07-16compact namespace: cppcanvasNoel Grandin
2019-12-29tdf#124176: Use pragma once instead of include guardscagatay
2018-06-11rhbz#1589029 tdf#93789 impress not showing text highlight in presentation modeCaolán McNamara
2017-08-12tdf#96099 Remove ActionSharedPtr typedefIvan Safonov
2016-04-12cleanup: remove unused com/sun/star/uno includesJochen Nitschke
2015-11-05Reduce scope of #include <tools/poly.hxx>Matteo Casalin
2015-02-07loplugin:deletedspecialStephan Bergmann
2014-07-20vcl consitent use of long for corrdinateNorbert Thiebaud
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold
2013-09-17convert CPPCANVAS module from String to OUStringNoel Grandin