On Tue, 22 Jun 2010 14:00:44 +0800 "Gu, Yang" <[email protected]> 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. _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
