- Posts: 11
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
I
IP: 37.183.44.177
6 years 2 months ago #14826
by nermeen
Replied by nermeen on topic Problem with extracting Persian text
Dear User,
For RtoL languages (Arabic, Persian,...), you need to set Global.selRTOL = true before calling Page.ObjsStart()
This should fix the reversed text issue.
For RtoL languages (Arabic, Persian,...), you need to set Global.selRTOL = true before calling Page.ObjsStart()
This should fix the reversed text issue.
IP: 37.183.44.177
6 years 2 months ago - 6 years 2 months ago #14840
by nermeen
Replied by nermeen on topic Problem with extracting Persian text
There is no direct method, what you can do is, you can get chars unicode value and check if they are included into RtoL unicode blocks (for example:
en.wikipedia.org/wiki/Arabic_script_in_Unicode
)
To get the char's unicode value:
Note the unicode value is returned in decimal representation, so you need to convert it to hex.
To get the char's unicode value:
Code:
...
page.ReflowStart(m_layout.vGetWidth(), 1, true)
if(page.ReflowGetParaCount() > 0) {
...
page.ReflowGetCharUnicode(iparagraph, ichar)
}
...
Last edit: 6 years 2 months ago by nermeen.
Time to create page: 0.398 seconds