diff options
author | Karl Berry <karl@freefriends.org> | 2017-01-31 18:37:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-01-31 18:37:40 +0000 |
commit | 4c245316c293169ee655c8e2f922b4bee454f9bc (patch) | |
tree | 2d3b72165f3e7e1298df8dad8b52f119a42228dc /Build/source/texk/dvisvgm/dvisvgm-src/doc | |
parent | 54a2f67f996dceca3c89276dea798f746b3cacaf (diff) |
import original dvisvgm-2.1
git-svn-id: svn://tug.org/texlive/trunk@43102 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/doc')
7 files changed, 757 insertions, 154 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am b/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am index 8dd10a7758c..7a9fc6dbfef 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am +++ b/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am @@ -1,5 +1,5 @@ ## This file is part of dvisvgm -## Copyright (C) 2005-2016 Martin Gieseking <martin.gieseking@uos.de> +## Copyright (C) 2005-2017 Martin Gieseking <martin.gieseking@uos.de> ## ## Process this file with automake. @@ -9,19 +9,21 @@ EXTRA_DIST = $(man_MANS) conf-dblatex-man.xsl conf-dblatex-pdf.xsl tweak-dblatex CONF_DBLATEX_MAN = $(top_srcdir)/doc/conf-dblatex-man.xsl CONF_DBLATEX_PDF = $(top_srcdir)/doc/conf-dblatex-pdf.xsl TWEAK_DBLATEX_PDF = $(top_srcdir)/doc/tweak-dblatex-pdf.xsl +TWEAK_DB_ARTICLE = $(top_srcdir)/doc/tweak-db-article.xsl DB_VARS = man.endnotes.list.enabled=0 man.endnotes.are.numbered=0 man.authors.section.enabled=0 -dvisvgm.1: dvisvgm.xml $(CONF_DBLATEX_MAN) +dvisvgm.1: dvisvgm-man.xml $(CONF_DBLATEX_MAN) if [ `type -p xmlto` ]; then \ xmlto -m $(CONF_DBLATEX_MAN) $(addprefix --stringparam , $(DB_VARS)) man $<; \ fi -dvisvgm.pdf: dvisvgm.xml $(CONF_DBLATEX_PDF) $(TWEAK_DBLATEX_PDF) +dvisvgm.pdf: dvisvgm-man.xml $(CONF_DBLATEX_PDF) $(TWEAK_DBLATEX_PDF) mv $< $<.tmp xsltproc -o $< $(TWEAK_DBLATEX_PDF) $<.tmp dblatex -bxetex --texstyle=./dvisvgm.sty -p $(CONF_DBLATEX_PDF) $< mv $<.tmp $< + mv $(basename $<).pdf $@ dvi-pdf: dvisvgm.dvi dvipdfm $< @@ -30,25 +32,34 @@ dvi-pdf: dvisvgm.dvi dvisvgm.dvi: dvisvgm.1 groff -Tdvi -mandoc ./$< >$@ -dvisvgm.html: dvisvgm.xml +dvisvgm.html: dvisvgm-man.xml xsltproc -o $@ db2html.xsl $< -dvisvgm.epub: dvisvgm.xml - a2x -dmanpage -fmanpage -L -a icons $<; +dvisvgm.epub: dvisvgm-article.xml + a2x -darticle -fepub -L --icons --icons-dir=. $< + mv $(basename $<).epub $@ -dvisvgm.xml: dvisvgm.txt +dvisvgm-man.xml: dvisvgm.txt if [ `type -p asciidoc` ]; then \ - asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -bdocbook -dmanpage $<; \ + asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -bdocbook -dmanpage -o $@ $<; \ sed -i "s#\(</refmeta>\)#<refmiscinfo class='date'>$(shell stat -c %y $<)</refmiscinfo>\n\1#" $@; \ fi +dvisvgm-article.xml: dvisvgm.txt + if [ `type -p asciidoc` ]; then \ + asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -bdocbook -darticle -o $@.tmp $<; \ + xsltproc -o $@ $(TWEAK_DB_ARTICLE) $@.tmp; \ + rm $@.tmp; \ + sed -i "s/{VERSION}/@VERSION@/" $@; \ + fi + epub: dvisvgm.epub html: dvisvgm.html man: dvisvgm.1 pdf: dvisvgm.pdf clean: - rm -f dvisvgm.pdf dvisvgm.html dvisvgm.xml dvisvgm.txt dvisvgm.dvi dvisvgm.epub + rm -f dvisvgm.pdf dvisvgm.html dvisvgm-man.xml dvisvgm-article.xml dvisvgm.txt dvisvgm.dvi dvisvgm.epub distclean-local: - rm -f dvisvgm.pdf dvisvgm.html dvisvgm.xml dvisvgm.txt dvisvgm.dvi dvisvgm.epub dvisvgm.1 + rm -f dvisvgm.pdf dvisvgm.html dvisvgm-man.xml dvisvgm-article.xml dvisvgm.txt dvisvgm.dvi dvisvgm.epub dvisvgm.1 diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.in b/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.in new file mode 100644 index 00000000000..2e3baa9f497 --- /dev/null +++ b/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.in @@ -0,0 +1,567 @@ +# Makefile.in generated by automake 1.15 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2014 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +target_triplet = @target@ +subdir = doc +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = dvisvgm.txt +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +man1dir = $(mandir)/man1 +am__installdirs = "$(DESTDIR)$(man1dir)" +NROFF = nroff +MANS = $(man_MANS) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/dvisvgm.txt.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_CPPFLAGS = @AM_CPPFLAGS@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AM_LDFLAGS = @AM_LDFLAGS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CODE_COVERAGE_CFLAGS = @CODE_COVERAGE_CFLAGS@ +CODE_COVERAGE_CPPFLAGS = @CODE_COVERAGE_CPPFLAGS@ +CODE_COVERAGE_ENABLED = @CODE_COVERAGE_ENABLED@ +CODE_COVERAGE_LDFLAGS = @CODE_COVERAGE_LDFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATE = @DATE@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ +FREETYPE_LIBS = @FREETYPE_LIBS@ +GCOV = @GCOV@ +GENHTML = @GENHTML@ +GREP = @GREP@ +HAVE_CXX11 = @HAVE_CXX11@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LCOV = @LCOV@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +ZLIB_CFLAGS = @ZLIB_CFLAGS@ +ZLIB_LIBS = @ZLIB_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target = @target@ +target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +man_MANS = dvisvgm.1 +EXTRA_DIST = $(man_MANS) conf-dblatex-man.xsl conf-dblatex-pdf.xsl tweak-dblatex-pdf.xsl +CONF_DBLATEX_MAN = $(top_srcdir)/doc/conf-dblatex-man.xsl +CONF_DBLATEX_PDF = $(top_srcdir)/doc/conf-dblatex-pdf.xsl +TWEAK_DBLATEX_PDF = $(top_srcdir)/doc/tweak-dblatex-pdf.xsl +TWEAK_DB_ARTICLE = $(top_srcdir)/doc/tweak-db-article.xsl +DB_VARS = man.endnotes.list.enabled=0 man.endnotes.are.numbered=0 man.authors.section.enabled=0 +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +dvisvgm.txt: $(top_builddir)/config.status $(srcdir)/dvisvgm.txt.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +install-man1: $(man_MANS) + @$(NORMAL_INSTALL) + @list1=''; \ + list2='$(man_MANS)'; \ + test -n "$(man1dir)" \ + && test -n "`echo $$list1$$list2`" \ + || exit 0; \ + echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ + { for i in $$list1; do echo "$$i"; done; \ + if test -n "$$list2"; then \ + for i in $$list2; do echo "$$i"; done \ + | sed -n '/\.1[a-z]*$$/p'; \ + fi; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ + fi; \ + done; \ + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ + done; } + +uninstall-man1: + @$(NORMAL_UNINSTALL) + @list=''; test -n "$(man1dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(MANS) +installdirs: + for dir in "$(DESTDIR)$(man1dir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-local + +dvi: dvi-am + +dvi-am: + +html-am: + +info: info-am + +info-am: + +install-data-am: install-man + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: install-man1 + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-man + +uninstall-man: uninstall-man1 + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distclean-local distdir \ + dvi dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-man1 \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ + uninstall-am uninstall-man uninstall-man1 + +.PRECIOUS: Makefile + + +dvisvgm.1: dvisvgm-man.xml $(CONF_DBLATEX_MAN) + if [ `type -p xmlto` ]; then \ + xmlto -m $(CONF_DBLATEX_MAN) $(addprefix --stringparam , $(DB_VARS)) man $<; \ + fi + +dvisvgm.pdf: dvisvgm-man.xml $(CONF_DBLATEX_PDF) $(TWEAK_DBLATEX_PDF) + mv $< $<.tmp + xsltproc -o $< $(TWEAK_DBLATEX_PDF) $<.tmp + dblatex -bxetex --texstyle=./dvisvgm.sty -p $(CONF_DBLATEX_PDF) $< + mv $<.tmp $< + mv $(basename $<).pdf $@ + +dvi-pdf: dvisvgm.dvi + dvipdfm $< + rm -f $< + +dvisvgm.dvi: dvisvgm.1 + groff -Tdvi -mandoc ./$< >$@ + +dvisvgm.html: dvisvgm-man.xml + xsltproc -o $@ db2html.xsl $< + +dvisvgm.epub: dvisvgm-article.xml + a2x -darticle -fepub -L --icons --icons-dir=. $< + mv $(basename $<).epub $@ + +dvisvgm-man.xml: dvisvgm.txt + if [ `type -p asciidoc` ]; then \ + asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -bdocbook -dmanpage -o $@ $<; \ + sed -i "s#\(</refmeta>\)#<refmiscinfo class='date'>$(shell stat -c %y $<)</refmiscinfo>\n\1#" $@; \ + fi + +dvisvgm-article.xml: dvisvgm.txt + if [ `type -p asciidoc` ]; then \ + asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -bdocbook -darticle -o $@.tmp $<; \ + xsltproc -o $@ $(TWEAK_DB_ARTICLE) $@.tmp; \ + rm $@.tmp; \ + sed -i "s/{VERSION}/@VERSION@/" $@; \ + fi + +epub: dvisvgm.epub +html: dvisvgm.html +man: dvisvgm.1 +pdf: dvisvgm.pdf + +clean: + rm -f dvisvgm.pdf dvisvgm.html dvisvgm-man.xml dvisvgm-article.xml dvisvgm.txt dvisvgm.dvi dvisvgm.epub + +distclean-local: + rm -f dvisvgm.pdf dvisvgm.html dvisvgm-man.xml dvisvgm-article.xml dvisvgm.txt dvisvgm.dvi dvisvgm.epub dvisvgm.1 + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/doc/conf-dblatex-man.xsl b/Build/source/texk/dvisvgm/dvisvgm-src/doc/conf-dblatex-man.xsl index b7004b389f7..bddaf5eee2d 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/doc/conf-dblatex-man.xsl +++ b/Build/source/texk/dvisvgm/dvisvgm-src/doc/conf-dblatex-man.xsl @@ -1,19 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- This file is part of dvisvgm --> -<!-- Copyright (C) 2015-2016 Martin Gieseking --> +<!-- Copyright (C) 2015-2017 Martin Gieseking <martin.gieseking@uos.de> --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <!-- output monospaced text in bold --> - <xsl:template match="literal"> - <xsl:text>\fB</xsl:text> - <xsl:apply-templates/> - <xsl:text>\fR</xsl:text> - </xsl:template> + <!-- output monospaced text in bold --> + <xsl:template match="literal"> + <xsl:text>\fB</xsl:text> + <xsl:apply-templates/> + <xsl:text>\fR</xsl:text> + </xsl:template> - <!-- append URL to hyperlinked text pointing to external targets --> - <xsl:template match="ulink[not(contains(., '://')) and not(contains(@url, 'mailto:'))]"> - <xsl:apply-templates/> - <xsl:text> (\m[blue]</xsl:text> - <xsl:value-of select="@url"/> - <xsl:text>\m[])</xsl:text> - </xsl:template> + <!-- append URL to hyperlinked text pointing to external targets --> + <xsl:template match="ulink[not(contains(., '://')) and not(contains(@url, 'mailto:'))]"> + <xsl:apply-templates/> + <xsl:text> (\m[blue]</xsl:text> + <xsl:value-of select="@url"/> + <xsl:text>\m[])</xsl:text> + </xsl:template> </xsl:stylesheet> diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/doc/conf-dblatex-pdf.xsl b/Build/source/texk/dvisvgm/dvisvgm-src/doc/conf-dblatex-pdf.xsl index 39d28a9eecb..d8d881e1150 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/doc/conf-dblatex-pdf.xsl +++ b/Build/source/texk/dvisvgm/dvisvgm-src/doc/conf-dblatex-pdf.xsl @@ -1,52 +1,52 @@ <?xml version='1.0' encoding="iso-8859-1"?> <!-- This file is part of dvisvgm --> -<!-- Copyright (C) 2015-2016 Martin Gieseking --> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> - <xsl:param name="xetex.font"> - <xsl:text>\setmainfont{Source Sans Pro} </xsl:text> - <xsl:text>\setsansfont{Source Sans Pro} </xsl:text> - <xsl:text>\setmonofont{Source Code Pro} </xsl:text> - </xsl:param> +<!-- Copyright (C) 2015-2017 Martin Gieseking <martin.gieseking@uos.de> --> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:param name="xetex.font"> + <xsl:text>\setmainfont{Source Sans Pro} </xsl:text> + <xsl:text>\setsansfont{Source Sans Pro} </xsl:text> + <xsl:text>\setmonofont{Source Code Pro} </xsl:text> + </xsl:param> - <xsl:param name="doc.toc.show">0</xsl:param> - <xsl:param name="refentry.numbered">0</xsl:param> - <xsl:param name="figure.caution">caution</xsl:param> - <xsl:param name="figure.note">note</xsl:param> - <xsl:param name="table.default.tabstyle">tabular</xsl:param> - <xsl:param name="table.in.float">0</xsl:param> - <xsl:param name="term.breakline">1</xsl:param> - - <xsl:param name="literal.layout.options"> - <xsl:text>basicstyle=\ttfamily\small,backgroundcolor=\color[gray]{0.9},columns=fullflexible,frame=single</xsl:text> - </xsl:param> + <xsl:param name="doc.toc.show">0</xsl:param> + <xsl:param name="refentry.numbered">0</xsl:param> + <xsl:param name="figure.caution">caution</xsl:param> + <xsl:param name="figure.note">note</xsl:param> + <xsl:param name="table.default.tabstyle">tabular</xsl:param> + <xsl:param name="table.in.float">0</xsl:param> + <xsl:param name="term.breakline">1</xsl:param> - <!-- ensure processing of refmiscinfo elements --> - <xsl:template match="refentry"> - <xsl:apply-templates select="refmeta/refmiscinfo"/> - <xsl:apply-imports/> - </xsl:template> + <xsl:param name="literal.layout.options"> + <xsl:text>basicstyle=\ttfamily\small,backgroundcolor=\color[gray]{0.9},columns=fullflexible,frame=single</xsl:text> + </xsl:param> - <!-- put refmiscinfo data into the TeX file --> - <xsl:template match="refmiscinfo[@class]"> - <xsl:value-of select="concat('\def\refmiscinfo', @class, '{', ., '} ')"/> - </xsl:template> + <!-- ensure processing of refmiscinfo elements --> + <xsl:template match="refentry"> + <xsl:apply-templates select="refmeta/refmiscinfo"/> + <xsl:apply-imports/> + </xsl:template> - <!-- output TOC before synopsis section --> - <xsl:template match="refsynopsisdiv"> - <xsl:text>\tableofcontents </xsl:text> - <xsl:call-template name="makeheading"> - <xsl:with-param name="level">2</xsl:with-param> - <xsl:with-param name="num">1</xsl:with-param> - </xsl:call-template> - <xsl:apply-templates/> - </xsl:template> + <!-- put refmiscinfo data into the TeX file --> + <xsl:template match="refmiscinfo[@class]"> + <xsl:value-of select="concat('\def\refmiscinfo', @class, '{', ., '} ')"/> + </xsl:template> - <!-- force non-star \subsection commands --> - <xsl:template match="refsect1"> - <xsl:call-template name="makeheading"> - <xsl:with-param name="level">2</xsl:with-param> - <xsl:with-param name="num">1</xsl:with-param> - </xsl:call-template> - <xsl:apply-templates/> - </xsl:template> + <!-- output TOC before synopsis section --> + <xsl:template match="refsynopsisdiv"> + <xsl:text>\tableofcontents </xsl:text> + <xsl:call-template name="makeheading"> + <xsl:with-param name="level">2</xsl:with-param> + <xsl:with-param name="num">1</xsl:with-param> + </xsl:call-template> + <xsl:apply-templates/> + </xsl:template> + + <!-- force non-star \subsection commands --> + <xsl:template match="refsect1"> + <xsl:call-template name="makeheading"> + <xsl:with-param name="level">2</xsl:with-param> + <xsl:with-param name="num">1</xsl:with-param> + </xsl:call-template> + <xsl:apply-templates/> + </xsl:template> </xsl:stylesheet> diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/doc/dvisvgm.1 b/Build/source/texk/dvisvgm/dvisvgm-src/doc/dvisvgm.1 index 3fa4e8a683f..4a3fd1ae003 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/doc/dvisvgm.1 +++ b/Build/source/texk/dvisvgm/dvisvgm-src/doc/dvisvgm.1 @@ -1,13 +1,13 @@ '\" t .\" Title: dvisvgm .\" Author: Martin Gieseking <martin.gieseking@uos.de> -.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/> -.\" Date: 07/04/2016 +.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> +.\" Date: 01/19/2017 .\" Manual: dvisvgm Manual -.\" Source: dvisvgm 1.16 +.\" Source: dvisvgm 2.1 .\" Language: English .\" -.TH "DVISVGM" "1" "07/04/2016" "dvisvgm 1\&.16" "dvisvgm Manual" +.TH "DVISVGM" "1" "01/19/2017" "dvisvgm 2\&.1" "dvisvgm Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -250,6 +250,29 @@ This option tells dvisvgm to compute the precise bounding box of each character\ given, dvisvgm analyzes the actual shape of each character and derives a usually tight bounding box\&. .RE .PP +\fB\-f, \-\-font\-format\fR=\fIformat\fR +.RS 4 +Selects the file format used to embed the font data into the SVG files\&. Following formats are supported: +\fBSVG\fR +(that\(cqs the default), +\fBTTF\fR +(TrueType), +\fBWOFF\fR, and +\fBWOFF2\fR +(Web Open Font Format version 1 and 2)\&. By default, dvisvgm creates unhinted fonts that might look bad on low\-resolution devices\&. In order to improve the display quality, the generated TrueType, WOFF, or WOFF2 fonts can be autohinted\&. The autohinter is enabled by appending +\fB,autohint\fR +or +\fB,ah\fR +to the font format, e\&.g\&. +\fB\-\-font\-format=woff,autohint\fR +or +\fB\-\-font\-format=woff,ah\fR\&. +.sp +Option +\fB\-\-font\-format\fR +is only available if dvisvgm was built with WOFF support enabled\&. +.RE +.PP \fB\-m, \-\-fontmap\fR=\fIfilenames\fR .RS 4 Loads and evaluates a single font map file or a sequence of font map files\&. These files are required to resolve font file names and encodings\&. dvisvgm does not provide its own map files but tries to read available ones coming with dvips or dvipdfm\&. If option @@ -334,7 +357,7 @@ parameter is an integer value between 0 and 2\&. It selects the display variant .PP \fB\-\-keep\fR .RS 4 -Disables the removal of temporary files as created by Metafont (usually \&.gf, \&.tfm, and \&.log files)\&. +Disables the removal of temporary files as created by Metafont (usually \&.gf, \&.tfm, and \&.log files) or the TrueType/WOFF module\&. .RE .PP \fB\-\-libgs\fR=\fIfilename\fR @@ -564,6 +587,19 @@ Don\(cqt write the SVG output to a file but redirect it to \fBstdout\fR\&. .RE .PP +\fB\-\-tmpdir\fR[=\fIpath\fR] +.RS 4 +In some cases, dvisvgm needs to create temporary files to work properly\&. These files go to the system\(cqs temporary folder by default, e\&.g\&. +\fB/tmp\fR +on Linux systems\&. Option +\fB\-\-tmpdir\fR +allows to specify a different location if necessary for some reason\&. Please note that dvisvgm does not create this folder, so you must ensure that it actually exists before running dvisvgm\&. +.sp +If the optional parameter +\fIpath\fR +is omitted, dvisvgm prints the location of the system\(cqs temp folder and exits\&. +.RE +.PP \fB\-T, \-\-transform\fR=\fIcommands\fR .RS 4 Applies a sequence of transformations to the SVG content\&. Each transformation is described by a @@ -993,7 +1029,9 @@ The following TeX snippet adds two raw SVG elements to the output and updates th .PP \fBem\fR .RS 4 -These specials were introduced with the emTeX distribution by Eberhard Mattes\&. They provide line drawing statements, instructions for embedding MSP, PCX, and BMP image files, as well as two PCL commands\&. dvisvgm supports only the line drawing statements and ignores all other em specials silently\&. A description of the command syntax can be found in the DVI driver documentation coming with +These specials were introduced with the +\fIemTeX\fR +distribution by Eberhard Mattes\&. They provide line drawing statements, instructions for embedding MSP, PCX, and BMP image files, as well as two PCL commands\&. dvisvgm supports only the line drawing statements and ignores all other em specials silently\&. A description of the command syntax can be found in the DVI driver documentation coming with emTeX (\m[blue]http://www.ctan.org/pkg/emtex\m[])\&. .RE .PP @@ -1029,9 +1067,11 @@ pdfTeX user manual (\m[blue]http://www.ctan.org/pkg/pdftex\m[])\&. .PP \fBps\fR .RS 4 -The famous DVI driver dvips introduced its own set of specials in order to embed PostScript code into DVI files, which greatly improves the capabilities of DVI documents\&. One aim of dvisvgm is to completely evaluate all PostScript snippets and to convert as many of them as possible to SVG\&. In contrast to dvips, dvisvgm uses floating point arithmetics to compute the precise position of each graphic element, i\&.e\&. it doesn\(cqt round the coordinates\&. Therefore, the relative locations of the graphic elements may slightly differ from those computed by dvips\&. +The famous DVI driver +\fIdvips\fR +introduced its own set of specials in order to embed PostScript code into DVI files, which greatly improves the capabilities of DVI documents\&. One aim of dvisvgm is to completely evaluate all PostScript snippets and to convert as many of them as possible to SVG\&. In contrast to dvips, dvisvgm uses floating point arithmetics to compute the precise position of each graphic element, i\&.e\&. it doesn\(cqt round the coordinates\&. Therefore, the relative locations of the graphic elements may slightly differ from those computed by dvips\&. .sp -Since PostScript is a rather complex language, dvisvgm does not try to implement its own PostScript interpreter but relies on +Since PostScript is a rather complex language, dvisvgm does not implement its own PostScript interpreter but relies on Ghostscript (\m[blue]http://ghostscript.com\m[]) instead\&. If the Ghostscript library was not linked to the dvisvgm binary, it is looked up and loaded dynamically during runtime\&. In this case, dvisvgm looks for \fIlibgs\&.so\&.X\fR @@ -1292,4 +1332,4 @@ Please report bugs using the bug tracker at GitHub (\m[blue]https://github.com/m Written by Martin Gieseking <\m[blue]\fBmartin\&.gieseking@uos\&.de\fR\m[]> .SH "COPYING" .sp -Copyright \(co 2005\-2016 Martin Gieseking\&. Free use of this software is granted under the terms of the GNU General Public License (GPL) version 3 or, (at your option) any later version\&. +Copyright \(co 2005\-2017 Martin Gieseking\&. Free use of this software is granted under the terms of the GNU General Public License (GPL) version 3 or, (at your option) any later version\&. diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/doc/dvisvgm.txt.in b/Build/source/texk/dvisvgm/dvisvgm-src/doc/dvisvgm.txt.in index acd8f169642..b0e3cb6d8b8 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/doc/dvisvgm.txt.in +++ b/Build/source/texk/dvisvgm/dvisvgm-src/doc/dvisvgm.txt.in @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////// // This file is part of dvisvgm -- a fast DVI to SVG converter // -// Copyright (C) 2005-2016 Martin Gieseking <martin.gieseking@uos.de> // +// Copyright (C) 2005-2017 Martin Gieseking <martin.gieseking@uos.de> // // // // This program is free software; you can redistribute it and/or // // modify it under the terms of the GNU General Public License as // @@ -23,19 +23,19 @@ Martin Gieseking <@PACKAGE_BUGREPORT@> :man version: @VERSION@ :man manual: dvisvgm Manual -NAME +Name ---- dvisvgm - converts DVI and EPS files to the XML-based SVG format -SYNOPSIS +Synopsis -------- *dvisvgm* [ 'options' ] 'file' [.dvi] *dvisvgm* -E [ 'options' ] 'file' [.eps] -DESCRIPTION +Description ----------- The command-line utility *dvisvgm* converts DVI files, as generated by TeX/LaTeX, to the XML-based scalable vector graphics format SVG. It supports the classic DVI version 2 as @@ -69,7 +69,7 @@ compatible SVG files, command-line option *--no-fonts* can be given to replace t by plain graphics paths. -OPTIONS +Options ------- dvisvgm provides a POSIX-compliant command-line interface with short and long option names. They may be given before and/or after the name of the file to be converted. Also, the order of @@ -148,20 +148,17 @@ If argument 'dir' is omitted, dvisvgm prints the path of the default cache direc with further information about the stored fonts. Additionally, outdated and corrupted cache files are removed. - *-j, --clipjoin*:: This option tells dvisvgm to compute all intersections of clipping paths itself rather than delegating this task to the SVG renderer. The resulting SVG files are more portable because some SVG viewers don't support intersecting clipping paths which are defined by 'clipPath' elements containing a 'clip-path' attribute. - *--color*:: Enables colorization of messages printed during the conversion process. The colors can be customized via the environment variable *DVISVGM_COLORS*. See the <<environment, Environment section>> below for further information. - *--colornames*:: By default, dvisvgm exclusively uses RGB values of the form '#RRGGBB' to represent colors in the SVG file. According to the SVG standard, it's also possible to use color names (like +black+ @@ -173,6 +170,7 @@ SVG color name will still be represented by RGB values. Adds comments with further information about selected data to the SVG file. Currently, only font elements and font CSS rules related to native fonts are annotated. + *-E, --eps*:: If this option is given, dvisvgm does not expect a DVI but an EPS input file, and tries to convert it to SVG. In order to do so, a single 'psfile' special command is created and forwarded to the @@ -180,7 +178,6 @@ PostScript special handler. This option is only available if dvisvgm was built with PostScript support enabled, and requires Ghostscript to be available. See option *--libgs* for further information. - *-e, --exact*:: This option tells dvisvgm to compute the precise bounding box of each character. By default, the values stored in a font's TFM file are used to determine a glyph's extent. As these values are @@ -190,6 +187,16 @@ and/or height of some glyphs may be larger (or smaller) than the respective TFM this can lead to clipped characters at the bounds of the SVG graphics. With option *--exact* given, dvisvgm analyzes the actual shape of each character and derives a usually tight bounding box. +*-f, --font-format*='format':: +Selects the file format used to embed the font data into the SVG files. Following formats are +supported: +SVG+ (that's the default), +TTF+ (TrueType), +WOFF+, and +WOFF2+ (Web Open Font Format +version 1 and 2). +By default, dvisvgm creates unhinted fonts that might look bad on low-resolution devices. In order to +improve the display quality, the generated TrueType, WOFF, or WOFF2 fonts can be autohinted. The +autohinter is enabled by appending +,autohint+ or +,ah+ to the font format, +e.g. +--font-format=woff,autohint+ or +--font-format=woff,ah+. ++ +Option *--font-format* is only available if dvisvgm was built with WOFF support enabled. *-m, --fontmap*='filenames':: Loads and evaluates a single font map file or a sequence of font map files. These files are required @@ -226,7 +233,6 @@ given in 'myfile2.map' are removed from the font map tree. For further information about the map file formats and the mode specifiers, see the manuals of dvips and dvipdfm. - *--grad-overlap*:: Tells dvisvgm to create overlapping grid segments when approximating color gradient fills (also see option *--grad-segments* below). By default, adjacent segments don't overlap but only touch each other @@ -241,7 +247,6 @@ Currently, dvisvgm computes the overlapping segments separately for each patch o may consist of multiple patches of the same type). Therefore, there still might be visible gaps at the seam of two adjacent patches. - *--grad-segments*='number':: Determines the maximal number of segments per column and row used to approximate gradient color fills. Since SVG 1.1 only supports a small subset of the shading algorithms available in PostScript, @@ -256,14 +261,12 @@ tensor-product patch meshes. They are approximated by subdividing the area of ea __n__×__n__ grid of smaller segments. The maximal number of segments per column and row can be changed with option *--grad-segments*. - *--grad-simplify*='delta':: If the size of the segments created to approximate gradient color fills falls below the given delta value, dvisvgm reduces their level of detail. For example, Bézier curves are replaced by straight lines, and triangular segments are combined to tetragons. For a small 'delta', these simplifications are usually not noticeable but reduce the size of the generated SVG files significantly. - *-h, --help*[='mode']:: Prints a short summary of all available command-line options. The optional 'mode' parameter is an integer value between 0 and 2. It selects the display variant of the help text. Mode 0 @@ -271,10 +274,9 @@ lists all options divided into categories with section headers. This is also the dvisvgm is called without parameters. Mode 1 lists all options ordered by the short option names, while mode 2 sorts the lines by the long option names. - *--keep*:: -Disables the removal of temporary files as created by Metafont (usually .gf, .tfm, and .log files). - +Disables the removal of temporary files as created by Metafont (usually .gf, .tfm, and .log files) or +the TrueType/WOFF module. *--libgs*='filename':: This option is only available if the Ghostscript library is not directly linked to dvisvgm and if @@ -286,7 +288,6 @@ Alternatively, it's also possible to set the GS library name by the environment The latter has less precedence than the command-line option, i.e. dvisvgm ignores variable *LIBGS* if *--libgs* is given. - *-L, --linkmark*='style':: Selects the method how to mark hyperlinked areas. The 'style' argument can take one of the values 'none', 'box', and 'line', where 'box' is the default, i.e. a rectangle is drawn around @@ -304,33 +305,28 @@ selects the frame color. Examples: +box:red+ or +box:#ff0000+ draws red boxes around the linked areas. +yellow:blue+ creates yellow filled rectangles with blue frames. - *-l, --list-specials*:: Prints a list of registered special handlers and exits. Each handler processes a set of special statements belonging to the same category. In most cases, the categories are identified by the prefix of the special statements. It's usually a leading word separated from the rest of the statement by a colon or a blank, e.g. 'color' or 'ps'. - *-M, --mag*='factor':: Sets the magnification factor applied in conjunction with Metafont calls prior tracing the glyphs. The larger this value, the better the tracing results. Nevertheless, large magnification values can cause Metafont arithmetic errors due to number overflows. So, use this option with care. The default setting usually produces nice results. - *--no-merge*:: Puts every single character in a separate 'text' element with corresponding 'x' and 'y' attributes. By default, new 'text' or 'tspan' elements are only created if a string starts at a location that differs from the regular position defined by the characters' advance values. - *--no-mktexmf*:: Suppresses the generation of missing font files. If dvisvgm can't find a font file through the kpathsea lookup mechanism, it calls the external tools 'mktextfm' or 'mktexmf'. This option disables these calls. - *-n, --no-fonts*[='variant']:: If this option is given, dvisvgm doesn't create SVG 'font' elements but uses 'paths' instead. The resulting SVG files tend to be larger but they are concurrently more compatible with most applications that @@ -339,12 +335,10 @@ by paths. Variant 0 creates 'path' and 'use' elements in order to avoid lengthy Variant 1 creates 'path' elements only. Option *--no-fonts* implies *--no-styles*. - *-c, --scale*='sx'[,'sy']:: Scales the page content horizontally by 'sx' and vertically by 'sy'. This option is equivalent to *-TS*'sx','sy'. - *-S, --no-specials*[='names']:: Disable processing of special commands embedded in the DVI file. If no further parameter is given, all specials are ignored. To disable a selected set of specials, @@ -353,14 +347,12 @@ identifier referencing the intended special handler. Option *--list-specials* li currently available together with their names. All unsupported special statements are silently ignored. - *--no-styles*:: By default, dvisvgm creates CSS styles and class attributes to reference fonts. This variant is more compact than adding the complete font information to each text element over and over again. However, if you prefer direct font references, the default behavior can be disabled with option *--no-styles*. - *-o, --output*='pattern':: Sets the pattern specifying the names of the generated SVG files. Parameter 'pattern' is a string that may contain static character sequences as well as the variables *%f*, *%p*, @@ -385,7 +377,6 @@ is a single-page document. Otherwise, multiple SVG files 'foo-01.svg', 'foo-02.s produced. In Windows environments, the percent sign indicates dereferenced environment variables, and must therefore be protected by a second percent sign, e.g. +--output=%%f-%%p+. - *-p, --page*='ranges':: This option selects the pages to be processed. Parameter 'ranges' consists of a comma-separated list of single page numbers and/or page ranges. A page range is a pair of numbers separated by @@ -402,7 +393,6 @@ Please consider that the page values don't refer to the page numbers printed on corresponding page. Instead, the physical page count is expected, where the first page always gets number 1. - *-d, --precision*='digits':: Specifies the maximal number of decimal places applied to floating-point attribute values. All attribute values written to the generated SVG file(s) are rounded accordingly. The @@ -410,18 +400,15 @@ parameter 'digits' allows integer values from 0 to 6, where 0 enables the automa of significant decimal places. This is also the default value if dvisvgm is called without option *--precision*. - *-P, --progress*[='delay']:: Enables a simple progress indicator shown when time-consuming operations like PostScript specials are processed. The indicator doesn't appear before the given delay (in seconds) has elapsed. The default delay value is 0.5 seconds. - *-r, --rotate*='angle':: Rotates the page content clockwise by 'angle' degrees around the page center. This option is equivalent to *-TR*'angle'. - *-R, --relative*:: SVG allows to define graphics paths by a sequence of absolute and/or relative path commands, i.e. each command expects either absolute coordinates or coordinates relative to the @@ -429,10 +416,17 @@ current drawing position. By default, dvisvgm creates paths made up of absolute If option *--relative* is given, relative commands are created instead. This slightly reduces the size of the SVG files in most cases. - *-s, --stdout*:: Don't write the SVG output to a file but redirect it to *stdout*. +*--tmpdir*[='path']:: +In some cases, dvisvgm needs to create temporary files to work properly. These files go to +the system's temporary folder by default, e.g. +/tmp+ on Linux systems. Option *--tmpdir* +allows to specify a different location if necessary for some reason. Please note that dvisvgm +does not create this folder, so you must ensure that it actually exists before running dvisvgm. ++ +If the optional parameter 'path' is omitted, dvisvgm prints the location of the system's +temp folder and exits. *-T, --transform*='commands':: Applies a sequence of transformations to the SVG content. Each transformation is described @@ -525,12 +519,10 @@ By adding these values you can combine the categories. The default level is 7, i messages are printed. + - *-V, --version*[='extended']:: Prints the version of dvisvgm and exits. If the optional argument is set to 'yes', the version numbers of the linked libraries are printed as well. - *-z, --zip*[='level']:: Creates a compressed SVG file with suffix .svgz. The optional argument specifies the compression level. Valid values are in the range of 1 to 9 (default value is 9). Larger values cause better @@ -538,15 +530,13 @@ compression results but may take slightly more computation time. + CAUTION: This option cannot be combined with *-s, --stdout*. - *-Z, --zoom*[='factor']:: Multiplies the 'width' and 'height' attributes of the SVG root element by argument 'factor' while the coordinate system of the graphic content is retained. As a result, most SVG viewers zoom the graphics accordingly. If a negative zoom factor is given, the 'width' and 'height' attributes are omitted. - [[specials]] -SUPPORTED SPECIALS +Supported Specials ------------------ dvisvgm supports several sets of 'special commands' that can be used to enrich DVI files with additional features, like color, graphics, and hyperlinks. The evaluation of special commands is delegated to dedicated @@ -642,7 +632,7 @@ The following TeX snippet adds two raw SVG elements to the output and updates th + *em*:: -These specials were introduced with the emTeX distribution by Eberhard Mattes. They provide line drawing +These specials were introduced with the 'emTeX' distribution by Eberhard Mattes. They provide line drawing statements, instructions for embedding MSP, PCX, and BMP image files, as well as two PCL commands. dvisvgm supports only the line drawing statements and ignores all other em specials silently. A description of the command syntax can be found in the DVI driver documentation coming with @@ -671,14 +661,14 @@ dvipdfm font map format. For further information on the command syntax and seman +\pdfmapfile+ in the http://www.ctan.org/pkg/pdftex[pdfTeX user manual]. *ps*:: -The famous DVI driver dvips introduced its own set of specials in order to embed PostScript code into DVI files, +The famous DVI driver 'dvips' introduced its own set of specials in order to embed PostScript code into DVI files, which greatly improves the capabilities of DVI documents. One aim of dvisvgm is to completely evaluate all PostScript snippets and to convert as many of them as possible to SVG. In contrast to dvips, dvisvgm uses floating point arithmetics to compute the precise position of each graphic element, i.e. it doesn't round the coordinates. Therefore, the relative locations of the graphic elements may slightly differ from those computed by dvips. + -Since PostScript is a rather complex language, dvisvgm does not try to implement its own PostScript interpreter +Since PostScript is a rather complex language, dvisvgm does not implement its own PostScript interpreter but relies on http://ghostscript.com[Ghostscript] instead. If the Ghostscript library was not linked to the dvisvgm binary, it is looked up and loaded dynamically during runtime. In this case, dvisvgm looks for 'libgs.so.X' on Unix-like systems (supported ABI versions: 7,8,9), and for 'gsdll32.dll' or 'gsdll64.dll' on @@ -702,7 +692,7 @@ The TPIC special set defines instructions for drawing simple geometric objects. eepic and tplot, use these specials to describe graphics. -EXAMPLES +Examples -------- -------------- dvisvgm file @@ -725,9 +715,8 @@ dvisvgm --transform="R20,w/3,2h/5 T1cm,1cm S2,3" file ----------------------------------------------------- Converts the first page of 'file.dvi' to 'file.svg' where three transformations are applied. - [[environment]] -ENVIRONMENT +Environment ----------- dvisvgm uses the *kpathsea* library for locating the files that it opens. Hence, the environment variables described in the library's documentation influence the converter. @@ -768,7 +757,7 @@ All malformed entries in the list are silently ignored. *Example:* +er=01:pi=\*5+ sets the colors of error messages (+er+) to red (+1+) on black (+0+), and those of progress indicators (+pi+) to cyan (+5+) on default background (+*+). -FILES +Files ----- The location of the following files is determined by the kpathsea library. To check the actual kpathsea configuration you can use the *kpsewhich* utility. @@ -784,30 +773,26 @@ To check the actual kpathsea configuration you can use the *kpsewhich* utility. **.ttf*:: TrueType font files **.vf*:: Virtual font files -SEE ALSO +See also -------- *tex(1), mf(1), mktexmf(1), grodvi(1), potrace(1)*, and the *kpathsea library* info documentation. - -RESOURCES +Resources --------- Project home page::: http://dvisvgm.bplaced.net Code repository::: https://github.com/mgieseki/dvisvgm - -BUGS +Bugs ---- Please report bugs using the bug tracker at https://github.com/mgieseki/dvisvgm/issues[GitHub]. - -AUTHOR +Author ------ Written by {author} <{email}> - -COPYING +Copying ------- -Copyright (C) 2005-2016 Martin Gieseking. Free use of this software is +Copyright (C) 2005-2017 Martin Gieseking. Free use of this software is granted under the terms of the GNU General Public License (GPL) version 3 or, (at your option) any later version. diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/doc/tweak-dblatex-pdf.xsl b/Build/source/texk/dvisvgm/dvisvgm-src/doc/tweak-dblatex-pdf.xsl index a28bbb97e30..33010feae6c 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/doc/tweak-dblatex-pdf.xsl +++ b/Build/source/texk/dvisvgm/dvisvgm-src/doc/tweak-dblatex-pdf.xsl @@ -1,29 +1,29 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- This file is part of dvisvgm --> -<!-- Copyright (C) 2015 Martin Gieseking --> +<!-- Copyright (C) 2015-2017 Martin Gieseking <martin.gieseking@uos.de> --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/> + <xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/> - <!-- replace default document title --> - <xsl:template match="refentrytitle[. != ../refmiscinfo[@class='manual']]"> - <xsl:copy> - <xsl:value-of select="../refmiscinfo[@class='manual']"/> - </xsl:copy> - </xsl:template> + <!-- replace default document title --> + <xsl:template match="refentrytitle[. != ../refmiscinfo[@class='manual']]"> + <xsl:copy> + <xsl:value-of select="../refmiscinfo[@class='manual']"/> + </xsl:copy> + </xsl:template> - <!-- add static title to the synopsis section to prevent creating a dynamic one --> - <xsl:template match="refsynopsisdiv[not(title)]"> - <xsl:copy> - <xsl:copy-of select="@*"/> - <title>SYNOPSIS</title> - <xsl:apply-templates/> - </xsl:copy> - </xsl:template> + <!-- add static title to the synopsis section to prevent creating a dynamic one --> + <xsl:template match="refsynopsisdiv[not(title)]"> + <xsl:copy> + <xsl:copy-of select="@*"/> + <title>Synopsis</title> + <xsl:apply-templates/> + </xsl:copy> + </xsl:template> - <!-- copy everything else unchanged --> - <xsl:template match="@*|node()"> - <xsl:copy> - <xsl:apply-templates select="@*|node()"/> - </xsl:copy> - </xsl:template> -</xsl:stylesheet>
\ No newline at end of file + <!-- copy everything else unchanged --> + <xsl:template match="@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> +</xsl:stylesheet> |