Skip to content

Commit

Permalink
Format dt and dd using css, add translations back
Browse files Browse the repository at this point in the history
  • Loading branch information
djuretic committed Jun 28, 2021
1 parent 5ba146b commit d3fa38f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
15 changes: 15 additions & 0 deletions output/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
dl dd {
display: inline;
margin: 0;
}
dl dd:after{
display: block;
content: '';
}
dl dt{
display: inline-block;
min-width: 1em;
}
dl.tradukoj dt {
min-width: 6em;
}
4 changes: 4 additions & 0 deletions process.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/usr/bin/env bash
echo "Transformi per XSLT"
xsltproc --path voko-grundo/dtd:revo-fonto/cfg xsl/revohtml.xsl revo-fonto/revo/*.xml > output/vortaro.html
echo "Dividi la grandan dosieron"
python split_html.py
echo "Aldoni la infleksiojn"
for HTML in output/content*.html
do
HTML_INFLECTED=$(echo $HTML | sed -e 's/content/inflected_content/')
python add_inflections.py $HTML $HTML_INFLECTED
done
echo "Krei la .opf dosieron"
python generate_opf.py
1 change: 1 addition & 0 deletions split_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<html xmlns:idx="www.mobipocket.com" xmlns:mbp="www.mobipocket.com" xmlns:xlink="http://www.w3.org/1999/xlink">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<link rel="stylesheet" href="common.css">
</head>
<body>
<mbp:pagebreak/>
Expand Down
6 changes: 3 additions & 3 deletions xsl/inc/revo_trd.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ montru tie, cxar ili estas esenca parto de tiuj -->

<xsl:template name="tradukoj">
<xsl:if test=".//trd">
<!-- <xsl:variable name="self" select="."/>
<xsl:variable name="self" select="."/>
<section class="tradukoj">
<dl class="tradukoj etendebla">
<!- elektu por chiu lingvo unu reprezentanton ->
<!-- elektu por chiu lingvo unu reprezentanton -->
<xsl:for-each select="document($lingvoj_cfg)/lingvoj/lingvo">
<xsl:sort lang="eo"/>
<xsl:variable name="lng" select="@kodo"/>
Expand All @@ -50,7 +50,7 @@ montru tie, cxar ili estas esenca parto de tiuj -->
</xsl:for-each>
</xsl:for-each>
</dl>
</section> -->
</section>
</xsl:if>
</xsl:template>

Expand Down

0 comments on commit d3fa38f

Please sign in to comment.