Kaydet (Commit) 7fdb418a authored tarafından Khaled Hosny's avatar Khaled Hosny

tdf#65344: Don’t put Kashida before any final char

If we didn’t find any known good position, not inserting Kashida at all
is better than inserting it randomly.

Change-Id: I075f8414b7f0a0aeb4d27d372c7eae51f4b5c37b
üst 6723fd9d
......@@ -1056,10 +1056,7 @@ void SwScriptInfo::InitScriptInfo( const SwTextNode& rNode, bool bRTL )
{
// remaining right joiners
// Reh, Zain, Thal,
if ( isRehChar ( cCh ) || // Reh Zain (right joining)
// final form may appear in the middle of word
( 0x60C <= cCh && 0x6FE >= cCh // all others
&& nIdx == nWordLen - 1)) // only at end of word
if ( isRehChar ( cCh ) ) // Reh Zain (right joining)
{
SAL_WARN_IF( 0 == cPrevCh, "sw.core", "No previous character" );
// check if character is connectable to previous character,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment