- Posts: 3
- 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
how to get a sentence surrounding selected text
10 years 5 months ago - 10 years 5 months ago #10110
by juslee
how to get a sentence surrounding selected text was created by juslee
Hi Redaeepdf team,
I want to know how to get a sentence surrounding selected text.
Please let me know.
Thank you.
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.
10 years 5 months ago #10115
by radaee
Replied by radaee on topic how to get a sentence surrounding selected text
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.
if u mean sentence with words start and end, it shall check by yourself, like punctuation dot, and other analysis.
10 years 5 months ago - 10 years 5 months ago #10128
by juslee
Replied by juslee on topic how to get a sentence surrounding selected text
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.)
(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.
10 years 5 months ago #10138
by radaee
Replied by radaee on topic how to get a sentence surrounding selected text
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.
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.
10 years 5 months ago - 10 years 5 months ago #10139
by juslee
Replied by juslee on topic how to get a sentence surrounding selected text
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.
Thank you.
Last edit: 10 years 5 months ago by juslee.
10 years 5 months ago #10140
by radaee
Replied by radaee on topic how to get a sentence surrounding selected text
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.
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