aiyuyun2015 / wiki2latex

Automatically exported from code.google.com/p/wiki2latex
0 stars 0 forks source link

background and text color in tables and other html problems. Support span-tags. #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There seems to be some deficiencies in the way wiki2latex parses some html
code. Take this example:

{| width="334" cellspacing="1" cellpadding="1" border="0" style=""
|-
| width="20%" bgcolor="#3366ff" | <span style="color: rgb(255, 255,
255);">'''SRAD'''</span> 
| Software Radio board for Communication<br>

it gives this:

\multicolumn{}{}{ <span style="color: rgb(255, 255,
255);">\textbf{SRAD}</span>}
 &  Software Radio board for Communication\\\tabularnewline \hline

It should take care of the span tag to allow font color change, and use the
included colortbl package to allow per cell/column/row color changes.

I've tried to change stuff in the doHTML function, it seems like it never
gets there when parsing the table.
Besides that... the span tag may appear anywhere, not just in a table. How
do we take care of it?

Original issue reported on code.google.com by bseo...@gmail.com on 5 Dec 2008 at 2:24

GoogleCodeExporter commented 8 years ago
Span tags are currently not rendered. I intend to add some basic support for 
it, but
I think it will only parse css-classes, not arbitrary css-rules residing in
style-attributes.

Changing summary to support span-tags.

Original comment by hansgeorg.kluge@gmail.com on 8 Dec 2008 at 9:16

GoogleCodeExporter commented 8 years ago

Original comment by hansgeorg.kluge@gmail.com on 17 Feb 2011 at 10:53