office-gobmx/i18npool/Module_i18npool.mk
Stephan Bergmann 456a146b9e tdf#151971: Fix used implementation names of transliteration services
...after 04af4e4f55 "[API CHANGE] Fix all bad
UNOIDL identifiers across offapi" had changed the spelling (character case) of
some of the css.i18n.TransliterationModules[New] enum values involved here, so
that the TmItem1 macro generated broken TMList::implName values now.  (Which in
turn caused TransliterationImpl::loadBody to throw "unsatisfied query for
interface of type com.sun.star.i18n.XExtendedTransliteration!"
css::uno::RuntimeExceptions, which remained uncaught.)

Also add a test verifying that loading all those transliteration services no
longer fails throwing exceptions.  Which lead to two open TODOs:  For one, the
value of maxCascade in i18npool/inc/transliterationImpl.hxx might come from a
time when there were fewer TransliterationModules[New] enum values and might no
longer be appropriate.  This would need some further investigation.  But for
another, there are two transliteration services that cannot currently be
instantiated.  That looks like a regression that should be fixed in a follow-up
commit.

Change-Id: Icfca3e841360d4b471013e2c96d6868a75a21a1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150018
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-04-04 14:21:39 +02:00

51 lines
1.4 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# 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/.
#
$(eval $(call gb_Module_Module,i18npool))
$(eval $(call gb_Module_add_targets,i18npool,\
CustomTarget_breakiterator \
CustomTarget_collator \
CustomTarget_indexentry \
CustomTarget_localedata \
CustomTarget_textconversion \
Library_collator_data \
$(if $(filter-out iOS ANDROID,$(OS)), \
Library_dict_ja \
Library_dict_zh) \
Library_i18npool \
Library_i18nsearch \
Library_index_data \
Library_localedata_en \
Library_localedata_es \
Library_localedata_euro \
Library_localedata_others \
Library_textconv_dict \
))
$(eval $(call gb_Module_add_targets_for_build,i18npool,\
Executable_gencoll_rule \
Executable_genconv_dict \
Executable_gendict \
Executable_genindex_data \
Executable_saxparser \
Rdb_saxparser \
))
$(eval $(call gb_Module_add_check_targets,i18npool,\
CppunitTest_i18npool_breakiterator \
CppunitTest_i18npool_characterclassification \
CppunitTest_i18npool_ordinalsuffix \
CppunitTest_i18npool_textsearch \
CppunitTest_i18npool_calendar \
CppunitTest_i18npool_defaultnumberingprovider \
CppunitTest_i18npool_transliteration \
))
# vim: set noet sw=4 ts=4: