Closed BoboTiG closed 3 years ago
Do you know if HTML table can be rendered on Kobo ?
I have no idea for now.
I just tested the following:
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
</tr>
</table>
in constants.py --> WORD_FORMAT, after the definition.
then generate a dictionary with:
$ mkdir nuit
$ python -m wikidict fr --gen-dict=nuit --output=nuit
Load on kobo and search for nuit
Something like this works ! It adds borders to the table and make the text bigger. We just need to find the right size.
<w>
<p>
<a name="{word}"/><b>{current_word}</b>{pronunciation}{gender}
<br/>
<br/>
{etymology}
<ol>{definitions}</ol>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
</tr>
</table>
</p>
<style>
table, th, td {{
border: 1px solid black;
font-size:20pt;
}}
</style>
{var}
</w>
Excellent!
font-size:1em
font-size: 2.5em
font-size: 2.5em
seems quite ideal :+1:
Wikicode:
Output:
Expected: