Genii Weblog

Bonus Feature: Suppressed fonts in HTML generation

Wed 14 Sep 2005, 10:00 PM



by Ben Langhinrichs
With 3.50 just recently released, you might think that our "Notes/Domino 7 supported" version would be short on features, but there has been a lot of behind the scenes work done that was not ready for 3.50.  This is the first in a short series of posts on new features coming along with Notes/Domino 7 support.

Suppressed fonts
Web developers have long hated Domino's propensity for throwing font tags into its generated HTML, so when they come to Genii Software and our Midas Rich Text products for HTML generation, they don't want to see the same thing.  We have decided to allow the developer to turn off the fonts.  In fact, we let them turn off almost any text markup.  For example, the following line:

The small green fox jumped over the low brown bush.


would be rendered by Domino as something like:

<font face="Verdana">The </font><font size="1" face="Verdana">small</font><font face="Verdana"> </font><font color="#008000" face="Verdana">green</font><font face="Verdana"> fox jumped </font><i><font face="Verdana">over</font></i><font face="Verdana"> the </font><sub><font face="Verdana">low</font></sub><b><font color="#A13F00" face="Verdana"> brown</font></b><font face="Verdana"> bush.</font>


and by the default Midas Rich Text engine (with standard font tags turned on) as something like:

<font size='2' face='Verdana'>The <font size='1'>small</font> <font color='#008000'>green</font> fox <s>fell</s>jumped <i>over</i> the <sub>low</sub><font color='#a13f00'><b> brown</b></font> bush.</font>


but with the new SuppressFonts='all' parameter turned on, Midas would generate:

The small green fox jumped over the low brown bush.


You can be more selective, and just suppress colors, which would give you:

<font size='2' face='Verdana'>The <font size='1'>small</font> green fox jumped <i>over</i> the <sub>low</sub><b> brown</b> bush.</font>


or you could suppress everything except colors:

The small <font color='#008000'>green</font> fox jumped over the low<font color='#a13f00'> brown</font> bush.

So, with a single parameter, a long term headache for web developers can be eliminated.  Check in tomorrow for a similar feature that supports sparse tables.

Copyright © 2005 Genii Software Ltd.

What has been said:

No documents found