]> pere.pagekite.me Git - text-mekanikerord.git/commitdiff
Clean up book front matter and metadata.
authorPetter Reinholdtsen <pere@hungry.com>
Sun, 16 Aug 2020 05:53:32 +0000 (07:53 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Sun, 16 Aug 2020 05:53:32 +0000 (07:53 +0200)
Makefile
book.xml
dedication.xml [deleted file]
make-glossary
pdf.xsl

index cda252c508cc07857a6cfbd6494761083cc6c4ec..d3fdf65028fbc6d19b52e8365e48e5499f9e72d8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 SOURCE = book.xml glossary.xml
+
 all: book.pdf book.epub
 
 clean:
index 61c0131c3dd5f02385762903bf6ddafb5937cb08..8ae4d2fe103f2e5778983722124494297682d151 100644 (file)
--- a/book.xml
+++ b/book.xml
@@ -3,37 +3,38 @@
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" >
 <book id="index" lang="nb">
 <bookinfo>
- <title>Mekanikerordbok</title>
+ <title>Ordbok for mekanikere</title>
 
- <abbrev>norsk/engelsk/nordsamisk/svensk/finsk</abbrev>
+ <abbrev></abbrev>
 
- <subtitle></subtitle>
+ <!-- hack to get editor information on the front page, as dblatex do
+      not show anything from the authorgroup blow -->
+ <subtitle>Petter Reinholdtsen (red.)</subtitle>
 
  <pubdate>2020-08-14</pubdate>
 
- <edition>1</edition>
+ <!-- edition>1</edition -->
 
  <releaseinfo>testutgave</releaseinfo>
 
  <authorgroup>
-  <author>
+  <editor>
    <firstname>Petter</firstname>
    <surname>Reinholdtsen</surname>
-  </author>
+  </editor>
+  <editor>
+   <firstname>Svein</firstname>
+   <surname>Lund</surname>
+  </editor>
+  <othercredit>
+   <firstname>Aimo</firstname>
+   <surname>Aikio</surname>
+  </othercredit>
  </authorgroup>
 
  <subjectset scheme="libraryofcongress">
    <subject>
-     <subjectterm>Intellectual property&mdash;United States.</subjectterm>
-   </subject>
-   <subject>
-     <subjectterm>Mass media&mdash;United States.</subjectterm>
-   </subject>
-   <subject>
-     <subjectterm>Technological innovations&mdash;United States.</subjectterm>
-   </subject>
-   <subject>
-     <subjectterm>Art&mdash;United States.</subjectterm>
+     <subjectterm>Machine-shop practice.</subjectterm>
    </subject>
  </subjectset>
 
    </para>
 
    <para>
-Denne boken er lisensieret under en Creative Commons Navngivelse 4.0
-Internasjonal lisens.  For mer informasjon om lisensen, besøk
+Denne boken er gjort tilgjengelig med vilkårene beskrevet i lisensen
+Creative Commons Navngivelse 4.0 Internasjonal.  For mer informasjon, besøk
 <ulink url="http://creativecommons.org/licenses/by/4.0/"/>.
    </para>
+
+   <para>https://example.com/</para>
+
+   <para>Boken er tilgjengelig som et git-depot fra <ulink
+   url="https://example.com/"/>.</para>
+
+   <para>
+     Boken er basert på en Filemaker-database med grunnlagsdata
+     utviklet på initiativ og i regi av Svein Lund, i samarbeid med
+     Aimo Aikio.  Den samme databasen dannet grunnlaget for den
+     samiske ordboken «Mekanihkkársánit : Mekanikerord = Mekaanisen
+     alan sanasto = Mechanic's words» fra 1999.  Databasen er donert
+     til Petter Reinholdtsen av Svein Lund.
+   </para>
+
+   <para>ISBN 978-82-93828-02-0 (papirbok)</para>
+
+   <para>ISBN 978-82-93828-03-7 (epub)</para>
+
  </legalnotice>
 
  <abstract>
-  <title>Flerspråklig mekanikerordbok</title>
   <para>
-    Ordbok for mekanikere med informasjon på norsk, nordsamisk,
-    svensk, finsk og engelsk.
+    Ordbok for mekanikere med informasjon på norsk, engelsk, nordsamisk,
+    svensk og finsk.
   </para>
  </abstract>
 
- <biblioid class="isbn">978-82-?</biblioid>
+ <!-- biblioid class="isbn">978-82-93828-02-0</biblioid -->
 
-<!-- LCCN from
-     http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?v3=1&DB=local&CMD=010a+2003063276&CNT=10+records+per+page
-     -->
-  <biblioid class="libraryofcongress">?</biblioid>
-
-  <biblioid class="uri">http://example.com/</biblioid>
+ <!-- biblioid class="uri">http://example.com/</biblioid -->
 
 </bookinfo>
 
-<xi:include href="dedication.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
-
 <xi:include href="glossary.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
 
 </book>
diff --git a/dedication.xml b/dedication.xml
deleted file mode 100644 (file)
index e267d9c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version='1.0' encoding='UTF-8' ?>
-<dedication>
-
-  <title>Hilsner og takk</title>
-    <para>Noen ord om hvem som bør takkes.</para>
-</dedication>
index 6a15ed6b7d51e170e799989f411b7b6d7744dd34..612fa52b6359006f256c5a0d3f1fbc1757086883 100755 (executable)
@@ -73,7 +73,7 @@ def make_glossary_docbook(lang, langcodes):
                 if lang and '[' not in w:
                     w += "[%s]" % lang
                 entry.append(E.indexterm(E.primary(w)))
-    glossary = E.glosslist()
+    glossary = E.glossary()
     for e in sorted(words, key=lambda x: langsort(lang, x)):
         ldesc = 'desc-%s' % lang
         if 'topic' in e and lang in topicmap:
diff --git a/pdf.xsl b/pdf.xsl
index 5d8f6769dc221e98b13e13bfc259b960056baf19..c163adf4daddc1422fe318470236f5c0d73bb2f7 100644 (file)
--- a/pdf.xsl
+++ b/pdf.xsl
@@ -48,4 +48,7 @@
     </xsl:text>
   </xsl:param>
 
+  <!-- disable chapter numbering for glossary -->
+  <xsl:param name="glossary.numbered">0</xsl:param>
+
 </xsl:stylesheet>