Menu

#5 Change SimiDic Builder to strip out all HTML and Pango formatting for the definition previews

1.0
open
nobody
None
2013-04-19
2013-04-19
amosbatto
No

Currently, many HTML and Pango codes are displayed by SimiDic in the definition previews when doing searches. For example, (strikeout), , , etc.

The code of SimiDic Builder needs to be changed to convert all HTML to text for the text which is used in preview mode during searches. Also it needs to do a search for anything matching <X>...</X> to eliminate all the Pango markup codes (or do a better job of converting Pango markup to HTML).

Discussion

  • amosbatto

    amosbatto - 2013-04-19

    I see that SourceForge converts everything to HTML when I post. Here is the same message so you can read the HTML codes :

    Currently, many HTML and Pango codes are displayed by SimiDic in the definition previews when doing searches. For example: <s>, <font color="blue">, <span foreground="blue"> etc.

    The code of SimiDic Builder needs to be changed to convert all HTML to text for the text which is used in preview mode during searches. Also it needs to do a search for anything matching <X>...</X> to eliminate all the Pango markup codes (or do a better job of converting Pango markup to HTML).

     

    Last edit: amosbatto 2013-04-19
  • amosbatto

    amosbatto - 2013-04-19

    For some reason, SimiDic Builder only recognizes color codes specified as #RRGGBB, but not by their color names, such as "red" or "blue.

    Therefore, SimiDic can't handle <span foreground="blue">, but it can handle <span foreground="#0000FF"> when displaying in the preview mode during searchs. SimiDic correctly handles both types of color codes when displaying the full definition.

    At any rate, correctly converting HTML and Pango to text will solve this problem.

     

    Last edit: amosbatto 2013-04-19

Anonymous
Anonymous

Add attachments
Cancel