Front page

Scripts for building manuals

606d6165842d4005a0333617b62bb973
FACIAL HAZARDOUS FALLOUT

From: Remi Rampin <remirampin@gmail.com>
Date: Mon,  3 Jul 2017 13:06:30 -0400

   ---
    manual/Makefile       | 35 ++++++++++++++++++++++-------------
    manual/format-de-html | 39 ---------------------------------------
    manual/format-de-pdf  | 38 --------------------------------------
    manual/format-html    |  7 +++++--
    manual/format-pdf     |  8 ++++++--
    5 files changed, 33 insertions(+), 94 deletions(-)
    delete mode 100755 manual/format-de-html
    delete mode 100755 manual/format-de-pdf
   
   diff --git a/manual/Makefile b/manual/Makefile
   index ac291953..b8c22cf5 100644
   --- a/manual/Makefile
   +++ b/manual/Makefile
   @@ -18,8 +18,9 @@
    
    TITLE_EN = Backups with Obnam
    TITLE_DE = Backups mit Obnam
   -TITLE_FR = Sauvegardes avec Obnam
    TRANS_DE = Übersetzung: Jan Niggemann (jn@hz6.de)
   +TITLE_FR = Sauvegardes avec Obnam
   +TRANS_FR = Traduction : Pierrick Martinez, Remi Rampin
    AUTHOR = Lars Wirzenius (liw@liw.fi)
    VERSION = Version $(shell git describe || python ../setup.py --version)
    
   @@ -27,13 +28,13 @@ en_sources = $(shell ls en/*.mdwn)
    fr_sources = $(shell ls fr/*.mdwn)
    de_sources = $(shell ls de/*.mdwn)
    pdfs = \
   -        obnam-manual.en.pdf \
   +	obnam-manual.en.pdf \
    	obnam-manual.fr.pdf \
   -        obnam-manual.de.pdf
   +	obnam-manual.de.pdf
    htmls = \
   -        obnam-manual.en.html \
   +	obnam-manual.en.html \
    	obnam-manual.fr.html \
   -        obnam-manual.de.html
   +	obnam-manual.de.html
    
    all: html pdf
    
   @@ -42,25 +43,33 @@ html: $(htmls)
    pdf: $(pdfs)
    
    obnam-manual.en.pdf: Makefile $(en_sources)
   -	./format-pdf $@ "$(TITLE_EN)" "$(AUTHOR)" "$(VERSION)" $(en_sources)
   +	./format-pdf $@ \
   +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "english" "" \
   +		$(en_sources)
    
    obnam-manual.en.html: Makefile $(en_sources) ../obnam.css
   -	./format-html $@ "$(TITLE_EN)" "$(AUTHOR)" "$(VERSION)" $(en_sources)
   +	./format-html $@ \
   +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "english" "" \
   +		$(en_sources)
    
    obnam-manual.fr.pdf: Makefile $(fr_sources)
   -	./format-pdf $@ "$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" $(fr_sources)
   +	./format-pdf $@ \
   +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "french" "$(TRANS_FR)" \
   +		$(fr_sources)
    
    obnam-manual.fr.html: Makefile $(fr_sources) ../obnam.css
   -	./format-html $@ "$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" $(fr_sources)
   +	./format-html $@ \
   +		"$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" "french" "$(TRANS_FR)" \
   +		$(fr_sources)
    
    obnam-manual.de.pdf: Makefile $(de_sources)
   -	./format-de-pdf $@ \
   -		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "$(TRANS_DE)" \
   +	./format-pdf $@ \
   +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "german" "$(TRANS_DE)" \
    		$(de_sources)
    
    obnam-manual.de.html: Makefile $(de_sources) ../obnam.css
   -	./format-de-html $@ \
   -		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "$(TRANS_DE)" \
   +	./format-html $@ \
   +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "german" "$(TRANS_DE)" \
    		$(de_sources)
    
    clean:
   diff --git a/manual/format-de-html b/manual/format-de-html
   deleted file mode 100755
   index 5411942c..00000000
   --- a/manual/format-de-html
   +++ /dev/null
   @@ -1,39 +0,0 @@
   -#!/bin/sh
   -# Copyright 2014  Lars Wirzenius
   -# Copyright 2014  Jan Niggemann
   -#
   -# This program is free software: you can redistribute it and/or modify
   -# it under the terms of the GNU General Public License as published by
   -# the Free Software Foundation, either version 3 of the License, or
   -# (at your option) any later version.
   -#
   -# This program is distributed in the hope that it will be useful,
   -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   -# GNU General Public License for more details.
   -#
   -# You should have received a copy of the GNU General Public License
   -# along with this program.  If not, see <http://www.gnu.org/licenses/>.
   -#
   -# =*= License: GPL-3+ =*=
   -
   -set -eu
   -
   -OUTPUT="$1"
   -TITLE="$2"
   -AUTHOR="$3"
   -VERSION="$4"
   -TRANS_DE="$5"
   -shift 5
   -
   -cat > 000.mdwn <<EOF
   -% $TITLE
   -% $AUTHOR
   -  $TRANS_DE
   -% $VERSION
   -EOF
   -
   -pandoc  -H ../obnam.css --smart --toc --chapters --number-sections \
   -    --standalone --self-contained -V lang=german -V geometry:a4paper \
   -    -o "$OUTPUT" 000.mdwn "$@"
   -rm -f 000.mdwn
   diff --git a/manual/format-de-pdf b/manual/format-de-pdf
   deleted file mode 100755
   index 15ef78eb..00000000
   --- a/manual/format-de-pdf
   +++ /dev/null
   @@ -1,38 +0,0 @@
   -#!/bin/sh
   -# Copyright 2014,2016  Lars Wirzenius
   -# Copyright 2014,2017  Jan Niggemann
   -#
   -# This program is free software: you can redistribute it and/or modify
   -# it under the terms of the GNU General Public License as published by
   -# the Free Software Foundation, either version 3 of the License, or
   -# (at your option) any later version.
   -#
   -# This program is distributed in the hope that it will be useful,
   -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   -# GNU General Public License for more details.
   -#
   -# You should have received a copy of the GNU General Public License
   -# along with this program.  If not, see <http://www.gnu.org/licenses/>.
   -#
   -# =*= License: GPL-3+ =*=
   -
   -set -eu
   -
   -OUTPUT="$1"
   -TITLE="$2"
   -AUTHOR="$3"
   -VERSION="$4"
   -TRANS_DE="$5"
   -shift 5
   -
   -cat > 000.mdwn <<EOF
   -% $TITLE
   -% $AUTHOR
   -  $TRANS_DE
   -% $VERSION
   -EOF
   -
   -pandoc --smart --toc --chapters --number-sections \
   -    -V lang=german -V geometry:a4paper -o "$OUTPUT" 000.mdwn "$@"
   -rm -f 000.mdwn
   diff --git a/manual/format-html b/manual/format-html
   index 14bc3750..238174a8 100755
   --- a/manual/format-html
   +++ b/manual/format-html
   @@ -22,15 +22,18 @@ OUTPUT="$1"
    TITLE="$2"
    AUTHOR="$3"
    VERSION="$4"
   -shift 4
   +LANG="$5"
   +TRANSLATOR="$6"
   +shift 6
    
    cat > 000.mdwn <<EOF
    % $TITLE
    % $AUTHOR
   +  $TRANSLATOR
    % $VERSION
    EOF
    
    pandoc  -H ../obnam.css --smart --toc --chapters --number-sections \
   -    --standalone --self-contained -V geometry:lettersize \
   +    --standalone --self-contained -V lang="$LANG" -V geometry:a4paper \
        -o "$OUTPUT" 000.mdwn "$@"
    rm -f 000.mdwn
   diff --git a/manual/format-pdf b/manual/format-pdf
   index bba45c6e..e1cf9daf 100755
   --- a/manual/format-pdf
   +++ b/manual/format-pdf
   @@ -22,13 +22,17 @@ OUTPUT="$1"
    TITLE="$2"
    AUTHOR="$3"
    VERSION="$4"
   -shift 4
   +LANG="$5"
   +TRANSLATOR="$6"
   +shift 6
    
    cat > 000.mdwn <<EOF
    % $TITLE
    % $AUTHOR
   +  $TRANSLATOR
    % $VERSION
    EOF
    
   -pandoc --smart --toc --chapters --number-sections -o "$OUTPUT" 000.mdwn "$@"
   +pandoc --smart --toc --chapters --number-sections \
   +    -V lang="$LANG" -V geometry:a4paper -o "$OUTPUT" 000.mdwn "$@"
    rm -f 000.mdwn
From: Michele Alessandrini <m.alessandrini@univpm.it>
Date: Mon, 3 Jul 2017 15:52:34 +0200

   Hi, just a consideration, I see that for the German translation you 
   created two separate scripts, format-de-pdf and format-de-html, 
   different from the generic ones because you specify the language and the 
   paper.
   Now if I had to write an Italian translation I'd be tempted to do the 
   same for my language, because I think that specifying the language is 
   important for the underlying latex, think hyphenation, etc.
   So what about leaving one only generic script and passing the language 
   as another parameter?
   
   Bye
   Michele
   
    
    
    
    
   La seguente informativa e' inserita in automatico dal sistema al fine esclusivo della realizzazione dei fini istituzionali dell'ente. 
    
    
   INVESTI NELLA RICERCA 
    
   il 5 per mille all'Universita' Politecnica delle Marche e' un investimento per i giovani, per il loro futuro - C.F. 00382520427 
    
   http://www.univpm.it/5_per_mille 
   
   _______________________________________________
   obnam-dev mailing list
   obnam-dev@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
From: Jan Niggemann <jn@hz6.de>
Date: Tue, 04 Jul 2017 14:00:19 +0200

   Have not yet applied and tested, but looking at the code it "looks OK".
   I'll try to squeeze in some time to test this, either this weekend or  
   next one.
   
   -- jan
   
   Zitat von Remi Rampin <remirampin@gmail.com>:
   
   > ---
   >  manual/Makefile       | 35 ++++++++++++++++++++++-------------
   >  manual/format-de-html | 39 ---------------------------------------
   >  manual/format-de-pdf  | 38 --------------------------------------
   >  manual/format-html    |  7 +++++--
   >  manual/format-pdf     |  8 ++++++--
   >  5 files changed, 33 insertions(+), 94 deletions(-)
   >  delete mode 100755 manual/format-de-html
   >  delete mode 100755 manual/format-de-pdf
   >
   > diff --git a/manual/Makefile b/manual/Makefile
   > index ac291953..b8c22cf5 100644
   > --- a/manual/Makefile
   > +++ b/manual/Makefile
   > @@ -18,8 +18,9 @@
   >
   >  TITLE_EN = Backups with Obnam
   >  TITLE_DE = Backups mit Obnam
   > -TITLE_FR = Sauvegardes avec Obnam
   >  TRANS_DE = Übersetzung: Jan Niggemann (jn@hz6.de)
   > +TITLE_FR = Sauvegardes avec Obnam
   > +TRANS_FR = Traduction : Pierrick Martinez, Remi Rampin
   >  AUTHOR = Lars Wirzenius (liw@liw.fi)
   >  VERSION = Version $(shell git describe || python ../setup.py --version)
   >
   > @@ -27,13 +28,13 @@ en_sources = $(shell ls en/*.mdwn)
   >  fr_sources = $(shell ls fr/*.mdwn)
   >  de_sources = $(shell ls de/*.mdwn)
   >  pdfs = \
   > -        obnam-manual.en.pdf \
   > +	obnam-manual.en.pdf \
   >  	obnam-manual.fr.pdf \
   > -        obnam-manual.de.pdf
   > +	obnam-manual.de.pdf
   >  htmls = \
   > -        obnam-manual.en.html \
   > +	obnam-manual.en.html \
   >  	obnam-manual.fr.html \
   > -        obnam-manual.de.html
   > +	obnam-manual.de.html
   >
   >  all: html pdf
   >
   > @@ -42,25 +43,33 @@ html: $(htmls)
   >  pdf: $(pdfs)
   >
   >  obnam-manual.en.pdf: Makefile $(en_sources)
   > -	./format-pdf $@ "$(TITLE_EN)" "$(AUTHOR)" "$(VERSION)" $(en_sources)
   > +	./format-pdf $@ \
   > +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "english" "" \
   > +		$(en_sources)
   >
   >  obnam-manual.en.html: Makefile $(en_sources) ../obnam.css
   > -	./format-html $@ "$(TITLE_EN)" "$(AUTHOR)" "$(VERSION)" $(en_sources)
   > +	./format-html $@ \
   > +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "english" "" \
   > +		$(en_sources)
   >
   >  obnam-manual.fr.pdf: Makefile $(fr_sources)
   > -	./format-pdf $@ "$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" $(fr_sources)
   > +	./format-pdf $@ \
   > +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "french" "$(TRANS_FR)" \
   > +		$(fr_sources)
   >
   >  obnam-manual.fr.html: Makefile $(fr_sources) ../obnam.css
   > -	./format-html $@ "$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" $(fr_sources)
   > +	./format-html $@ \
   > +		"$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" "french" "$(TRANS_FR)" \
   > +		$(fr_sources)
   >
   >  obnam-manual.de.pdf: Makefile $(de_sources)
   > -	./format-de-pdf $@ \
   > -		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "$(TRANS_DE)" \
   > +	./format-pdf $@ \
   > +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "german" "$(TRANS_DE)" \
   >  		$(de_sources)
   >
   >  obnam-manual.de.html: Makefile $(de_sources) ../obnam.css
   > -	./format-de-html $@ \
   > -		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "$(TRANS_DE)" \
   > +	./format-html $@ \
   > +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "german" "$(TRANS_DE)" \
   >  		$(de_sources)
   >
   >  clean:
   > diff --git a/manual/format-de-html b/manual/format-de-html
   > deleted file mode 100755
   > index 5411942c..00000000
   > --- a/manual/format-de-html
   > +++ /dev/null
   > @@ -1,39 +0,0 @@
   > -#!/bin/sh
   > -# Copyright 2014  Lars Wirzenius
   > -# Copyright 2014  Jan Niggemann
   > -#
   > -# This program is free software: you can redistribute it and/or modify
   > -# it under the terms of the GNU General Public License as published by
   > -# the Free Software Foundation, either version 3 of the License, or
   > -# (at your option) any later version.
   > -#
   > -# This program is distributed in the hope that it will be useful,
   > -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   > -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   > -# GNU General Public License for more details.
   > -#
   > -# You should have received a copy of the GNU General Public License
   > -# along with this program.  If not, see <http://www.gnu.org/licenses/>.
   > -#
   > -# =*= License: GPL-3+ =*=
   > -
   > -set -eu
   > -
   > -OUTPUT="$1"
   > -TITLE="$2"
   > -AUTHOR="$3"
   > -VERSION="$4"
   > -TRANS_DE="$5"
   > -shift 5
   > -
   > -cat > 000.mdwn <<EOF
   > -% $TITLE
   > -% $AUTHOR
   > -  $TRANS_DE
   > -% $VERSION
   > -EOF
   > -
   > -pandoc  -H ../obnam.css --smart --toc --chapters --number-sections \
   > -    --standalone --self-contained -V lang=german -V geometry:a4paper \
   > -    -o "$OUTPUT" 000.mdwn "$@"
   > -rm -f 000.mdwn
   > diff --git a/manual/format-de-pdf b/manual/format-de-pdf
   > deleted file mode 100755
   > index 15ef78eb..00000000
   > --- a/manual/format-de-pdf
   > +++ /dev/null
   > @@ -1,38 +0,0 @@
   > -#!/bin/sh
   > -# Copyright 2014,2016  Lars Wirzenius
   > -# Copyright 2014,2017  Jan Niggemann
   > -#
   > -# This program is free software: you can redistribute it and/or modify
   > -# it under the terms of the GNU General Public License as published by
   > -# the Free Software Foundation, either version 3 of the License, or
   > -# (at your option) any later version.
   > -#
   > -# This program is distributed in the hope that it will be useful,
   > -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   > -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   > -# GNU General Public License for more details.
   > -#
   > -# You should have received a copy of the GNU General Public License
   > -# along with this program.  If not, see <http://www.gnu.org/licenses/>.
   > -#
   > -# =*= License: GPL-3+ =*=
   > -
   > -set -eu
   > -
   > -OUTPUT="$1"
   > -TITLE="$2"
   > -AUTHOR="$3"
   > -VERSION="$4"
   > -TRANS_DE="$5"
   > -shift 5
   > -
   > -cat > 000.mdwn <<EOF
   > -% $TITLE
   > -% $AUTHOR
   > -  $TRANS_DE
   > -% $VERSION
   > -EOF
   > -
   > -pandoc --smart --toc --chapters --number-sections \
   > -    -V lang=german -V geometry:a4paper -o "$OUTPUT" 000.mdwn "$@"
   > -rm -f 000.mdwn
   > diff --git a/manual/format-html b/manual/format-html
   > index 14bc3750..238174a8 100755
   > --- a/manual/format-html
   > +++ b/manual/format-html
   > @@ -22,15 +22,18 @@ OUTPUT="$1"
   >  TITLE="$2"
   >  AUTHOR="$3"
   >  VERSION="$4"
   > -shift 4
   > +LANG="$5"
   > +TRANSLATOR="$6"
   > +shift 6
   >
   >  cat > 000.mdwn <<EOF
   >  % $TITLE
   >  % $AUTHOR
   > +  $TRANSLATOR
   >  % $VERSION
   >  EOF
   >
   >  pandoc  -H ../obnam.css --smart --toc --chapters --number-sections \
   > -    --standalone --self-contained -V geometry:lettersize \
   > +    --standalone --self-contained -V lang="$LANG" -V geometry:a4paper \
   >      -o "$OUTPUT" 000.mdwn "$@"
   >  rm -f 000.mdwn
   > diff --git a/manual/format-pdf b/manual/format-pdf
   > index bba45c6e..e1cf9daf 100755
   > --- a/manual/format-pdf
   > +++ b/manual/format-pdf
   > @@ -22,13 +22,17 @@ OUTPUT="$1"
   >  TITLE="$2"
   >  AUTHOR="$3"
   >  VERSION="$4"
   > -shift 4
   > +LANG="$5"
   > +TRANSLATOR="$6"
   > +shift 6
   >
   >  cat > 000.mdwn <<EOF
   >  % $TITLE
   >  % $AUTHOR
   > +  $TRANSLATOR
   >  % $VERSION
   >  EOF
   >
   > -pandoc --smart --toc --chapters --number-sections -o "$OUTPUT" 000.mdwn "$@"
   > +pandoc --smart --toc --chapters --number-sections \
   > +    -V lang="$LANG" -V geometry:a4paper -o "$OUTPUT" 000.mdwn "$@"
   >  rm -f 000.mdwn
   > --
   > 2.13.2
   >
   >
   > _______________________________________________
   > obnam-dev mailing list
   > obnam-dev@obnam.org
   > http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
From: Rémi Rampin <remirampin@gmail.com>
Date: Wed, 5 Jul 2017 17:55:00 -0400

   2017-07-05 17:11 EDT, Jan Niggemann <jn@hz6.de>:
   
   > thank you for your patch! I have applied it successfully and was able to
   > build both the PDFs and HTMLs in all 3 languages.
   > @Lars, IMHO you can apply this patch :-)
   
   
   No problem! Note that additional LaTeX packages might be required to build
   (on my Debian Jessie, texlive-lang-{english,french}).
From: Jan Niggemann <jn@hz6.de>
Date: Wed, 05 Jul 2017 23:11:55 +0200

   Hi Remi,
   
   thank you for your patch! I have applied it successfully and was able  
   to build both the PDFs and HTMLs in all 3 languages.
   @Lars, IMHO you can apply this patch :-)
   
   jan
   
   
   Zitat von Jan Niggemann <jn@hz6.de>:
   
   > Have not yet applied and tested, but looking at the code it "looks OK".
   > I'll try to squeeze in some time to test this, either this weekend  
   > or next one.
   >
   > -- jan
   >
   > Zitat von Remi Rampin <remirampin@gmail.com>:
   >
   >> ---
   >> manual/Makefile       | 35 ++++++++++++++++++++++-------------
   >> manual/format-de-html | 39 ---------------------------------------
   >> manual/format-de-pdf  | 38 --------------------------------------
   >> manual/format-html    |  7 +++++--
   >> manual/format-pdf     |  8 ++++++--
   >> 5 files changed, 33 insertions(+), 94 deletions(-)
   >> delete mode 100755 manual/format-de-html
   >> delete mode 100755 manual/format-de-pdf
   >>
   >> diff --git a/manual/Makefile b/manual/Makefile
   >> index ac291953..b8c22cf5 100644
   >> --- a/manual/Makefile
   >> +++ b/manual/Makefile
   >> @@ -18,8 +18,9 @@
   >>
   >> TITLE_EN = Backups with Obnam
   >> TITLE_DE = Backups mit Obnam
   >> -TITLE_FR = Sauvegardes avec Obnam
   >> TRANS_DE = Übersetzung: Jan Niggemann (jn@hz6.de)
   >> +TITLE_FR = Sauvegardes avec Obnam
   >> +TRANS_FR = Traduction : Pierrick Martinez, Remi Rampin
   >> AUTHOR = Lars Wirzenius (liw@liw.fi)
   >> VERSION = Version $(shell git describe || python ../setup.py --version)
   >>
   >> @@ -27,13 +28,13 @@ en_sources = $(shell ls en/*.mdwn)
   >> fr_sources = $(shell ls fr/*.mdwn)
   >> de_sources = $(shell ls de/*.mdwn)
   >> pdfs = \
   >> -        obnam-manual.en.pdf \
   >> +	obnam-manual.en.pdf \
   >> 	obnam-manual.fr.pdf \
   >> -        obnam-manual.de.pdf
   >> +	obnam-manual.de.pdf
   >> htmls = \
   >> -        obnam-manual.en.html \
   >> +	obnam-manual.en.html \
   >> 	obnam-manual.fr.html \
   >> -        obnam-manual.de.html
   >> +	obnam-manual.de.html
   >>
   >> all: html pdf
   >>
   >> @@ -42,25 +43,33 @@ html: $(htmls)
   >> pdf: $(pdfs)
   >>
   >> obnam-manual.en.pdf: Makefile $(en_sources)
   >> -	./format-pdf $@ "$(TITLE_EN)" "$(AUTHOR)" "$(VERSION)" $(en_sources)
   >> +	./format-pdf $@ \
   >> +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "english" "" \
   >> +		$(en_sources)
   >>
   >> obnam-manual.en.html: Makefile $(en_sources) ../obnam.css
   >> -	./format-html $@ "$(TITLE_EN)" "$(AUTHOR)" "$(VERSION)" $(en_sources)
   >> +	./format-html $@ \
   >> +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "english" "" \
   >> +		$(en_sources)
   >>
   >> obnam-manual.fr.pdf: Makefile $(fr_sources)
   >> -	./format-pdf $@ "$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" $(fr_sources)
   >> +	./format-pdf $@ \
   >> +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "french" "$(TRANS_FR)" \
   >> +		$(fr_sources)
   >>
   >> obnam-manual.fr.html: Makefile $(fr_sources) ../obnam.css
   >> -	./format-html $@ "$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" $(fr_sources)
   >> +	./format-html $@ \
   >> +		"$(TITLE_FR)" "$(AUTHOR)" "$(VERSION)" "french" "$(TRANS_FR)" \
   >> +		$(fr_sources)
   >>
   >> obnam-manual.de.pdf: Makefile $(de_sources)
   >> -	./format-de-pdf $@ \
   >> -		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "$(TRANS_DE)" \
   >> +	./format-pdf $@ \
   >> +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "german" "$(TRANS_DE)" \
   >> 		$(de_sources)
   >>
   >> obnam-manual.de.html: Makefile $(de_sources) ../obnam.css
   >> -	./format-de-html $@ \
   >> -		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "$(TRANS_DE)" \
   >> +	./format-html $@ \
   >> +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "german" "$(TRANS_DE)" \
   >> 		$(de_sources)
   >>
   >> clean:
   >> diff --git a/manual/format-de-html b/manual/format-de-html
   >> deleted file mode 100755
   >> index 5411942c..00000000
   >> --- a/manual/format-de-html
   >> +++ /dev/null
   >> @@ -1,39 +0,0 @@
   >> -#!/bin/sh
   >> -# Copyright 2014  Lars Wirzenius
   >> -# Copyright 2014  Jan Niggemann
   >> -#
   >> -# This program is free software: you can redistribute it and/or modify
   >> -# it under the terms of the GNU General Public License as published by
   >> -# the Free Software Foundation, either version 3 of the License, or
   >> -# (at your option) any later version.
   >> -#
   >> -# This program is distributed in the hope that it will be useful,
   >> -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   >> -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   >> -# GNU General Public License for more details.
   >> -#
   >> -# You should have received a copy of the GNU General Public License
   >> -# along with this program.  If not, see <http://www.gnu.org/licenses/>.
   >> -#
   >> -# =*= License: GPL-3+ =*=
   >> -
   >> -set -eu
   >> -
   >> -OUTPUT="$1"
   >> -TITLE="$2"
   >> -AUTHOR="$3"
   >> -VERSION="$4"
   >> -TRANS_DE="$5"
   >> -shift 5
   >> -
   >> -cat > 000.mdwn <<EOF
   >> -% $TITLE
   >> -% $AUTHOR
   >> -  $TRANS_DE
   >> -% $VERSION
   >> -EOF
   >> -
   >> -pandoc  -H ../obnam.css --smart --toc --chapters --number-sections \
   >> -    --standalone --self-contained -V lang=german -V geometry:a4paper \
   >> -    -o "$OUTPUT" 000.mdwn "$@"
   >> -rm -f 000.mdwn
   >> diff --git a/manual/format-de-pdf b/manual/format-de-pdf
   >> deleted file mode 100755
   >> index 15ef78eb..00000000
   >> --- a/manual/format-de-pdf
   >> +++ /dev/null
   >> @@ -1,38 +0,0 @@
   >> -#!/bin/sh
   >> -# Copyright 2014,2016  Lars Wirzenius
   >> -# Copyright 2014,2017  Jan Niggemann
   >> -#
   >> -# This program is free software: you can redistribute it and/or modify
   >> -# it under the terms of the GNU General Public License as published by
   >> -# the Free Software Foundation, either version 3 of the License, or
   >> -# (at your option) any later version.
   >> -#
   >> -# This program is distributed in the hope that it will be useful,
   >> -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   >> -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   >> -# GNU General Public License for more details.
   >> -#
   >> -# You should have received a copy of the GNU General Public License
   >> -# along with this program.  If not, see <http://www.gnu.org/licenses/>.
   >> -#
   >> -# =*= License: GPL-3+ =*=
   >> -
   >> -set -eu
   >> -
   >> -OUTPUT="$1"
   >> -TITLE="$2"
   >> -AUTHOR="$3"
   >> -VERSION="$4"
   >> -TRANS_DE="$5"
   >> -shift 5
   >> -
   >> -cat > 000.mdwn <<EOF
   >> -% $TITLE
   >> -% $AUTHOR
   >> -  $TRANS_DE
   >> -% $VERSION
   >> -EOF
   >> -
   >> -pandoc --smart --toc --chapters --number-sections \
   >> -    -V lang=german -V geometry:a4paper -o "$OUTPUT" 000.mdwn "$@"
   >> -rm -f 000.mdwn
   >> diff --git a/manual/format-html b/manual/format-html
   >> index 14bc3750..238174a8 100755
   >> --- a/manual/format-html
   >> +++ b/manual/format-html
   >> @@ -22,15 +22,18 @@ OUTPUT="$1"
   >> TITLE="$2"
   >> AUTHOR="$3"
   >> VERSION="$4"
   >> -shift 4
   >> +LANG="$5"
   >> +TRANSLATOR="$6"
   >> +shift 6
   >>
   >> cat > 000.mdwn <<EOF
   >> % $TITLE
   >> % $AUTHOR
   >> +  $TRANSLATOR
   >> % $VERSION
   >> EOF
   >>
   >> pandoc  -H ../obnam.css --smart --toc --chapters --number-sections \
   >> -    --standalone --self-contained -V geometry:lettersize \
   >> +    --standalone --self-contained -V lang="$LANG" -V geometry:a4paper \
   >>     -o "$OUTPUT" 000.mdwn "$@"
   >> rm -f 000.mdwn
   >> diff --git a/manual/format-pdf b/manual/format-pdf
   >> index bba45c6e..e1cf9daf 100755
   >> --- a/manual/format-pdf
   >> +++ b/manual/format-pdf
   >> @@ -22,13 +22,17 @@ OUTPUT="$1"
   >> TITLE="$2"
   >> AUTHOR="$3"
   >> VERSION="$4"
   >> -shift 4
   >> +LANG="$5"
   >> +TRANSLATOR="$6"
   >> +shift 6
   >>
   >> cat > 000.mdwn <<EOF
   >> % $TITLE
   >> % $AUTHOR
   >> +  $TRANSLATOR
   >> % $VERSION
   >> EOF
   >>
   >> -pandoc --smart --toc --chapters --number-sections -o "$OUTPUT"  
   >> 000.mdwn "$@"
   >> +pandoc --smart --toc --chapters --number-sections \
   >> +    -V lang="$LANG" -V geometry:a4paper -o "$OUTPUT" 000.mdwn "$@"
   >> rm -f 000.mdwn
   >> --
   >> 2.13.2
   >>
   >>
   >> _______________________________________________
   >> obnam-dev mailing list
   >> obnam-dev@obnam.org
   >> http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
   >
   >
   >
   > -- 
   > gpg --keyserver pgp.mit.edu --recv-keys 0x514FCA9C
   > F013 93C0 306C 1E31 4E00  09FA 21EC A2F6 514F CA9C
   >
   > _______________________________________________
   > obnam-dev mailing list
   > obnam-dev@obnam.org
   > http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
From: Sharon Kimble <boudiccas@skimble.plus.com>
Date: Thu, 06 Jul 2017 06:44:05 +0100

   Rémi Rampin <remirampin@gmail.com> writes:
   
   > 2017-07-05 17:11 EDT, Jan Niggemann <jn@hz6.de>:
   >
   >     thank you for your patch! I have applied it successfully and was able to build both the PDFs and HTMLs in all 3 languages.
   >     @Lars, IMHO you can apply this patch :-)
   >
   > No problem! Note that additional LaTeX packages might be required to build (on my Debian Jessie, texlive-lang-{english,french}).
   >
   Hi Remi.
   
   What happens if you've installed TeX-live from source without using, in
   my case, Debian's TeX-live packages?
   
   Thanks
   Sharon.
From: Rémi Rampin <remirampin@gmail.com>
Date: Thu, 6 Jul 2017 10:28:10 -0400

   On Jul 6, 2017 13:44 EDT, Sharon Kimble <boudiccas@skimble.plus.com>:
   
   What happens if you've installed TeX-live from source without using, in
   my case, Debian's TeX-live packages?
   
   
   Hi Sharon,
   
   I imagine that those are part of the distribution. In particular, if the
   German PDF was building for you without additional requirements, you are
   probably fine.
   
   Best
From: Lars Wirzenius <liw@liw.fi>
Date: Sun, 16 Jul 2017 22:27:30 +0300

   On Mon, Jul 03, 2017 at 01:06:30PM -0400, Remi Rampin wrote:
   >  obnam-manual.en.pdf: Makefile $(en_sources)
   > -	./format-pdf $@ "$(TITLE_EN)" "$(AUTHOR)" "$(VERSION)" $(en_sources)
   > +	./format-pdf $@ \
   > +		"$(TITLE_DE)" "$(AUTHOR)" "$(VERSION)" "english" "" \
   > +		$(en_sources)
   
   For reasons I do not understand, I had to change "english" to "en" to
   make this build on Debian stretch. Ditto "french" to "fr" and "german"
   to "de".
   
   I've made this changed in master and pushed.
From: Lars Wirzenius <liw@liw.fi>
Date: Sun, 16 Jul 2017 22:33:12 +0300

   Also, I forgot, sorry. Thank you to Michele Alessandrini, Remi Rampin,
   and Jan Niggeman for making this patch happen. I didn't need to be
   involved until the very last patch applying step, and I like that. :)
From: Michele Alessandrini <m.alessandrini@univpm.it>
Date: Mon, 17 Jul 2017 09:22:45 +0200

   Il 16/07/2017 21:33, Lars Wirzenius ha scritto:
   > Also, I forgot, sorry. Thank you to Michele Alessandrini, Remi Rampin,
   > and Jan Niggeman for making this patch happen. I didn't need to be
   > involved until the very last patch applying step, and I like that. :)
   > 
   
   Thank you for accepting our suggestions!
   
    > For reasons I do not understand, I had to change "english" to "en" to
    > make this build on Debian stretch. Ditto "french" to "fr" and "german"
    > to "de".
   
   I think two-letter codes are the standard way of specifying a language, 
   so I wonder why the extended name still works...
   
   By the way, what about my other patch? Do you think it can be useful, or 
   needs changes, etc? No problem if you don't feel like pushing it, after 
   all the program is structured in such a way that all you need is saving 
   your python plugin in the rigth directory and add whatever funcionality
   you want in your local installation.
   
   Last note: I started translating the manual in italian in my spare time, 
   it will take some time, hope to have something in a few weeks. What's 
   better at the end, a global patch or sending you the raw files?
   
   Bye
   Michele
   
    
    
    
    
   La seguente informativa e' inserita in automatico dal sistema al fine esclusivo della realizzazione dei fini istituzionali dell'ente. 
    
    
   INVESTI NELLA RICERCA 
    
   il 5 per mille all'Universita' Politecnica delle Marche e' un investimento per i giovani, per il loro futuro - C.F. 00382520427 
    
   http://www.univpm.it/5_per_mille 
   
   _______________________________________________
   obnam-dev mailing list
   obnam-dev@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
From: Michele Alessandrini <m.alessandrini@univpm.it>
Date: Mon, 17 Jul 2017 16:04:54 +0200

   Excuse me, I think there's an error in the Makefile:
   TITLE_DE is used instead of TITLE_EN and TITLE_FR (3 times total).
   
   Bye
   Michele
   
   
   Il 16/07/2017 21:33, Lars Wirzenius ha scritto:
   > Also, I forgot, sorry. Thank you to Michele Alessandrini, Remi Rampin,
   > and Jan Niggeman for making this patch happen. I didn't need to be
   > involved until the very last patch applying step, and I like that. :)
   > 
   > 
   > 
   > _______________________________________________
   > obnam-dev mailing list
   > obnam-dev@obnam.org
   > http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
   > 
   >   
   >   
   >   
   >   
   > La seguente informativa e' inserita in automatico dal sistema al fine esclusivo della realizzazione dei fini istituzionali dell'ente.
   >   
   >   
   > INVESTI NELLA RICERCA
   >   
   > il 5 per mille all'Universita' Politecnica delle Marche e' un investimento per i giovani, per il loro futuro - C.F. 00382520427
   >   
   > http://www.univpm.it/5_per_mille
   >