Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

I 4 years 3 months ago #14825

  • AABBDD
  • AABBDD's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
H

Please Log in or Create an account to join the conversation.

Last edit: by AABBDD.

Problem with extracting Persian text 4 years 3 months ago #14826

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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.
The following user(s) said Thank You: AABBDD

Please Log in or Create an account to join the conversation.

I 4 years 3 months ago #14829

  • AABBDD
  • AABBDD's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
v

Please Log in or Create an account to join the conversation.

Last edit: by AABBDD.

Problem with extracting Persian text 4 years 3 months ago #14840

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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:
...
page.ReflowStart(m_layout.vGetWidth(), 1, true)
if(page.ReflowGetParaCount() > 0) {
     ...
     page.ReflowGetCharUnicode(iparagraph, ichar)
}
...
Note the unicode value is returned in decimal representation, so you need to convert it to hex.

Please Log in or Create an account to join the conversation.

Last edit: by nermeen.
  • Page:
  • 1
Powered by Kunena Forum