doc: use svg instead of png

* doc/bison.texi, doc/local.mk: here.
This commit is contained in:
Akim Demaille
2019-04-28 17:47:14 +02:00
parent cf44351dd7
commit 04676a5085
2 changed files with 9 additions and 9 deletions

View File

@@ -9776,7 +9776,7 @@ Parser}, for a detailed analysis of the textual report.
@ifnotinfo @ifnotinfo
@float Figure,fig:graph @float Figure,fig:graph
@image{figs/example, 430pt} @center @image{figs/example, 430pt,,,.svg}
@caption{A graphical rendering of the parser.} @caption{A graphical rendering of the parser.}
@end float @end float
@end ifnotinfo @end ifnotinfo
@@ -9814,7 +9814,7 @@ State 3
A Graphviz rendering of this portion of the graph could be: A Graphviz rendering of this portion of the graph could be:
@center @image{figs/example-shift, 100pt} @center @image{figs/example-shift, 100pt,,,.svg}
@subheading Graphical Representation of Reductions @subheading Graphical Representation of Reductions
@@ -9836,7 +9836,7 @@ State 1
A Graphviz rendering of this portion of the graph could be: A Graphviz rendering of this portion of the graph could be:
@center @image{figs/example-reduce, 120pt} @center @image{figs/example-reduce, 120pt,,,.svg}
When unresolved conflicts are present, because in deterministic parsing When unresolved conflicts are present, because in deterministic parsing
a single decision can be made, Bison can arbitrarily choose to disable a a single decision can be made, Bison can arbitrarily choose to disable a

View File

@@ -33,7 +33,7 @@ doc_bison = doc/bison
$(doc_bison).dvi: $(FIGS_GV:.gv=.eps) $(doc_bison).dvi: $(FIGS_GV:.gv=.eps)
$(doc_bison).info: $(FIGS_GV:.gv=.txt) $(doc_bison).info: $(FIGS_GV:.gv=.txt)
$(doc_bison).pdf: $(FIGS_GV:.gv=.pdf) $(doc_bison).pdf: $(FIGS_GV:.gv=.pdf)
$(doc_bison).html: $(FIGS_GV:.gv=.png) $(doc_bison).html: $(FIGS_GV:.gv=.svg)
TEXI2DVI = texi2dvi --build-dir=doc/bison.t2d -I doc TEXI2DVI = texi2dvi --build-dir=doc/bison.t2d -I doc
CLEANDIRS += doc/bison.t2d CLEANDIRS += doc/bison.t2d
@@ -142,14 +142,14 @@ endif
## Graphviz examples generation. ## ## Graphviz examples generation. ##
## ----------------------------- ## ## ----------------------------- ##
CLEANFILES += $(FIGS_GV:.gv=.eps) $(FIGS_GV:.gv=.pdf) $(FIGS_GV:.gv=.png) CLEANFILES += $(FIGS_GV:.gv=.eps) $(FIGS_GV:.gv=.pdf) $(FIGS_GV:.gv=.svg)
FIGS_GV = \ FIGS_GV = \
doc/figs/example.gv \ doc/figs/example.gv \
doc/figs/example-reduce.gv doc/figs/example-shift.gv doc/figs/example-reduce.gv doc/figs/example-shift.gv
EXTRA_DIST += \ EXTRA_DIST += \
$(FIGS_GV) $(FIGS_GV:.gv=.txt) \ $(FIGS_GV) $(FIGS_GV:.gv=.txt) \
$(FIGS_GV:.gv=.eps) $(FIGS_GV:.gv=.pdf) $(FIGS_GV:.gv=.png) $(FIGS_GV:.gv=.eps) $(FIGS_GV:.gv=.pdf) $(FIGS_GV:.gv=.svg)
SUFFIXES += .gv .eps .pdf .png SUFFIXES += .gv .eps .pdf .svg
.gv.eps: .gv.eps:
$(AM_V_GEN) $(MKDIR_P) `echo "./$@" | sed -e 's,/[^/]*$$,,'` $(AM_V_GEN) $(MKDIR_P) `echo "./$@" | sed -e 's,/[^/]*$$,,'`
@@ -161,9 +161,9 @@ SUFFIXES += .gv .eps .pdf .png
$(AM_V_at) $(DOT) -Gmargin=0 -Tpdf $< >$@.tmp $(AM_V_at) $(DOT) -Gmargin=0 -Tpdf $< >$@.tmp
$(AM_V_at) mv $@.tmp $@ $(AM_V_at) mv $@.tmp $@
.gv.png: .gv.svg:
$(AM_V_GEN) $(MKDIR_P) `echo "./$@" | sed -e 's,/[^/]*$$,,'` $(AM_V_GEN) $(MKDIR_P) `echo "./$@" | sed -e 's,/[^/]*$$,,'`
$(AM_V_at) $(DOT) -Gmargin=0 -Tpng $< >$@.tmp $(AM_V_at) $(DOT) -Gmargin=0 -Tsvg $< >$@.tmp
$(AM_V_at) mv $@.tmp $@ $(AM_V_at) mv $@.tmp $@
## -------------- ## ## -------------- ##