X-Git-Url: https://pere.pagekite.me/gitweb/text-mekanikerord.git/blobdiff_plain/13c141fddb6b161439ca5b834d7d6fa61afdd7d3..6f024dc94d27ecd51887ed1f1dbff2f3637dc4e7:/Makefile diff --git a/Makefile b/Makefile index 8dcd6b9..e8123be 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ distclean: clean $(RM) glossary.xml $(GENERATED) XMLLINTOPTS = --nonet --noout --xinclude --postvalid -lint: book.xml glossary.xml +lint: book.xml glossary-nb.xml xmllint $(XMLLINTOPTS) book.xml epubcheck: book.epub @@ -24,10 +24,10 @@ epubcheck: book.epub check: lint epubcheck glossary-nb.xml: make-glossary meksme-utf8.xml - ./make-glossary --output $@ nb + LC_COLLATE=nb_NO.UTF-8 ./make-glossary --output $@ nb glossary-sme.xml: make-glossary meksme-utf8.xml - ./make-glossary --output $@ sme + LC_COLLATE=nb_NO.UTF-8 ./make-glossary --output $@ sme DBLATEX_OPTS = \ -b xetex \ @@ -40,23 +40,22 @@ mekaniker-ordbok-nb.pdf: $(SOURCE_NB) dblatex $(DBLATEX_OPTS) -o $@ book.xml mekaniker-ordbok-nb.epub: $(SOURCE_NB) - dbtoepub book.xml -o $@ + dbtoepub -s epub.xsl book.xml -o $@ mekaniker-ordbok-nb.html: $(SOURCE_NB) - xmlto html-nochunks book.xml + xmlto -m pdf.xsl html-nochunks book.xml mv book.html $@ book-sme.xml: book.xml -# dblatex do not understand lang="sme", use "nb" for now -# sed -e 's/-nb/-sme/' -e 's/"nb"/"sme"/' < $^ >$@ - sed -e 's/-nb/-sme/' < $^ >$@ +# dblatex do not understand lang="sme", use "nn" with workarounds in pdf.xsl + sed -e 's/-nb/-sme/' -e 's/"nb"/"nn"/' < $^ >$@ mekaniker-ordbok-sme.pdf: $(SOURCE_SME) dblatex $(DBLATEX_OPTS) -o $@ book-sme.xml mekaniker-ordbok-sme.epub: $(SOURCE_SME) - dbtoepub book-sme.xml -o $@ + dbtoepub -s epub.xsl book-sme.xml -o $@ mekaniker-ordbok-sme.html: $(SOURCE_SME) - xmlto html-nochunks book-sme.xml + xmlto -m pdf.xsl html-nochunks book-sme.xml mv book-sme.html $@