Here's an example.  Within the article on the word "ouvrage" in the
french wiktionary in the section on ouvrage as a verb, is this
template:
{{fr-verbe-flexion|ind.p.1s=oui|ind.p.3s=oui|sub.p.1s=oui|sub.p.3s=oui|
imp.p.2s=oui|'=oui}

This templates expands to a table that uses rowspan to control the
table structure.  I can regenerate the input and the incorrect output
when I am next back at my office.
I have now made a temporary fix which involves first walking the tree
before cleaning and marking each table row with an indication of all
the rowspans that cover it, and then decrementing the rowspan values
as the tree is cleaned.  It is not very clean or efficient code, but
it fixes the easy cases.
-- Mel


On Jan 17, 9:55 am, Volker Haas <[email protected]> wrote:
> On 12/25/2010 02:46 PM, Mel wrote:
>
> > I'm using mwlib to parse the French version of wiktionary.  This
> > dictionary (and other languages, I expect) makes extensive use of
> > tables to display conjugated forms of verbs. In these tables, almost
> > all rows are display:none.  TreeCleaner quite nicely removes these
> > inVisible rows.  That's great.
>
> > However these tables also make extensive use of rowspan attributes.
> > And the rowspan values include the large number of inVisible rows.
> > When TreeCleaner removes the inVisible rows, it does not update the
> > values of rowspan.
>
> >   As a result, the output tables are badly broken.
>
> > Has anyone else encountered this problem?  Has anyone found a way to
> > fix it?
>
> Hi Mel,
> this is indeed an interesting problem. Could you supply a minimal
> example, maybe it's easier to fix than I currently imagine.
>
> Regards,
> Volker
>
> > -- Mel
>
> --
> volker haas                 brainbot technologies ag
> fon +49 6131 2116394        boppstra e 64
> fax +49 6131 2116392        55118 mainz
> [email protected]    http://www.brainbot.com/

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to