I've seen many topics covering how to embed color information into rtf strings. Ok, no problem there. I would like to know how to parse color information out of an rtf string. Specifically, when looping through an "for rt in rp do" loop, can I determine what the color is for the rt text? You ask: why would you want to do this? We have code and I've seen a few iterations of code that exports modules to html but they never seem to export the text color information. So ultimately I'm trying to convert colored rtf text when exporting it to html.
Thanks, Rob_S - Mon Sep 22 09:17:41 EDT 2014 |
Re: Parse color information from rich text Hi If you want to convert a rich text string to html, forget everything about rich text parsing
The only thing you have to use dxl, is to read the attribute. All the other things you can do in other languages. Best regards Wolfgang |
Re: Parse color information from rich text Don't know anything about HTML, but maybe it is missing a color table? The rich text chunks will say "the following is in color #5" and the color table resolves it.
No, the "rt" properties are limited in DXL. -Louie |