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

how to get a sentence surrounding selected text

More
10 years 5 months ago - 10 years 5 months ago #10110 by juslee
Hi Redaeepdf team,
I want to know how to get a sentence surrounding selected text.
Please let me know.
Thank you.
Last edit: 10 years 5 months ago by juslee.
More
10 years 5 months ago #10115 by radaee
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.
More
10 years 5 months ago - 10 years 5 months ago #10128 by juslee
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.)
Last edit: 10 years 5 months ago by juslee.
More
10 years 5 months ago #10138 by radaee
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.
More
10 years 5 months ago - 10 years 5 months ago #10139 by juslee
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.
Last edit: 10 years 5 months ago by juslee.
More
10 years 5 months ago #10140 by radaee
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.
Time to create page: 0.522 seconds
Powered by Kunena Forum