2006-07-17 Han-Wen Nienhuys <hanwen@lilypond.org>
+ * lily/translator-group.cc (connect_to_context): non const error message.
+
+ * Documentation/user/GNUmakefile ($(outdir)/%.pdf): update to use PDF
+
* scm/paper.scm (internal-set-paper-size): define landscape to #f
if unset.
LATEX_FILES =$(call src-wildcard,*.latex)
-# todo: add latex.
-DVI_FILES = $(TELY_FILES:%.tely=$(outdir)/%.dvi)
EXTRA_DIST_FILES= $(LATEX_FILES) $(IMAGES) README.txt $(EPS_ILLUSTRATIONS)
IMAGES=$(call src-wildcard,*.png)
EPS_ILLUSTRATIONS=context-example.eps
+PDF_ILLUSTRATIONS=context-example.pdf
-OUT_EPS_IMAGES=$(IMAGES:%.png=$(outdir)/%.eps) $(addprefix $(outdir)/,$(EPS_ILLUSTRATIONS))
+OUT_PDF_IMAGES=$(IMAGES:%.png=$(outdir)/%.pdf) $(addprefix $(outdir)/,$(PDF_ILLUSTRATIONS))
OUT_PNG_IMAGES=$(OUT_EPS_IMAGES:%.eps=%.png)
OUT_TEXI_FILES=$(ITEXI_FILES:%.itexi=$(outdir)/%.texi)\
HTML_FILES = $(TELY_FILES:%.tely=$(outdir)/%.html)\
$(outdir)/lilypond-internals.html
-PS_FILES = $(DVI_FILES:.dvi=.ps)
-PDF_FILES = $(DVI_FILES:.dvi=.pdf)
-
-PS_GZ_FILES= $(addsuffix .gz, $(PS_FILES))
+# todo: add latex.
+PDF_FILES = $(TELY_FILES:%.tely=$(outdir)/%.pdf)
INFO_DOCS = lilypond lilypond-internals music-glossary
INFO_FILES = $(INFO_DOCS:%=$(outdir)/%.info)
include $(depth)/make/stepmake.make
-dvi: $(DVI_FILES)
-
-ps: $(PS_FILES)
-
info: $(INFO_FILES)
pathsettings:
mkdir -p $(dir $@)
$(MAKEINFO) --output=$(outdir)/lilypond-internals --docbook $<
-$(outdir)/lilypond.dvi: $(OUT_EPS_IMAGES) $(OUT_PNG_IMAGES)
+$(outdir)/lilypond.pdf: $(OUT_PDF_IMAGES) $(OUT_PNG_IMAGES)
$(outdir)/%.png: %.png
convert -geometry 50x50% $< $@
$(outdir)/%.eps: %.eps
cp $< $@
+$(outdir)/%.pdf: %.png
+ convert $< $@
+
+$(outdir)/%.pdf: %.eps
+ convert $< $@
+
+
DEEP_HTML_FILES =\
$(outdir)/lilypond/index.html\
$(outdir)/lilypond-internals/index.html\
Translator_group::connect_to_context (Context *c)
{
if (context_)
- programming_error ("translator group is already connected to a context");
+ {
+ programming_error ("translator group is already connected to context "
+ + context_->context_name ());
+ }
+
context_ = c;
c->event_source ()->add_listener (GET_LISTENER (eat_event),
ly_symbol2scm ("OldMusicEvent"));