diff options
author | Bernd Warken <groff-bernd.warken-72@web.de> | 2015-08-27 13:27:25 +0200 |
---|---|---|
committer | Bernd Warken <groff-bernd.warken-72@web.de> | 2015-08-27 13:27:25 +0200 |
commit | 9d885c6b342f71594af5d45f37ce65c121641e25 (patch) | |
tree | 8cfd6379602e721e568bdc8ccaabe6ed54262ebc | |
parent | b7441aee00f26cb2f68094d24eae9cc72eb0c678 (diff) | |
download | groff-git-9d885c6b342f71594af5d45f37ce65c121641e25.tar.gz |
Add new tmac file pdfpic.tmac and document this
48 files changed, 255 insertions, 165 deletions
@@ -1,3 +1,11 @@ +2015-08-27 Bernd Warken <groff-bernd.warken-72@web.de> + + * tmac/pfdpic.tmac: Add file for macro PDFPIC. + + * tmac/tmac.am: Add new tmac file. + + * man/groff_tmac.5.man: Add definition for the new tmac. + 2015-08-22 Bernd Warken <groff-bernd.warken-72@web.de> * all man-pages *.man: Rename man-pages such that the man section diff --git a/Makefile.am b/Makefile.am index 32303c0aa..2697115c3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -708,29 +708,23 @@ if USEPROGRAMPREFIX generate_man_files: $(PREFIXMAN1) install-prefix-man: for f in $(PREFIXMAN1); do \ - manfile_final_name=`basename $$f | sed 's/n$$/1/'`; \ - cp -f $$f $(DESTDIR)$(man1dir)/$(NAMEPREFIX)$$manfile_final_name; \ + cp -f $$f $(DESTDIR)$(man1dir)/$(NAMEPREFIX)`basename $$f`; \ done for f in $(PREFIXMAN5); do \ - manfile_final_name=`basename $$f | sed 's/n$$/5/'`; \ - cp -f $$f $(DESTDIR)$(man5dir)/$(NAMEPREFIX)$$manfile_final_name; \ + cp -f $$f $(DESTDIR)$(man5dir)/$(NAMEPREFIX)`basename $$f`; \ done for f in $(PREFIXMAN7); do \ - manfile_final_name=`basename $$f | sed 's/n$$/7/'`; \ - cp -f $$f $(DESTDIR)$(man7dir)/$(NAMEPREFIX)$$manfile_final_name; \ + cp -f $$f $(DESTDIR)$(man7dir)/$(NAMEPREFIX)`basename $$f`; \ done uninstall-prefix-man: for f in $(PREFIXMAN1); do \ - manfile_final_name=`basename $$f | sed 's/n$$/1/'`; \ - rm -f $(DESTDIR)$(man1dir)/$(NAMEPREFIX)$$manfile_final_name; \ + rm -f $(DESTDIR)$(man1dir)/$(NAMEPREFIX)`basename $$f`; \ done for f in $(PREFIXMAN5); do \ - manfile_final_name=`basename $$f | sed 's/n$$/5/'`; \ - rm -f $(DESTDIR)$(man5dir)/$(NAMEPREFIX)$$manfile_final_name; \ + rm -f $(DESTDIR)$(man5dir)/$(NAMEPREFIX)`basename $$f`; \ done for f in $(PREFIXMAN7); do \ - manfile_final_name=`basename $$f | sed 's/n$$/7/'`; \ - rm -f $(DESTDIR)$(man7dir)/$(NAMEPREFIX)$$manfile_final_name; \ + rm -f $(DESTDIR)$(man7dir)/$(NAMEPREFIX)`basename $$f`; \ done else man1_MANS += $(PREFIXMAN1) @@ -829,7 +823,7 @@ EXTRA_DIST += \ ChangeLog.116 \ ChangeLog.117 \ ChangeLog.118 \ - ChangeLog.119 \ + ChangeLog.119 \ ChangeLog.120 \ ChangeLog.121 \ FDL \ @@ -854,92 +848,11 @@ MOSTLYCLEANFILES += $(prefixexecbin_SCRIPTS) $(bin_SCRIPTS) \ $(PREFIXMAN1) $(PREFIXMAN5) $(PREFIXMAN7) \ test-groff -# Rule to build .man files. The brackets around the @ are used to prevent the -# substitution of the variable by automake. - -SUFFIXES = .1.man .n - -.1.man.n: - @echo Making $@ from $< - rm -f $@ - $(MKDIR_P) `dirname $@` - @LC_ALL=C \ - sed -e "s|[@]APPRESDIR[@]|$(appresdir)|g" \ - -e "s|[@]BINDIR[@]|$(bindir)|g" \ - -e "s|[@]BROKEN_SPOOLER_FLAGS[@]|$(BROKEN_SPOOLER_FLAGS)|g" \ - -e "s|[@]COMMON_WORDS_FILE[@]|$(common_words_file)|g" \ - -e "s|[@]DATASUBDIR[@]|$(datasubdir)|g" \ - -e "s|[@]DEFAULT_INDEX[@]|$(indexdir)/$(indexname)|g" \ - -e "s|[@]DEFAULT_INDEX_NAME[@]|$(indexname)|g" \ - -e "s|[@]DEVICE[@]|$(DEVICE)|g" \ - -e "s|[@]DOCDIR[@]|$(docdir)|g" \ - -e "s|[@]EXAMPLEDIR[@]|$(exampledir)|g" \ - -e "s|[@]FONTDIR[@]|$(fontdir)|g" \ - -e "s|[@]g[@]|$(g)|g" \ - -e "s![@]G[@]!`echo $(g) | tr [a-z] [A-Z]`!g" \ - -e "s|[@]HTMLDOCDIR[@]|$(htmldocdir)|g" \ - -e "s|[@]INDEX_SUFFIX[@]|$(indexext)|g" \ - -e "s|[@]LEGACYFONTDIR[@]|$(legacyfontdir)|g" \ - -e "s|[@]LOCALFONTDIR[@]|$(localfontdir)|g" \ - -e "s|[@]LOCALMACRODIR[@]|$(localtmacdir)|g" \ - -e "s|[@]MACRODIR[@]|$(tmacdir)|g" \ - -e "s|[@]MAN1EXT[@]|$(man1ext)|g" \ - -e "s|[@]MAN5EXT[@]|$(man5ext)|g" \ - -e "s|[@]MAN7EXT[@]|$(man7ext)|g" \ - -e "s|[@]MDATE[@]|`$(SHELL) $(top_srcdir)/mdate.sh $<`|g" \ - -e "s|[@]OLDFONTDIR[@]|$(oldfontdir)|g" \ - -e "s|[@]PDFDOCDIR[@]|$(pdfdocdir)|g" \ - -e "s|[@]SYSTEMMACRODIR[@]|$(systemtmacdir)|g" \ - -e "s|[@]TMAC_AN_PREFIX[@]|$(tmac_an_prefix)|g" \ - -e "s|[@]TMAC_M_PREFIX[@]|$(tmac_m_prefix)|g" \ - -e "s|[@]TMAC_MDIR[@]|$(tmacdir)/mm|g" \ - -e "s|[@]TMAC_S_PREFIX[@]|$(tmac_s_prefix)|g" \ - -e "s|[@]VERSION[@]|$(VERSION)|g" \ - $< >$@ - -SUFFIXES = .5.man .n - -.5.man.n: - @echo Making $@ from $< - rm -f $@ - $(MKDIR_P) `dirname $@` - @LC_ALL=C \ - sed -e "s|[@]APPRESDIR[@]|$(appresdir)|g" \ - -e "s|[@]BINDIR[@]|$(bindir)|g" \ - -e "s|[@]BROKEN_SPOOLER_FLAGS[@]|$(BROKEN_SPOOLER_FLAGS)|g" \ - -e "s|[@]COMMON_WORDS_FILE[@]|$(common_words_file)|g" \ - -e "s|[@]DATASUBDIR[@]|$(datasubdir)|g" \ - -e "s|[@]DEFAULT_INDEX[@]|$(indexdir)/$(indexname)|g" \ - -e "s|[@]DEFAULT_INDEX_NAME[@]|$(indexname)|g" \ - -e "s|[@]DEVICE[@]|$(DEVICE)|g" \ - -e "s|[@]DOCDIR[@]|$(docdir)|g" \ - -e "s|[@]EXAMPLEDIR[@]|$(exampledir)|g" \ - -e "s|[@]FONTDIR[@]|$(fontdir)|g" \ - -e "s|[@]g[@]|$(g)|g" \ - -e "s![@]G[@]!`echo $(g) | tr [a-z] [A-Z]`!g" \ - -e "s|[@]HTMLDOCDIR[@]|$(htmldocdir)|g" \ - -e "s|[@]INDEX_SUFFIX[@]|$(indexext)|g" \ - -e "s|[@]LEGACYFONTDIR[@]|$(legacyfontdir)|g" \ - -e "s|[@]LOCALFONTDIR[@]|$(localfontdir)|g" \ - -e "s|[@]LOCALMACRODIR[@]|$(localtmacdir)|g" \ - -e "s|[@]MACRODIR[@]|$(tmacdir)|g" \ - -e "s|[@]MAN1EXT[@]|$(man1ext)|g" \ - -e "s|[@]MAN5EXT[@]|$(man5ext)|g" \ - -e "s|[@]MAN7EXT[@]|$(man7ext)|g" \ - -e "s|[@]MDATE[@]|`$(SHELL) $(top_srcdir)/mdate.sh $<`|g" \ - -e "s|[@]OLDFONTDIR[@]|$(oldfontdir)|g" \ - -e "s|[@]PDFDOCDIR[@]|$(pdfdocdir)|g" \ - -e "s|[@]SYSTEMMACRODIR[@]|$(systemtmacdir)|g" \ - -e "s|[@]TMAC_AN_PREFIX[@]|$(tmac_an_prefix)|g" \ - -e "s|[@]TMAC_M_PREFIX[@]|$(tmac_m_prefix)|g" \ - -e "s|[@]TMAC_MDIR[@]|$(tmacdir)/mm|g" \ - -e "s|[@]TMAC_S_PREFIX[@]|$(tmac_s_prefix)|g" \ - -e "s|[@]VERSION[@]|$(VERSION)|g" \ - $< >$@ - -SUFFIXES = .7.man .n - -.7.man.n: +# Suffixe rule to build .1, .5 and .7 files from .1.man, .5.man and +# .7.man files. The brackets around the @ are used to prevent the +# substitution of the variable by automake. +SUFFIXES += .man +.man: @echo Making $@ from $< rm -f $@ $(MKDIR_P) `dirname $@` diff --git a/contrib/chem/chem.am b/contrib/chem/chem.am index 671d2b48a..b6f6651e8 100644 --- a/contrib/chem/chem.am +++ b/contrib/chem/chem.am @@ -63,7 +63,7 @@ EXTRA_DIST += \ contrib/chem/examples/README.txt \ contrib/chem/examples/122/README.txt -man1_MANS += contrib/chem/chem.n +man1_MANS += contrib/chem/chem.1 MOSTLYCLEANFILES += $(CHEM_GENEXAMPLES) $(nodist_chemexample122_DATA) \ contrib/chem/README diff --git a/contrib/eqn2graph/eqn2graph.am b/contrib/eqn2graph/eqn2graph.am index 89bd76e56..a631f6427 100644 --- a/contrib/eqn2graph/eqn2graph.am +++ b/contrib/eqn2graph/eqn2graph.am @@ -23,7 +23,7 @@ eqn2graph_srcdir = $(top_srcdir)/contrib/eqn2graph bin_SCRIPTS += eqn2graph -man1_MANS += contrib/eqn2graph/eqn2graph.n +man1_MANS += contrib/eqn2graph/eqn2graph.1 EXTRA_DIST += \ contrib/eqn2graph/eqn2graph.1.man \ contrib/eqn2graph/eqn2graph.sh diff --git a/contrib/gdiffmk/gdiffmk.am b/contrib/gdiffmk/gdiffmk.am index e6bf07edb..6a5a6075a 100644 --- a/contrib/gdiffmk/gdiffmk.am +++ b/contrib/gdiffmk/gdiffmk.am @@ -28,7 +28,7 @@ gdiffmk_srcdir = $(top_srcdir)/contrib/gdiffmk bin_SCRIPTS += gdiffmk TESTS += contrib/gdiffmk/tests/gdiffmk_tests.sh -man1_MANS += contrib/gdiffmk/gdiffmk.n +man1_MANS += contrib/gdiffmk/gdiffmk.1 EXTRA_DIST += \ contrib/gdiffmk/gdiffmk.1.man \ contrib/gdiffmk/ChangeLog \ diff --git a/contrib/glilypond/glilypond.am b/contrib/glilypond/glilypond.am index a831a46a9..77ad47796 100644 --- a/contrib/glilypond/glilypond.am +++ b/contrib/glilypond/glilypond.am @@ -28,7 +28,7 @@ ######################################################################## glilypond_srcdir = $(top_srcdir)/contrib/glilypond bin_SCRIPTS += glilypond -man1_MANS += contrib/glilypond/glilypond.n +man1_MANS += contrib/glilypond/glilypond.1 # files going to lib directory `$(glilypond_dir)' # TODO glilypond_dir is subsitued by configure.ac, check if this could be removed diff --git a/contrib/gperl/gperl.am b/contrib/gperl/gperl.am index 6add9f90e..9520a6b43 100644 --- a/contrib/gperl/gperl.am +++ b/contrib/gperl/gperl.am @@ -27,7 +27,7 @@ ######################################################################## bin_SCRIPTS += gperl -man1_MANS += contrib/gperl/gperl.n +man1_MANS += contrib/gperl/gperl.1 EXTRA_DIST += \ contrib/gperl/ChangeLog \ contrib/gperl/gperl.1.man \ diff --git a/contrib/gpinyin/gpinyin.am b/contrib/gpinyin/gpinyin.am index 44596e8ea..bba0e6d6b 100644 --- a/contrib/gpinyin/gpinyin.am +++ b/contrib/gpinyin/gpinyin.am @@ -31,7 +31,7 @@ gpinyin_srcdir = $(top_srcdir)/contrib/gpinyin bin_SCRIPTS += gpinyin gpinyindir = $(gpinyin_dir) dist_gpinyin_DATA = contrib/gpinyin/subs.pl -man1_MANS += contrib/gpinyin/gpinyin.n +man1_MANS += contrib/gpinyin/gpinyin.1 EXTRA_DIST += \ contrib/gpinyin/ChangeLog \ contrib/gpinyin/gpinyin.1.man \ diff --git a/contrib/grap2graph/grap2graph.am b/contrib/grap2graph/grap2graph.am index 9a25dab4d..559e4da42 100644 --- a/contrib/grap2graph/grap2graph.am +++ b/contrib/grap2graph/grap2graph.am @@ -22,7 +22,7 @@ grap2graph_srcdir = $(top_srcdir)/contrib/grap2graph bin_SCRIPTS += grap2graph -man1_MANS += contrib/grap2graph/grap2graph.n +man1_MANS += contrib/grap2graph/grap2graph.1 EXTRA_DIST += \ $(grap2graph_srcdir)/grap2graph.sh \ $(grap2graph_srcdir)/grap2graph.1.man diff --git a/contrib/groff_filenames/groff_filenames.am b/contrib/groff_filenames/groff_filenames.am index d98ee122a..5fe9eaebf 100644 --- a/contrib/groff_filenames/groff_filenames.am +++ b/contrib/groff_filenames/groff_filenames.am @@ -26,7 +26,7 @@ ######################################################################## -man5_MANS += contrib/groff_filenames/groff_filenames.n +man5_MANS += contrib/groff_filenames/groff_filenames.5 EXTRA_DIST += \ contrib/groff_filenames/ChangeLog \ contrib/groff_filenames/groff_filenames.5.man diff --git a/contrib/groffer/groffer.am b/contrib/groffer/groffer.am index f3365ed7a..7b64ca824 100644 --- a/contrib/groffer/groffer.am +++ b/contrib/groffer/groffer.am @@ -70,13 +70,13 @@ grofferdir = $(groffer_dir) bin_SCRIPTS += groffer $(ROFF2PROGS) groffer_DATA = $(GROFFER_PERL) contrib/groffer/version.sh man1_MANS += \ - contrib/groffer/groffer.n \ - contrib/groffer/roff2dvi.n \ - contrib/groffer/roff2html.n \ - contrib/groffer/roff2pdf.n \ - contrib/groffer/roff2ps.n \ - contrib/groffer/roff2text.n \ - contrib/groffer/roff2x.n + contrib/groffer/groffer.1 \ + contrib/groffer/roff2dvi.1 \ + contrib/groffer/roff2html.1 \ + contrib/groffer/roff2pdf.1 \ + contrib/groffer/roff2ps.1 \ + contrib/groffer/roff2text.1 \ + contrib/groffer/roff2x.1 MOSTLYCLEANFILES += $(ROFF2MAN) $(ROFF2PROGS): $(groffer_srcdir)/roff2.pl diff --git a/contrib/hdtbl/hdtbl.am b/contrib/hdtbl/hdtbl.am index dd634a1e3..ba18ce148 100644 --- a/contrib/hdtbl/hdtbl.am +++ b/contrib/hdtbl/hdtbl.am @@ -22,7 +22,7 @@ hdtbl_srcdir = $(top_srcdir)/contrib/hdtbl hdtbl_builddir = $(top_builddir)/contrib/hdtbl -man7_MANS += contrib/hdtbl/groff_hdtbl.n +man7_MANS += contrib/hdtbl/groff_hdtbl.7 # Groff command used to generate .ps files HDTBL_TFLAG = -M$(hdtbl_srcdir) -M$(hdtbl_builddir) diff --git a/contrib/mm/mm.am b/contrib/mm/mm.am index 76fdc2565..abdc071ff 100644 --- a/contrib/mm/mm.am +++ b/contrib/mm/mm.am @@ -26,10 +26,10 @@ mm_builddir = $(top_builddir)/contrib/mm bin_SCRIPTS += mmroff -man1_MANS += contrib/mm/mmroff.n +man1_MANS += contrib/mm/mmroff.1 man7_MANS += \ - contrib/mm/groff_mm.n \ - contrib/mm/groff_mmse.n + contrib/mm/groff_mm.7 \ + contrib/mm/groff_mmse.7 # Files installed in $(tmacdir)/mm MMFILES = \ diff --git a/contrib/mom/mom.am b/contrib/mom/mom.am index 08d1d7d4d..9b66c81d0 100644 --- a/contrib/mom/mom.am +++ b/contrib/mom/mom.am @@ -32,7 +32,7 @@ MOMPDFMOM = \ PDFMOM_BIN_PATH="$(top_builddir)" \ $(PDFMOMBIN) $(FFLAG) $(TFLAG) $(MOM_TFLAG) $(MOM_KFLAG) -man7_MANS += contrib/mom/groff_mom.n +man7_MANS += contrib/mom/groff_mom.7 # Files installed in $(tmacdir). # MOMNORMALFILES are located in the source tree. diff --git a/contrib/pdfmark/pdfmark.am b/contrib/pdfmark/pdfmark.am index 13c1020a0..6b02d4253 100644 --- a/contrib/pdfmark/pdfmark.am +++ b/contrib/pdfmark/pdfmark.am @@ -23,7 +23,7 @@ pdfmark_srcdir = $(top_srcdir)/contrib/pdfmark pdfmark_builddir = $(top_builddir)/contrib/pdfmark -man1_MANS += contrib/pdfmark/pdfroff.n +man1_MANS += contrib/pdfmark/pdfroff.1 bin_SCRIPTS += pdfroff diff --git a/contrib/pic2graph/pic2graph.am b/contrib/pic2graph/pic2graph.am index 008cbfd04..791366737 100644 --- a/contrib/pic2graph/pic2graph.am +++ b/contrib/pic2graph/pic2graph.am @@ -21,7 +21,7 @@ # pic2graph_srcdir = $(top_srcdir)/contrib/pic2graph -man1_MANS += contrib/pic2graph/pic2graph.n +man1_MANS += contrib/pic2graph/pic2graph.1 bin_SCRIPTS += pic2graph EXTRA_DIST += \ contrib/pic2graph/pic2graph.sh \ diff --git a/man/groff_tmac.5.man b/man/groff_tmac.5.man index 54238440d..02d898949 100644 --- a/man/groff_tmac.5.man +++ b/man/groff_tmac.5.man @@ -386,6 +386,35 @@ orientation: . . .TP +.B pdfpic +A single macro is provided in this file, +.BR PSPIC , +to include a PDF graphic in a document, i.e. under the output device +.BR \-Tpdf . +. +For all other devices, +.B pspic +is used. +. +So +.B pdfpic +is an extension of +.B pspic. +. +By that you can now even replace all +.B PSPIC +by +.BR PDFPIC , +nothing gets lost by that. +. +The options of +.B PDFPIC +are identical to the +.B PSDIF +options. +. +. +.TP .B pic This file provides proper definitions for the macros .B PS diff --git a/man/man.am b/man/man.am index d5b50b67b..181825752 100644 --- a/man/man.am +++ b/man/man.am @@ -19,15 +19,15 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. man5_MANS += \ - man/groff_font.n \ - man/groff_out.n \ - man/groff_tmac.n + man/groff_font.5 \ + man/groff_out.5 \ + man/groff_tmac.5 man7_MANS += \ - man/ditroff.n \ - man/groff_char.n \ - man/groff_diff.n \ - man/groff.n \ - man/roff.n + man/ditroff.7 \ + man/groff_char.7 \ + man/groff_diff.7 \ + man/groff.7 \ + man/roff.7 EXTRA_DIST += \ man/groff_font.5.man \ man/groff_out.5.man \ diff --git a/src/devices/grodvi/grodvi.am b/src/devices/grodvi/grodvi.am index d1bfe4856..858308391 100644 --- a/src/devices/grodvi/grodvi.am +++ b/src/devices/grodvi/grodvi.am @@ -24,7 +24,7 @@ grodvi_LDADD = \ libdriver.a \ libgroff.a \ lib/libgnu.a $(LIBM) -man1_MANS += src/devices/grodvi/grodvi.n +man1_MANS += src/devices/grodvi/grodvi.1 EXTRA_DIST += src/devices/grodvi/grodvi.1.man diff --git a/src/devices/grohtml/grohtml.am b/src/devices/grohtml/grohtml.am index de00fea2d..3969a5757 100644 --- a/src/devices/grohtml/grohtml.am +++ b/src/devices/grohtml/grohtml.am @@ -32,7 +32,7 @@ post_grohtml_LDADD = $(LIBM) \ libdriver.a \ libgroff.a \ lib/libgnu.a -man1_MANS += src/devices/grohtml/grohtml.n +man1_MANS += src/devices/grohtml/grohtml.1 EXTRA_DIST += src/devices/grohtml/grohtml.1.man diff --git a/src/devices/grolbp/grolbp.am b/src/devices/grolbp/grolbp.am index a81c48f05..505e8b4f0 100644 --- a/src/devices/grolbp/grolbp.am +++ b/src/devices/grolbp/grolbp.am @@ -28,7 +28,7 @@ grolbp_LDADD = $(LIBM) \ libdriver.a \ libgroff.a \ lib/libgnu.a -man1_MANS += src/devices/grolbp/grolbp.n +man1_MANS += src/devices/grolbp/grolbp.1 EXTRA_DIST += src/devices/grolbp/grolbp.1.man diff --git a/src/devices/grolj4/grolj4.am b/src/devices/grolj4/grolj4.am index 35acb7d8e..680f5dbf2 100644 --- a/src/devices/grolj4/grolj4.am +++ b/src/devices/grolj4/grolj4.am @@ -24,8 +24,8 @@ grolj4_LDADD = $(LIBM) \ libdriver.a \ libgroff.a \ lib/libgnu.a -man1_MANS += src/devices/grolj4/grolj4.n -man5_MANS += src/devices/grolj4/lj4_font.n +man1_MANS += src/devices/grolj4/grolj4.1 +man5_MANS += src/devices/grolj4/lj4_font.5 EXTRA_DIST += \ src/devices/grolj4/grolj4.1.man \ src/devices/grolj4/lj4_font.5.man diff --git a/src/devices/gropdf/gropdf.am b/src/devices/gropdf/gropdf.am index ece55f1bb..54d04b17a 100644 --- a/src/devices/gropdf/gropdf.am +++ b/src/devices/gropdf/gropdf.am @@ -31,8 +31,8 @@ EXTRA_DIST += \ src/devices/gropdf/pdfmom.1.man man1_MANS += \ - src/devices/gropdf/gropdf.n \ - src/devices/gropdf/pdfmom.n + src/devices/gropdf/gropdf.1 \ + src/devices/gropdf/pdfmom.1 gropdf: $(gropdf_dir)/gropdf.pl $(SH_DEPS_SED_SCRIPT) $(RM) $@ diff --git a/src/devices/grops/grops.am b/src/devices/grops/grops.am index 41adf1c82..bd816f373 100644 --- a/src/devices/grops/grops.am +++ b/src/devices/grops/grops.am @@ -27,7 +27,7 @@ grops_LDADD = $(LIBM) \ libdriver.a \ libgroff.a \ lib/libgnu.a -man1_MANS += src/devices/grops/grops.n +man1_MANS += src/devices/grops/grops.1 EXTRA_DIST += \ src/devices/grops/grops.1.man \ src/devices/grops/psfig.diff \ diff --git a/src/devices/grotty/grotty.am b/src/devices/grotty/grotty.am index 3dcc80927..0e4a59ace 100644 --- a/src/devices/grotty/grotty.am +++ b/src/devices/grotty/grotty.am @@ -24,7 +24,7 @@ grotty_LDADD = $(LIBM) \ libdriver.a \ libgroff.a \ lib/libgnu.a -man1_MANS += src/devices/grotty/grotty.n +man1_MANS += src/devices/grotty/grotty.1 EXTRA_DIST += \ src/devices/grotty/grotty.1.man \ src/devices/grotty/TODO diff --git a/src/devices/xditview/xditview.am b/src/devices/xditview/xditview.am index f2b4261c9..53c1c8eef 100644 --- a/src/devices/xditview/xditview.am +++ b/src/devices/xditview/xditview.am @@ -46,7 +46,7 @@ gxditview_SOURCES = $(GXDITVIEWSOURCES) nodist_gxditview_SOURCES = $(XDITVIEW_GENHDRS) CLEANFILES += $(XDITVIEW_GENHDRS) -man1_MANS += src/devices/xditview/gxditview.n +man1_MANS += src/devices/xditview/gxditview.1 # Because we defined gxditview_CPPFLAGS, automake renames all the xditview's # objects, adding an "gxditview-" prefix. diff --git a/src/preproc/eqn/eqn.am b/src/preproc/eqn/eqn.am index 8eb836afb..8622fffca 100644 --- a/src/preproc/eqn/eqn.am +++ b/src/preproc/eqn/eqn.am @@ -45,7 +45,7 @@ eqn_SOURCES = \ src/preproc/eqn/pbox.h \ src/preproc/eqn/eqn.h -PREFIXMAN1 += src/preproc/eqn/eqn.n src/preproc/eqn/neqn.n +PREFIXMAN1 += src/preproc/eqn/eqn.1 src/preproc/eqn/neqn.1 EXTRA_DIST += \ src/preproc/eqn/TODO \ src/preproc/eqn/neqn.sh \ diff --git a/src/preproc/grn/grn.am b/src/preproc/grn/grn.am index f64d551f1..fab54dc8e 100644 --- a/src/preproc/grn/grn.am +++ b/src/preproc/grn/grn.am @@ -27,7 +27,7 @@ grn_SOURCES = \ src/preproc/grn/gprint.h src/preproc/grn/main.$(OBJEXT): defs.h grn_LDADD = libgroff.a lib/libgnu.a $(LIBM) -PREFIXMAN1 += src/preproc/grn/grn.n +PREFIXMAN1 += src/preproc/grn/grn.1 EXTRA_DIST += src/preproc/grn/README src/preproc/grn/grn.1.man diff --git a/src/preproc/pic/pic.am b/src/preproc/pic/pic.am index bfdd76e12..fb2637d93 100644 --- a/src/preproc/pic/pic.am +++ b/src/preproc/pic/pic.am @@ -38,7 +38,7 @@ pic_SOURCES = \ pic_CPPFLAGS = $(AM_CPPFLAGS) \ -I $(top_srcdir)/src/preproc/pic \ -I $(top_builddir)/src/preproc/pic -PREFIXMAN1 += src/preproc/pic/pic.n +PREFIXMAN1 += src/preproc/pic/pic.1 src/preproc/pic/pic-lex.$(OBJEXT): src/preproc/pic/pic.hpp EXTRA_DIST += \ diff --git a/src/preproc/preconv/preconv.am b/src/preproc/preconv/preconv.am index b4d7132b7..942eb0a34 100644 --- a/src/preproc/preconv/preconv.am +++ b/src/preproc/preconv/preconv.am @@ -21,7 +21,7 @@ bin_PROGRAMS += preconv preconv_LDADD = libgroff.a $(LIBM) $(LIBICONV) preconv_SOURCES = src/preproc/preconv/preconv.cpp -man1_MANS += src/preproc/preconv/preconv.n +man1_MANS += src/preproc/preconv/preconv.1 EXTRA_DIST += src/preproc/preconv/preconv.1.man diff --git a/src/preproc/refer/refer.am b/src/preproc/refer/refer.am index a879eba8c..2d931c63e 100644 --- a/src/preproc/refer/refer.am +++ b/src/preproc/refer/refer.am @@ -31,7 +31,7 @@ refer_SOURCES = \ src/preproc/refer/ref.h \ src/preproc/refer/token.h \ src/preproc/refer/command.h -PREFIXMAN1 += src/preproc/refer/refer.n +PREFIXMAN1 += src/preproc/refer/refer.1 EXTRA_DIST += src/preproc/refer/TODO src/preproc/refer/refer.1.man CLEANFILES += \ src/preproc/refer/label.cpp \ diff --git a/src/preproc/soelim/soelim.am b/src/preproc/soelim/soelim.am index ad4901e91..f8839fa6b 100644 --- a/src/preproc/soelim/soelim.am +++ b/src/preproc/soelim/soelim.am @@ -21,7 +21,7 @@ prefixexecbin_PROGRAMS += soelim soelim_LDADD = libgroff.a $(LIBM) soelim_SOURCES = src/preproc/soelim/soelim.cpp -PREFIXMAN1 += src/preproc/soelim/soelim.n +PREFIXMAN1 += src/preproc/soelim/soelim.1 EXTRA_DIST += \ src/preproc/soelim/TODO \ src/preproc/soelim/soelim.1.man diff --git a/src/preproc/tbl/tbl.am b/src/preproc/tbl/tbl.am index b83ce77be..a641d3d7a 100644 --- a/src/preproc/tbl/tbl.am +++ b/src/preproc/tbl/tbl.am @@ -24,7 +24,7 @@ tbl_SOURCES = \ src/preproc/tbl/main.cpp \ src/preproc/tbl/table.cpp \ src/preproc/tbl/table.h -PREFIXMAN1 += src/preproc/tbl/tbl.n +PREFIXMAN1 += src/preproc/tbl/tbl.1 EXTRA_DIST += src/preproc/tbl/tbl.1.man diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am index 6007e4087..11c4fa67b 100644 --- a/src/roff/groff/groff.am +++ b/src/roff/groff/groff.am @@ -35,7 +35,7 @@ groff_SOURCES = \ src/roff/groff/pipeline.c \ src/roff/groff/pipeline.h src/roff/groff/groff.$(OBJEXT): defs.h -man1_MANS += src/roff/groff/groff.n +man1_MANS += src/roff/groff/groff.1 EXTRA_DIST += src/roff/groff/groff.1.man GROFF_OPTS_OUTPUT = \ groff_opts_no_arg.txt \ diff --git a/src/roff/grog/grog.am b/src/roff/grog/grog.am index 1aa6b694e..2b668f008 100644 --- a/src/roff/grog/grog.am +++ b/src/roff/grog/grog.am @@ -29,7 +29,7 @@ GROG = src/roff/grog/subs.pl # grog_dir is defined by a m4 macro grogdir = $(grog_dir) dist_grog_DATA = $(GROG) -man1_MANS += src/roff/grog/grog.n +man1_MANS += src/roff/grog/grog.1 EXTRA_DIST += \ src/roff/grog/grog.1.man \ src/roff/grog/grog.pl diff --git a/src/roff/nroff/nroff.am b/src/roff/nroff/nroff.am index 526efe995..4c14200c1 100644 --- a/src/roff/nroff/nroff.am +++ b/src/roff/nroff/nroff.am @@ -20,7 +20,7 @@ prefixexecbin_SCRIPTS += nroff nroff_srcdir = $(top_srcdir)/src/roff/nroff -PREFIXMAN1 += src/roff/nroff/nroff.n +PREFIXMAN1 += src/roff/nroff/nroff.1 EXTRA_DIST += \ src/roff/nroff/nroff.1.man \ src/roff/nroff/nroff.sh diff --git a/src/roff/troff/troff.am b/src/roff/troff/troff.am index 9ddacbcb3..648ec2427 100644 --- a/src/roff/troff/troff.am +++ b/src/roff/troff/troff.am @@ -19,7 +19,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. prefixexecbin_PROGRAMS += troff -PREFIXMAN1 += src/roff/troff/troff.n +PREFIXMAN1 += src/roff/troff/troff.1 EXTRA_DIST += \ src/roff/troff/column.cpp \ src/roff/troff/troff.1.man \ diff --git a/src/utils/addftinfo/addftinfo.am b/src/utils/addftinfo/addftinfo.am index c399de68c..99479795b 100644 --- a/src/utils/addftinfo/addftinfo.am +++ b/src/utils/addftinfo/addftinfo.am @@ -23,7 +23,7 @@ ######################################################################## bin_PROGRAMS += addftinfo -man1_MANS += src/utils/addftinfo/addftinfo.n +man1_MANS += src/utils/addftinfo/addftinfo.1 EXTRA_DIST += src/utils/addftinfo/addftinfo.1.man addftinfo_LDADD = libgroff.a addftinfo_SOURCES = \ diff --git a/src/utils/afmtodit/afmtodit.am b/src/utils/afmtodit/afmtodit.am index f38870e44..1bfc0c5f8 100644 --- a/src/utils/afmtodit/afmtodit.am +++ b/src/utils/afmtodit/afmtodit.am @@ -26,7 +26,7 @@ afmtodit_srcdir = $(top_srcdir)/src/utils/afmtodit bin_SCRIPTS += afmtodit -man1_MANS += src/utils/afmtodit/afmtodit.n +man1_MANS += src/utils/afmtodit/afmtodit.1 EXTRA_DIST += \ src/utils/afmtodit/afmtodit.1.man \ src/utils/afmtodit/afmtodit.pl \ diff --git a/src/utils/hpftodit/hpftodit.am b/src/utils/hpftodit/hpftodit.am index 0c0626245..ab847b838 100644 --- a/src/utils/hpftodit/hpftodit.am +++ b/src/utils/hpftodit/hpftodit.am @@ -23,7 +23,7 @@ ######################################################################## bin_PROGRAMS += hpftodit -man1_MANS += src/utils/hpftodit/hpftodit.n +man1_MANS += src/utils/hpftodit/hpftodit.1 EXTRA_DIST += src/utils/hpftodit/hpftodit.1.man hpftodit_LDADD = libgroff.a $(LIBM) hpftodit_SOURCES = \ diff --git a/src/utils/indxbib/indxbib.am b/src/utils/indxbib/indxbib.am index fc3058736..7bdfc1a81 100644 --- a/src/utils/indxbib/indxbib.am +++ b/src/utils/indxbib/indxbib.am @@ -25,7 +25,7 @@ indxbib_SOURCES = \ src/utils/indxbib/signal.c src/utils/indxbib/indxbib.$(OBJEXT): defs.h indxbib_LDADD = libbib.a libgroff.a $(LIBM) -PREFIXMAN1 += src/utils/indxbib/indxbib.n +PREFIXMAN1 += src/utils/indxbib/indxbib.1 EXTRA_DIST += \ src/utils/indxbib/indxbib.1.man \ src/utils/indxbib/eign diff --git a/src/utils/lkbib/lkbib.am b/src/utils/lkbib/lkbib.am index 471025a86..e797795a7 100644 --- a/src/utils/lkbib/lkbib.am +++ b/src/utils/lkbib/lkbib.am @@ -19,7 +19,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. bin_PROGRAMS += lkbib -man1_MANS += src/utils/lkbib/lkbib.n +man1_MANS += src/utils/lkbib/lkbib.1 EXTRA_DIST += src/utils/lkbib/lkbib.1.man lkbib_LDADD = libbib.a libgroff.a $(LIBM) lkbib_SOURCES = src/utils/lkbib/lkbib.cpp diff --git a/src/utils/lookbib/lookbib.am b/src/utils/lookbib/lookbib.am index b2e22ded3..3369d90b3 100644 --- a/src/utils/lookbib/lookbib.am +++ b/src/utils/lookbib/lookbib.am @@ -19,7 +19,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. prefixexecbin_PROGRAMS += lookbib -PREFIXMAN1 += src/utils/lookbib/lookbib.n +PREFIXMAN1 += src/utils/lookbib/lookbib.1 EXTRA_DIST += src/utils/lookbib/lookbib.1.man lookbib_LDADD = libbib.a libgroff.a $(LIBM) lookbib_SOURCES = src/utils/lookbib/lookbib.cpp diff --git a/src/utils/pfbtops/pfbtops.am b/src/utils/pfbtops/pfbtops.am index 1869c5b7d..5216be20a 100644 --- a/src/utils/pfbtops/pfbtops.am +++ b/src/utils/pfbtops/pfbtops.am @@ -19,7 +19,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. bin_PROGRAMS += pfbtops -man1_MANS += src/utils/pfbtops/pfbtops.n +man1_MANS += src/utils/pfbtops/pfbtops.1 EXTRA_DIST += src/utils/pfbtops/pfbtops.1.man pfbtops_SOURCES = src/utils/pfbtops/pfbtops.c pfbtops_LDADD = libgroff.a $(LIBM) diff --git a/src/utils/tfmtodit/tfmtodit.am b/src/utils/tfmtodit/tfmtodit.am index 6c6494a21..277869a1a 100644 --- a/src/utils/tfmtodit/tfmtodit.am +++ b/src/utils/tfmtodit/tfmtodit.am @@ -19,7 +19,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. bin_PROGRAMS += tfmtodit -man1_MANS += src/utils/tfmtodit/tfmtodit.n +man1_MANS += src/utils/tfmtodit/tfmtodit.1 EXTRA_DIST += src/utils/tfmtodit/tfmtodit.1.man tfmtodit_SOURCES = src/utils/tfmtodit/tfmtodit.cpp tfmtodit_LDADD = libgroff.a $(LIBM) diff --git a/src/utils/xtotroff/xtotroff.am b/src/utils/xtotroff/xtotroff.am index 8d4fce627..14a84bdc1 100644 --- a/src/utils/xtotroff/xtotroff.am +++ b/src/utils/xtotroff/xtotroff.am @@ -20,7 +20,7 @@ if !WITHOUT_X11 bin_PROGRAMS += xtotroff -man1_MANS += src/utils/xtotroff/xtotroff.n +man1_MANS += src/utils/xtotroff/xtotroff.1 xtotroff_SOURCES = src/utils/xtotroff/xtotroff.c XLIBS=$(LIBXUTIL) $(LIBGROFF) xtotroff_LDADD = libxutil.a libgroff.a $(X_LIBS) $(X_PRE_LIBS) \ diff --git a/tmac/pdfpic.tmac b/tmac/pdfpic.tmac new file mode 100644 index 000000000..16ac9e181 --- /dev/null +++ b/tmac/pdfpic.tmac @@ -0,0 +1,139 @@ +.\" pdfpic.tmac +.\" +.\" Define the PDFPIC macro. +.\" +.\" When used other than with gropdf, the image is converted to .eps +.\" and processing passed over to PSPIC. +.\" +.\" Usage: +.\" +.\" .PDFPIC [-L|-R|-C|-I <indent>] <file> [<width> [<height>]] +.\" +.\" Requires the poppler-utils package (for pdfinfo and pdftops). +.\" Requires running groff in unsafe mode. +. +.do if d PDFPIC .nx +. +.nr _C \n[.C] +.cp 0 +. +.de @abort +. ab [PDFPIC]: \\$* Aborting. +.. +.de PDFPIC +. if !\\n[.U] \ +. @abort Use of \\$0 requires giving groff the -U option. +. +. nr convert-pdf 0 +. if !'\\*[.T]'pdf' .nr convert-pdf 1 +. +. nr pdf-offset-mode 0 +. +. \" left-aligned? +. ie '\\$1'-L' \{\ +. nr pdf-offset-mode 1 +. if \\n[convert-pdf] .ds pspic-args \\$1 \" +. shift +. \} +. el \{\ +. \" right-aligned? +. ie '\\$1'-R' \{\ +. nr pdf-offset-mode 2 +. if \\n[convert-pdf] .ds pspic-args \\$1 \" +. shift +. \} +. el \{\ +. \" indented? +. ie '\\$1'-I' \{\ +. nr pdf-offset-mode 3 +. nr pdf-offset (m;\\$2) +. if \\n[convert-pdf] .ds pspic-args \\$1 \\$2 \" +. shift 2 +. \} +. el \{\ +. \" centered is the default +. ie '\\$1'-C' \{\ +. if \\n[convert-pdf] .ds pspic-args \\$1 \" +. shift +. \} +. el .nr pdf-offset-mode 0 +. \} +. \} +. \} +. br +. +. ds is-pdf \\$1 +. substring is-pdf -3 +. if !'\\*[is-pdf]'pdf' \ +. @abort \\$1 at line \\n[.c] is not a PDF file, or lacks a .pdf extension. +. +.\" if driver is not gropdf, convert image to .eps +. if \\n[convert-pdf] \{\ +. ds img-file \\$1 +. substring img-file 0 -5 +. +. sy pdftops -eps \\$1 +. shift +. +. as pspic-args \\*[img-file].eps \\$* +. +. PSPIC \\*[pspic-args] +. return +. \} +. +.\" get image dimensions +. ec @ +. sy pdfinfo @$1 | \ +grep "Page *size" | \ +sed -e 's/Page *size: *\\([[:digit:].]*\\) *x *\\([[:digit:].]*\\).*$/\ +.nr pdf-wid (p;\\1)\\n\ +.nr pdf-ht (p;\\2)/' \ +> /tmp/pdfpic\n[$$] +. so /tmp/pdfpic\n[$$] +. sy rm /tmp/pdfpic\n[$$] +. ec +. +. \" if we have a <width> parameter, use it as the final +. \" image width; otherwise we use the image's natural width +. \" or the current line length, whatever is smaller +. ie (\\n[.$] >= 2) \ +. nr pdf-deswid (i;\\$2) +. el \ +. nr pdf-deswid ((\\n[.l] - \\n[.i]) <? \\n[pdf-wid]) +. +. \" compute the final image height (with proper rounding), +. \" based on the image's aspect +. nr pdf-desht (\\n[pdf-deswid] * 1000 + (\\n[pdf-wid] / 2) \ + / \\n[pdf-wid] * \\n[pdf-ht] \ + + 500 / 1000) +. +. \" if we have a <height> parameter, use it as the final +. \" image height in case it is smaller than the height +. \" value we have just computed +. if ((\\n[.$] >= 3) & (\\n[pdf-desht] > (i;0\\$3))) \{\ +. nr pdf-desht (i;\\$3) +. \" recompute the final image width since we always +. \" keep the correct image aspect +. nr pdf-deswid (\\n[pdf-desht] * 1000 + (\\n[pdf-ht] / 2) \ + / \\n[pdf-ht] * \\n[pdf-wid] \ + + 500 / 1000) +. \} +. +. \" reserve vertical space for image +. ne (\\n[pdf-desht]u + 1v) +. +. \" compute image offset w.r.t. the current left margin +. if (\\n[pdf-offset-mode] == 0) \ +. nr pdf-offset (\\n[.l] - \\n[.i] - \\n[pdf-deswid] / 2) +. if (\\n[pdf-offset-mode] == 1) \ +. nr pdf-offset 0 +. if (\\n[pdf-offset-mode] == 2) \ +. nr pdf-offset (\\n[.l] - \\n[.i] - \\n[pdf-deswid]) +. +\h'\\n[pdf-offset]u'\ +\X'pdf: pdfpic \\$1 -L \\n[pdf-deswid]z \\n[pdf-desht]z' +.. +. +.cp \n[_C] +. +.\" end of pdfpic.tmac diff --git a/tmac/tmac.am b/tmac/tmac.am index 1bda6e4e3..586b45a2f 100644 --- a/tmac/tmac.am +++ b/tmac/tmac.am @@ -23,12 +23,12 @@ tmac_srcdir = $(top_srcdir)/tmac tmac_builddir = $(top_builddir)/tmac man7_MANS += \ - tmac/groff_ms.n \ - tmac/groff_man.n \ - tmac/groff_me.n \ - tmac/groff_mdoc.n \ - tmac/groff_trace.n \ - tmac/groff_www.n + tmac/groff_ms.7 \ + tmac/groff_man.7 \ + tmac/groff_me.7 \ + tmac/groff_mdoc.7 \ + tmac/groff_trace.7 \ + tmac/groff_www.7 TMACNORMALFILES = \ tmac/man.tmac \ @@ -48,6 +48,7 @@ TMACNORMALFILES = \ tmac/trace.tmac \ tmac/ps.tmac \ tmac/psold.tmac \ + tmac/pdfpic.tmac \ tmac/pspic.tmac \ tmac/psatk.tmac \ tmac/pdf.tmac \ |