I'm in the process of evaluating TRichView for use with a mobile (Android and iOS) companion data collection app. With WPTools (not mobile app compatible), it allows me to have a bookmark span multiple paragraphs which we use to link bookmarked text for use in a report summary and looks like this in RTF:
Code: Select all
{\*\bkmkstart $linked:Monitor}
\f0\cf0 line one\par
\plain\f0\fs20\cf0 line two\par
\plain\f0\fs20\cf0 line three
{\*\bkmkend $linked:Monitor}
However, when importing this RTF into a TRichViewEdit, two things occur:
- the bookmark name is modified (not a big deal)
- the bookmark start tag seems to auto generate the end tag and ignores the actual end tag
Code: Select all
{\*\bkmkstart bmk_linked_Monitor}{\*\bkmkend bmk_linked_Monitor}
line one
\par line two
\par line three
Having a bookmark span multiple paragraphs might be unusual, but is it possible to allow for this? Or is there something I could use in TRichView where I basically could pre-convert the source RTF so that it will allow for the same functionality? I would convert the RTF when sending data to our mobile companion app (replacing the bookmark with something else), and then convert it back to bookmarks when receiving the RTF back to our Windows app that uses WPTools. (way way way too late to convert our Windows app from WPTools to TRichView unfortunately). FWIW, not a fan of WPTools and TRichView looks perfect for my needs after experimenting with it for just a couple of days.