Ben Langhinrichs

Photograph of Ben Langhinrichs

E-mail address - Ben Langhinrichs







Recent posts

Wed 18 Sep 2019

Perils of PDF 5: Data Confusion



Mon 16 Sep 2019

About that email in Notes



Mon 9 Sep 2019

Perils of PDF 4: Missing and obscured data


December, 2019
SMTWTFS
01 02 03 04 05 06 07
08 09 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

Search the weblog





























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