On Thursday 30 April 2009 21:07:11 Richard Heck wrote: > How much of this do you think could be done using regexes?
When I see this question I always remember the quote: "Sometimes you have a programming problem and it seems like the best solution is to use regular expressions; now you have two problems." :-) The standard answer has always been that in lyx (and latex) we don't care so much about the structure since the document is a linear list of paragraphs... Except when we are talking about the TOC (Outline) feature where now the structure is essential. Except when... With all this said I would expect that in most of the cases a DOM approach would work quite cleanly. > > I hope this makes sense. > > Yes, enough. Really doing this right would take some work. But maybe > trying to do it for HTML, say, might help us to get a sense for what's > needed and where the real problems lie. And we'd get decent HTML output > as a side benefit of the experiment. I agree. More than words we need code. That is why Alex work is important in the scope of this discussion. > Richard -- José Abílio