i18npool/source/breakiterator/breakiteratorImpl.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit f62355a601e5f67b87e1061a10a4a612a9cdc839 Author: Khaled Hosny <kha...@libreoffice.org> AuthorDate: Thu Jul 6 11:10:45 2023 +0300 Commit: خالد حسني <kha...@libreoffice.org> CommitDate: Thu Jul 6 16:04:59 2023 +0200 tdf#52577: Classify superscript numbers in Latin-1 block as ScriptType::WEAK So that they inherit the script from the surrounding text like the rest if superscripts and subscripts. Change-Id: Ib5c19f84b080eca0f24009a4e6dd2dd4019441d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154094 Tested-by: Jenkins Reviewed-by: خالد حسني <kha...@libreoffice.org> (cherry picked from commit 0597a9f4924c35e93f9188a01048c9e94fe6b206) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154118 diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx index 5402caa7a469..d0651772b45e 100644 --- a/i18npool/source/breakiterator/breakiteratorImpl.cxx +++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx @@ -526,6 +526,9 @@ bool getCompatibilityScriptClassByBlock(sal_uInt32 currentChar, sal_Int16 &rScri // Few Spacing Modifier Letters that can be Bopomofo tonal marks. else if ( 0x2CA == currentChar || 0x2CB == currentChar || 0x2C7 == currentChar || 0x2D9 == currentChar ) rScriptType = ScriptType::WEAK; + // tdf#52577 superscript numbers should be we weak. + else if ( 0xB2 == currentChar || 0xB3 == currentChar || 0xB9 == currentChar ) + rScriptType = ScriptType::WEAK; // workaround for Coptic else if ( 0x2C80 <= currentChar && 0x2CE3 >= currentChar) rScriptType = ScriptType::LATIN;