ef3b7b7118
In preparing to see what improvements can be made to list defaults, it is helpful to see what customizations have been made to the US defaults. Those that match identically were changed to simple refs. Thanks to https://www.linuxtopia.org/online_books/ linux_tool_guides/the_sed_faq/sedfaq4_013.html The script there helped to generate sed expressions. sed -f ref.sed *.xml ----- ref.sed ----- \#<LC_NumberingLevel>#,\#</LC_NumberingLevel># { :ack N; \#</LC_NumberingLevel>#! b ack s#<LC_NumberingLevel>\ <NumberingLevel NumType="4" Prefix=" *" \+Suffix=")" */>\ <NumberingLevel NumType="4" Prefix=" *" \+Suffix="." */>\ <NumberingLevel NumType="4" Prefix="(" \+Suffix=")" */>\ <NumberingLevel NumType="2" Prefix=" *" \+Suffix="." */>\ <NumberingLevel NumType="0" Prefix=" *" \+Suffix=")" */>\ <NumberingLevel NumType="1" Prefix=" *" \+Suffix=")" */>\ <NumberingLevel NumType="1" Prefix="(" \+Suffix=")" */>\ <NumberingLevel NumType="3" Prefix=" *" \+Suffix="." */>\ </LC_NumberingLevel>#<LC_NumberingLevel ref="en_US"/>#; } ------------------- ----- ref2.sed ----- \#<LC_NumberingLevel>#,\#</LC_NumberingLevel># { :ack N; \#</LC_NumberingLevel>#! b ack s#<LC_NumberingLevel>\ <NumberingLevel Prefix=" " \+NumType="4" Suffix=")" */>\ <NumberingLevel Prefix=" " \+NumType="4" Suffix="." */>\ <NumberingLevel Prefix="(" \+NumType="4" Suffix=")" */>\ <NumberingLevel Prefix=" " \+NumType="2" Suffix="." */>\ <NumberingLevel Prefix=" " \+NumType="0" Suffix=")" */>\ <NumberingLevel Prefix=" " \+NumType="1" Suffix=")" */>\ <NumberingLevel Prefix="(" \+NumType="1" Suffix=")" */>\ <NumberingLevel Prefix=" " \+NumType="3" Suffix="." */>\ </LC_NumberingLevel>#<LC_NumberingLevel ref="en_US"/>#; } -------------------- Change-Id: I85d8a8ed095f19d08b035d7f2c4e2cd94ff08c76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144890 Tested-by: Justin Luth <jluth@mail.com> Reviewed-by: Justin Luth <jluth@mail.com> |
||
---|---|---|
.. | ||
inc | ||
qa/cppunit | ||
source | ||
util | ||
CppunitTest_i18npool_breakiterator.mk | ||
CppunitTest_i18npool_calendar.mk | ||
CppunitTest_i18npool_characterclassification.mk | ||
CppunitTest_i18npool_defaultnumberingprovider.mk | ||
CppunitTest_i18npool_ordinalsuffix.mk | ||
CppunitTest_i18npool_textsearch.mk | ||
CustomTarget_breakiterator.mk | ||
CustomTarget_collator.mk | ||
CustomTarget_indexentry.mk | ||
CustomTarget_localedata.mk | ||
CustomTarget_textconversion.mk | ||
Executable_gencoll_rule.mk | ||
Executable_genconv_dict.mk | ||
Executable_gendict.mk | ||
Executable_genindex_data.mk | ||
Executable_saxparser.mk | ||
IwyuFilter_i18npool.yaml | ||
Library_collator_data.mk | ||
Library_dict_ja.mk | ||
Library_dict_zh.mk | ||
Library_i18npool.mk | ||
Library_i18nsearch.mk | ||
Library_index_data.mk | ||
Library_localedata_en.mk | ||
Library_localedata_es.mk | ||
Library_localedata_euro.mk | ||
Library_localedata_others.mk | ||
Library_textconv_dict.mk | ||
Makefile | ||
Module_i18npool.mk | ||
Rdb_saxparser.mk | ||
README.md |
Internationalisation Pool (i18npool) Framework
Internationalisation pool (i18npool) framework ensures that the suite is adaptable to the requirements of different native languages, their local settings and customs, etc without source code modification. (Wow, that is such marketing-speak...)
Specifically for locale data documentation please see i18npool/source/localedata/data/locale.dtd
On iOS we put the largest data generated here, the dict_ja
and dict_zh
stuff, into separate files and not into code to keep the size of an
app binary down. Temporary test code:
static bool beenhere = false;
if (!beenhere) {
beenhere = true;
uno::Reference< uno::XComponentContext > xComponentContext(::cppu::defaultBootstrap_InitialComponentContext());
uno::Reference< lang::XMultiComponentFactory > xMultiComponentFactoryClient( xComponentContext->getServiceManager() );
uno::Reference< uno::XInterface > xInterface =
xMultiComponentFactoryClient->createInstanceWithContext( "com.sun.star.i18n.BreakIterator_ja", xComponentContext );
}