From 13355f53c125c2e67bfab3ec4d1f4ec81f75fa55 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 3 Oct 2004 21:49:35 +0000 Subject: [PATCH] * Documentation/user/macros.itexi: Add xml macros. * Documentation/user/GNUmakefile (extra-local-help): Add xml rules. * stepmake/stepmake/texinfo-vars.make (GENERATE_OMF): Fix location. --- ChangeLog | 8 ++++++++ Documentation/user/GNUmakefile | 12 ++++++++++++ Documentation/user/macros.itexi | 27 ++++++++++++++++++++++++++- ly/book-paper-defaults.ly | 2 ++ stepmake/stepmake/texinfo-vars.make | 2 +- 5 files changed, 49 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c388998457..044cf2d302 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-10-03 Jan Nieuwenhuizen + + * Documentation/user/macros.itexi: Add xml macros. + + * Documentation/user/GNUmakefile (extra-local-help): Add xml rules. + + * stepmake/stepmake/texinfo-vars.make (GENERATE_OMF): Fix location. + 2004-10-03 Han-Wen Nienhuys * lily/break-substitution.cc (substitute_mutable_property_alist): diff --git a/Documentation/user/GNUmakefile b/Documentation/user/GNUmakefile index 4954461582..675608ff48 100644 --- a/Documentation/user/GNUmakefile +++ b/Documentation/user/GNUmakefile @@ -35,6 +35,8 @@ ps: $(PS_FILES) info: $(INFO_FILES) +xml: $(outdir)/lilypond/lilypond.xml $(outdir)/lilypond-internals/lilypond-internals.xml + # There are two modes for info: with and without images. ifeq ($(out),www) @@ -83,6 +85,7 @@ extra-local-help: dvi update dvi documents\n\ info update info pages\n\ ps update PostScript documents\n\ + xml update Docbook xml documentation\n\ " # Generic rule using % twice not possible? @@ -105,6 +108,15 @@ $(outdir)/lilypond-internals/lilypond-internals.html: $(outdir)/lilypond-interna $(MAKEINFO) --output=$(outdir)/lilypond-internals --css-include=$(abs-srcdir)/Documentation/texinfo.css --html $< $(MAKEINFO) -I$(outdir) --output=$@ --css-include=$(abs-srcdir)/Documentation/texinfo.css --html --no-split --no-headers $< +$(outdir)/lilypond/lilypond.xml: $(outdir)/lilypond.texi + mkdir -p $(dir $@) + $(MAKEINFO) -I$(outdir) --output=$@ --docbook $< + perl -i~ -pe 's!../lilypond-internals!lilypond-internals/!g' $(outdir)/lilypond.xml + +$(outdir)/lilypond-internals/lilypond-internals.xml: $(outdir)/lilypond-internals.texi + mkdir -p $(dir $@) + $(MAKEINFO) --output=$(outdir)/lilypond-internals --docbook $< + ifeq ($(SPLITTING_MAKEINFO),yes) $(outdir)/lilypond.dvi: $(OUT_EPS_IMAGES) $(OUT_PNG_IMAGES) diff --git a/Documentation/user/macros.itexi b/Documentation/user/macros.itexi index e89d5ad8ee..fc67ae86c6 100644 --- a/Documentation/user/macros.itexi +++ b/Documentation/user/macros.itexi @@ -61,7 +61,6 @@ @c dup? - @ifhtml @c ***** HTML ***** @@ -87,6 +86,32 @@ @end ifhtml +@c dup? +@ifdocbook + + @c ***** DOCBOOK-XML ***** + + @macro internalsref{NAME} + @c makeinfo-4.7 encodes html names + @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c + @inforef{\NAME\,,lilypond-internals}@c + @c should we do this? + @cindex @code{\NAME\} + @end macro + + @macro hyphenatedinternalsref{NAME,NODENAME} + @c @uref{../lilypond-internals/\NODENAME\.html,\NAME\}@c + @inforef{\NODENAME\,,lilypond-internals}@c + @c should we do this? + @cindex @code{\NAME\} + @end macro + + @macro inputfileref{DIR,NAME} + @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c + @end macro + +@end ifdocbook + @ifinfo @c **** INFO **** diff --git a/ly/book-paper-defaults.ly b/ly/book-paper-defaults.ly index 56b3c0d113..a7ceafd33d 100644 --- a/ly/book-paper-defaults.ly +++ b/ly/book-paper-defaults.ly @@ -60,6 +60,8 @@ % raggedlastbottom= ##t + %% ugh. Should use /etc/papersize and set explicitely for + %% documentation. papersize = "a4" #(define font-defaults diff --git a/stepmake/stepmake/texinfo-vars.make b/stepmake/stepmake/texinfo-vars.make index 04a5385056..9836825376 100644 --- a/stepmake/stepmake/texinfo-vars.make +++ b/stepmake/stepmake/texinfo-vars.make @@ -7,7 +7,7 @@ TEXINFO_SOURCES = $(TEXI_FILES) OUTTXT_FILES += $(addprefix $(outdir)/,$(TEXI_FILES:.texi=.txt)) -GENERATE_OMF = $(PYTHON) $(depth)/buildscripts/texi2omf.py --format $(1) --location $(local_package_docdir)/$(current-relative-dir)/out-www/$(notdir $(basename $@)) --version $(TOPLEVEL_VERSION) $< > $@ +GENERATE_OMF = $(PYTHON) $(depth)/buildscripts/texi2omf.py --format $(1) --location $(package_docdir)/html/$(current-relative-dir)/out-www/$(notdir $(basename $@)) --version $(TOPLEVEL_VERSION) $< > $@ TEXINFO_PAPERSIZE_OPTION= $(if $(findstring $(PAPERSIZE),a4),,-t @afourpaper) -- 2.39.2