office-gobmx/sw/inc/comcore.hxx
László Németh da64ec8c8a tdf#133589 AutoCorrect: transliterate to Old Hungarian
In right-to-left paragraph mode, transliterate
Hungarian text word by word during typing, also
add the associated checkbox to Localized Options
page of AutoCorrect dialog window.

Old Hungarian (ISO 15924: Hung) is a historical
and renewed script which is still in use to
transliterate Hungarian writing.

As a localized AutoCorrect feature, the patch supports
the followings:

– word-by-word transliteration of Hungarian texts only
  in right-to-left paragraph mode.

– consonant disambiguation of digraphs and trigraphs
  based on hyphenation (now pattern-based Huhyphn
  dictionary of libhyphen, planned dictionary based
  Hunspell later)

– transliteration by extended hu-Hung module of
  Numbertext library.

Note: transliteration of the selected text using
AutoCorrect Apply function has't been implemented, yet.

Change-Id: Iee0f18e2485c974c35acf0a3abc3a49c2cf80196
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95303
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-06-02 18:40:06 +02:00

51 lines
2.3 KiB
C++

/* -*- 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_SW_INC_COMCORE_HXX
#define INCLUDED_SW_INC_COMCORE_HXX
// defines for the Autoformat Redline Comments
#define STR_AUTOFMTREDL_DEL_EMPTY_PARA 0
#define STR_AUTOFMTREDL_USE_REPLACE 1
#define STR_AUTOFMTREDL_CPTL_STT_WORD 2
#define STR_AUTOFMTREDL_CPTL_STT_SENT 3
#define STR_AUTOFMTREDL_TYPO 4
#define STR_AUTOFMTREDL_USER_STYLE 5
#define STR_AUTOFMTREDL_BULLET 6
#define STR_AUTOFMTREDL_UNDER 7
#define STR_AUTOFMTREDL_BOLD 8
#define STR_AUTOFMTREDL_FRACTION 9
#define STR_AUTOFMTREDL_DETECT_URL 10
#define STR_AUTOFMTREDL_DASH 11
#define STR_AUTOFMTREDL_ORDINAL 12
#define STR_AUTOFMTREDL_RIGHT_MARGIN 13
#define STR_AUTOFMTREDL_SET_TMPL_TEXT 14
#define STR_AUTOFMTREDL_SET_TMPL_INDENT 15
#define STR_AUTOFMTREDL_SET_TMPL_NEG_INDENT 16
#define STR_AUTOFMTREDL_SET_TMPL_TEXT_INDENT 17
#define STR_AUTOFMTREDL_SET_TMPL_HEADLINE 18
#define STR_AUTOFMTREDL_SET_NUMBER_BULLET 19
#define STR_AUTOFMTREDL_DEL_MORELINES 20
#define STR_AUTOFMTREDL_NON_BREAK_SPACE 21
#define STR_AUTOFMTREDL_TRANSLITERATE_RTL 22
// !!!!!!!!!!!!!!!!!!!!!!!!!! always set the correct end !!!!!!!!!!!!
#define STR_AUTOFMTREDL_END 23
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */