The following html looks very different in a browser then when imported into a RichView component using the Importer. Is there a way to fix this or create the same thing straight up in a Richview component?
<html><head><meta content="text/html; charset=ISO-8859-1"http-equiv="content-type"><title></title></head><body>
If ab does not equal 0, which is equivalent to
<table style="text-align: left; width: 60px; height: 70px;" border="0" cellpadding="0" cellspacing="0"><tbody><tr align="center"><td style="vertical-align: bottom;">8<span style="font-style: italic;">a</span><sup>3</sup><span style="font-style: italic;">b</span><sup>6</sup><br><hr style="width: 100%; height: 1px;" noshade="noshade"></td></tr><tr align="center"><td style="vertical-align: top;">-2<span style="font-style: italic;">a</span><sup>1</sup><span style="font-style: italic;">b</span><sup>1</sup><br></td></tr></tbody></table>
</body></html>
TRvHtmlImporter
I guess to elaborate on this, does RTF support superscripts or subscripts that HTML appears to support. I want to use this component for a math application which will use these. Even when I paste in the stuff into Word it appears to make an image. Any advice on how I can use this component for super or sub scripts.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
There are two problems with this HTML
1) Table width is defined in CSS attribute which RvHtmlImporter does not support. Adding width="60" in the <table> fixes this problem.
2) Subscripts/superscripts (<sup> and <sub> tags in HTML, there are similar keywords in RTF).
TRichView can move text up or down from the base line (VShift property of text style). The main problem is in decreasing the font style...
I uploaded the modified Html importer:
http://www.trichview.com/resources/file ... mportb.zip
It supports <sup> and <sub> tags. Font size is decreased by half (it's usually more than necessary).
I am sorry, but I am not sure if this new version of HTML importer works with the trial of TRichView. Probably it already refers to new properties of TRichView available for registered users.
1) Table width is defined in CSS attribute which RvHtmlImporter does not support. Adding width="60" in the <table> fixes this problem.
2) Subscripts/superscripts (<sup> and <sub> tags in HTML, there are similar keywords in RTF).
TRichView can move text up or down from the base line (VShift property of text style). The main problem is in decreasing the font style...
I uploaded the modified Html importer:
http://www.trichview.com/resources/file ... mportb.zip
It supports <sup> and <sub> tags. Font size is decreased by half (it's usually more than necessary).
I am sorry, but I am not sure if this new version of HTML importer works with the trial of TRichView. Probably it already refers to new properties of TRichView available for registered users.