how to get a sentence surrounding selected text - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: how to get a sentence surrounding selected text

how to get a sentence surrounding selected text 2 years 9 months ago #10110

  • juslee
  • juslee's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Hi Redaeepdf team,
I want to know how to get a sentence surrounding selected text.
Please let me know.
Thank you.

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

Last edit: by juslee.

how to get a sentence surrounding selected text 2 years 9 months ago #10115

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
if u mean get textline, u can check '\r' or '\n' on previous and next.
if u mean sentence with words start and end, it shall check by yourself, like punctuation dot, and other analysis.

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

how to get a sentence surrounding selected text 2 years 9 months ago #10128

  • juslee
  • juslee's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Is Radaee PDF software equipped with a function of extracting the related sentence when I click on the word?
(How to extract a selected word and sentence contained the word, when a word is selected.)

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

Last edit: by juslee.

how to get a sentence surrounding selected text 2 years 9 months ago #10138

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
no sentence wrap coding.
but word wrap is equipped.
we check word like this:
if select char is not Latin char, return single char as word.
else :
seek prevous latin char loop to page start, blank or non-latin char.
seek next latin char loop to page end, blank or non-latin char.
return these 2 position, and set select range.

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

how to get a sentence surrounding selected text 2 years 9 months ago #10139

  • juslee
  • juslee's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
if Radaee PDF software is not equipped the function, can the function(extracting sentence contained selected word) can implement using Radaee PDF SDK(android and iOS)?
Thank you.

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

Last edit: by juslee.

how to get a sentence surrounding selected text 2 years 9 months ago #10140

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
i think yes.
u may need using Page.ObjsGetString() to get all texts from page.
and Page.ObjsGetCharIndex() tells u char index clicked.
then analysis sentence by yourself.

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

  • Page:
  • 1
Powered by Kunena Forum