can't trust htmltext property!
Stephen Barncard
stephenREVOLUTION at barncard.com
Tue Nov 29 13:10:46 EST 2005
Yes, it would probably work better to roll your own RTF-to-HTML
converters. RTF in rev seems to be pretty solid. I notice that rev's
htmltext uses simple FONT tags inline, which is pretty old stuff in
the web world - in fact not advised. At any rate, the numbers are in
font SIZES 1 - xxx? - not pixels, and some text gets to be HUGE when
presented in a web browser. Perhaps there's a scaling factor, but...
Ideally, an RTF to HTML interpreter would imbed style definitions in
the header, and use DIV tags and .classes for styled paragraphs.
Sounds like a library to me! I love text-munging projects like this...
sqb
>Hi Folks,
>
>why on earth Rev is doing this presentation hack. Put a field on a
>stack, set the htmltext of the field to "<h2>SOMETHING</h2>", now,
>pull the html text property and you'll end with something like:
>
><p></p>
><p></p>
><p><font size="24"><b>SOMETHING</b></font></p>
><p></p>
><p></p>
...
>
>HELL the thing is even loosing attributes!!!! if you use something
>like "<p class="footer">my text</p>" when you check the htmltext
>prop you end up with no attributes. I think it's okay for rev to
>ignore the attribute but to loose it.... things should be simpler.
>
>Damn!
>Andre
--
stephen barncard
s a n f r a n c i s c o
- - - - - - - - - - - -
More information about the use-livecode
mailing list