From d3fa38fd6852731ac06594958d5e288f996b6a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Jureti=C4=87?= Date: Sun, 27 Jun 2021 21:42:27 -0400 Subject: [PATCH] Format dt and dd using css, add translations back --- output/common.css | 15 +++++++++++++++ process.sh | 4 ++++ split_html.py | 1 + xsl/inc/revo_trd.xsl | 6 +++--- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 output/common.css diff --git a/output/common.css b/output/common.css new file mode 100644 index 0000000..9afac96 --- /dev/null +++ b/output/common.css @@ -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; +} diff --git a/process.sh b/process.sh index 5348650..33f580e 100755 --- a/process.sh +++ b/process.sh @@ -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 \ No newline at end of file diff --git a/split_html.py b/split_html.py index e788bc7..872848b 100644 --- a/split_html.py +++ b/split_html.py @@ -4,6 +4,7 @@ + diff --git a/xsl/inc/revo_trd.xsl b/xsl/inc/revo_trd.xsl index 5855917..6f5da8f 100644 --- a/xsl/inc/revo_trd.xsl +++ b/xsl/inc/revo_trd.xsl @@ -28,10 +28,10 @@ montru tie, cxar ili estas esenca parto de tiuj --> - @@ -50,7 +50,7 @@ montru tie, cxar ili estas esenca parto de tiuj --> - --> +