From 600c6460a6ffa169ad0cc9bed4b77c545cc50f52 Mon Sep 17 00:00:00 2001 From: "Thomas Lange [tl]" Date: Tue, 24 Aug 2010 16:46:29 +0200 Subject: cws tl82: #i113785# ligatures for spell checking will no longer break words --- i18npool/source/breakiterator/breakiteratorImpl.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'i18npool') diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx index e4e08d42df43..d22203d100c7 100644 --- a/i18npool/source/breakiterator/breakiteratorImpl.cxx +++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx @@ -488,6 +488,10 @@ sal_Int16 BreakIteratorImpl::getScriptClass(sal_uInt32 currentChar) // workaround for Coptic else if ( 0x2C80 <= currentChar && 0x2CE3 >= currentChar) nRet = ScriptType::LATIN; + // work-around for ligatures (see http://www.unicode.org/charts/PDF/UFB00.pdf) + else if ((0xFB00 <= currentChar && currentChar <= 0xFB06) || + (0xFB13 <= currentChar && currentChar <= 0xFB17)) + nRet = ScriptType::LATIN; else { UBlockCode block=ublock_getCode(currentChar); sal_uInt16 i; -- cgit