Unicode and HTML for Fields
Posted: Sat Oct 20, 2012 8:29 am
Hi All,
I have various simple html files translated into asian languages (e.g. Thai) that contain html tags to provide bold, font colours, etc. I would like to be able to load these into a normal Field object on a card. I can get the utf8 text to display fine, but the html tags show (using unicodetext property), or I can show gobbledigook text with bold/colours/etc (using htmltext property).
Is there a way to have the best of both worlds like this? Or am I stuck with messing around with a browser view or something? Has anyone else done anything similar with success?
For further information the html files have extra tags in them that I pre-parse to let the program know things like pictures to use (and where they should appear) and also to tell the program to split the text. These are easy to get via basic text location functions, etc. So I'm not too interested in using RTF formatting (as I don't know how to split that or insert data into the text-stream)
Any ideas would be great.
Cheers,
Dave
I have various simple html files translated into asian languages (e.g. Thai) that contain html tags to provide bold, font colours, etc. I would like to be able to load these into a normal Field object on a card. I can get the utf8 text to display fine, but the html tags show (using unicodetext property), or I can show gobbledigook text with bold/colours/etc (using htmltext property).
Is there a way to have the best of both worlds like this? Or am I stuck with messing around with a browser view or something? Has anyone else done anything similar with success?
For further information the html files have extra tags in them that I pre-parse to let the program know things like pictures to use (and where they should appear) and also to tell the program to split the text. These are easy to get via basic text location functions, etc. So I'm not too interested in using RTF formatting (as I don't know how to split that or insert data into the text-stream)
Any ideas would be great.
Cheers,
Dave