0 Replies Latest reply on May 25, 2011 8:45 AM by OsmanU

    Having issues with underlined text in the TextArea

    OsmanU Level 1

      I am using TextConverter.importToFlow to convert some legacy data we have which was generated by the mx RichTextEditor control. It seems to work fine, except when there are underilnes. Underlines seems to cause the TextArea to just not display some text at all. Here is some example HTML:

       

      <HTML><BODY>
      <TEXTFORMAT LEADING="2"><P ALIGN="left"><FONT FACE="Arial" SIZE="16" COLOR="#ff9900" LETTERSPACING="0" KERNING="0"><B><U>Why is E Ink Easier on the Eyes than LCD?</U></B></FONT></P></TEXTFORMAT>
      <TEXTFORMAT LEADING="2"><P ALIGN="left"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>
      <TEXTFORMAT LEADING="2"><P ALIGN="left"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0">Here are some of the technical reasons:</FONT></P></TEXTFORMAT>
      <TEXTFORMAT LEADING="2"><P ALIGN="justify"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT>
      <TEXTFORMAT LEADING="2"><P ALIGN="justify"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0"> <B>Ambient brightness:</B> Every time your eye switches from a bright screen (like LCD) to the dimmer ambient room, your eyes adjust which may result in fatigue. With E Ink, the page is the same brightness as everything else in the room so there's no adjustment needed.</FONT></P></TEXTFORMAT>
      <TEXTFORMAT LEADING="2"><P ALIGN="justify"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0"> <U>No parallax:</U> Parallax is the apparent displacement of an observed object due to a change in the position of the observer. Text on an E Ink screen does not appear to shift at different viewing angles.</FONT></P></TEXTFORMAT>
      <TEXTFORMAT LEADING="2"><P ALIGN="justify"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0"> <U>Less glare:</U> All E Ink surfaces are treated to be matte like a printed page. Most LCDs are not, which creates glare and decreases legibility.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="left"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0"> <B><I><U>Uniform contrast ratio</U></I></B>: The contrast ratio of an LCD varies detectably with viewing angle. E Ink's contrast is uniform, so you can read comfortably at any angle.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="left"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0"> <FONT FACE="Courier">No aperture ratio loss: LCDs have tiny black gaps between each pixel, but E Ink screens have 100% aperture ratio. The blacks and whites on an E Ink screen are uniform, improving image quality.</FONT></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="center"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="center"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0">Centered text</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="right"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="0">Right text</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="left"><FONT FACE="Arial" SIZE="12" COLOR="#4d4d4d" LETTERSPACING="0" KERNING="1"><FONT KERNING="0">Bulllet OneBullet two</FONT></FONT></P></TEXTFORMAT></BODY></HTML>

       


      This is what it looks like:

       

      Screen shot 2011-05-25 at 11.42.30 AM.png

       

      You can see the RTE at the top is showing the text "no parallax" and it is underlined. The spark textarea at the bottom is missing the text. The text is in the textflow but it is not being displayed. If I replace the <u> tags with <b> tags all the text shows up.

       

      This is a pretty serious error...it is critical that we show all text so I was hoping someone could answer a few questions:

       

      1) Is this a known issue?

      2) Are there any other tags which have this issue?

      3) Is there any other workaround besides removing / replacing the underline tags?

       

      Thanks

       

      Message was edited by: OsmanU: reformatted code section