[PATCH 1/2] stkutil: convert text attributes to html

Kristen Carlson Accardi kristen at linux.intel.com
Wed Jun 23 13:51:01 PDT 2010


On Tue, 22 Jun 2010 14:00:44 +0800
"Gu, Yang" <yang.gu at intel.com> wrote:

> 
> When you fix your current algorithm, can we think about these optimizations at the same time?
> 1. The attribute overlapping may split the text into undesirable pieces. That is, we may find opportunities to merge the adjacent ones together at last. 
> 2. Some embedded attributes may be omitted. Taking your above case as example, the second "background-color:#FFFFFF" can be omitted.
> 3. Part of attributes, not the whole, can be merged together. For example: <red bold>a</red bold><red italic>b</red italic> "may" (not always bring benefit) be optimized as <red><bold>a</bold><italic>b</italic></red>. 
> 
> The target of these optimizations is to make to generated html file as small as possible. I guess this is a NP-complete problem, and not easy to handle :) 

My feeling is that we should just worry about getting the 
conversion done in the least complicated and most expedient way.  
We could look at optimizations later if it becomes apparent that
they are needed.



More information about the ofono mailing list