summaryrefslogtreecommitdiff
path: root/i18npool
AgeCommit message (Collapse)AuthorFilesLines
2020-12-05tdf#138481: Trust the built-in break iterator character data in ICUTor Lillqvist2-120/+0
Don't use our own char.txt. Quite possibly we wouldn't need to use the other data in the i18npool/source/breakiterator/data folder either. See the README file there for the sad details. Change-Id: I82923ae76407fdd3fa3642d818d43427fe4f5591 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106632 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com> (cherry picked from commit 8578a1c9d167c19f1d8038fac5946b4b3cae305e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106688 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107250 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-11-17tdf#117643 Writer: fix apostrophe search regressionLászló Németh3-0/+148
During text search, ASCII apostrophe ' (U+0027) of the search term matches the typographic apostrophe ’ (U+2019) of the text, too. There was a UX regression in document editing from commit e6fade1ce133039d28369751b77ac8faff6e40cb (tdf#38395 enable smart apostrophe replacement by default), because Find and Replace window and Find toolbar doesn't replace ASCII apostrophe, so the search term hadn't matched the text (now with the automatically replaced typographic apostrophes), as before the commit. Regex search hasn't been modified, i.e. searching U+2019 is still necessary a search term with U+2019. The typographic apostrophes of a search term only match ASCII apostrophes of the text, if the search term contain also an ASCII apostrophe, too. Note: as a more sophisticated solution, it's possible to add a new default transliteration option for this later. Change-Id: I5121edbef5cf34fdd5b5f9ba3c046a06329a756a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105717 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit d40f2d02df26e216f367b5da3f9546b73f250469) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105858
2020-11-02fix build with ICU 68Rene Engelhard1-1/+8
use standard true. /home/rene/LibreOffice/git/master/i18npool/source/calendar/calendar_gregorian.cxx: In member function 'virtual void i18npool::Calendar_gregorian::setLocalDateTime(double)': /home/rene/LibreOffice/git/master/i18npool/source/calendar/calendar_gregorian.cxx:363:40: error: 'TRUE' was not declared in this scope 363 | body->getTimeZone().getOffset( fR, TRUE, nZoneOffset, nDSTOffset, status ); | ^~~~ /usr/include/unicode/umachine.h says: @deprecated ICU 68 Use standard "true" instead. Change-Id: I45d2b0afa6a9043767af5c2cf41ba24377f2cdc4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105057 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-10-10tdf#122759 sc: fix Autofilter case sensitivity for HungarianAttila Szűcs1-3/+0
Remove case sensitivity from NON case-sensitive Hungarian collator in i18npool, added by commit 7b1eb6313c0d2621c364df1724c69d28f8267841 (tdf#116666 fix Hungarian sorting). It seems, this doesn't affect Writer, where it's possible to choose case-sensitive sorting, too. Note: Handling of space is still a problem for normal text, i.e. sorting according to Hungarian orthography, see commit 7618490d334409c3fc4167f32732537ef738647f (tdf#123204 hu_HU collation: don't ignore special characters). Co-authored-by: Tibor Nagy (NISZ) Change-Id: I667eb5e22401a7fcef0e6e6111c48ce7d9c4aaf3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101527 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org> (cherry picked from commit 0baa63eb00cf42712584dc87cc9874df1195c24a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103063 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-10-10tdf#136951: Add Võro (vro-EE) locale data and rudimentary autocorrect listMihkel Tõnnov6-0/+535
Change-Id: Id5a5d71b7f457d18b9d0982f9b4df95566c09be9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103122 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 568ee718bb217f4ecbebc962557ef659b9f6e624) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103584
2020-10-10tdf#137009: except Togo, all French locales in African don't use AM/PMJulien Nabet2-5/+155
See https://bugs.documentfoundation.org/show_bug.cgi?id=137009#c4 Change-Id: I01612e79ffd947c1a4c0cf252d71bda48bc3ef8e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103638 (cherry picked from commit f11dc8335c9bae837823c14d059388b8d5965dcb) Change-Id: I55f0c33f884e330e7557a46990ffdbc5f32f2042 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103654 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-09-28Resolves: tdf#135518 Add English (Hong Kong) [en-HK] locale dataEike Rathke3-0/+36
Inherited from en-GB, zh-HK Change-Id: I966d19cfa2da26d3d882af35afe79a2f77eaffa8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101139 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 5dffb7ba361ad76aa249d6c93fd87fff67362726) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103328 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-09-24Resolves: tdf#115436 Add English Kenya {en-KE} locale dataEike Rathke3-1/+45
This is a combination of 2 commits. Add English Kenya LCID 0xAC09 {en-KE} langtag mapping, tdf#115436 I0c32ffa2d7f316b3e97dc597da8539842ad51367 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103300 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 23ff2c96709e48e06aa0a9dee237b73935cd60e5) Resolves: tdf#115436 Add English Kenya {en-KE} locale data I06b9479e48bfcc3421ae1ec634064f9f3209cffd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103301 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit ae8995694da9ca29a62d13e6a320e5d39f4727e8) Change-Id: I06b9479e48bfcc3421ae1ec634064f9f3209cffd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103323 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-05tdf#133747 add missing character to make the sort feature work correctlyTomoyuki Kubota3-4176/+4176
Change-Id: Icea2dac6e4ef6493c2a7fe5f7def0f1708caf6d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95684 Tested-by: Jenkins Reviewed-by: Tomoyuki Kubota <himajin100000@gmail.com> Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 71f1623e9c707b2160272bd30a00e16cc3df1c69) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100050
2020-07-29tdf#130154: update locale data for Estonian [et-EE] - follow-upMihkel Tõnnov1-16/+16
Follow-up for 4804d969bacd25ad586b3bf70d3dc8c27adb48ef: * change abbreviations to omit trailing periods, as officially preferred * add quotes around literal characters in date formats (so those formats wouldn't be mistakenly detected as "user-defined") * revert sorting of a few date formats for backwards compatibility's sake: - when opening files created in 7.0, previous versions shouldn't add ". a" anymore to formats that aren't supposed to have it Change-Id: I666273aa32e7ca363aa929b8a1fd83bf46533f6f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99204 Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2020-07-22i18npool: don't break line at slash '/'Michael Stahl1-1/+4
If sw text formatting gets the result of the special-case code added to the "word boundary break" condition, it may call again the next time with the preceding index, and fall into the "Line boundary break" condition, which hence also needs to special case '/'. (regression from ICU 60, 9206a08ada00e8762c4a634f242bd566028964bb) Change-Id: I2aaefbc7b25af157e0a6ef15fabaa71bff1e8d9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99104 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de> (cherry picked from commit a916e2253df2bf1415c25fb7f974e0d16b615d03) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99059 Reviewed-by: Eike Rathke <erack@redhat.com>
2020-07-15tdf#134755 Update locale data for Kazakh [kk-KZ]Baurzhan Muftakhidinov1-16/+23
Change-Id: I47e920a98833f71bd5c8db0a0590a4f8cdcb83b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98465 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit a3c3ab7394f578340c33e6e1cd8da13196a8b596) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98639
2020-06-16tdf#133898: get a context in default ctr (i18npool/calendarImpl)Julien Nabet2-1/+8
See bt here: https://bugs.documentfoundation.org/attachment.cgi?id=161882 Change-Id: If5a6c5e2b52af9ef97af9522296aaa58352cfa69 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96161 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit 56e2183b4916888fa104b62411151401932d8f92) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96179 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2020-06-01tdf#115382 AutoCorrect: fix Hungarian apostrophe usageLászló Németh1-2/+2
Single Quotes AutoCorrect, i.e. pressing Ctrl + ' will insert typographic apostrophes (third level Hungarian quoation marks) instead of » and «, like MSO does. This reverts commit 0d0c13bfbdff85a18433aee6e94558689f0cb722 (tdf#115382 Hungarian autocorrect: help apostrophe usage), too. See also commit b9910e87de4eea1cb3684bb7af8e58d681cbe809 (Resolves: tdf#116062 revert [fr-CH] to use previous single quote characters) Change-Id: I9ff5cb9a55699c253b6a57589186caa7caa170a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95210 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit 3bfae06d78df8d79a3216115dccd8885a10bf0b2) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95242 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-05-21use for-range on Sequence in i18npool..sdNoel Grandin1-4/+3
Change-Id: I19eba57bc6058c317473d0746f06699a09ba2830 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94608 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-19tdf#130154: update locale data for Estonian [et-EE]Mihkel Tõnnov1-39/+87
* fix MinimalDaysInFirstWeek (supposed to be 4, not 1) * fix FollowPageWord ("jj." = "ja järgmine/järgmised", not "pp.") * fix Era DefaultAbbrvName & DefaultFullName to official spellings * add DefaultNarrowName for months (using Roman numerals) * translate TimeAM, TimePM - not commonly used, but abbreviations exist * changes to date formats: - add some that are used, but were missing - remove those that aren't commonly used or which are ungrammatical - switch to more sensible defaults - minor re-sorting into more logical order Change-Id: I2cf585febe7f100b2b63a94a3fd957a381adc131 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94256 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-05-15Change [zh-CN] keyword 'General' to '常规', tdf#88233Eike Rathke1-1/+1
Change-Id: I2f822a839724c7b4c2129d7f1bd1cce025b9289c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94254 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-05-10new loplugin:simplifypointertoboolNoel Grandin1-1/+1
Change-Id: Iff68e8f379614a6ab6a6e0d1bad18e70bc76d76a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91907 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-09compact namespace in i18npool..ooxNoel Grandin1-3/+1
Change-Id: I1de87468b56b86a1eeee09a612551ab119a1be8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93857 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-07ICU requires that a collator charset data array is four-byte-alignedTor Lillqvist1-1/+1
See workdir/UnpackedTarball/icu/source/common/utrie2.cpp, the U_POINTER_MASK_LSB() check: if( length<=0 || (U_POINTER_MASK_LSB(data, 3)!=0) || valueBits<0 || UTRIE2_COUNT_VALUE_BITS<=valueBits ) { *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; return 0; } Apparently the data pointer there is always a multiple of four bytes from the start of the data array that the gencoll_rule code generates. Change-Id: I9b98b01b49b5800e1db8b077a4221b82d59510bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93507 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93603 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-05-06Throw exceptions with useful messagesTor Lillqvist1-4/+22
Change-Id: Ic8e09d31db97c0cf2e1aaf006c96481d12deb2d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93506 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93592 Tested-by: Jenkins
2020-04-27tdf#42982: Improve UNO API error reportingIan Barkley-Yeung1-3/+7
Improve error repoting in BreakIteratorImpl Change-Id: I0be64a758ed81b7a720c8b26af14de6b51cc5dbc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92955 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-04-20fix regressionNoel Grandin1-8/+8
from commit c5424e19338a3edaec3f0459c8ac5d53ca92d9fe loplugin:useuniqueptr in i18npool which would have resulted in the block at line 245 inside #if (U_ICU_VERSION_MAJOR_NUM < 58) never doing anything spotted while doing improvements to my make_shared plugin Change-Id: I79c664c7e4a051f3c764cb49d99870b51b19ce55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92567 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-04-15loplugin:buriedassign in f,h,i*Noel Grandin2-16/+55
Change-Id: Iac753e528e13cb2565832a484e87f88061bbc91e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92239 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-04-08loplugin:flatten in i18npoolNoel Grandin5-71/+75
and workaround a clang crash Change-Id: Ida94c8abb4b2e997d38a7f430e59f73aadf8fcc8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91844 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-04-08fix Korean Hangul Syllable Character order tdf#130067DaeHyun Sung1-236/+1118
i18npool/source/collator/data/ko_charset.txt Korean Hangul syllables ordering is wrong. Some hangul syllables are dissapeared on the text file. Hangul Syllable ordering is already specified on Unicode Code chart. Ref. Hangul Syllables Range: AC00–D7AF https://unicode.org/charts/PDF/UAC00.pdf That commit applies only Hangul Syllables range. Korean Hanja[한자/漢字] range will require investigation. hanja[한자/漢字] is korean name for chinese character. Change-Id: I31e5cbf04294ee3bd6bff3277f9fe1328530ac3a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87018 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2020-04-02Resolves: tdf#131829 [vi-VN] set currency VND decimals to 0Eike Rathke1-5/+5
Change-Id: I865d6b3dcb7f3bff037a4015aa98db2fa2578672 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91593 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2020-03-31Translate German variable namesJohnny_M1-9/+9
Ende -> End Change-Id: I47faa58be14d9e608a4fad61279026d676c185c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91207 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2020-03-25tdf#131153 Correct LongDateDaySeparator for fr_CH and it_CHJean-Louis Fuchs2-8/+8
According to localeplanet [1] [2], in comparison to other software and people living it these areas, the LongDateDaySeparator '.' for fr_CH and it_CH in LibreOffice is not correct. It should be omitted. [1] http://www.localeplanet.com/icu/it-CH/index.html [2] http://www.localeplanet.com/icu/fr-CH/index.html This means for the FormatElement index 22, 23, 24, 25, 26 should be the same in fr_CH/fr_FR and it_CH/it_IT. Change-Id: Ief4de0d8728c7a3bbcfac7f6200f37f2d2c647aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90427 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-03-23sw: add pad-to-5 numberingMiklos Vajna2-0/+31
This is the last padded numbering type that is supported by Word but was not supported by Writer. Change-Id: Ica1a0843897c61a4b569105fd21e5bfe7b5012cb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90912 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-03-22tdf#131464: fix create an index of Writer in Japanese localeJulien Nabet1-2/+2
in i18npool/source/collator/collator_unicode.cxx, we got: 177 // replace algorithm name to implementation name. 178 if (rAlgorithm == "phonetic (alphanumeric first)") 179 aBuf.append("phonetic_alphanumeric_first"); 180 else if (rAlgorithm == "phonetic (alphanumeric last)") 181 aBuf.append("phonetic_alphanumeric_last"); 182 else 183 aBuf.append(rAlgorithm); So don't add extra ja_ before "phonetic..." Also we already add "ja" in buffer with line: 158 aBuf.append("get_").append(rLocale.Language).append("_"); so right functions from ICU will be retrieved Change-Id: I163c3ca4bb4dcfa1e5d29313190c5ba3e6396c4f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90877 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-03-20sw pad-to-4 numbering: add ODF filterMiklos Vajna1-0/+1
This makes the UI work as well. Change-Id: I4e94b85097cc359b257b07ba7517edfab3011093 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90827 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-03-20sw pad-to-4 numbering: add doc model, UNO API and layoutMiklos Vajna2-0/+30
This is the actual numbering the customer needed, pad-to-2 and pad-to-3 was added just for compleness (since Word has it and it's related). Change-Id: I7fdf67488955ab3ee0db169f11fffd21d9cc1e3b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90791 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-03-18sw pad-to-3 numbering: add ODF filterMiklos Vajna1-0/+1
This makes the UI work as well. Change-Id: I8d64b88e57ba3e4fd61afba892f0ee2267f1c8b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90683 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-03-17sw pad-to-3 numbering: add doc model, UNO API and layoutMiklos Vajna2-4/+34
This is similar to the existing padded numbering, but that one padded to 2. Another difference is pad-to-2 has more file format support: pad-to-3 is not supported in DOC and RTF. Change-Id: Ie2ac2691c58a89e181d24d7002cf873ebab380c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90656 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-03-15Check for some more expected calendar elementsEike Rathke2-20/+46
Change-Id: I615ffc60fcc235fcc84848a22fd7bd3b0d8179d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90441 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-03-13Fix for tdf#131297 Add Sundanese [sun-ID] locale data.rizmut3-1/+296
Change-Id: I2a7de5723f8ce82cf10b59ed5f77d2a7dfbb10e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90353 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-03-12Survive missing <Eras> elementEike Rathke1-15/+28
Change-Id: Ic7e609ebac10921b4891877802892fe2cde9ecbe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90406 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-03-03sw padded numbering: add ODF filterMiklos Vajna1-0/+1
ODF allows any string as style:num-format="...", go with "01, 02, 03, ...", because that seems to be consistent with both DefaultNumberingProvider::makeNumberingIdentifier()'s fallback mechanism and with OOXML (which uses "001, 002, 003, ..." for the "pad to 3" case). Change-Id: I5c5c7ee5bd61175afc3e682276e69344852106d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89891 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-03-03sw padded numbering: add layoutMiklos Vajna4-0/+126
lcl_formatArabicZero() looks a bit over-complicated with its hardcoded limit of 2. Word supports limits of 3, 4 and 5 as well, so prepare for handling them in a generic way. Change-Id: If6e5634b11616f0ac05e1387016e22f4b171bbfb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89864 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-03-02Fix Korea's Hanja Upper Numbers codepoint array #tdf130077DaeHyun Sung2-15/+19
fix code point for Korean Numenic strings codepoint array 5 伍 1000 阡 Change-Id: Id6b37fbaf5ca538ae61555d8c2237c66406c4fb9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87240 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2020-03-02can pass length to icu compare hereNoel Grandin1-1/+2
which will skip the need to do strlen() Change-Id: I0c9663f5f51f158179c4e0725c1901d7256173e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89817 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-28Use icu::UnicodeString's readonly-aliasing char16_t* constructorMike Kaganski1-2/+2
Then it stores a pointer to the passed const UTF-16 string, so avoids extra overhead (both memory and CPU) to copy the data Change-Id: I561998d5534f76ae450577ce6fcbd9c08207f2fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89698 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-02-28tdf#130984: use RegexMatcher::region to properly limit the searchMike Kaganski1-7/+14
This allows to pass enough of the text into the matcher to have the context for anchors/assertions, and at the same time, control the search region correctly for the cases where the end position is not at the end of the passed text, like when searching only inside runs of text having specified attributes. Change-Id: I6d1ff379c61cec734c0aa2a1dd913b1a73c5b84d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89660 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-02-22Resolves: tdf#130563 Add predefined 4-digit year date+time formatEike Rathke168-333/+840
Add a predefined NF_DATETIME_SYS_DDMMYYYY_HHMM format code with formatindex="50" to all locale data files, which shifts all reserved area internally generated built-in formats up by one. Reserved area was filled already so that boundary has to be increased as well. Add some flexibility for future additions by setting the new boundary to 65, free first format index to be used by additional locale data formats is 66 now. Adapt all locales to the new boundary. The existing predefined NF_DATETIME_SYSTEM_SHORT_HHMM format code with formatindex="46" mostly was and is used with 2-digit years (stemming back from the old binary format and Excel compatibility), some locales that don't use 2-digit years at all already defined it to 4-digit years. Keep those but move the default="true" attribute (if so) to the new "50" format. Modify populating the format list such that resulting duplicates will be suppressed there as well. Also try to match the new format in ODF import if a long year was requested with date+time. Finally set the new format as default for all *_IT locales. In future changing the default date+time format to 4-digit year is just a matter of moving the default="true" attribute to the new format. Change-Id: Ib16aa9fda0e71b2d03f78e3dd013785de03cd288 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89265 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2020-02-21Resolves: tdf#130772 Add Minangkabau [min-ID] locale dataEike Rathke3-1/+179
Co-authored-by: Peter Farley <publish.workshop@gmail.com> Change-Id: Ia9f4358984617e005ef80fbd30663ac126b86c98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89217 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2020-02-21Resolves: tdf#130579 Add Ligurian [lij-IT] locale dataEike Rathke3-0/+357
Co-authored-by: Jean Maillard <jean@maillard.it> Change-Id: I31aa0dfb83dd6facb564fbbcd22bc5239233da7f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89208 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2020-02-19Related: tdf#130772 Prepare id-ID currency formats to ref-derive fromEike Rathke1-6/+6
Change-Id: I35a5311b9b9b6c5dd76352fdf12d64361bbaa5fa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89024 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2020-02-16GBUILD_TRACE, support for finding out where the build time is spentLuboš Luňák5-0/+20
See instructions in solenv/gbuild/Trace.mk . This generates a file than can be viewed e.g. in the Chromium tracing view. Change-Id: I5f90647c58ca729375525b6daed2d4918adc8188 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88754 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-02-13tdf#130563 Change the default dates format for Italian localeMarina Latini (SUSE)6-12/+12
Change the default dates format from the year with two digits to the year with four digits avoiding misleading interpretations of the years. The change applies to: it_CH, it_IT, fur_IT, lld_IT, sc_IT, vec_IT Change-Id: Ib0d2d72e84a162c0e8daee8d4702173013e60af6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88462 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>