[Libreoffice-bugs] [Bug 104597] Text runs of RTL scripts (e.g. Arabic, Hebrew, Persian) from imported PDF are reversed, PDFIProcessor::mirrorString not behaving

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 16 00:50:05 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=104597

--- Comment #52 from Kevin Suo <suokunlong at 126.com> ---
(In reply to V Stuart Foote from comment #51)
As I said, if all the following evaluate true:
'''
                if( (pCur->FontId == pNext->FontId || isSpaces(pNext)) &&
                    rCurGC.FillColor.Red == rNextGC.FillColor.Red &&
                    rCurGC.FillColor.Green == rNextGC.FillColor.Green &&
                    rCurGC.FillColor.Blue == rNextGC.FillColor.Blue &&
                    rCurGC.FillColor.Alpha == rNextGC.FillColor.Alpha &&
                    (rCurGC.Transformation == rNextGC.Transformation ||
notTransformed(rNextGC))
                    )

then the chharacters will be combined into strings and then the mirror code
would be triggered which will reverse the reversed char sequence, thus produce
correct ones in the XML. 

So the issue now is how to modify the last condition "(rCurGC.Transformation ==
rNextGC.Transformation || notTransformed(rNextGC))" to correctly detect the
current char is of the same transformation thus they should be combined into
string.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210716/78706c78/attachment.htm>


More information about the Libreoffice-bugs mailing list