The following Get functions can tell a script of your design the start and end of some selected text such that the Middle function could be used to copy that data to a designated field or variable:Get(ActiveSelectionSize)Get(ActiveSelectionStart)
Thanks but I'm interested in getting bold or highlighted text, not selected text. The workflow I'm interested in is:
- read, highlight text, read, highlight text...move all highlighted text to a new place.
- read, select text, move text
Yet what I am describing fits your original description of what you want:
1) I just want to drag a stylus while reading on a tablet
The selected text will be highlighted when you drag the stylus over that text.
To copy styled text from the text field is also possible, but this will require modifying the contents of your field by styling selected text--which takes more steps and isn't all that different from inserting delimiters. The delimiters just happen to be invisible "tags" that mark which text has a specific style applied.
Will this be needed to support multiple pieces of styled text copied at the same time?
If you set up a calculation field with the GetAsSVG function in order to see the text style tags that otherwise are invisible and such could be searched for specific style tags such as a highlight or bold style in order to parse out the styled text.