├── .editorconfig ├── .gitattributes ├── .gitignore ├── CHANGES ├── CHANGES_GR ├── LICENSE ├── LICENSE.d ├── BERKELEY.LICENSE ├── CALDERA.LICENSE ├── COPYING.LGPL ├── LPPL-1-0.LICENSE ├── LUCENT.LICENSE └── OPENSOLARIS.LICENSE ├── README ├── README.md ├── checknr ├── Makefile.mk ├── checknr.1 └── checknr.c ├── col ├── Makefile.mk └── col.c ├── compat.c ├── configure ├── doc ├── fonts │ ├── README │ ├── doc.ditroff │ ├── doc.more │ ├── doc.ps │ ├── doc.tr │ └── makefile ├── just │ ├── README │ ├── doc.ditroff │ ├── doc.more │ ├── doc.ps │ ├── doc.tr │ └── makefile ├── quickstart │ ├── README │ ├── doc.ditroff │ ├── doc.more │ ├── doc.ps │ ├── doc.tr │ └── makefile └── troff │ ├── README │ ├── doc.ditroff │ ├── doc.more │ ├── doc.ps │ ├── doc.tr │ └── makefile ├── eqn ├── checkeq.d │ ├── Makefile.mk │ └── checkeq.c ├── diacrit.c ├── e.h ├── e.y ├── eqn.d │ ├── .gitignore │ ├── Makefile.mk │ ├── eqn.1 │ └── eqnchar.7.in ├── eqnbox.c ├── eqnchar.d │ ├── .gitignore │ ├── Makefile.mk │ ├── ascii │ ├── eqnchar │ ├── genutf8.c │ ├── greek │ └── iso ├── font.c ├── fromto.c ├── funny.c ├── glob.c ├── integral.c ├── io.c ├── lex.c ├── lookup.c ├── mark.c ├── matrix.c ├── move.c ├── neqn.d │ ├── .gitignore │ └── Makefile.mk ├── over.c ├── paren.c ├── pile.c ├── shift.c ├── size.c ├── sqrt.c ├── text.c ├── version.c └── yyval.sed ├── grap ├── .gitignore ├── Makefile.mk ├── coord.c ├── for.c ├── frame.c ├── grap.1.in ├── grap.defines ├── grap.h ├── grap.y ├── grapl.l ├── input.c ├── label.c ├── main.c ├── misc.c ├── plot.c ├── print.c ├── ticks.c └── version.c ├── heirloom-doctools.spec ├── include └── global.h ├── makefile ├── mk.config ├── mpm ├── Makefile.mk ├── README ├── misc.cc ├── misc.h ├── page.cc ├── page.h ├── queue.cc ├── range.cc ├── range.h ├── slug.cc ├── slug.h └── version.c ├── pic ├── .gitignore ├── Makefile.mk ├── arcgen.c ├── blockgen.c ├── boxgen.c ├── circgen.c ├── for.c ├── input.c ├── linegen.c ├── main.c ├── misc.c ├── movegen.c ├── pic.1 ├── pic.h ├── picl.l ├── picy.y ├── pltroff.c ├── print.c ├── symtab.c ├── textgen.c └── version.c ├── picpack ├── Makefile.mk ├── picpack.1 └── picpack.c ├── pkginfo ├── ptx ├── Makefile.mk ├── eign ├── ptx.1.in └── ptx.c ├── refer ├── .gitignore ├── Makefile.mk ├── addbib.1 ├── addbib.c ├── deliv2.c ├── glue1.c ├── glue2.c ├── glue3.c ├── glue4.c ├── glue5.c ├── hunt1.c ├── hunt2.c ├── hunt3.c ├── hunt5.c ├── hunt6.c ├── hunt7.c ├── hunt8.c ├── hunt9.c ├── indxbib.sh ├── inv1.c ├── inv2.c ├── inv3.c ├── inv5.c ├── inv6.c ├── lookbib.1.in ├── lookbib.c ├── mkey1.c ├── mkey2.c ├── mkey3.c ├── papers │ ├── Rbstjissue │ ├── Rv7man │ └── runinv.sh ├── refer..c ├── refer.1.in ├── refer0.c ├── refer1.c ├── refer2.c ├── refer3.c ├── refer4.c ├── refer5.c ├── refer6.c ├── refer7.c ├── refer8.c ├── roffbib.1.in ├── roffbib.sh ├── shell.c ├── sortbib.1 ├── sortbib.c ├── tick.c └── version.c ├── soelim ├── Makefile.mk ├── soelim.1.in └── soelim.c ├── stuff ├── bst │ ├── Makefile.mk │ ├── bst.c │ └── bst.h ├── demo │ ├── PDFX_def.ps │ ├── README │ ├── makefile │ ├── troffdemo.tr │ └── troffdemo_otf.tr ├── footnotes.tr ├── odt2tr.xsl └── showfont.sh ├── tbl ├── Makefile.mk ├── t..c ├── t0.c ├── t1.c ├── t2.c ├── t3.c ├── t4.c ├── t5.c ├── t6.c ├── t7.c ├── t8.c ├── t9.c ├── tb.c ├── tbl.1 ├── tc.c ├── te.c ├── tf.c ├── tg.c ├── ti.c ├── tm.c ├── ts.c ├── tt.c ├── tu.c ├── tv.c └── version.c ├── test ├── eqn │ ├── eqn.more │ ├── eqn.ps │ ├── eqn.roff │ └── makefile ├── grap │ ├── data │ │ ├── rawgrades │ │ └── ttrev.data │ ├── grap.more │ ├── grap.ps │ ├── grap.roff │ └── makefile ├── makefile ├── pic │ ├── makefile │ ├── pic.more │ ├── pic.ps │ └── pic.roff ├── refer │ ├── 32 │ │ ├── bib │ │ ├── makefile │ │ └── out │ └── ab │ │ ├── ab.bib │ │ ├── ab.ms │ │ ├── makefile │ │ └── out └── tbl │ ├── 1cell-allbox.roff │ ├── ND.roff │ ├── ab1.roff │ ├── ab2.roff │ ├── expand.nr │ ├── linienbsp.roff │ ├── makefile │ ├── mid-sq.roff │ ├── mm.roff │ ├── n.roff │ ├── no-unicode.roff │ ├── short-v.roff │ ├── supermarket.roff │ ├── tbl-backslash.roff │ ├── tbl.doc │ ├── tbl.doc.more │ ├── tbl.doc.ps │ ├── tbl.more │ ├── tbl.ps │ ├── tbl.roff │ ├── tv.roff │ └── vi.roff ├── troff ├── ext.h ├── hytab.c ├── libhnj │ ├── .gitignore │ ├── AUTHORS │ ├── Makefile.mk │ ├── README │ ├── README.hyphen │ ├── hnjalloc.c │ ├── hnjalloc.h │ ├── hyphen.c │ ├── hyphen.d │ │ ├── Makefile.mk │ │ ├── NOTES │ │ ├── hyph_de_DE.dic │ │ ├── hyph_de_DE@traditional.dic │ │ ├── hyph_en_US.dic │ │ ├── hyph_fr_FR.dic │ │ ├── hyph_it_IT.dic │ │ ├── hyph_la_VA.dic │ │ ├── hyph_nl_NL.dic │ │ └── substring.pl │ ├── hyphen.h │ └── test.c ├── n1.c ├── n2.c ├── n3.c ├── n4.c ├── n5.c ├── n7.c ├── n8.c ├── n9.c ├── ni.c ├── nii.c ├── nroff.d │ ├── Makefile.mk │ ├── draw.c │ ├── draw.h │ ├── n10.c │ ├── n6.c │ ├── nroff.1.in │ ├── pt.h │ ├── terms.d │ │ ├── .gitignore │ │ ├── Makefile.mk │ │ ├── README │ │ ├── a.2631 │ │ ├── a.2631-c │ │ ├── a.2631-e │ │ ├── a.300 │ │ ├── a.300-12 │ │ ├── a.300s │ │ ├── a.300s-12 │ │ ├── a.382 │ │ ├── a.4000a │ │ ├── a.450 │ │ ├── a.450-12 │ │ ├── a.832 │ │ ├── a.lp │ │ ├── ab.37 │ │ ├── ab.8510 │ │ ├── ab.X │ │ ├── ab.tn300 │ │ ├── b.300 │ │ ├── b.lp │ │ └── tab.utf8 │ └── tw.h ├── suftab.c ├── tdef.h ├── troff.d │ ├── .gitignore │ ├── Makefile.mk │ ├── README │ ├── afm.c │ ├── afm.h │ ├── dev.h │ ├── devaps │ │ ├── B │ │ ├── BI │ │ ├── C │ │ ├── CE │ │ ├── CI │ │ ├── CT │ │ ├── CW │ │ ├── CX │ │ ├── DESC │ │ ├── G │ │ ├── GB │ │ ├── GI │ │ ├── GR │ │ ├── GS │ │ ├── H │ │ ├── HB │ │ ├── HI │ │ ├── HK │ │ ├── HL │ │ ├── HX │ │ ├── I │ │ ├── MB │ │ ├── MI │ │ ├── MR │ │ ├── MX │ │ ├── Makefile.mk │ │ ├── PA │ │ ├── PB │ │ ├── PI │ │ ├── PO │ │ ├── PX │ │ ├── R │ │ ├── README │ │ ├── S │ │ ├── S1 │ │ ├── SC │ │ ├── SM │ │ ├── TB │ │ ├── TX │ │ ├── aps.h │ │ ├── build.c │ │ ├── daps.c │ │ ├── daps.g │ │ ├── daps.h │ │ ├── dev.h │ │ ├── draw.c │ │ ├── makedev.c │ │ ├── version │ │ └── version.c │ ├── dhtml │ │ ├── Makefile.mk │ │ ├── char.c │ │ ├── char.h │ │ ├── dhtml.1 │ │ ├── dhtml.h │ │ ├── dhtml.l │ │ ├── lib.c │ │ ├── lib.h │ │ ├── main.c │ │ ├── main.h │ │ ├── roff.c │ │ ├── roff.h │ │ ├── tr_out.c │ │ └── tr_out.h │ ├── dpost.d │ │ ├── Makefile.mk │ │ ├── README │ │ ├── afm.c │ │ ├── asciitype.c │ │ ├── asciitype.h │ │ ├── color.c │ │ ├── comments.h │ │ ├── dpost.1.in │ │ ├── dpost.c │ │ ├── dpost.h │ │ ├── draw.c │ │ ├── ext.h │ │ ├── gen.h │ │ ├── glob.c │ │ ├── makedev.c │ │ ├── misc.c │ │ ├── otf.c │ │ ├── path.h │ │ ├── pictures.c │ │ ├── ps_include.c │ │ ├── request.c │ │ ├── request.h │ │ └── version.c │ ├── draw.c │ ├── font │ │ ├── Makefile.mk │ │ ├── README │ │ ├── devhtml │ │ │ ├── B.in │ │ │ ├── BI.in │ │ │ ├── C.in │ │ │ ├── CB.in │ │ │ ├── CHAR │ │ │ ├── CI.in │ │ │ ├── CR.in │ │ │ ├── CW.in │ │ │ ├── DESC │ │ │ ├── H.in │ │ │ ├── HB.in │ │ │ ├── HI.in │ │ │ ├── I.in │ │ │ ├── Makefile.mk │ │ │ ├── R.in │ │ │ ├── S.in │ │ │ ├── charset │ │ │ └── makefont.c │ │ ├── devpost │ │ │ ├── AB │ │ │ ├── AB.name │ │ │ ├── AI │ │ │ ├── AI.name │ │ │ ├── AR │ │ │ ├── AR.name │ │ │ ├── AX │ │ │ ├── AX.name │ │ │ ├── B │ │ │ ├── B.name │ │ │ ├── BI │ │ │ ├── BI.name │ │ │ ├── CB │ │ │ ├── CB.name │ │ │ ├── CI │ │ │ ├── CI.name │ │ │ ├── CO │ │ │ ├── CO.name │ │ │ ├── CW │ │ │ ├── CW.name │ │ │ ├── CX │ │ │ ├── CX.name │ │ │ ├── DESC │ │ │ ├── DESC.big │ │ │ ├── DESC.small │ │ │ ├── FONTMAP │ │ │ ├── GR │ │ │ ├── GR.name │ │ │ ├── H │ │ │ ├── H.name │ │ │ ├── HB │ │ │ ├── HB.name │ │ │ ├── HI │ │ │ ├── HI.name │ │ │ ├── HNB │ │ │ ├── HNB.name │ │ │ ├── HNBI │ │ │ ├── HNBI.name │ │ │ ├── HNI │ │ │ ├── HNI.name │ │ │ ├── HNR │ │ │ ├── HNR.name │ │ │ ├── HX │ │ │ ├── HX.name │ │ │ ├── I │ │ │ ├── I.name │ │ │ ├── KB │ │ │ ├── KB.name │ │ │ ├── KI │ │ │ ├── KI.name │ │ │ ├── KR │ │ │ ├── KR.name │ │ │ ├── KX │ │ │ ├── KX.name │ │ │ ├── NB │ │ │ ├── NB.name │ │ │ ├── NI │ │ │ ├── NI.name │ │ │ ├── NR │ │ │ ├── NR.name │ │ │ ├── NX │ │ │ ├── NX.name │ │ │ ├── PA │ │ │ ├── PA.name │ │ │ ├── PB │ │ │ ├── PB.name │ │ │ ├── PI │ │ │ ├── PI.name │ │ │ ├── PX │ │ │ ├── PX.name │ │ │ ├── R │ │ │ ├── R.name │ │ │ ├── S │ │ │ ├── S.big │ │ │ ├── S.name │ │ │ ├── S.small │ │ │ ├── S1 │ │ │ ├── S1.name │ │ │ ├── VB │ │ │ ├── VB.name │ │ │ ├── VI │ │ │ ├── VI.name │ │ │ ├── VR │ │ │ ├── VR.name │ │ │ ├── VX │ │ │ ├── VX.name │ │ │ ├── ZD │ │ │ ├── ZD.name │ │ │ ├── ZI │ │ │ ├── ZI.name │ │ │ └── charlib │ │ │ │ ├── 12 │ │ │ │ ├── 14 │ │ │ │ ├── 34 │ │ │ │ ├── BRACKETS_NOTE │ │ │ │ ├── Fi │ │ │ │ ├── Fl │ │ │ │ ├── L1 │ │ │ │ ├── L1.map │ │ │ │ ├── LH.map │ │ │ │ ├── LH_uc │ │ │ │ ├── Lb │ │ │ │ ├── Lb.map │ │ │ │ ├── OLD_LH │ │ │ │ ├── OLD_LH.map │ │ │ │ ├── README │ │ │ │ ├── Sl │ │ │ │ ├── bx │ │ │ │ ├── ci │ │ │ │ ├── ff │ │ │ │ ├── lc │ │ │ │ ├── lf │ │ │ │ ├── lh │ │ │ │ ├── ob │ │ │ │ ├── rc │ │ │ │ ├── rf │ │ │ │ ├── rh │ │ │ │ ├── sq │ │ │ │ └── ~= │ │ ├── devps │ │ │ ├── B │ │ │ ├── B.afm │ │ │ ├── BI │ │ │ ├── BI.afm │ │ │ ├── CB │ │ │ ├── CB.afm │ │ │ ├── CI │ │ │ ├── CI.afm │ │ │ ├── CW │ │ │ ├── CW.afm │ │ │ ├── CX │ │ │ ├── CX.afm │ │ │ ├── DESC │ │ │ ├── FONTMAP │ │ │ ├── H │ │ │ ├── H.afm │ │ │ ├── HB │ │ │ ├── HB.afm │ │ │ ├── HI │ │ │ ├── HI.afm │ │ │ ├── HX │ │ │ ├── HX.afm │ │ │ ├── I │ │ │ ├── I.afm │ │ │ ├── MustRead.html │ │ │ ├── R │ │ │ ├── R.afm │ │ │ ├── S │ │ │ ├── S.afm │ │ │ ├── S1 │ │ │ ├── S1.afm │ │ │ ├── ZD │ │ │ └── ZD.afm │ │ ├── devpslow │ │ │ └── DESC │ │ └── devpsmed │ │ │ └── DESC │ ├── fontmap.c │ ├── fontmap.h │ ├── makedev.c │ ├── otf.c │ ├── otfdump.1 │ ├── otfdump.c │ ├── otfdump_vs.c │ ├── postscript │ │ ├── Makefile.mk │ │ ├── aps.ps │ │ ├── baseline.ps │ │ ├── color.ps │ │ ├── cutmarks.ps │ │ ├── dpost.ps │ │ ├── draw.ps │ │ ├── fatcourier.ps │ │ ├── forms.ps │ │ ├── ps.requests │ │ └── ps_include.ps │ ├── pt.h │ ├── t10.c │ ├── t6.c │ ├── ta.c │ ├── tmac.d │ │ ├── .gitignore │ │ ├── Makefile.mk │ │ ├── acm.me │ │ ├── an-ext │ │ ├── an.in │ │ ├── andoc.in │ │ ├── bib.in │ │ ├── chars.me │ │ ├── color │ │ ├── deltext.me │ │ ├── doc-common │ │ ├── doc-ditroff.in │ │ ├── doc-nroff │ │ ├── doc-syms │ │ ├── doc.in │ │ ├── e.in │ │ ├── eqn.me │ │ ├── float.me │ │ ├── footnote.me │ │ ├── g.in │ │ ├── index.me │ │ ├── local.me │ │ ├── m.in │ │ ├── man.7 │ │ ├── mcolor.7.in │ │ ├── mdoc.7 │ │ ├── mmn │ │ ├── mmt │ │ ├── mpictures.7 │ │ ├── ms.acc │ │ ├── ms.cov │ │ ├── ms.eqn │ │ ├── ms.ref │ │ ├── ms.tbl │ │ ├── ms.ths │ │ ├── ms.toc │ │ ├── naa │ │ ├── null.me │ │ ├── padj │ │ ├── pictures │ │ ├── pm.in │ │ ├── ptx │ │ ├── refer.me │ │ ├── s.in │ │ ├── safe │ │ ├── sh.me │ │ ├── srefs │ │ ├── taa │ │ ├── tbl.me │ │ ├── thesis.me │ │ ├── tmac.gchar │ │ ├── v │ │ └── vgrind │ ├── troff.1.in │ ├── troff.h │ ├── unimap.c │ └── unimap.h └── version.c ├── version.mk └── vgrind ├── .gitignore ├── Makefile.mk ├── regexp.c ├── retest.c ├── version.c ├── vfontedpr.c ├── vgrind.1.in ├── vgrind.sh ├── vgrindefs.c └── vgrindefs.src /.editorconfig: -------------------------------------------------------------------------------- 1 | # -*- indent-tabs-mode: t; tab-width: 25 -*- vim: ts=25 noet 2 | root = true 3 | 4 | [*] 5 | trim_trailing_whitespace = true 6 | insert_trailing_newline = true 7 | default_only = indent_size tab_width 8 | charset = utf-8 9 | end_of_line = lf 10 | indent_style = tab 11 | indent_size = 8 12 | tab_width = 8 13 | 14 | [*.md] 15 | trim_trailing_whitespace = false 16 | 17 | [/.editorconfig] 18 | default_only = unset 19 | elastic_tabstops = true 20 | indent_size = 25 21 | tab_width = 25 22 | 23 | 24 | # Ad hoc tweaks 25 | [troff/troff.d/devaps/daps.g] 26 | indent_size = 4 27 | tab_width = 4 28 | 29 | [eqn/eqnchar.d/greek] 30 | indent_size = 10 31 | tab_width = 10 32 | 33 | [eqn/eqnchar.d/iso] 34 | charset = latin1 35 | 36 | [{CHANGES{,_GR},/LICENSE.d/*}] 37 | indent_style = space 38 | indent_size = unset 39 | 40 | 41 | # Tabular data 42 | [{*.tsv,**/devhtml/charset}] 43 | elastic_tabstops = true 44 | default_only = unset 45 | tm_scope = source.generic-db 46 | indent_size = 16 47 | tab_width = 16 48 | 49 | 50 | # PostScript is limited to 8-bit ASCII encoding 51 | [{ps.requests,**/devpost/charlib/*}] 52 | tm_scope = source.postscript 53 | charset = latin1 54 | 55 | [**/devpost/charlib/{*.map,BRACKETS_NOTE,README}] 56 | charset = unset 57 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_STORE 2 | *.swp 3 | *.o 4 | Makefile 5 | y.tab.* 6 | cfg.mk 7 | checknr/checknr 8 | col/col 9 | compat.h 10 | config.log 11 | eqn/checkeq.d/checkeq 12 | mpm/pm 13 | picpack/picpack 14 | ptx/ptx 15 | soelim/soelim 16 | tbl/tbl 17 | troff/nroff.d/nroff 18 | troff/troff.d/dhtml/dhtml 19 | troff/troff.d/dpost.d/dpost 20 | troff/troff.d/font/devhtml/makefont 21 | -------------------------------------------------------------------------------- /LICENSE.d/BERKELEY.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 1980, 1993 2 | The Regents of the University of California. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions 6 | are met: 7 | 1. Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | 2. Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | 3. All advertising materials mentioning features or use of this software 13 | must display the following acknowedgement: 14 | This product includes software developed by the University of 15 | California, Berkeley and its contributors. 16 | 4. Neither the name of the University nor the names of its contributors 17 | may be used to endorse or promote products derived from this software 18 | without specific prior written permission. 19 | 20 | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 | SUCH DAMAGE. 31 | -------------------------------------------------------------------------------- /LICENSE.d/CALDERA.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright(C) Caldera International Inc. 2001-2002. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions 5 | are met: 6 | Redistributions of source code and documentation must retain the 7 | above copyright notice, this list of conditions and the following 8 | disclaimer. 9 | Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | All advertising materials mentioning features or use of this software 13 | must display the following acknowledgement: 14 | This product includes software developed or owned by Caldera 15 | International, Inc. 16 | Neither the name of Caldera International, Inc. nor the names of 17 | other contributors may be used to endorse or promote products 18 | derived from this software without specific prior written permission. 19 | 20 | USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA 21 | INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR 22 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 | ARE DISCLAIMED. IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE 25 | LIABLE FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR 26 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 28 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 30 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 31 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | -------------------------------------------------------------------------------- /checknr/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ = checknr.o 2 | 3 | FLAGS = $(DEFINES) -I../include 4 | 5 | .c.o: 6 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 7 | 8 | all: checknr 9 | 10 | checknr: $(OBJ) 11 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o checknr 12 | 13 | install: 14 | $(INSTALL) -c checknr $(ROOT)$(BINDIR)/checknr 15 | $(STRIP) $(ROOT)$(BINDIR)/checknr 16 | $(INSTALL) -c -m 644 checknr.1 $(ROOT)$(MANDIR)/man1/checknr.1 17 | 18 | clean: 19 | rm -f $(OBJ) checknr core log *~ 20 | 21 | mrproper: clean 22 | -------------------------------------------------------------------------------- /col/Makefile.mk: -------------------------------------------------------------------------------- 1 | BIN = col 2 | 3 | OBJ = col.o 4 | 5 | FLAGS = $(DEFINES) -I../include 6 | 7 | all: $(BIN) 8 | 9 | $(BIN): $(OBJ) 10 | $(CC) ${_CFLAGS} $(_LDFLAGS) $(OBJ) -o $(BIN) 11 | 12 | install: 13 | $(INSTALL) -c $(BIN) $(ROOT)$(BINDIR)/$(BIN) 14 | $(STRIP) $(ROOT)$(BINDIR)/$(BIN) 15 | 16 | clean: 17 | rm -f $(OBJ) $(BIN) core log *~ 18 | 19 | mrproper: clean 20 | 21 | .c.o: 22 | ${CC} ${_CFLAGS} $(FLAGS) -c $< 23 | -------------------------------------------------------------------------------- /compat.c: -------------------------------------------------------------------------------- 1 | /* Carsten Kunze, 2016 */ 2 | 3 | #include 4 | 5 | #ifndef HAVE_STRLCPY 6 | size_t 7 | strlcpy(char *dst, const char *src, size_t dstsize) { 8 | size_t srcsize; 9 | /* Not conform to strlcpy, but avoids to access illegal memory in case 10 | * of unterminated strings */ 11 | for (srcsize = 0; srcsize < dstsize; srcsize++) 12 | if (!src[srcsize]) 13 | break; 14 | if (dstsize > srcsize) 15 | dstsize = srcsize; 16 | else if (dstsize) 17 | dstsize--; 18 | if (dstsize) 19 | /* assumes non-overlapping buffers */ 20 | memcpy(dst, src, dstsize); 21 | dst[dstsize] = 0; 22 | return srcsize; 23 | } 24 | #endif 25 | 26 | #ifndef HAVE_STRLCAT 27 | size_t 28 | strlcat(char *dst, const char *src, size_t dstsize) { 29 | size_t ld, ls; 30 | for (ld = 0; ld < dstsize - 1; ld++) 31 | if (!dst[ld]) 32 | break; 33 | dst += ld; 34 | dstsize -= ld; 35 | for (ls = 0; ls < dstsize; ls++) 36 | if (!src[ls]) 37 | break; 38 | if (dstsize > ls) 39 | dstsize = ls; 40 | else if (dstsize) 41 | dstsize--; 42 | if (dstsize) 43 | memcpy(dst, src, dstsize); 44 | dst[dstsize] = 0; 45 | return ld + ls; 46 | } 47 | #endif 48 | -------------------------------------------------------------------------------- /doc/fonts/README: -------------------------------------------------------------------------------- 1 | README for the Heirloom Troff Font Handling Manual 2 | ================================================== 3 | 4 | To build this manual, you need the Garamond Premier Pro 5 | Opticals fonts from Adobe, and need to set the TROFFONTS 6 | variable accordingly. 7 | 8 | Note that as of autumn 2005, it was not possible to 9 | download fonts bought directly from Adobe using a Linux 10 | system. There are many other shops that sell Adobe fonts, 11 | though, and these usually allow downloads for Linux users. 12 | 13 | Gunnar Ritter 01/08/07 14 | -------------------------------------------------------------------------------- /doc/just/README: -------------------------------------------------------------------------------- 1 | README for the Heirloom Troff Justification Documentation 2 | ========================================================= 3 | 4 | To build this manual, you need the Adobe Garamond Pro fonts, 5 | and need to set the TROFFONTS variable accordingly. Adobe 6 | Garamond Pro is available as part of the "Adobe Type Basics 7 | OpenType Edition" package. 8 | 9 | Note that as of autumn 2005, it was not possible to 10 | download fonts bought directly from Adobe using a Linux 11 | system. There are many other shops that sell Adobe fonts, 12 | though, and these usually allow downloads for Linux users. 13 | 14 | Gunnar Ritter 01/08/07 15 | 16 | 17 | Update for the revised Heirloom Troff edition 18 | ============================================= 19 | 20 | 2014/09/05 21 | The files contained in this directory have been modified to 22 | use the Linux Libertine fonts if the fonts choosen by Gunnar 23 | Ritter are not present in your system. The Linux Libertine 24 | can be downloaded from . You 25 | still need to set the TROFFONTS variable accordingly. 26 | -------------------------------------------------------------------------------- /doc/quickstart/README: -------------------------------------------------------------------------------- 1 | README for the Heirloom Troff Quickstart Guide 2 | ============================================== 3 | 4 | To build this document, you need the Myriad Pro fonts 5 | from Adobe, and need to set the TROFFONTS variable 6 | accordingly. Myriad Pro is available as part of the 7 | "Adobe Type Basics OpenType Edition" package. 8 | 9 | Note that as of autumn 2005, it was not possible to 10 | download fonts bought directly from Adobe using a Linux 11 | system. There are many other shops that sell Adobe fonts, 12 | though, and these usually allow downloads for Linux users. 13 | 14 | Gunnar Ritter 01/08/07 15 | 16 | 17 | Update for the revised Heirloom Troff edition 18 | ============================================= 19 | 20 | 2014/09/05 21 | The files contained in this directory have been modified to 22 | use the Linux Libertine fonts if the fonts choosen by Gunnar 23 | Ritter are not present in your system. The Linux Libertine 24 | can be downloaded from . You 25 | still need to set the TROFFONTS variable accordingly. 26 | -------------------------------------------------------------------------------- /doc/quickstart/makefile: -------------------------------------------------------------------------------- 1 | DISTFLAGS = -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite \ 2 | -sProcessColorModel=DeviceGray -dPDFSETTINGS=/prepress 3 | CRYPT = -sOwnerPassword="`dd if=/dev/random bs=12 count=1 2>/dev/null | \ 4 | md5sum | awk '{ print $$1 }'` " -dEncryptionR=3 \ 5 | -dKeyLength=128 -dPermissions=-300 6 | 7 | .SUFFIXES: .tr .ps .pdf .more .ditroff 8 | 9 | .tr.ps: 10 | rm -f $@; trap "rm -f $$$$.ps" 0 2 3; \ 11 | tbl $< | troff | dpost >$$$$.ps && mv $$$$.ps $@ 12 | 13 | .tr.ditroff: 14 | rm -f $@; trap "rm -f $$$$.ps" 0 2 3; \ 15 | tbl $< | troff > $@ 16 | 17 | .ps.pdf: 18 | gs -sOutputFile=$@ $(DISTFLAGS) -f $< 19 | 20 | .tr.more: 21 | tbl -Tlocale $< | nroff -Tlocale | col -x > $@ 22 | 23 | all: doc.ps 24 | 25 | test: 26 | [ -e doc.more ] && mv doc.more doc.more.orig 27 | make doc.more 28 | diff -d doc.more.orig doc.more 29 | mv doc.more.orig doc.more 30 | [ -e doc.ditroff ] && mv doc.ditroff doc.ditroff.orig 31 | make doc.ditroff 32 | rm fonts.tmac 33 | diff -d doc.ditroff.orig doc.ditroff 34 | mv doc.ditroff.orig doc.ditroff 35 | [ -e doc.ps ] && mv doc.ps doc.ps.orig 36 | make doc.ps 37 | rm fonts.tmac 38 | sed 's/.CreationDate.*/%/' doc.ps >doc.ps.sed 39 | diff -d doc.ps.orig doc.ps.sed 40 | rm doc.ps.sed 41 | mv doc.ps.orig doc.ps 42 | 43 | clean: 44 | rm -f doc.ps doc.pdf doc.more core log *~ fonts.tmac 45 | 46 | fonts.tmac: 47 | @[ -n "$$TROFFONTS" ] || \ 48 | (echo "Error: Environment variable TROFFONTS not set" && false) 49 | @for F in LinLibertine AGaramondPro ; do \ 50 | find $$(echo $$TROFFONTS | sed -e 's/:/ /g') -name "$$F*" | \ 51 | grep $$F > /dev/null && echo ".nr $$F 1" >> $@ || true; \ 52 | done 53 | @grep nr $@ > /dev/null || \ 54 | (echo 'Error: None of the fonts "LinLibertine" and ' \ 55 | '"AGaramondPro" found' && false) 56 | 57 | mrproper: clean 58 | 59 | doc.ps: fonts.tmac 60 | doc.ditroff: fonts.tmac 61 | -------------------------------------------------------------------------------- /doc/troff/README: -------------------------------------------------------------------------------- 1 | README for the Heirloom Documentation Tools Reference Manual 2 | ============================================================ 3 | 4 | To build the reference manual, you need to download the 5 | OpenType variants of TeX Gyre Termes fonts available for 6 | free from 7 | , 8 | and to set the TROFFONTS variable such that it includes them. 9 | 10 | Gunnar Ritter 01/08/07 11 | -------------------------------------------------------------------------------- /doc/troff/makefile: -------------------------------------------------------------------------------- 1 | DISTFLAGS = -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite \ 2 | -sProcessColorModel=DeviceGray -dPDFSETTINGS=/prepress 3 | CRYPT = -sOwnerPassword="`dd if=/dev/random bs=12 count=1 2>/dev/null | \ 4 | md5sum | awk '{ print $$1 }'` " -dEncryptionR=3 \ 5 | -dKeyLength=128 -dPermissions=-300 6 | TROFFFLAGS = -mgchar 7 | 8 | .SUFFIXES: .tr .ps .pdf .html .more .ditroff 9 | 10 | .tr.ps: 11 | rm -f $@; trap "rm -f $$$$.ps" 0 2 3; \ 12 | tbl -g $< | troff $(TROFFFLAGS) | \ 13 | dpost >$$$$.ps && mv $$$$.ps $@ 14 | 15 | .tr.ditroff: 16 | rm -f $@; trap "rm -f $$$$.ps" 0 2 3; \ 17 | tbl -g $< | troff $(TROFFFLAGS) > $@ 18 | 19 | .ps.pdf: 20 | gs -sOutputFile=$@ $(DISTFLAGS) -f $< 21 | 22 | .tr.html: 23 | tbl $< | troff -Thtml $(TROFFFLAGS) | dhtml -t \ 24 | "Nroff/Troff User's Manual" > $@ 25 | 26 | .tr.more: 27 | tbl -Tlocale $< | nroff -Tlocale | col -x > $@ 28 | 29 | all: doc.ps 30 | 31 | test: test_more test_ditroff test_ps 32 | 33 | test_more: 34 | [ -e doc.more ] && mv doc.more doc.more.orig 35 | make doc.more 36 | sed '/dotlessj/d' doc.more >doc.more.sed 37 | diff -d doc.more.orig doc.more.sed 38 | rm doc.more.sed doc.more 39 | mv doc.more.orig doc.more 40 | 41 | test_ditroff: 42 | [ -e doc.ditroff ] && mv doc.ditroff doc.ditroff.orig 43 | make doc.ditroff 44 | diff -d doc.ditroff.orig doc.ditroff 45 | mv doc.ditroff.orig doc.ditroff 46 | 47 | test_ps: 48 | [ -e doc.ps ] && mv doc.ps doc.ps.orig 49 | make doc.ps 50 | sed 's/.CreationDate.*/%/' doc.ps >doc.ps.sed 51 | diff -d doc.ps.orig doc.ps.sed 52 | rm doc.ps.sed doc.ps 53 | mv doc.ps.orig doc.ps 54 | 55 | clean: 56 | rm -f doc.ps doc.pdf doc.html doc.more core log *~ 57 | 58 | mrproper: clean 59 | -------------------------------------------------------------------------------- /eqn/checkeq.d/Makefile.mk: -------------------------------------------------------------------------------- 1 | VPATH=.. 2 | OBJ = checkeq.o 3 | 4 | FLAGS = 5 | 6 | .c.o: 7 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 8 | 9 | all: checkeq 10 | 11 | checkeq: $(OBJ) 12 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o checkeq 13 | 14 | install: 15 | $(INSTALL) -c checkeq $(ROOT)$(BINDIR)/checkeq 16 | $(STRIP) $(ROOT)$(BINDIR)/checkeq 17 | rm -f $(ROOT)$(MANDIR)/man1/checkeq.1 18 | ln -s eqn.1 $(ROOT)$(MANDIR)/man1/checkeq.1 19 | 20 | clean: 21 | rm -f $(OBJ) checkeq core log *~ 22 | 23 | mrproper: clean 24 | -------------------------------------------------------------------------------- /eqn/eqn.d/.gitignore: -------------------------------------------------------------------------------- 1 | e.c 2 | eqn 3 | -------------------------------------------------------------------------------- /eqn/eqn.d/Makefile.mk: -------------------------------------------------------------------------------- 1 | VPATH=.. 2 | OBJ = diacrit.o e.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \ 3 | io.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o pile.o \ 4 | shift.o size.o sqrt.o text.o version.o 5 | 6 | FLAGS = -I. -I.. -I../../include $(DEFINES) 7 | 8 | .c.o: 9 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 10 | 11 | all: eqn eqnchar.7 12 | 13 | eqn: $(OBJ) 14 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o eqn 15 | 16 | e.c: e.y 17 | $(YACC) -d ../e.y 18 | sed -f ../yyval.sed $@ 19 | 20 | y.tab.h: e.c 21 | 22 | install: 23 | test -d $(ROOT)$(BINDIR) || mkdir -p $(ROOT)$(BINDIR) 24 | $(INSTALL) -c eqn $(ROOT)$(BINDIR)/eqn 25 | $(STRIP) $(ROOT)$(BINDIR)/eqn 26 | test -d $(ROOT)$(MANDIR)/man1 || mkdir -p $(ROOT)$(MANDIR)/man1 27 | test -d $(ROOT)$(MANDIR)/man7 || mkdir -p $(ROOT)$(MANDIR)/man7 28 | $(INSTALL) -c -m 644 eqn.1 $(ROOT)$(MANDIR)/man1/eqn.1 29 | $(INSTALL) -c -m 644 eqnchar.7 $(ROOT)$(MANDIR)/man7/eqnchar.7 30 | 31 | clean: 32 | rm -f $(OBJ) eqn e.c y.tab.* core log *~ eqnchar.7 33 | 34 | mrproper: clean 35 | 36 | eqnchar.7: eqnchar.7.in 37 | sed 's"/usr/pub/"$(ROOT)$(PUBDIR)/"' eqnchar.7.in > $@ 38 | 39 | diacrit.o: ../diacrit.c ../e.h y.tab.h 40 | eqnbox.o: ../eqnbox.c ../e.h y.tab.h 41 | font.o: ../font.c ../e.h y.tab.h 42 | fromto.o: ../fromto.c ../e.h y.tab.h 43 | funny.o: ../funny.c ../e.h y.tab.h 44 | glob.o: ../glob.c ../e.h 45 | integral.o: ../integral.c ../e.h y.tab.h 46 | io.o: ../io.c ../e.h 47 | lex.o: ../lex.c ../e.h y.tab.h 48 | lookup.o: ../lookup.c ../e.h y.tab.h 49 | mark.o: ../mark.c ../e.h y.tab.h 50 | matrix.o: ../matrix.c ../e.h y.tab.h 51 | move.o: ../move.c ../e.h y.tab.h 52 | over.o: ../over.c ../e.h y.tab.h 53 | paren.o: ../paren.c ../e.h y.tab.h 54 | pile.o: ../pile.c ../e.h y.tab.h 55 | shift.o: ../shift.c ../e.h y.tab.h 56 | size.o: ../size.c ../e.h y.tab.h 57 | sqrt.o: ../sqrt.c ../e.h y.tab.h 58 | text.o: ../text.c ../e.h y.tab.h 59 | e.o: e.c ../e.h 60 | -------------------------------------------------------------------------------- /eqn/eqnbox.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "eqnbox.c 1.3 05/06/02 SMI" SVr4.0 1.1 */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)eqnbox.c 1.7 (gritter) 1/13/08 22 | */ 23 | 24 | /* 25 | * Changes Copyright (c) 2014 Carsten Kunze (carsten.kunze at arcor.de) 26 | */ 27 | 28 | # include "e.h" 29 | #include "y.tab.h" 30 | 31 | extern YYSTYPE yyval; 32 | 33 | void 34 | eqnbox(int p1, int p2, int lu) { 35 | #ifndef NEQN 36 | float b, h; 37 | #else /* NEQN */ 38 | int b, h; 39 | #endif /* NEQN */ 40 | const char *sh; 41 | 42 | yyval.token = p1; 43 | b = max(ebase[p1], ebase[p2]); 44 | eht[yyval.token] = h = b + max(eht[p1]-ebase[p1], 45 | eht[p2]-ebase[p2]); 46 | ebase[yyval.token] = b; 47 | #ifndef NEQN 48 | if(dbg)printf(".\te:eb: S%d <- S%d S%d; b=%g, h=%g\n", 49 | yyval.token, p1, p2, b, h); 50 | #else /* NEQN */ 51 | if(dbg)printf(".\te:eb: S%d <- S%d S%d; b=%d, h=%d\n", 52 | yyval.token, p1, p2, b, h); 53 | #endif /* NEQN */ 54 | if (ital(rfont[p1]) && rom(lfont[p2])) { 55 | if (op(lfont[p2])) 56 | sh = "\\|"; 57 | else 58 | sh = "\\^"; 59 | } else 60 | sh = ""; 61 | if (lu) { 62 | printf(".nr %d \\w'\\s%s\\*(%d%s'\n", p1, tsize(ps), p1, sh); 63 | printf(".ds %d \\h'|\\n(97u-\\n(%du'\\*(%d\n", p1, p1, p1); 64 | } 65 | printf(".as %d \"%s\\*(%d\n", yyval.token, sh, p2); 66 | rfont[p1] = rfont[p2]; 67 | ofree(p2); 68 | } 69 | -------------------------------------------------------------------------------- /eqn/eqnchar.d/.gitignore: -------------------------------------------------------------------------------- 1 | genutf8 2 | utf-8 3 | -------------------------------------------------------------------------------- /eqn/eqnchar.d/Makefile.mk: -------------------------------------------------------------------------------- 1 | FILES = ascii eqnchar greek iso utf-8 2 | 3 | .c.o: 4 | $(CC) $(_CFLAGS) $(EUC) -c $< 5 | 6 | all: $(FILES) 7 | 8 | utf-8: genutf8 9 | -./genutf8 >utf-8 10 | 11 | genutf8: genutf8.o 12 | -$(CC) $(_CFLAGS) $(_LDFLAGS) genutf8.o $(LIBS) -o genutf8 13 | 14 | genutf8.o: genutf8.c 15 | -$(CC) $(_CFLAGS) $(EUC) -c genutf8.c 16 | 17 | install: all 18 | test -d $(ROOT)$(PUBDIR) || mkdir -p $(ROOT)$(PUBDIR) 19 | for i in $(FILES); \ 20 | do \ 21 | test -s $$i || continue; \ 22 | $(INSTALL) -c -m 644 $$i $(ROOT)$(PUBDIR)/$$i || exit; \ 23 | done 24 | 25 | clean: 26 | rm -f utf-8 genutf8 genutf8.o core log *~ 27 | 28 | mrproper: clean 29 | -------------------------------------------------------------------------------- /eqn/eqnchar.d/genutf8.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Generate a table of UTF-8 characters. 3 | * 4 | * Copyright (C) 2005 Gunnar Ritter, Freiburg i. Br., Germany 5 | * 6 | * Public Domain 7 | * 8 | * Sccsid @(#)genutf8.c 1.1 (gritter) 9/13/05 9 | */ 10 | #ifdef EUC 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | 17 | static const char *const ctl[] = { 18 | "nul", 19 | "soh", 20 | "stx", 21 | "etx", 22 | "eot", 23 | "enq", 24 | "ack", 25 | "bel", 26 | "bs", 27 | "ht", 28 | "nl", 29 | "vt", 30 | "np", 31 | "cr", 32 | "so", 33 | "si", 34 | "dle", 35 | "dc1", 36 | "dc2", 37 | "dc3", 38 | "dc4", 39 | "nak", 40 | "syn", 41 | "etb", 42 | "can", 43 | "em", 44 | "sub", 45 | "esc", 46 | "fs", 47 | "gs", 48 | "rs", 49 | "us" 50 | }; 51 | 52 | int 53 | main(void) 54 | { 55 | int wc; 56 | int i, n; 57 | 58 | if (setlocale(LC_CTYPE, "en_US.utf8") == NULL) 59 | if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) 60 | return 1; 61 | for (wc = 0; wc <= 0xffff; wc++) { 62 | if ((wc&017) == 0) 63 | printf("U+%04X ", wc); 64 | if (wc < 040) 65 | n = printf("%s", ctl[wc]); 66 | else if (wc == 0177) 67 | n = printf("del"); 68 | else if (wc >= 0200 && wc < 0240) 69 | n = printf("CTL"); 70 | else if (iswprint(wc)) { 71 | if ((n = wcwidth(wc)) == 0) 72 | n = 1; 73 | printf("%lc", wc); 74 | } else 75 | n = 0; 76 | for (i = n; i < 4; i++) 77 | putchar(' '); 78 | if (((wc+1)&017) == 0) 79 | putchar('\n'); 80 | } 81 | return 0; 82 | } 83 | #else /* !EUC */ 84 | int 85 | main(void) 86 | { 87 | return 1; 88 | } 89 | #endif /* !EUC */ 90 | -------------------------------------------------------------------------------- /eqn/eqnchar.d/greek: -------------------------------------------------------------------------------- 1 | alpha A A | beta B B | gamma \ \ 2 | GAMMA G G | delta D D | DELTA W W 3 | epsilon S S | zeta Q Q | eta N N 4 | THETA T T | theta O O | lambda L L 5 | LAMBDA E E | mu M M | nu @ @ 6 | xi X X | pi J J | PI P P 7 | rho K K | sigma Y Y | SIGMA R R 8 | tau I I | phi U U | PHI F F 9 | psi V V | PSI H H | omega C C 10 | OMEGA Z Z | nabla [ [ | not _ _ 11 | partial ] ] | integral ^ ^ 12 | -------------------------------------------------------------------------------- /eqn/eqnchar.d/iso: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/n-t-roff/heirloom-doctools/2e9b0c67ed0f8efcf81c376e067d5256370dbc23/eqn/eqnchar.d/iso -------------------------------------------------------------------------------- /eqn/funny.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "funny.c 1.6 05/06/02 SMI" SVr4.0 1.1 */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)funny.c 1.6 (gritter) 10/19/06 22 | */ 23 | 24 | /* 25 | * Changes Copyright (c) 2014 Carsten Kunze (carsten.kunze at arcor.de) 26 | */ 27 | 28 | #include "e.h" 29 | #include "y.tab.h" 30 | 31 | extern YYSTYPE yyval; 32 | 33 | void 34 | funny(int n) { 35 | const char *f = NULL; 36 | 37 | yyval.token = oalloc(); 38 | switch(n) { 39 | case SUM: 40 | f = "\\(*S"; break; 41 | case UNION: 42 | f = "\\(cu"; break; 43 | case INTER: /* intersection */ 44 | f = "\\(ca"; break; 45 | case PROD: 46 | f = "\\(*P"; break; 47 | default: 48 | error(FATAL, "funny type %d in funny", n); 49 | } 50 | #ifndef NEQN 51 | printf(".ds %d \\s%s\\v'.3m'\\s+5%s\\s-5\\v'-.3m'\\s%s\n", yyval.token, tsize(ps), f, tsize(ps)); 52 | eht[yyval.token] = VERT(EM(1.0, ps+5) - EM(0.2, ps)); 53 | ebase[yyval.token] = VERT(EM(0.3, ps)); 54 | if(dbg)printf(".\tfunny: S%d <- %s; h=%g b=%g\n", 55 | yyval.token, f, eht[yyval.token], ebase[yyval.token]); 56 | #else /* NEQN */ 57 | printf(".ds %d %s\n", yyval.token, f); 58 | eht[yyval.token] = VERT(2); 59 | ebase[yyval.token] = 0; 60 | if(dbg)printf(".\tfunny: S%d <- %s; h=%d b=%d\n", 61 | yyval.token, f, eht[yyval.token], ebase[yyval.token]); 62 | #endif /* NEQN */ 63 | lfont[yyval.token] = rfont[yyval.token] = ROM; 64 | } 65 | -------------------------------------------------------------------------------- /eqn/glob.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "glob.c 1.4 05/06/02 SMI" SVr4.0 1.1 */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)glob.c 1.8 (gritter) 10/19/06 22 | */ 23 | 24 | #include "e.h" 25 | 26 | int dbg; /* debugging print if non-zero */ 27 | int lp[512]; /* stack for things like piles and matrices */ 28 | int ct; /* pointer to lp */ 29 | int used[100]; /* available registers */ 30 | float ps; /* default init point size */ 31 | /*int resolution = 72; * was: resolution of ditroff */ 32 | float deltaps = 3; /* default change in ps */ 33 | float gsize = 10; /* default initial point size */ 34 | int gfont = ITAL; /* italic */ 35 | int ft; /* default font */ 36 | FILE *curfile; /* current input file */ 37 | int ifile; 38 | int linect; /* line number in file */ 39 | int eqline; /* line where eqn started */ 40 | int svargc; 41 | char **svargv; 42 | #ifndef NEQN 43 | float eht[100]; 44 | float ebase[100]; 45 | #else /* NEQN */ 46 | int eht[100]; 47 | int ebase[100]; 48 | #endif /* NEQN */ 49 | int lfont[100]; 50 | int rfont[100]; 51 | int eqnreg; /* register where final string appears */ 52 | int eqnht; /* inal height of equation */ 53 | int lefteq = '\0'; /* left in-line delimiter */ 54 | int righteq = '\0'; /* right in-line delimiter */ 55 | int lastchar; /* last character read by lex */ 56 | int markline = 0; /* 1 if this EQ/EN contains mark or lineup */ 57 | char *progname; 58 | -------------------------------------------------------------------------------- /eqn/integral.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "integral.c 1.4 05/06/02 SMI" SVr4.0 1.1 */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)integral.c 1.5 (gritter) 10/19/06 22 | */ 23 | 24 | /* 25 | * Changes Copyright (c) 2014 Carsten Kunze (carsten.kunze at arcor.de) 26 | */ 27 | 28 | #include "e.h" 29 | #include "y.tab.h" 30 | 31 | extern YYSTYPE yyval; 32 | 33 | void 34 | integral(int p, int p1, int p2) { 35 | #ifndef NEQN 36 | if (p1 != 0) 37 | printf(".ds %d \\h'-0.4m'\\v'0.4m'\\*(%d\\v'-0.4m'\n", p1, p1); 38 | if (p2 != 0) 39 | printf(".ds %d \\v'-0.3m'\\*(%d\\v'0.3m'\n", p2, p2); 40 | #endif 41 | if (p1 != 0 && p2 != 0) 42 | shift2(p, p1, p2); 43 | else if (p1 != 0) 44 | bshiftb(p, SUB, p1); 45 | else if (p2 != 0) 46 | bshiftb(p, SUP, p2); 47 | #ifndef NEQN 48 | if(dbg)printf(".\tintegral: S%d; h=%g b=%g\n", 49 | p, eht[p], ebase[p]); 50 | #else /* NEQN */ 51 | if(dbg)printf(".\tintegral: S%d; h=%d b=%d\n", 52 | p, eht[p], ebase[p]); 53 | #endif /* NEQN */ 54 | lfont[p] = ROM; 55 | } 56 | 57 | void 58 | setintegral(void) { 59 | const char *f; 60 | 61 | yyval.token = oalloc(); 62 | f = "\\(is"; 63 | #ifndef NEQN 64 | printf(".ds %d \\s%s\\v'.1m'\\s+4%s\\s-4\\v'-.1m'\\s%s\n", 65 | yyval.token, tsize(ps), f, tsize(ps)); 66 | eht[yyval.token] = VERT(EM(1.15, ps+4)); 67 | ebase[yyval.token] = VERT(EM(0.3, ps)); 68 | #else /* NEQN */ 69 | printf(".ds %d %s\n", yyval.token, f); 70 | eht[yyval.token] = VERT(2); 71 | ebase[yyval.token] = 0; 72 | #endif /* NEQN */ 73 | lfont[yyval.token] = rfont[yyval.token] = ROM; 74 | } 75 | -------------------------------------------------------------------------------- /eqn/mark.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "mark.c 1.3 05/06/02 SMI" SVr4.0 1.1 */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)mark.c 1.3 (gritter) 8/12/05 22 | */ 23 | 24 | /* 25 | * Changes Copyright (c) 2014 Carsten Kunze (carsten.kunze at arcor.de) 26 | */ 27 | 28 | #include "e.h" 29 | #include "y.tab.h" 30 | 31 | extern YYSTYPE yyval; 32 | 33 | void 34 | mark(int p1) { 35 | markline = 1; 36 | printf(".ds %d \\k(97\\*(%d\n", p1, p1); 37 | yyval.token = p1; 38 | if(dbg)printf(".\tmark %d\n", p1); 39 | } 40 | 41 | void 42 | lineup(int p1) { 43 | markline = 1; 44 | if (p1 == 0) { 45 | yyval.token = oalloc(); 46 | printf(".ds %d \\h'|\\n(97u'\n", yyval.token); 47 | } 48 | if(dbg)printf(".\tlineup %d\n", p1); 49 | } 50 | -------------------------------------------------------------------------------- /eqn/move.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "move.c 1.4 05/06/02 SMI" SVr4.0 1.1 */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)move.c 1.4 (gritter) 10/29/05 22 | */ 23 | 24 | /* 25 | * Changes Copyright (c) 2014 Carsten Kunze (carsten.kunze at arcor.de) 26 | */ 27 | 28 | #include "e.h" 29 | #include "y.tab.h" 30 | 31 | extern YYSTYPE yyval; 32 | 33 | void 34 | move(int dir, int amt, int p) { 35 | #ifndef NEQN 36 | float a; 37 | #else /* NEQN */ 38 | int a; 39 | #endif /* NEQN */ 40 | 41 | yyval.token = p; 42 | #ifndef NEQN 43 | a = VERT(EM(amt/100.0, EFFPS(ps))); 44 | #else /* NEQN */ 45 | a = VERT( (amt+49)/50 ); /* nearest number of half-lines */ 46 | #endif /* NEQN */ 47 | printf(".ds %d ", yyval.token); 48 | if( dir == FWD || dir == BACK ) /* fwd, back */ 49 | #ifndef NEQN 50 | printf("\\h'%s%gp'\\*(%d\n", (dir==BACK) ? "-" : "", a, p); 51 | #else /* NEQN */ 52 | printf("\\h'%s%du'\\*(%d\n", (dir==BACK) ? "-" : "", a, p); 53 | #endif /* NEQN */ 54 | else if (dir == UP) 55 | #ifndef NEQN 56 | printf("\\v'-%gp'\\*(%d\\v'%gp'\n", a, p, a); 57 | #else /* NEQN */ 58 | printf("\\v'-%du'\\*(%d\\v'%du'\n", a, p, a); 59 | #endif /* NEQN */ 60 | else if (dir == DOWN) 61 | #ifndef NEQN 62 | printf("\\v'%gp'\\*(%d\\v'-%gp'\n", a, p, a); 63 | if(dbg)printf(".\tmove %d dir %d amt %g; h=%g b=%g\n", 64 | p, dir, a, eht[yyval.token], ebase[yyval.token]); 65 | #else /* NEQN */ 66 | printf("\\v'%du'\\*(%d\\v'-%du'\n", a, p, a); 67 | if(dbg)printf(".\tmove %d dir %d amt %d; h=%d b=%d\n", 68 | p, dir, a, eht[yyval.token], ebase[yyval.token]); 69 | #endif /* NEQN */ 70 | } 71 | -------------------------------------------------------------------------------- /eqn/neqn.d/.gitignore: -------------------------------------------------------------------------------- 1 | e.c 2 | neqn 3 | -------------------------------------------------------------------------------- /eqn/neqn.d/Makefile.mk: -------------------------------------------------------------------------------- 1 | VPATH=.. 2 | OBJ = diacrit.o e.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \ 3 | io.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o pile.o \ 4 | shift.o size.o sqrt.o text.o version.o 5 | 6 | FLAGS = -I. -I.. -I../../include -DNEQN $(DEFINES) 7 | 8 | .c.o: 9 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 10 | 11 | all: neqn 12 | 13 | neqn: $(OBJ) 14 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o neqn 15 | 16 | e.c: e.y 17 | $(YACC) -d ../e.y 18 | sed -f ../yyval.sed $@ 19 | 20 | y.tab.h: e.c 21 | 22 | install: 23 | $(INSTALL) -c neqn $(ROOT)$(BINDIR)/neqn 24 | $(STRIP) $(ROOT)$(BINDIR)/neqn 25 | rm -f $(ROOT)$(MANDIR)/man1/neqn.1 26 | ln -s eqn.1 $(ROOT)$(MANDIR)/man1/neqn.1 27 | 28 | clean: 29 | rm -f $(OBJ) neqn e.c y.tab.* core log *~ 30 | 31 | mrproper: clean 32 | 33 | diacrit.o: ../diacrit.c ../e.h y.tab.h 34 | eqnbox.o: ../eqnbox.c ../e.h y.tab.h 35 | font.o: ../font.c ../e.h y.tab.h 36 | fromto.o: ../fromto.c ../e.h y.tab.h 37 | funny.o: ../funny.c ../e.h y.tab.h 38 | glob.o: ../glob.c ../e.h 39 | integral.o: ../integral.c ../e.h y.tab.h 40 | io.o: ../io.c ../e.h 41 | lex.o: ../lex.c ../e.h y.tab.h 42 | lookup.o: ../lookup.c ../e.h y.tab.h 43 | mark.o: ../mark.c ../e.h y.tab.h 44 | matrix.o: ../matrix.c ../e.h y.tab.h 45 | move.o: ../move.c ../e.h y.tab.h 46 | over.o: ../over.c ../e.h y.tab.h 47 | paren.o: ../paren.c ../e.h y.tab.h 48 | pile.o: ../pile.c ../e.h y.tab.h 49 | shift.o: ../shift.c ../e.h y.tab.h 50 | size.o: ../size.c ../e.h y.tab.h 51 | sqrt.o: ../sqrt.c ../e.h y.tab.h 52 | text.o: ../text.c ../e.h y.tab.h 53 | e.o: e.c ../e.h 54 | -------------------------------------------------------------------------------- /eqn/sqrt.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "sqrt.c 1.4 05/06/02 SMI" SVr4.0 1.1 */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)sqrt.c 1.6 (gritter) 1/13/08 22 | */ 23 | 24 | /* 25 | * Changes Copyright (c) 2014 Carsten Kunze (carsten.kunze at arcor.de) 26 | */ 27 | 28 | # include "e.h" 29 | #include "y.tab.h" 30 | 31 | extern YYSTYPE yyval; 32 | 33 | void 34 | sqrt(int p2) { 35 | #ifndef NEQN 36 | float nps; 37 | 38 | nps = (int)(EFFPS(((eht[p2]*9)/10+(resolution/POINT-1))/(resolution/POINT))); 39 | #endif /* NEQN */ 40 | yyval.token = p2; 41 | #ifndef NEQN 42 | eht[yyval.token] = VERT(EM(1.2, nps)); 43 | if(dbg)printf(".\tsqrt: S%d <- S%d;b=%g, h=%g\n", 44 | yyval.token, p2, ebase[yyval.token], eht[yyval.token]); 45 | if (ital(rfont[yyval.token])) 46 | printf(".as %d \\|\n", yyval.token); 47 | #endif /* NEQN */ 48 | nrwid(p2, ps, p2); 49 | #ifndef NEQN 50 | printf(".ds %d \\v'%gp'\\s%s\\v'-.2m'\\(sr\\l'\\n(%du\\(rn'\\v'.2m'\\s%s", 51 | yyval.token, ebase[p2], tsize(nps), p2, tsize(ps)); 52 | printf("\\v'%gp'\\h'-\\n(%du'\\*(%d\n", -ebase[p2], p2, p2); 53 | lfont[yyval.token] = ROM; 54 | #else /* NEQN */ 55 | printf(".ds %d \\v'%du'\\e\\L'%du'\\l'\\n(%du'", 56 | p2, ebase[p2], -eht[p2], p2); 57 | printf("\\v'%du'\\h'-\\n(%du'\\*(%d\n", eht[p2]-ebase[p2], p2, p2); 58 | eht[p2] += VERT(1); 59 | if(dbg)printf(".\tsqrt: S%d <- S%d;b=%d, h=%d\n", 60 | p2, p2, ebase[p2], eht[p2]); 61 | #endif /* NEQN */ 62 | } 63 | -------------------------------------------------------------------------------- /eqn/version.c: -------------------------------------------------------------------------------- 1 | #if __GNUC__ >= 3 && __GNUC_MINOR__ >= 4 || __GNUC__ >= 4 2 | #define USED __attribute__ ((used)) 3 | #elif defined __GNUC__ 4 | #define USED __attribute__ ((unused)) 5 | #else 6 | #define USED 7 | #endif 8 | #ifdef NEQN 9 | static const char sccsid[] USED = "@(#)/usr/ucb/neqn.sl 5.12 (gritter) 1/13/08"; 10 | #else 11 | static const char sccsid[] USED = "@(#)/usr/ucb/eqn.sl 5.12 (gritter) 1/13/08"; 12 | #endif 13 | /* SLIST */ 14 | /* 15 | diacrit.c: * Sccsid @(#)diacrit.c 1.7 (gritter) 1/13/08 16 | e.h: * Sccsid @(#)e.h 1.13 (gritter) 1/13/08 17 | e.y: * Sccsid @(#)e.y 1.7 (gritter) 10/2/07 18 | eqnbox.c: * Sccsid @(#)eqnbox.c 1.7 (gritter) 1/13/08 19 | font.c: * Sccsid @(#)font.c 1.5 (gritter) 1/13/08 20 | fromto.c: * Sccsid @(#)fromto.c 1.5 (gritter) 10/19/06 21 | funny.c: * Sccsid @(#)funny.c 1.6 (gritter) 10/19/06 22 | glob.c: * Sccsid @(#)glob.c 1.8 (gritter) 10/19/06 23 | integral.c: * Sccsid @(#)integral.c 1.5 (gritter) 10/19/06 24 | io.c: * Sccsid @(#)io.c 1.13 (gritter) 1/13/08 25 | lex.c: * Sccsid @(#)lex.c 1.7 (gritter) 11/21/07 26 | lookup.c: * Sccsid @(#)lookup.c 1.5 (gritter) 9/18/05 27 | mark.c: * Sccsid @(#)mark.c 1.3 (gritter) 8/12/05 28 | matrix.c: * Sccsid @(#)matrix.c 1.4 (gritter) 10/29/05 29 | move.c: * Sccsid @(#)move.c 1.4 (gritter) 10/29/05 30 | over.c: * Sccsid @(#)over.c 1.5 (gritter) 10/19/06 31 | paren.c: * Sccsid @(#)paren.c 1.4 (gritter) 10/29/05 32 | pile.c: * Sccsid @(#)pile.c 1.4 (gritter) 10/29/05 33 | shift.c: * Sccsid @(#)shift.c 1.6 (gritter) 1/13/08 34 | size.c: * Sccsid @(#)size.c 1.5 (gritter) 10/19/06 35 | sqrt.c: * Sccsid @(#)sqrt.c 1.6 (gritter) 1/13/08 36 | text.c: * Sccsid @(#)text.c 1.8 (gritter) 1/13/08 37 | */ 38 | -------------------------------------------------------------------------------- /eqn/yyval.sed: -------------------------------------------------------------------------------- 1 | # 2 | # Sccsid @(#)yyval.sed 1.2 (gritter) 10/2/07 3 | # 4 | # bison has a yacc-compatible yyval, but it is a local variable inside 5 | # yyparse(). Making the variable global is necessary to make bc work 6 | # with a bison-generated parser. 7 | 1,2 { 8 | /Bison/ { 9 | :look 10 | /^#ifdef YYTYPE_UINT8$/ { 11 | i\ 12 | YYSTYPE yyval; 13 | :repl 14 | s/^[ ]*YYSTYPE[ ]*yyval;// 15 | n 16 | t 17 | b repl 18 | } 19 | n 20 | b look 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /grap/.gitignore: -------------------------------------------------------------------------------- 1 | grap.c 2 | grapl.c 3 | grap 4 | -------------------------------------------------------------------------------- /grap/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ = coord.o for.o frame.o grap.o grapl.o input.o label.o main.o misc.o \ 2 | plot.o print.o ticks.o version.o 3 | 4 | FLAGS = -DLIBDIR='"$(LIBDIR)"' $(DEFINES) -I../include 5 | 6 | YFLAGS = -d 7 | 8 | .c.o: 9 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 10 | 11 | all: grap.c grapl.c grap grap.1 12 | 13 | grap: $(OBJ) 14 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -lm -o grap 15 | 16 | y.tab.h: grap.c 17 | 18 | install: 19 | $(INSTALL) -c grap $(ROOT)$(BINDIR)/grap 20 | $(STRIP) $(ROOT)$(BINDIR)/grap 21 | test -d $(ROOT)$(LIBDIR) || mkdir -p $(ROOT)$(LIBDIR) 22 | $(INSTALL) -c -m 644 grap.defines $(ROOT)$(LIBDIR)/grap.defines 23 | $(INSTALL) -c -m 644 grap.1 $(ROOT)$(MANDIR)/man1/grap.1 24 | 25 | clean: 26 | rm -f $(OBJ) grapl.c grap.c y.tab.h grap core log *~ grap.1 27 | 28 | mrproper: clean 29 | 30 | grap.1: grap.1.in 31 | sed 's"/usr/ucblib/"$(ROOT)$(LIBDIR)/"' grap.1.in > $@ 32 | 33 | coord.o: coord.c grap.h y.tab.h 34 | for.o: for.c grap.h y.tab.h 35 | frame.o: frame.c grap.h y.tab.h 36 | grap.o: grap.c grap.h 37 | grapl.o: grapl.c grap.h y.tab.h 38 | input.o: input.c grap.h y.tab.h 39 | label.o: label.c grap.h y.tab.h 40 | main.o: main.c grap.h y.tab.h 41 | misc.o: misc.c grap.h y.tab.h 42 | plot.o: plot.c grap.h y.tab.h 43 | print.o: print.c grap.h y.tab.h 44 | ticks.o: ticks.c grap.h y.tab.h 45 | -------------------------------------------------------------------------------- /grap/grap.defines: -------------------------------------------------------------------------------- 1 | # 2 | # Changes by Gunnar Ritter, Freiburg i. Br., Germany, October 2005. 3 | # 4 | # Derived from Plan 9 v4 /sys/lib/grap.defines 5 | # 6 | # Copyright (C) 2003, Lucent Technologies Inc. and others. 7 | # All Rights Reserved. 8 | # 9 | # Distributed under the terms of the Lucent Public License Version 1.02. 10 | # 11 | 12 | # Sccsid @(#)grap.defines 1.2 (gritter) 10/18/05 13 | 14 | # These definitions are right for the 202, 15 | # but might need fiddling elsewhere 16 | 17 | define bullet % "\s-5\(bu\s0" % 18 | define plus % "\s-3\(pl\s0" % 19 | define box % "\s-4\(bx\s0" % 20 | define star % "\(**" % 21 | define dot % "\v'-.2m'\s+4.\s0\v'.2m'" % 22 | define times % "\s-3\(mu\s0" % 23 | define htick % "\-" % 24 | define vtick % "\(or" % 25 | define square % "\s-3\(sq\s0" % 26 | define delta % "\s-3\(*D\s0" % 27 | -------------------------------------------------------------------------------- /grap/version.c: -------------------------------------------------------------------------------- 1 | #if __GNUC__ >= 3 && __GNUC_MINOR__ >= 4 || __GNUC__ >= 4 2 | #define USED __attribute__ ((used)) 3 | #elif defined __GNUC__ 4 | #define USED __attribute__ ((unused)) 5 | #else 6 | #define USED 7 | #endif 8 | static const char sccsid[] USED = "@(#)/usr/ucb/grap.sl 5.7 (gritter) 12/25/06"; 9 | const char version[] = "version Dec 30, 1995 5.7 (gritter) 12/25/06"; 10 | /* SLIST */ 11 | /* 12 | coord.c: Sccsid @(#)coord.c 1.3 (gritter) 10/18/05 13 | for.c: Sccsid @(#)for.c 1.3 (gritter) 10/18/05 14 | frame.c: Sccsid @(#)frame.c 1.3 (gritter) 10/18/05 15 | grap.c: Sccsid @(#)grap.y 1.3 (gritter) 10/18/05 16 | grap.c: * Sccsid @(#)yaccpar 1.5 (gritter) 11/26/05 17 | grap.h: Sccsid @(#)grap.h 1.5 (gritter) 12/5/05 18 | grap.y: Sccsid @(#)grap.y 1.3 (gritter) 10/18/05 19 | grapl.c: Sccsid @(#)grapl.l 1.4 (gritter) 11/22/05 20 | grapl.c: * Sccsid @(#)ncform 1.4 (gritter) 11/18/05 21 | grapl.l: Sccsid @(#)grapl.l 1.4 (gritter) 11/22/05 22 | input.c: Sccsid @(#)input.c 1.7 (gritter) 12/25/06 23 | label.c: Sccsid @(#)label.c 1.2 (gritter) 10/18/05 24 | main.c: Sccsid @(#)main.c 1.5 (gritter) 12/5/05 25 | misc.c: Sccsid @(#)misc.c 1.3 (gritter) 10/18/05 26 | plot.c: Sccsid @(#)plot.c 1.3 (gritter) 10/18/05 27 | print.c: Sccsid @(#)print.c 1.3 (gritter) 10/18/05 28 | ticks.c: Sccsid @(#)ticks.c 1.4 (gritter) 11/27/05 29 | grap.defines:# Sccsid @(#)grap.defines 1.2 (gritter) 10/18/05 30 | */ 31 | -------------------------------------------------------------------------------- /include/global.h: -------------------------------------------------------------------------------- 1 | #ifdef HAVE_STRLCPY 2 | # define n_strcpy(dst, src, dstsize) strlcpy(dst, src, dstsize) 3 | #else 4 | # define n_strcpy(dst, src, dstsize) strcpy(dst, src) 5 | #endif 6 | 7 | #ifdef HAVE_STRLCAT 8 | # define n_strcat(dst, src, dstsize) strlcat(dst, src, dstsize) 9 | #else 10 | # define n_strcat(dst, src, dstsize) strcat(dst, src) 11 | #endif 12 | 13 | #ifdef HAVE_WCSLCPY 14 | # define n_wcscpy(dst, src, size ) wcslcpy(dst, src, size ) 15 | #else 16 | # define n_wcscpy(dst, src, size ) wcscpy(dst, src) 17 | #endif 18 | 19 | #define min(x,y) ((x) < (y) ? (x) : (y)) 20 | #define max(x,y) ((x) > (y) ? (x) : (y)) 21 | #define prefix(str, pfx) (strncmp(pfx, str, strlen(pfx)) == 0) 22 | 23 | #undef __unused 24 | #define __unused __attribute__((unused)) 25 | 26 | #ifdef __GLIBC__ 27 | #ifdef _IO_getc_unlocked 28 | #undef getc 29 | #define getc(f) _IO_getc_unlocked(f) 30 | #endif 31 | #ifdef _IO_putc_unlocked 32 | #undef putc 33 | #undef putchar 34 | #define putc(c, f) _IO_putc_unlocked(c, f) 35 | #define putchar(c) _IO_putc_unlocked(c, stdout) 36 | #endif 37 | #endif 38 | -------------------------------------------------------------------------------- /makefile: -------------------------------------------------------------------------------- 1 | SUBDIRS = \ 2 | stuff/bst \ 3 | eqn/eqn.d \ 4 | eqn/neqn.d \ 5 | eqn/checkeq.d \ 6 | eqn/eqnchar.d \ 7 | tbl \ 8 | pic \ 9 | grap \ 10 | vgrind \ 11 | refer \ 12 | mpm \ 13 | troff/libhnj \ 14 | troff/libhnj/hyphen.d \ 15 | troff/troff.d/font \ 16 | troff/troff.d/font/devhtml \ 17 | troff/troff.d/tmac.d \ 18 | troff/troff.d/postscript \ 19 | troff/troff.d \ 20 | troff/troff.d/dpost.d \ 21 | troff/troff.d/dhtml \ 22 | troff/nroff.d \ 23 | troff/nroff.d/terms.d \ 24 | picpack \ 25 | checknr \ 26 | ptx \ 27 | soelim \ 28 | col 29 | 30 | # Removed from SUBDIRS. Add again if required. 31 | # troff/troff.d/devaps 32 | 33 | MAKEFILES = $(SUBDIRS:=/Makefile) 34 | 35 | TESTDIRS = \ 36 | doc/fonts \ 37 | doc/just \ 38 | doc/quickstart \ 39 | doc/troff \ 40 | test 41 | 42 | .PHONY: test 43 | .SUFFIXES: .mk 44 | .mk: 45 | cat cfg.mk $< >$@ 46 | 47 | dummy: cfg.mk $(MAKEFILES) all 48 | 49 | makefiles: $(MAKEFILES) 50 | 51 | .DEFAULT: 52 | + for i in $(SUBDIRS); \ 53 | do \ 54 | (cd "$$i" && $(MAKE) $@) || exit; \ 55 | done 56 | 57 | mrproper: clean 58 | rm -f cfg.mk config.log compat.h 59 | + for i in $(SUBDIRS); \ 60 | do \ 61 | (cd "$$i" && $(MAKE) $@) || exit; \ 62 | done 63 | rm -f $(MAKEFILES) 64 | 65 | test: 66 | for i in $(TESTDIRS); do \ 67 | (cd $$i && $(MAKE) $@) || exit 1; \ 68 | done 69 | @printf "\n*** TEST FINISHED SUCCESSFUL ***\n" 70 | 71 | PKGROOT = /var/tmp/heirloom-devtools 72 | PKGTEMP = /var/tmp 73 | PKGPROTO = pkgproto 74 | 75 | heirloom-doctools.pkg: all 76 | rm -rf $(PKGROOT) 77 | mkdir -p $(PKGROOT) 78 | $(MAKE) ROOT=$(PKGROOT) install 79 | rm -f $(PKGPROTO) 80 | echo 'i pkginfo' >$(PKGPROTO) 81 | (cd $(PKGROOT) && find . -print | pkgproto) | >>$(PKGPROTO) sed 's:^\([df] [^ ]* [^ ]* [^ ]*\) .*:\1 root root:; s:^f\( [^ ]* etc/\):v \1:; s:^f\( [^ ]* var/\):v \1:; s:^\(s [^ ]* [^ ]*=\)\([^/]\):\1./\2:' 82 | rm -rf $(PKGTEMP)/$@ 83 | pkgmk -a `uname -m` -d $(PKGTEMP) -r $(PKGROOT) -f $(PKGPROTO) $@ 84 | pkgtrans -o -s $(PKGTEMP) `pwd`/$@ $@ 85 | rm -rf $(PKGROOT) $(PKGPROTO) $(PKGTEMP)/$@ 86 | 87 | cfg.mk: 88 | ./configure 89 | -------------------------------------------------------------------------------- /mpm/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ = misc.o page.o queue.o range.o slug.o version.o 2 | 3 | FLAGS = $(EUC) $(DEFINES) -I../include 4 | 5 | .c.o: 6 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 7 | 8 | .cc.o: 9 | $(CXX) $(_CFLAGS) $(FLAGS) -c $< 10 | 11 | all: pm 12 | 13 | pm: $(OBJ) 14 | $(CXX) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -lm -o pm 15 | 16 | install: all 17 | test -d $(ROOT)$(LIBDIR) || mkdir -p $(ROOT)$(LIBDIR) 18 | $(INSTALL) -c pm $(ROOT)$(LIBDIR)/pm 19 | $(STRIP) $(ROOT)$(LIBDIR)/pm 20 | 21 | clean: 22 | rm -f $(OBJ) pm core log *~ 23 | 24 | mrproper: clean 25 | 26 | misc.o: misc.cc misc.h 27 | page.o: page.cc misc.h slug.h range.h page.h 28 | queue.o: queue.cc misc.h slug.h range.h page.h 29 | range.o: range.cc misc.h slug.h range.h 30 | slug.o: slug.cc misc.h slug.h 31 | -------------------------------------------------------------------------------- /mpm/misc.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Changes by Gunnar Ritter, Freiburg i. Br., Germany, October 2005. 3 | * 4 | * Derived from Plan 9 source code published at the 9fans list by Rob Pike, 5 | * 6 | * 7 | * Copyright (C) 2003, Lucent Technologies Inc. and others. 8 | * All Rights Reserved. 9 | * 10 | * Distributed under the terms of the Lucent Public License Version 1.02. 11 | */ 12 | 13 | /* Sccsid @(#)misc.cc 1.3 (gritter) 10/30/05 */ 14 | #include "misc.h" 15 | #include 16 | 17 | char *progname; 18 | int wantwarn = 0; 19 | 20 | int dbg = 0; 21 | // dbg = 1 : dump slugs 22 | // dbg = 2 : dump ranges 23 | // dbg = 4 : report function entry 24 | // dbg = 8 : follow queue progress 25 | // dbg = 16: follow page fill progress 26 | 27 | static void 28 | msg(void) 29 | { 30 | fprintf(stdout, "\n#MESSAGE TO USER: "); 31 | } 32 | 33 | void 34 | FATAL(const char *fmt, ...) 35 | { 36 | char buf[4096]; 37 | va_list ap; 38 | 39 | msg(); 40 | va_start(ap, fmt); 41 | vsnprintf(buf, sizeof buf, fmt, ap); 42 | va_end(ap); 43 | fputs(buf, stdout); 44 | fprintf(stderr, "%s: ", progname); 45 | fputs(buf, stderr); 46 | fflush(stdout); 47 | exit(1); 48 | } 49 | 50 | void 51 | WARNING(const char *fmt, ...) 52 | { 53 | char buf[4096]; 54 | va_list ap; 55 | 56 | msg(); 57 | va_start(ap, fmt); 58 | vsnprintf(buf, sizeof buf, fmt, ap); 59 | va_end(ap); 60 | fputs(buf, stdout); 61 | if (wantwarn) { 62 | fprintf(stderr, "%s: ", progname); 63 | fputs(buf, stderr); 64 | } 65 | fflush(stdout); 66 | } 67 | -------------------------------------------------------------------------------- /mpm/misc.h: -------------------------------------------------------------------------------- 1 | /* -*- C++ -*- vim: ft=cpp 2 | * Changes by Gunnar Ritter, Freiburg i. Br., Germany, October 2005. 3 | * 4 | * Derived from Plan 9 source code published at the 9fans list by Rob Pike, 5 | * 6 | * 7 | * Copyright (C) 2003, Lucent Technologies Inc. and others. 8 | * All Rights Reserved. 9 | * 10 | * Distributed under the terms of the Lucent Public License Version 1.02. 11 | */ 12 | 13 | /* Sccsid @(#)misc.h 1.3 (gritter) 10/30/05 */ 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include "global.h" 20 | 21 | extern char *progname; 22 | extern int linenum; 23 | extern int wantwarn; 24 | 25 | extern void FATAL(const char *, ...); 26 | extern void WARNING(const char *, ...); 27 | 28 | #define eq(s,t) (strcmp(s,t) == 0) 29 | 30 | extern int dbg; 31 | 32 | extern int pn, userpn; // actual and user-defined page numbers 33 | extern int pagetop, pagebot; // printing margins 34 | extern int physbot; // physical bottom of the page 35 | -------------------------------------------------------------------------------- /mpm/version.c: -------------------------------------------------------------------------------- 1 | #if __GNUC__ >= 3 && __GNUC_MINOR__ >= 4 || __GNUC__ >= 4 2 | #define USED __attribute__ ((used)) 3 | #elif defined __GNUC__ 4 | #define USED __attribute__ ((unused)) 5 | #else 6 | #define USED 7 | #endif 8 | static const char sccsid[] USED = "@(#)/usr/ucblib/pm.sl 1.5 (gritter) 7/29/06"; 9 | /* SLIST */ 10 | /* 11 | misc.h: Sccsid @(#)misc.h 1.3 (gritter) 10/30/05 12 | page.h: Sccsid @(#)page.h 1.3 (gritter) 10/30/05 13 | range.h: Sccsid @(#)range.h 1.3 (gritter) 10/30/05 14 | slug.h: Sccsid @(#)slug.h 1.5 (gritter) 10/31/05 15 | misc.cc: Sccsid @(#)misc.cc 1.3 (gritter) 10/30/05 16 | page.cc: Sccsid @(#)page.cc 1.4 (gritter) 10/30/05 17 | queue.cc: Sccsid @(#)queue.cc 1.3 (gritter) 10/30/05 18 | range.cc: Sccsid @(#)range.cc 1.3 (gritter) 10/30/05 19 | slug.cc: Sccsid @(#)slug.cc 1.7 (gritter) 7/29/06 20 | */ 21 | -------------------------------------------------------------------------------- /pic/.gitignore: -------------------------------------------------------------------------------- 1 | picy.c 2 | picl.c 3 | pic 4 | -------------------------------------------------------------------------------- /pic/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ = arcgen.o blockgen.o boxgen.o circgen.o for.o input.o linegen.o \ 2 | main.o misc.o movegen.o picl.o picy.o pltroff.o print.o symtab.o \ 3 | textgen.o version.o 4 | 5 | FLAGS = $(DEFINES) -I../include 6 | 7 | YFLAGS = -d 8 | 9 | .c.o: 10 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 11 | 12 | all: picy.c picl.c pic 13 | 14 | pic: $(OBJ) 15 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -lm -o pic 16 | 17 | y.tab.h: picy.c 18 | 19 | install: 20 | $(INSTALL) -c pic $(ROOT)$(BINDIR)/pic 21 | $(STRIP) $(ROOT)$(BINDIR)/pic 22 | test -d $(ROOT)$(MANDIR)/man1 || mkdir -p $(ROOT)$(MANDIR)/man1 23 | $(INSTALL) -c -m 644 pic.1 $(ROOT)$(MANDIR)/man1/pic.1 24 | 25 | clean: 26 | rm -f $(OBJ) picl.c picy.c y.tab.h pic core log *~ 27 | 28 | mrproper: clean 29 | 30 | arcgen.o: arcgen.c pic.h y.tab.h 31 | blockgen.o: blockgen.c pic.h y.tab.h 32 | boxgen.o: boxgen.c pic.h y.tab.h 33 | circgen.o: circgen.c pic.h y.tab.h 34 | for.o: for.c pic.h y.tab.h 35 | input.o: input.c pic.h y.tab.h 36 | linegen.o: linegen.c pic.h y.tab.h 37 | main.o: main.c pic.h y.tab.h 38 | misc.o: misc.c pic.h y.tab.h 39 | movegen.o: movegen.c pic.h y.tab.h 40 | picy.o: picy.c pic.h 41 | pltroff.o: pltroff.c pic.h 42 | print.o: print.c pic.h y.tab.h 43 | symtab.o: symtab.c pic.h y.tab.h 44 | textgen.o: textgen.c pic.h y.tab.h 45 | picl.o: y.tab.h 46 | -------------------------------------------------------------------------------- /pic/version.c: -------------------------------------------------------------------------------- 1 | #if __GNUC__ >= 3 && __GNUC_MINOR__ >= 4 || __GNUC__ >= 4 2 | #define USED __attribute__ ((used)) 3 | #elif defined __GNUC__ 4 | #define USED __attribute__ ((unused)) 5 | #else 6 | #define USED 7 | #endif 8 | static const char sccsid[] USED = "@(#)/usr/ucb/pic.sl 5.10 (gritter) 12/25/06"; 9 | const char version[] = "version July 5, 1993 5.10 (gritter) 12/25/06"; 10 | /* SLIST */ 11 | /* 12 | arcgen.c: Sccsid @(#)arcgen.c 1.3 (gritter) 10/18/05 13 | blockgen.c: Sccsid @(#)blockgen.c 1.3 (gritter) 10/18/05 14 | boxgen.c: Sccsid @(#)boxgen.c 1.2 (gritter) 10/18/05 15 | circgen.c: Sccsid @(#)circgen.c 1.3 (gritter) 10/18/05 16 | for.c: Sccsid @(#)for.c 1.3 (gritter) 10/18/05 17 | input.c: Sccsid @(#)input.c 1.8 (gritter) 12/25/06 18 | linegen.c: Sccsid @(#)linegen.c 1.3 (gritter) 10/25/05 19 | main.c: Sccsid @(#)main.c 1.6 (gritter) 12/5/05 20 | misc.c: Sccsid @(#)misc.c 1.3 (gritter) 10/18/05 21 | movegen.c: Sccsid @(#)movegen.c 1.2 (gritter) 10/18/05 22 | pic.h: Sccsid @(#)pic.h 1.6 (gritter) 12/5/05 23 | picl.c: Sccsid @(#)picl.l 1.9 (gritter) 8/6/06 24 | picl.c: * Sccsid @(#)ncform 1.4 (gritter) 11/18/05 25 | picl.l: Sccsid @(#)picl.l 1.9 (gritter) 8/6/06 26 | picy.c: Sccsid @(#)picy.y 1.4 (gritter) 11/28/05 27 | picy.c: * Sccsid @(#)yaccpar 1.5 (gritter) 11/26/05 28 | picy.y: Sccsid @(#)picy.y 1.4 (gritter) 11/28/05 29 | pltroff.c: Sccsid @(#)pltroff.c 1.3 (gritter) 2/8/06 30 | print.c: Sccsid @(#)print.c 1.3 (gritter) 10/18/05 31 | symtab.c: Sccsid @(#)symtab.c 1.3 (gritter) 10/18/05 32 | textgen.c: Sccsid @(#)textgen.c 1.2 (gritter) 10/18/05 33 | */ 34 | -------------------------------------------------------------------------------- /picpack/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ = picpack.o 2 | 3 | FLAGS = -I../troff/troff.d/dpost.d 4 | 5 | .c.o: 6 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 7 | 8 | all: picpack 9 | 10 | picpack: $(OBJ) 11 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o picpack 12 | 13 | install: 14 | $(INSTALL) -c picpack $(ROOT)$(BINDIR)/picpack 15 | $(STRIP) $(ROOT)$(BINDIR)/picpack 16 | $(INSTALL) -c -m 644 picpack.1 $(ROOT)$(MANDIR)/man1/picpack.1 17 | 18 | clean: 19 | rm -f $(OBJ) picpack core log *~ 20 | 21 | mrproper: clean 22 | -------------------------------------------------------------------------------- /pkginfo: -------------------------------------------------------------------------------- 1 | # Sccsid @(#)pkginfo 1.1 (gritter) 2/24/07 2 | PKG=heirloom-doctools 3 | NAME=Heirloom Documentation Tools 4 | DESC=nroff, troff, and related utilities 5 | VENDOR=Gunnar Ritter 6 | HOTLINE=http://heirloom.sourceforge.net 7 | EMAIL=gunnarr@acm.org 8 | VERSION=070224 9 | ARCH=IA32,i386 10 | CATEGORY=utilities 11 | BASEDIR=/ 12 | -------------------------------------------------------------------------------- /ptx/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ = ptx.o 2 | 3 | FLAGS = -DLIBDIR='"$(LIBDIR)"' $(EUC) -I../include 4 | 5 | .c.o: 6 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 7 | 8 | all: ptx ptx.1 9 | 10 | ptx: $(OBJ) 11 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o ptx 12 | 13 | install: 14 | $(INSTALL) -c ptx $(ROOT)$(BINDIR)/ptx 15 | $(STRIP) $(ROOT)$(BINDIR)/ptx 16 | $(INSTALL) -c -m 644 ptx.1 $(ROOT)$(MANDIR)/man1/ptx.1 17 | test -d $(ROOT)$(LIBDIR) || mkdir -p $(ROOT)$(LIBDIR) 18 | $(INSTALL) -c -m 644 eign $(ROOT)$(LIBDIR)/eign 19 | 20 | clean: 21 | rm -f $(OBJ) ptx core log *~ ptx.1 22 | 23 | mrproper: clean 24 | 25 | ptx.1: ptx.1.in 26 | sed -e "s'/usr/5bin/sort'`which sort`'" \ 27 | -e 's"/usr/ucblib/doctools/tmac/"$(ROOT)$(BINDIR)/"' \ 28 | -e 's"/usr/ucblib/"$(ROOT)$(LIBDIR)/"' \ 29 | ptx.1.in > $@ 30 | -------------------------------------------------------------------------------- /refer/.gitignore: -------------------------------------------------------------------------------- 1 | refer 2 | *bib 3 | mkey 4 | inv 5 | hunt 6 | papers 7 | -------------------------------------------------------------------------------- /refer/deliv2.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "deliv2.c 1.4 05/06/02 SMI" */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)deliv2.c 1.3 (gritter) 10/22/05 22 | */ 23 | 24 | 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include "refer..c" 30 | 31 | int 32 | hash (const char *s) 33 | { 34 | unsigned int c, n; 35 | int r; 36 | for(n=0; (c= *s); s++) 37 | n += (c*n+ (c << n%4)); 38 | r = (int)n; 39 | return(r>0 ? r : -r); 40 | } 41 | 42 | void 43 | err (const char *s, ...) 44 | { 45 | va_list ap; 46 | fprintf(stderr, "Error: "); 47 | va_start(ap, s); 48 | vfprintf(stderr, s, ap); 49 | va_end(ap); 50 | putc('\n', stderr); 51 | exit(1); 52 | } 53 | 54 | const char * 55 | mindex(const char *s, int c) 56 | { 57 | register const char *p; 58 | for( p=s; *p; p++) 59 | if (*p ==c) 60 | return(p); 61 | return(0); 62 | } 63 | 64 | void * 65 | zalloc(int m,int n) 66 | { 67 | # if D1 68 | fprintf(stderr, "calling calloc for %d*%d bytes\n",m,n); 69 | # endif 70 | void * 71 | t = calloc(m,n); 72 | # if D1 73 | fprintf(stderr, "calloc returned %p\n", t); 74 | # endif 75 | return(t); 76 | } 77 | -------------------------------------------------------------------------------- /refer/glue2.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "glue2.c 1.3 05/06/02 SMI" */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)glue2.c 1.3 (gritter) 10/22/05 22 | */ 23 | 24 | #include 25 | #include "refer..c" 26 | 27 | 28 | char refdir[4096]; 29 | 30 | void 31 | savedir(void) 32 | { 33 | if (refdir[0]==0) 34 | getcwd(refdir, sizeof refdir); 35 | } 36 | 37 | void 38 | restodir(void) 39 | { 40 | chdir(refdir); 41 | } 42 | -------------------------------------------------------------------------------- /refer/hunt3.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "hunt3.c 1.4 05/06/02 SMI" */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)hunt3.c 1.3 (gritter) 10/22/05 22 | */ 23 | 24 | #include 25 | #include "refer..c" 26 | #define BSIZ 250 27 | 28 | int 29 | getq(char **v) 30 | { 31 | static char buff[BSIZ]; 32 | static int eof = 0; 33 | extern char *sinput; 34 | char *p; 35 | int c, n = 0, las = 0, use_sinput = (sinput!=NULL); 36 | if (eof) return(-1); 37 | p = buff; 38 | while ( (c = (use_sinput ? *sinput++ : getchar()) ) > 0) 39 | { 40 | if (c== '\n') 41 | break; 42 | if (isalpha(c) || isdigit(c)) 43 | { 44 | if (las==0) 45 | { 46 | v[n++] = p; 47 | las=1; 48 | } 49 | if (las++ <= 6) 50 | *p++ = c; 51 | } 52 | else 53 | { 54 | if (las>0) 55 | *p++ = 0; 56 | las=0; 57 | } 58 | } 59 | *p=0; 60 | if (p > buff + BSIZ) 61 | fprintf(stderr, "query long than %d characters\n", BSIZ); 62 | assert(p < buff + BSIZ); 63 | if (use_sinput || c<=0) eof=1; 64 | # if D1 65 | fprintf(stderr, "no. keys %d\n",n); 66 | for(c=0; c 25 | #include 26 | #include 27 | #include "refer..c" 28 | 29 | extern char *soutput, *tagout, usedir[]; 30 | union ptr { 31 | unsigned *a; 32 | long *b; 33 | }; 34 | 35 | void 36 | result(unsigned *mptr, int nf, FILE *fc) 37 | { 38 | int i, c; 39 | char *s; 40 | long lp; 41 | extern int iflong; 42 | char res[100]; 43 | union ptr master; 44 | 45 | if (iflong) { 46 | master.b = (long *) mptr; 47 | } 48 | else { 49 | master.a = mptr; 50 | } 51 | 52 | for(i=0; i 25 | #include 26 | #include 27 | #include "refer..c" 28 | 29 | int 30 | recopy (FILE *ft, FILE *fb, FILE *fa, int nhash) 31 | { 32 | /* copy fb (old hash items/pointers) to ft (new ones) */ 33 | int n, i, _iflong; 34 | int *hpt_s = 0; 35 | int (*getfun)(FILE *); 36 | long *hpt_l = 0; 37 | long k, lp; 38 | if (fa==NULL) 39 | { 40 | err("No old pointers",0); 41 | return 0; 42 | } 43 | fread(&n, sizeof(n), 1, fa); 44 | fread(&_iflong, sizeof(_iflong), 1, fa); 45 | if (_iflong) 46 | { 47 | hpt_l = calloc(sizeof(*hpt_l), n+1); 48 | n =fread(hpt_l, sizeof(*hpt_l), n, fa); 49 | } 50 | else 51 | { 52 | hpt_s = calloc(sizeof(*hpt_s), n+1); 53 | n =fread(hpt_s, sizeof(*hpt_s), n, fa); 54 | } 55 | if (n!= nhash) 56 | fprintf(stderr, "Changing hash value to old %d\n",n); 57 | fclose(fa); 58 | if (_iflong) 59 | getfun = (int(*)(FILE *))getl; 60 | else 61 | #ifdef EUC 62 | getfun = getw; 63 | #else 64 | getfun = fgetc; 65 | #endif 66 | for(i=0; i 25 | #include 26 | #include "refer..c" 27 | #define COMNUM 500 28 | #define COMTSIZE 997 29 | 30 | char *comname = REFDIR "/eign"; 31 | static int cgate = 0; 32 | extern char *comname; 33 | int comcount = 100; 34 | static char cbuf[COMNUM*9]; 35 | static char *cwds[COMTSIZE]; 36 | static char *cbp; 37 | 38 | int 39 | common (char *s) 40 | { 41 | if (cgate==0) cominit(); 42 | return (c_look(s, 1)); 43 | } 44 | 45 | void 46 | cominit(void) 47 | { 48 | int i; 49 | FILE *f; 50 | cgate=1; 51 | f = fopen(comname, "r"); 52 | if (f==NULL) return; 53 | cbp=cbuf; 54 | for(i=0; i 25 | #include 26 | #include 27 | #include "refer..c" 28 | #define move(x, y) close(y); dup(x); close(x); 29 | 30 | int 31 | corout(char *_in, char *out, const char *rprog, char *arg, int outlen) 32 | { 33 | int pipev[2], fr1, fr2, fw1, fw2, n; 34 | int pid, status; 35 | 36 | pipe(pipev); 37 | fr1 = pipev[0]; 38 | fw1 = pipev[1]; 39 | pipe(pipev); 40 | fr2 = pipev[0]; 41 | fw2 = pipev[1]; 42 | if ((pid = fork()) == 0) 43 | { 44 | close(fw1); 45 | close(fr2); 46 | move(fr1, 0); 47 | move(fw2, 1); 48 | execl(rprog, "deliv", arg, NULL); 49 | err("Can't run %s", rprog); 50 | } 51 | close(fw2); 52 | close(fr1); 53 | write(fw1, _in , strlen(_in)); 54 | close(fw1); 55 | while (wait(&status) != pid); 56 | n = read(fr2, out, outlen); 57 | out[n] = 0; 58 | close(fr2); 59 | return(n); 60 | } 61 | -------------------------------------------------------------------------------- /refer/refer8.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "refer8.c 1.3 05/06/02 SMI" */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)refer8.c 1.3 (gritter) 10/22/05 22 | */ 23 | 24 | #include 25 | #include "refer..c" 26 | 27 | static char ahead[1024]; 28 | static int peeked = 0; 29 | static char *noteof = (char *) 1; 30 | 31 | char * 32 | input(char *s, size_t l __unused) 33 | { 34 | if (peeked) { 35 | peeked = 0; 36 | if (noteof == 0) 37 | return(0); 38 | if (s != ahead) n_strcpy(s, ahead, l); 39 | return(s); 40 | } 41 | return(fgets(s, 1000, in)); 42 | } 43 | 44 | char * 45 | lookat(void) 46 | { 47 | if (peeked) 48 | return(ahead); 49 | noteof = input(ahead, sizeof(ahead)); 50 | peeked = 1; 51 | return(noteof); 52 | } 53 | 54 | void 55 | addch(char *s, int c) 56 | { 57 | while (*s) 58 | s++; 59 | *s++ = c; 60 | *s = 0; 61 | } 62 | -------------------------------------------------------------------------------- /refer/roffbib.sh: -------------------------------------------------------------------------------- 1 | # Copyright 1988 Sun Microsystems, Inc. All Rights Reserved. 2 | # Use is subject to license terms. 3 | 4 | # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 5 | # All Rights Reserved 6 | 7 | # Copyright (c) 1980 Regents of the University of California. 8 | # All rights reserved. The Berkeley software License Agreement 9 | # specifies the terms and conditions for redistribution. 10 | 11 | # from OpenSolaris "roffbib.sh 1.6 05/06/03 SMI" 12 | # 13 | # Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 14 | # 15 | # Sccsid @(#)roffbib.sh 1.3 (gritter) 10/22/05 16 | 17 | # 18 | # roffbib sh script 19 | # 20 | flags= 21 | abstr= 22 | headr=BIBLIOGRAPHY 23 | xroff=@BINDIR@/nroff 24 | macro=-mbib 25 | 26 | for i 27 | do case $1 in 28 | -[onsrT]*|-[qeh]) 29 | flags="$flags $1" 30 | shift ;; 31 | -x) 32 | abstr="X.ig ]-" 33 | shift ;; 34 | -m) 35 | shift 36 | macro="-m$1" 37 | shift ;; 38 | -Q) 39 | xroff="@BINDIR@/troff" 40 | shift ;; 41 | -H) 42 | shift 43 | headr="$1" 44 | shift ;; 45 | -*) 46 | echo "roffbib: unknown flag: $1" 47 | shift 48 | esac 49 | done 50 | if test "x$1" != x 51 | then 52 | (echo .ds TL $headr; @BINDIR@/refer -a1 -B"$abstr" "$@") | \ 53 | $xroff $flags $macro 54 | else 55 | (echo .ds TL $headr; @BINDIR@/refer -a1 -B"$abstr") | $xroff $flags $macro 56 | fi 57 | -------------------------------------------------------------------------------- /refer/shell.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "shell.c 1.3 05/06/02 SMI" */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)shell.c 1.4 (gritter) 12/25/06 22 | */ 23 | 24 | /* 25 | * SORTS UP. 26 | * IF THERE ARE NO EXCHANGES (IEX=0) ON A SWEEP 27 | * THE COMPARISON GAP (IGAP) IS HALVED FOR THE NEXT SWEEP 28 | */ 29 | 30 | #include "refer..c" 31 | 32 | void 33 | shell (int n, int (*comp)(int, int), int (*exch)(int, int)) 34 | { 35 | int igap, iplusg, iex, i, imax; 36 | igap=n; 37 | while (igap > 1) 38 | { 39 | igap /= 2; 40 | imax = n-igap; 41 | do 42 | { 43 | iex=0; 44 | for(i=0; i0); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /refer/tick.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "tick.c 1.3 05/06/02 SMI" */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)tick.c 1.3 (gritter) 10/22/05 22 | */ 23 | 24 | /* time programs */ 25 | # include "sys/times.h" 26 | # include "time.h" 27 | # include "stdio.h" 28 | # include "sys/types.h" 29 | # include "refer..c" 30 | 31 | struct tbuffer { 32 | long proc_user_time; 33 | long proc_system_time; 34 | long child_user_time; 35 | long child_system_time; 36 | }; 37 | static long start, user, systm; 38 | void 39 | tick(void) 40 | { 41 | struct tms tx; 42 | time_t tp; 43 | times (&tx); 44 | time (&tp); 45 | user = tx.tms_utime; 46 | systm= tx.tms_stime; 47 | start = tp; 48 | } 49 | void 50 | tock(void) 51 | { 52 | struct tms tx; 53 | time_t tp; 54 | float lap, use, sys; 55 | if (start==0) return; 56 | times (&tx); 57 | time (&tp); 58 | lap = (tp - start)/60.; 59 | use = (tx.tms_utime - user)/60.; 60 | sys = (tx.tms_stime - systm)/60.; 61 | printf("Elapsed %.2f CPU %.2f (user %.2f, sys %.2f)\n", 62 | lap, use+sys, use, sys); 63 | } 64 | -------------------------------------------------------------------------------- /soelim/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ = soelim.o 2 | 3 | FLAGS = 4 | 5 | .c.o: 6 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 7 | 8 | all: soelim soelim.1 9 | 10 | soelim: $(OBJ) 11 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o soelim 12 | 13 | install: 14 | $(INSTALL) -c soelim $(ROOT)$(BINDIR)/soelim 15 | $(STRIP) $(ROOT)$(BINDIR)/soelim 16 | $(INSTALL) -c -m 644 soelim.1 $(ROOT)$(MANDIR)/man1/soelim.1 17 | 18 | clean: 19 | rm -f $(OBJ) soelim core log *~ soelim.1 20 | 21 | mrproper: clean 22 | 23 | soelim.1: soelim.1.in 24 | sed 's"/usr/ucblib/doctools/tmac/"$(ROOT)$(MACDIR)/"' soelim.1.in > $@ 25 | -------------------------------------------------------------------------------- /stuff/bst/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ= bst.o 2 | 3 | all: $(OBJ) 4 | 5 | install: 6 | 7 | clean: 8 | rm -f $(OBJ) 9 | 10 | mrproper: clean 11 | -------------------------------------------------------------------------------- /stuff/demo/PDFX_def.ps: -------------------------------------------------------------------------------- 1 | %! 2 | % Changes by Gunnar Ritter, Freiburg i. Br., Germany, December 2005 3 | % Sccsid @(#)PDFX_def.ps 1.3 (gritter) 1/20/06 4 | % from Ghostscript 8.53 PDFX_def.ps,v 1.1 2005/09/12 11:34:50 leonardo Exp 5 | % 6 | % This is a sample prefix file for creating a PDF/X-3 document. 7 | % It has been changed such that the resulting document passed the 8 | % preflight check of Acrobat 7.0.5. 9 | 10 | % Define entries to the document Info dictionary: 11 | [ /GTS_PDFXVersion (PDF/X-3:2002) % Intended version of the standard 12 | /Title (Title) % Overridden by "\X'PDFMark: Title ...'". 13 | /Trapped /False % Must be so (Ghostscript doesn't provide other). 14 | /DOCINFO pdfmark 15 | 16 | % Define the output intent dictionary: 17 | [/_objdef {OutputIntent_PDFX} /type /dict /OBJ pdfmark 18 | [{OutputIntent_PDFX} << 19 | /Type /OutputIntent % Must be so (the standard requires). 20 | /S /GTS_PDFX % Must be so (the standard requires). 21 | % The troff demonstration document uses only black so these entries are 22 | % included just for conformance. If you actually use colors, you will 23 | % have to retrieve an ICC profile and to convert all colors and images 24 | % using a CMS (e.g. ) to the intended output 25 | % profile before they get used in troff and dpost. 26 | /Info (Europe ISO Uncoated Yellowish FOGRA30) 27 | /OutputConditionIdentifier (FOGRA30) 28 | /RegistryName (http://www.color.org) 29 | >> /PUT pdfmark 30 | [{Catalog} <> /PUT pdfmark 31 | -------------------------------------------------------------------------------- /stuff/demo/README: -------------------------------------------------------------------------------- 1 | README for the Heirloom Troff Demonstration Page 2 | ================================================ 3 | 4 | To build this document, you either need the Type 1 Adobe 5 | Caslon font including the Expert sets, or its OpenType 6 | variant Adobe Caslon Pro, and need to set the TROFFONTS 7 | variable accordingly. Adobe Caslon Pro is available as 8 | part of the "Adobe Type Basics OpenType Edition" package. 9 | 10 | Note that as of autumn 2005, it was not possible to 11 | download fonts bought directly from Adobe using a Linux 12 | system. There are many other shops that sell Adobe fonts, 13 | though, and these usually allow downloads for Linux users. 14 | 15 | Gunnar Ritter 01/08/07 16 | -------------------------------------------------------------------------------- /stuff/demo/makefile: -------------------------------------------------------------------------------- 1 | .SUFFIXES: .tr .ps .pdf 2 | 3 | # You need at least Ghostscript 8.53 to create PDF/X documents. 4 | DISTFLAGS = -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite \ 5 | -sProcessColorModel=DeviceGray -dPDFX 6 | 7 | .tr.ps: 8 | troff $(TFLAGS) $< | dpost >$@ 9 | 10 | .ps.pdf: 11 | gs -sOutputFile=$@ $(DISTFLAGS) -f PDFX_def.ps -f $< 12 | 13 | all: troffdemo.ps troffdemo_otf.ps troffdemo.pdf troffdemo_otf.pdf 14 | 15 | troffdemo_otf.ps: troffdemo.tr troffdemo_otf.tr 16 | 17 | clean: 18 | rm -f troffdemo.pdf troffdemo.ps troffdemo_otf.ps \ 19 | troffdemo_otf.pdf core log *~ 20 | -------------------------------------------------------------------------------- /stuff/demo/troffdemo_otf.tr: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .nr O 1 3 | .so troffdemo.tr 4 | -------------------------------------------------------------------------------- /tbl/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ = t0.o t1.o t2.o t3.o t4.o t5.o t6.o t7.o t8.o t9.o tb.o tc.o te.o \ 2 | tf.o tg.o ti.o tm.o ts.o tt.o tu.o tv.o version.o 3 | 4 | FLAGS = -DMACDIR='"$(MACDIR)"' -I../include 5 | 6 | .c.o: 7 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 8 | 9 | all: tbl 10 | 11 | tbl: $(OBJ) 12 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o tbl 13 | 14 | install: 15 | $(INSTALL) -c tbl $(ROOT)$(BINDIR)/tbl 16 | $(STRIP) $(ROOT)$(BINDIR)/tbl 17 | $(INSTALL) -c -m 644 tbl.1 $(ROOT)$(MANDIR)/man1/tbl.1 18 | 19 | clean: 20 | rm -f $(OBJ) tbl core log *~ 21 | 22 | mrproper: clean 23 | 24 | t..o: t..c 25 | t0.o: t0.c t..c 26 | t1.o: t1.c t..c 27 | t2.o: t2.c t..c 28 | t3.o: t3.c t..c 29 | t4.o: t4.c t..c 30 | t5.o: t5.c t..c 31 | t6.o: t6.c t..c 32 | t7.o: t7.c t..c 33 | t8.o: t8.c t..c 34 | t9.o: t9.c t..c 35 | tb.o: tb.c t..c 36 | tc.o: tc.c t..c 37 | te.o: te.c t..c 38 | tf.o: tf.c t..c 39 | tg.o: tg.c t..c 40 | ti.o: ti.c t..c 41 | tm.o: tm.c t..c 42 | ts.o: ts.c 43 | tt.o: tt.c t..c 44 | tu.o: tu.c t..c 45 | tv.o: tv.c t..c 46 | -------------------------------------------------------------------------------- /tbl/t2.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "t2.c 1.3 05/06/02 SMI" SVr4.0 1.1 */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)t2.c 1.3 (gritter) 7/23/05 22 | */ 23 | 24 | /* t2.c: subroutine sequencing for one table */ 25 | # include "t..c" 26 | void 27 | tableput(void) { 28 | saveline(); 29 | savefill(); 30 | ifdivert(); 31 | cleanfc(); 32 | if (getcomm()) 33 | return; 34 | if (getspec()) 35 | return; 36 | if (gettbl()) 37 | return; 38 | getstop(); 39 | checkuse(); 40 | if (choochar()) 41 | return; 42 | maktab(); 43 | if (runout()) 44 | return; 45 | release(); 46 | rstofill(); 47 | endoff(); 48 | restline(); 49 | } 50 | -------------------------------------------------------------------------------- /tbl/ti.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "ti.c 1.3 05/06/02 SMI" SVr4.0 1.1 */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)ti.c 1.3 (gritter) 7/23/05 22 | */ 23 | 24 | /* ti.c: classify line intersections */ 25 | # include "t..c" 26 | /* determine local environment for intersections */ 27 | int 28 | interv(int i, int c) 29 | { 30 | int ku, kl; 31 | if (c>=ncol || c == 0) 32 | { 33 | if (dboxflg) 34 | { 35 | if (i==0) return(BOT); 36 | if (i>=nlin) return(TOP); 37 | return(THRU); 38 | } 39 | if (c>=ncol) 40 | return(0); 41 | } 42 | ku = i>0 ? lefdata(i-1,c) : 0; 43 | if (i+1 >= nlin) 44 | kl=0; 45 | else 46 | kl = lefdata(allh(i) ? i+1 : i, c); 47 | if (ku==2 && kl==2) return(THRU); 48 | if (ku ==2) return(TOP); 49 | if (kl==BOT) return(2); 50 | return(0); 51 | } 52 | int 53 | interh(int i, int c) 54 | { 55 | int kl, kr; 56 | if (fullbot[i]== '=' || (dboxflg && (i==0 || i>= nlin-1))) 57 | { 58 | if (c==ncol) 59 | return(LEFT); 60 | if (c==0) 61 | return(RIGHT); 62 | return(THRU); 63 | } 64 | if (i>=nlin) return(0); 65 | kl = c>0 ? thish (i,c-1) : 0; 66 | if (kl<=1 && i>0 && allh(up1(i))) 67 | kl = c>0 ? thish(up1(i),c-1) : 0; 68 | kr = thish(i,c); 69 | if (kr<=1 && i>0 && allh(up1(i))) 70 | kr = c>0 ? thish(up1(i), c) : 0; 71 | if (kl== '=' && kr == '=') return(THRU); 72 | if (kl== '=') return(LEFT); 73 | if (kr== '=') return(RIGHT); 74 | return(0); 75 | } 76 | int 77 | up1(int i) 78 | { 79 | i--; 80 | while (instead[i] && i>0) i--; 81 | return(i); 82 | } 83 | -------------------------------------------------------------------------------- /tbl/ts.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 | /* All Rights Reserved */ 3 | 4 | 5 | /* 6 | * Copyright (c) 1980 Regents of the University of California. 7 | * All rights reserved. The Berkeley software License Agreement 8 | * specifies the terms and conditions for redistribution. 9 | */ 10 | 11 | /* 12 | * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 13 | * All Rights Reserved. 14 | */ 15 | 16 | /* from OpenSolaris "ts.c 1.3 05/06/02 SMI" SVr4.0 1.1 */ 17 | 18 | /* 19 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 20 | * 21 | * Sccsid @(#)ts.c 1.3 (gritter) 7/23/05 22 | */ 23 | 24 | #include "t..c" 25 | 26 | /* ts.c: minor string processing subroutines */ 27 | 28 | /* returns: 1 for match, 0 else */ 29 | int 30 | cprefix(const char *ctl, const char *line) 31 | { 32 | char c; 33 | 34 | if (*line++ != '.') return 0; 35 | while (*line == ' ' || *line == '\t') line++; 36 | while ((c = *ctl++) == *line++) 37 | if (!c) return 1; 38 | return !c; 39 | } 40 | 41 | int 42 | letter(int ch) 43 | { 44 | if (ch >= 'a' && ch <= 'z') 45 | return(1); 46 | if (ch >= 'A' && ch <= 'Z') 47 | return(1); 48 | return(0); 49 | } 50 | 51 | void 52 | tcopy(char *s, char *t) 53 | { 54 | while ((*s++ = *t++)); 55 | } 56 | -------------------------------------------------------------------------------- /tbl/version.c: -------------------------------------------------------------------------------- 1 | #if __GNUC__ >= 3 && __GNUC_MINOR__ >= 4 || __GNUC__ >= 4 2 | #define USED __attribute__ ((used)) 3 | #elif defined __GNUC__ 4 | #define USED __attribute__ ((unused)) 5 | #else 6 | #define USED 7 | #endif 8 | static const char sccsid[] USED = "@(#)/usr/ucb/tbl.sl 5.19 (gritter) 10/2/07"; 9 | /* SLIST */ 10 | /* 11 | t..c: * Sccsid @(#)t..c 1.19 (gritter) 9/11/06 12 | t0.c: * Sccsid @(#)t0.c 1.12 (gritter) 9/11/06 13 | t1.c: * Sccsid @(#)t1.c 1.12 (gritter) 9/8/06 14 | t2.c: * Sccsid @(#)t2.c 1.3 (gritter) 7/23/05 15 | t3.c: * Sccsid @(#)t3.c 1.12 (gritter) 9/11/06 16 | t4.c: * Sccsid @(#)t4.c 1.7 (gritter) 9/8/06 17 | t5.c: * Sccsid @(#)t5.c 1.8 (gritter) 10/2/07 18 | t6.c: * Sccsid @(#)t6.c 1.6 (gritter) 2/8/06 19 | t7.c: * Sccsid @(#)t7.c 1.8 (gritter) 10/25/06 20 | t8.c: * Sccsid @(#)t8.c 1.12 (gritter) 10/2/07 21 | t9.c: * Sccsid @(#)t9.c 1.7 (gritter) 2/26/06 22 | tb.c: * Sccsid @(#)tb.c 1.7 (gritter) 9/8/06 23 | tc.c: * Sccsid @(#)tc.c 1.5 (gritter) 10/15/05 24 | te.c: * Sccsid @(#)te.c 1.13 (gritter) 8/6/06 25 | tf.c: * Sccsid @(#)tf.c 1.9 (gritter) 9/9/06 26 | tg.c: * Sccsid @(#)tg.c 1.10 (gritter) 10/2/07 27 | ti.c: * Sccsid @(#)ti.c 1.3 (gritter) 7/23/05 28 | tm.c: * Sccsid @(#)tm.c 1.5 (gritter) 9/15/05 29 | ts.c: * Sccsid @(#)ts.c 1.3 (gritter) 7/23/05 30 | tt.c: * Sccsid @(#)tt.c 1.3 (gritter) 7/23/05 31 | tu.c: * Sccsid @(#)tu.c 1.4 (gritter) 9/8/06 32 | tv.c: * Sccsid @(#)tv.c 1.4 (gritter) 9/8/06 33 | */ 34 | -------------------------------------------------------------------------------- /test/eqn/makefile: -------------------------------------------------------------------------------- 1 | .SUFFIXES: .roff .more .ps 2 | 3 | test: 4 | mv eqn.more eqn.more.orig 5 | make eqn.more 6 | diff eqn.more eqn.more.orig 7 | rm eqn.more 8 | mv eqn.more.orig eqn.more 9 | mv eqn.ps eqn.ps.orig 10 | make eqn.ps 11 | sed 's/.CreationDate.*/%/' eqn.ps > eqn.ps.sed 12 | diff eqn.ps.sed eqn.ps.orig 13 | rm eqn.ps eqn.ps.sed 14 | mv eqn.ps.orig eqn.ps 15 | 16 | clean: 17 | rm -f *.more *.ps 18 | 19 | .roff.more: 20 | neqn $< | nroff -Tlocale | col -x > $@ 21 | 22 | .roff.ps: 23 | eqn $< | troff | dpost > $@ 24 | -------------------------------------------------------------------------------- /test/grap/data/rawgrades: -------------------------------------------------------------------------------- 1 | 100 2 | 67 3 | 34 4 | 89 5 | 86 6 | 79 7 | -------------------------------------------------------------------------------- /test/grap/data/ttrev.data: -------------------------------------------------------------------------------- 1 | 1981 0 2 | 1982 4 3 | 1983 8 4 | 1984 17 5 | 1985 36 6 | -------------------------------------------------------------------------------- /test/grap/grap.more: -------------------------------------------------------------------------------- 1 | ──────────────────────────────┐ 2 | 100 ─│ │ 3 | │ │ 4 | 80 ─│ │ 5 | │ │ 6 | 60 ─│ │ 7 | MiDlolliloanrss of│ │ 8 | 40 ─│ │ 9 | │ Expenses │ 10 | 20 ─│ │ 11 | │ Revenues │ 12 | 0 ─│ ────── │ 13 | │──────────┬───┬───┬────┬───┬───┬───┬─│┘ 14 | 19│83 │19│85 │19│87 │19│89 15 | 16 | (PrToTjIe:ctReedvevnauleusesanidndEixcpaetnedditbuyre.s....) 17 | 18 | ──────────────────────────────┐ 19 | 10─0│ • │ 20 | │ • │ 21 | │ • │ 22 | 80─│ •│ 23 | │ │ 24 | │ • │ 25 | 60─│ │ 26 | │ │ 27 | │ │ 28 | 40─│ │ 29 | │ • │ 30 | │└───┬──────┬─────┬─────┬─────┬──────│ 31 | │1 │2 │3 │4 │5 │6 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /test/grap/grap.roff: -------------------------------------------------------------------------------- 1 | .G1 2 | label left "Millions of" "Dollars" left .2 3 | label bot "TTI: Revenues and Expenditures"\ 4 | "(Projected values indicated by .....)" 5 | ticks left out from 0 to 100 by 20 6 | ticks bot out from 1983 to 1989 by 2 7 | ticks bot out from 1984 to 1988 by 2 "" 8 | "Revenues" size -2 ljust at 1986, 10 9 | "Expenses" size -2 at 1985, 32 10 | draw solid; copy "data/ttrev.data" 11 | .G2 12 | .G1 13 | copy "data/rawgrades" 14 | .G2 15 | .EQ 16 | delim $$ 17 | .EN 18 | .\".G1 19 | .\"coord x 1, 10 y 1, 100 log y 20 | .\"grid bot dotted from 2 to 9 21 | .\"grid left dotted at 10 "10", 50 "50" 22 | .\"draw solid bullet 23 | .\"label left "log y" left 0.1 24 | .\"label bot "x" up 0.1 25 | .\""$y = x sup 2$" at 3, 15 26 | .\"for i = 1 to 10 do 27 | .\"{ 28 | .\" next at i, i*i 29 | .\"} 30 | .\".G2 31 | -------------------------------------------------------------------------------- /test/grap/makefile: -------------------------------------------------------------------------------- 1 | NAM= grap 2 | 3 | .SUFFIXES: .roff .more .ps 4 | 5 | test: 6 | mv $(NAM).more $(NAM).more.orig 7 | make $(NAM).more 8 | diff $(NAM).more $(NAM).more.orig 9 | rm $(NAM).more 10 | mv $(NAM).more.orig $(NAM).more 11 | mv $(NAM).ps $(NAM).ps.orig 12 | make $(NAM).ps 13 | sed 's/.CreationDate.*/%/' $(NAM).ps > $(NAM).ps.sed 14 | diff $(NAM).ps.sed $(NAM).ps.orig 15 | rm $(NAM).ps $(NAM).ps.sed 16 | mv $(NAM).ps.orig $(NAM).ps 17 | 18 | clean: 19 | rm -f *.more *.ps 20 | 21 | .roff.more: 22 | grap $< | pic | neqn | nroff -Tlocale | col -x > $@ 23 | 24 | .roff.ps: 25 | grap $< | pic | eqn | troff | dpost > $@ 26 | -------------------------------------------------------------------------------- /test/makefile: -------------------------------------------------------------------------------- 1 | DIRS= \ 2 | eqn \ 3 | grap \ 4 | pic \ 5 | refer/32 \ 6 | refer/ab \ 7 | tbl 8 | 9 | # should be .DEFAULT but doesn't work with GNU make 10 | test: 11 | for i in $(DIRS); do \ 12 | (cd $$i && $(MAKE) $@) || exit 1; \ 13 | done 14 | -------------------------------------------------------------------------------- /test/pic/makefile: -------------------------------------------------------------------------------- 1 | NAM= pic 2 | 3 | .SUFFIXES: .roff .more .ps 4 | 5 | test: 6 | mv $(NAM).more $(NAM).more.orig 7 | make $(NAM).more 8 | diff $(NAM).more $(NAM).more.orig 9 | rm $(NAM).more 10 | mv $(NAM).more.orig $(NAM).more 11 | mv $(NAM).ps $(NAM).ps.orig 12 | make $(NAM).ps 13 | sed 's/.CreationDate.*/%/' $(NAM).ps > $(NAM).ps.sed 14 | diff $(NAM).ps.sed $(NAM).ps.orig 15 | rm $(NAM).ps $(NAM).ps.sed 16 | mv $(NAM).ps.orig $(NAM).ps 17 | 18 | clean: 19 | rm -f *.more *.ps 20 | 21 | .roff.more: 22 | grap $< | pic | neqn | nroff -Tlocale | col -x > $@ 23 | 24 | .roff.ps: 25 | grap $< | pic | eqn | troff | dpost > $@ 26 | -------------------------------------------------------------------------------- /test/pic/pic.roff: -------------------------------------------------------------------------------- 1 | .pl 29.7c 2 | .ll 21c 3 | .po 0 4 | .nf 5 | O 6 | / | \e 7 | #<->O<-># 8 | .fi 9 | .PS 10 | down 11 | ellipse 12 | move down 1.25 13 | circle radius .35 14 | move left 1i from left of last circle; box 15 | move right 1i from right of last circle; box 16 | arrow from lower left of last ellipse to top of 1st box 17 | arrow from lower right of last ellipse to top of 2nd box 18 | arrow <-> from bottom of last ellipse to top of last circle 19 | .PE 20 | Zwischenzeile 21 | .PS 22 | circle 23 | .PE 24 | .PS 25 | circle radius .5 26 | .PE 27 | .PS 28 | ellipse "document" 29 | arrow 30 | box "PIC" 31 | arrow 32 | box "TBL/EQN" "(optional)" dashed 33 | arrow 34 | box "TROFF" 35 | arrow 36 | ellipse "typesetter" 37 | .PE 38 | .PS 39 | line "this is" "a line" 40 | .PE 41 | .sp 42 | .PS 43 | arrow "this is" "an arrow" 44 | .PE 45 | .sp 46 | .PS 47 | line dashed "dashed" "line" 48 | .PE 49 | .sp 50 | .PS 51 | line; arc; arc cw; arrow 52 | .PE 53 | .PS 54 | box; move; box 55 | .PE 56 | .PS 57 | left; box; arrow; ellipse; arrow; circle 58 | .PE 59 | .PS 60 | box width 3 height 0.1; circle radius 0.1 61 | .PE 62 | .in \w'height 'u 63 | .PS 64 | line up 1 right 2 65 | arrow left 2 66 | move left 0.1 67 | line <-> down 1 "height " rjust 68 | .PE 69 | .in 70 | .bp 71 | .PS 72 | line up right; line down; line down left; line up 73 | .PE 74 | .PS 75 | box dotted; line dotted; move; line dashed; box dashed 76 | .PE 77 | .PS 78 | line right 5 dashed; move left 5 down .25; right 79 | line right 5 dashed 0.25; move left 5 down .25; right 80 | line right 5 dashed 0.5; move left 5 down .25; right 81 | line right 5 dashed 1 82 | .PE 83 | .PS 84 | box invis "input"; arrow; box invis "output" 85 | .PE 86 | .PS 87 | arrow "on top of"; move 88 | arrow "above" "below"; move 89 | arrow "above" above; move 90 | arrow "below" below; move 91 | arrow "above" "on top of" "below" 92 | .PE 93 | Fileende 94 | -------------------------------------------------------------------------------- /test/refer/32/bib: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | %T OpenBSD.org 3 | %I The OpenBSD Foundation 4 | %B http://www.openbsd.org/ 5 | -------------------------------------------------------------------------------- /test/refer/32/makefile: -------------------------------------------------------------------------------- 1 | test: 2 | mv out out.orig 3 | printf '.[\nopenbsd\n.]\n' | refer -p bib > out 4 | diff out out.orig 5 | rm out *.ig 6 | mv out.orig out 7 | -------------------------------------------------------------------------------- /test/refer/32/out: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .ds [F 1 3 | .]- 4 | .ds [T OpenBSD.org 5 | .ds [I The OpenBSD Foundation 6 | .ds [B http://www.openbsd.org/ 7 | .nr [T 0 8 | .nr [A 0 9 | .nr [O 0 10 | .][ 3 article-in-book 11 | -------------------------------------------------------------------------------- /test/refer/ab/ab.bib: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | %B foo 3 | %T bar 4 | -------------------------------------------------------------------------------- /test/refer/ab/ab.ms: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .pl 20 3 | .PP 4 | .[ 5 | foo 6 | .] 7 | -------------------------------------------------------------------------------- /test/refer/ab/makefile: -------------------------------------------------------------------------------- 1 | test: 2 | mv out out.orig 3 | refer -p ab.bib ab.ms | nroff -Tlocale -ms | \ 4 | sed '/^[[:space:]]*[A-Z]/d' > out 5 | diff out out.orig 6 | rm out *.ig 7 | mv out.orig out 8 | -------------------------------------------------------------------------------- /test/refer/ab/out: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | _________________________ 13 | [1] “bar,” in _f_o_o. 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /test/tbl/1cell-allbox.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .TS 3 | allbox; 4 | c. 5 | X 6 | .TE 7 | -------------------------------------------------------------------------------- /test/tbl/ND.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .ND 3 | -------------------------------------------------------------------------------- /test/tbl/ab1.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .TS 3 | center box; 4 | cb | cb, c | ci. 5 | NES Gamepad Keyboard 6 | = 7 | Up Keypad Up 8 | .TE 9 | -------------------------------------------------------------------------------- /test/tbl/ab2.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .TS 3 | center doublebox; 4 | c | c, c | c. 5 | foo1 foo2 6 | = 7 | bar baz 8 | .TE 9 | -------------------------------------------------------------------------------- /test/tbl/expand.nr: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | Bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla 3 | bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla 4 | bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla. 5 | .TS 6 | expand; 7 | l l l l. 8 | a bb ccc dddd 9 | .TE 10 | .TS 11 | expand allbox; 12 | l l l l. 13 | a bb ccc dddd 14 | .TE 15 | .TS 16 | expand; 17 | llll|. 18 | _ 19 | a bb ccc dddd 20 | _ 21 | .TE 22 | \(-> Heirloom: Too narrow 23 | .TS 24 | expand; 25 | |llll|. 26 | _ 27 | a bb ccc dddd 28 | _ 29 | .TE 30 | \(-> Heirloom: Nearly correct (a little bit too narrow) 31 | .TS 32 | expand; 33 | |llll. 34 | _ 35 | a bb ccc dddd 36 | _ 37 | .TE 38 | \(-> Heirloom: Too wide! 39 | .TS 40 | llll. 41 | a bb ccc dddd 42 | .TE 43 | .TS 44 | lx lx l l. 45 | a bb ccc dddd 46 | .TE 47 | .TS 48 | allbox; 49 | lx lx l l. 50 | a bb ccc dddd 51 | .TE 52 | .TS 53 | allbox; 54 | l l l lx. 55 | a bb ccc dddd 56 | .TE 57 | -------------------------------------------------------------------------------- /test/tbl/linienbsp.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .TS 3 | | CB S S | 4 | | CB S S | 5 | | LI CI LI | 6 | | C | C | C |. 7 | _ 8 | Single-Column 9 | Horizontal Lines 10 | Code Meaning Example 11 | = 12 | \&_ Joined, single line. _ 13 | \&= Joined, double line. = 14 | \e_ Orphaned, single line. \_ 15 | \eRx Repeated \f2x\fP. \Rx 16 | _ 17 | .TE 18 | -------------------------------------------------------------------------------- /test/tbl/makefile: -------------------------------------------------------------------------------- 1 | .SUFFIXES: .roff .doc .more .ps 2 | 3 | test: 4 | # tbl.more 5 | mv tbl.more tbl.more.orig 6 | make tbl.more 7 | #diff tbl.more.orig tbl.more 8 | rm tbl.more 9 | mv tbl.more.orig tbl.more 10 | # tbl.ps 11 | mv tbl.ps tbl.ps.orig 12 | make tbl.ps 13 | sed 's/.CreationDate.*/%/' tbl.ps > tbl.ps.sed 14 | diff tbl.ps.orig tbl.ps.sed 15 | rm tbl.ps tbl.ps.sed 16 | mv tbl.ps.orig tbl.ps 17 | # tbl.doc.more 18 | mv tbl.doc.more tbl.doc.more.orig 19 | make tbl.doc.more 20 | diff tbl.doc.more.orig tbl.doc.more 21 | rm tbl.doc.more 22 | mv tbl.doc.more.orig tbl.doc.more 23 | # tbl.doc.ps 24 | mv tbl.doc.ps tbl.doc.ps.orig 25 | make tbl.doc.ps 26 | sed 's/.CreationDate.*/%/' tbl.doc.ps > tbl.doc.ps.sed 27 | diff tbl.doc.ps.orig tbl.doc.ps.sed 28 | rm tbl.doc.ps tbl.doc.ps.sed 29 | mv tbl.doc.ps.orig tbl.doc.ps 30 | 31 | clean: 32 | rm -f *.more *.ps 33 | 34 | .roff.more: 35 | soelim $< | tbl -Tlocale | neqn | nroff -Tlocale | col -x > $@ 36 | 37 | .roff.ps: 38 | soelim $< | tbl -g | eqn | troff | dpost > $@ 39 | 40 | tbl.doc.more: tbl.doc 41 | tbl -Tlocale ND.roff tbl.doc | neqn | nroff -Tlocale -ms | col -x > $@ 42 | 43 | tbl.doc.ps: tbl.doc 44 | tbl -g tbl.doc | eqn | troff -ms | dpost > $@ 45 | -------------------------------------------------------------------------------- /test/tbl/mid-sq.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | (\n%) 3 | .br 4 | .TS 5 | c c c 6 | c c c 7 | c | c | c 8 | c c c 9 | c c c. 10 | a b c 11 | _ 12 | d e f 13 | _ 14 | g h i 15 | .TE 16 | (\n%) 17 | .br 18 | -------------------------------------------------------------------------------- /test/tbl/mm.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | \& 3 | .sp 40 4 | .TS H 5 | box; 6 | cb cb cb 7 | l l l. 8 | Spalte 1 Spalte 1 Spalte 1 9 | .TH N 10 | a b c 11 | d e f 12 | g h i 13 | j k l 14 | m n o 15 | r s t 16 | u v w 17 | x y z 18 | 0 1 2 19 | 3 4 5 20 | 6 7 8 21 | A B C 22 | D E F 23 | G H I 24 | J K L 25 | M N O 26 | P Q R 27 | S T U 28 | V W X 29 | Y Z aa 30 | bb cc dd 31 | ee ff gg 32 | hh ii jj 33 | kk ll mm 34 | nn oo rr 35 | ss tt uu 36 | vv ww xx 37 | yy zz 00 38 | 11 22 33 39 | 44 55 66 40 | 77 88 99 41 | AA BB CC 42 | DD EE FF 43 | GG HH II 44 | JJ KK LL 45 | MM NN OO 46 | PP QQ RR 47 | SS TT UU 48 | VV WW XX 49 | YY ZZ aaa 50 | bbb ccc ddd 51 | eee fff ggg 52 | hhh iii jjj 53 | kkk lll mmm 54 | nnn ooo ppp 55 | qqq rrr sss 56 | ttt uuu vvv 57 | www xxx yyy 58 | zzz 000 111 59 | 222 333 444 60 | 555 666 777 61 | 888 999 aaaa 62 | bbbb cccc dddd 63 | eeee ffff gggg 64 | hhhh iiii jjjj 65 | kkkk llll mmmm 66 | nnnn oooo pppp 67 | qqqq rrrr ssss 68 | tttt uuuu vvvv 69 | wwww xxxx yyyy 70 | .TE 71 | -------------------------------------------------------------------------------- /test/tbl/n.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | (\n%) 3 | .br 4 | .TS 5 | n. 6 | 13 7 | 4.2 8 | 26.4.12 9 | abc 10 | abc\& 11 | 43\&3.22 12 | 749.12 13 | .TE 14 | (\n%) 15 | .br 16 | -------------------------------------------------------------------------------- /test/tbl/no-unicode.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .br 3 | (\n%) 4 | .br 5 | .TS 6 | c || c 7 | c | c. 8 | A B 9 | _ 10 | C D 11 | .TE 12 | .br 13 | (\n%) 14 | .br 15 | -------------------------------------------------------------------------------- /test/tbl/short-v.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .TS 3 | l | r 4 | l || r 5 | l | r 6 | l r 7 | l || r 8 | l r. 9 | a b 10 | c d 11 | = 12 | e f 13 | g h 14 | i j 15 | k l 16 | .TE 17 | -------------------------------------------------------------------------------- /test/tbl/supermarket.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .TS 3 | center box tab(;); 4 | c c c 5 | l l n. 6 | Store;Item;Cost 7 | = 8 | Supermarket;Bread;1.50 9 | ;Milk;2.00 10 | ;Cake;1.40 11 | ;;\_ 12 | ;Sub-total;4.90 13 | _ 14 | Clothes;Shirt;12.70 15 | ;Pants;14.25 16 | ;;\_ 17 | ;Sub-total;27.05 18 | ;_;_ 19 | ;Total;31.95 20 | .TE 21 | -------------------------------------------------------------------------------- /test/tbl/tbl-backslash.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .TS 3 | allbox; 4 | lll. 5 | \\\\\\\\ \e\e\e\e \(rs\(rs\(rs\(rs 6 | .TE 7 | -------------------------------------------------------------------------------- /test/tbl/tv.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .TS 3 | box,tab(&); 4 | c s s 5 | c c _ 6 | ^ ^ | c 7 | ^ ^ | c 8 | l r n. 9 | 1984 (Jan.-July) 10 | Items&Units 11 | &&1984/1983 12 | &&(%) 13 | _ 14 | TV&3,889,543&145.7 15 | Color&2,766,004&110.7 16 | B/W&1,123,539&12.5 17 | .TE 18 | -------------------------------------------------------------------------------- /test/tbl/vi.roff: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | (\n%) 3 | .br 4 | .TS 5 | box,tab(@); 6 | cb s 7 | cI| cI 8 | cw(1.25i)| lw(3.25i). 9 | Some Pattern-Matching Characters in \fIvi\fR 10 | _ 11 | Special Characters@Usage 12 | _ 13 | \fI.\fR@Matches any single character\ 14 | except \fInewline\fR. 15 | 16 | *@T{ 17 | Matches any number (including zero) of the 18 | single character (including 19 | a character specified by e regular expression) 20 | that immediately precedes it. 21 | T} 22 | 23 | [...]@T{ 24 | Matches any \fIone\fR of the characters enclosed 25 | between the brackets. 26 | A range of consecutive characters can be 27 | specified by separating the 28 | first and last character in the range with a hyphen. 29 | T} 30 | .TE 31 | (\n%) 32 | .br 33 | -------------------------------------------------------------------------------- /troff/libhnj/.gitignore: -------------------------------------------------------------------------------- 1 | libhnj.a 2 | test 3 | -------------------------------------------------------------------------------- /troff/libhnj/AUTHORS: -------------------------------------------------------------------------------- 1 | This was taken from the OpenOffice project. Bug reports should be sent 2 | to the usual address for the Heirloom Documentation Tools project, as 3 | given in the top-level README file. 4 | 5 | Gunnar Ritter 8/26/05 6 | 7 | 8 | --- 9 | This is part of libhnj library, but it is heavily modified, so write 10 | bug reports to me: 11 | Peter Novodvorsky 12 | 13 | 14 | --- 15 | Libhnj was written and is maintained by: 16 | Raph Levien 17 | 18 | Please contact the author for information about licensing for 19 | proprietary applications. 20 | -------------------------------------------------------------------------------- /troff/libhnj/Makefile.mk: -------------------------------------------------------------------------------- 1 | FLAGS = -I../../include 2 | 3 | .c.o: 4 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 5 | 6 | OBJ = hnjalloc.o hyphen.o 7 | 8 | all: libhnj.a test 9 | 10 | libhnj.a: $(OBJ) 11 | $(AR) crs $@ $(OBJ) 12 | 13 | test: test.o libhnj.a 14 | $(CC) $(_CFLAGS) $(_LDFLAGS) test.o -L. -lhnj -o test 15 | 16 | install: 17 | 18 | clean: 19 | rm -f $(OBJ) test test.o core log *~ 20 | 21 | mrproper: clean 22 | rm -f libhnj.a 23 | -------------------------------------------------------------------------------- /troff/libhnj/README: -------------------------------------------------------------------------------- 1 | This was part of libhnj library by Raph Levien. I've cut only hyphenation 2 | part from it, to use in OOo. 3 | 4 | --- 5 | LibHnj is a library for high quality hyphenation and justification. It 6 | is dual licensed under both LGPL and MPL to encourage widespread use. 7 | The parseAFM.[ch] files are written by Adobe and distributed under a 8 | slightly different license, but one that appears to be compatible with 9 | both LGPL and MPL. 10 | 11 | The code is currently fairly rough. In particular, psset has many 12 | fixed-size buffers and is simply not suitable for production. Further 13 | speedups are also possible, although the code isn't exactly slow now. 14 | -------------------------------------------------------------------------------- /troff/libhnj/hnjalloc.h: -------------------------------------------------------------------------------- 1 | /* LibHnj is dual licensed under LGPL and MPL. Boilerplate for both 2 | * licenses follows. 3 | */ 4 | 5 | /* LibHnj - a library for high quality hyphenation and justification 6 | * Copyright (C) 1998 Raph Levien 7 | * 8 | * This library is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Library General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2 of the License, or (at your option) any later version. 12 | * 13 | * This library is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Library General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Library General Public 19 | * License along with this library; if not, write to the 20 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 21 | * Boston, MA 02111-1307 USA. 22 | */ 23 | 24 | /* 25 | * The contents of this file are subject to the Mozilla Public License 26 | * Version 1.0 (the "MPL"); you may not use this file except in 27 | * compliance with the MPL. You may obtain a copy of the MPL at 28 | * http://www.mozilla.org/MPL/ 29 | * 30 | * Software distributed under the MPL is distributed on an "AS IS" basis, 31 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL 32 | * for the specific language governing rights and limitations under the 33 | * MPL. 34 | * 35 | */ 36 | 37 | /* 38 | * Changes by Gunnar Ritter, Freiburg i. Br., Germany, August 2005. 39 | * 40 | * Sccsid @(#)hnjalloc.h 1.2 (gritter) 8/25/05 41 | */ 42 | 43 | /* wrappers for malloc */ 44 | 45 | void * 46 | hnj_malloc (int size, HyphenDict *); 47 | 48 | void * 49 | hnj_realloc (void *p, int size, HyphenDict *); 50 | 51 | void 52 | hnj_free (void *p, HyphenDict *); 53 | 54 | -------------------------------------------------------------------------------- /troff/libhnj/hyphen.d/Makefile.mk: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | install: all 4 | test -d $(ROOT)$(HYPDIR) || mkdir -p $(ROOT)$(HYPDIR) 5 | for i in *.dic; \ 6 | do \ 7 | $(INSTALL) -c -m 644 $$i $(ROOT)$(HYPDIR)/$$i || exit; \ 8 | done 9 | 10 | clean: 11 | 12 | mrproper: clean 13 | -------------------------------------------------------------------------------- /troff/libhnj/test.c: -------------------------------------------------------------------------------- 1 | #include "hyphen.h" 2 | #include 3 | #include 4 | #include "global.h" 5 | 6 | int 7 | main(int argc __unused, char **argv) 8 | { 9 | HyphenDict *hd; 10 | char buf[512], hbuf[512]; 11 | int i, j; 12 | 13 | hd = hnj_hyphen_load(argv[1]); 14 | while (fgets(buf, sizeof buf, stdin) != NULL) { 15 | j = strlen(buf); 16 | buf[--j] = '\0'; 17 | hnj_hyphen_hyphenate(hd, buf, j, hbuf); 18 | for (i = 0; i < j; i++) 19 | if ((hbuf[i] - '0') & 1) 20 | printf("%c %.*s-%s\n", hbuf[i], 21 | i+1, buf, &buf[i+1]); 22 | } 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /troff/nroff.d/Makefile.mk: -------------------------------------------------------------------------------- 1 | VPATH=.. 2 | 3 | LIBHNJ = ../libhnj 4 | BST = ../../stuff/bst 5 | 6 | OBJ = n10.o n6.o hytab.o n1.o n2.o n3.o n4.o n5.o \ 7 | n7.o n8.o n9.o ni.o nii.o suftab.o \ 8 | version.o draw.o $(BST)/bst.o 9 | 10 | FLAGS = -DNROFF -DUSG $(EUC) -I. -I.. -I../../include -DMACDIR='"$(MACDIR)"' \ 11 | -DFNTDIR='"$(FNTDIR)"' -DTABDIR='"$(TABDIR)"' -DHYPDIR='"$(HYPDIR)"' \ 12 | -DSHELL='"$(SHELL)"' -DRELEASE='"$(RELEASE)"' $(DEFINES) \ 13 | -I$(BST) 14 | 15 | .c.o: 16 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 17 | 18 | all: nroff nroff.1 19 | 20 | nroff: $(OBJ) $(LIBHNJ)/libhnj.a 21 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) -L$(LIBHNJ) -lhnj $(LIBS) -o nroff 22 | 23 | install: 24 | $(INSTALL) -c nroff $(ROOT)$(BINDIR)/nroff 25 | $(STRIP) $(ROOT)$(BINDIR)/nroff 26 | $(INSTALL) -c -m 644 nroff.1 $(ROOT)$(MANDIR)/man1/nroff.1 27 | 28 | clean: 29 | rm -f $(OBJ) nroff core log *~ nroff.1 30 | 31 | mrproper: clean 32 | 33 | nroff.1: nroff.1.in 34 | sed -e 's"/usr/ucblib/doctools/tmac/"$(ROOT)$(MACDIR)/"' \ 35 | -e 's"/usr/ucblib/doctools/nterm/"$(ROOT)$(TABDIR)/"' \ 36 | nroff.1.in > $@ 37 | 38 | draw.o: ../tdef.h ../ext.h 39 | n10.o: n10.c ../tdef.h ../ext.h tw.h pt.h 40 | n6.o: n6.c ../tdef.h tw.h pt.h ../ext.h 41 | hytab.o: ../hytab.c 42 | malloc.o: ../malloc.c ../mallint.h 43 | n1.o: ../n1.c ../tdef.h ../ext.h ./pt.h tw.h 44 | n2.o: ../n2.c ../tdef.h ./pt.h ../ext.h tw.h 45 | n3.o: ../n3.c ../tdef.h ./pt.h ../ext.h tw.h 46 | n4.o: ../n4.c ../tdef.h ./pt.h ../ext.h tw.h 47 | n5.o: ../n5.c ../tdef.h ./pt.h ../ext.h tw.h 48 | n7.o: ../n7.c ../tdef.h ./pt.h ../ext.h tw.h 49 | n8.o: ../n8.c ../tdef.h ../ext.h ./pt.h 50 | n9.o: ../n9.c ../tdef.h ./pt.h ../ext.h tw.h 51 | ni.o: ../ni.c ../tdef.h ./pt.h ./ext.h 52 | nii.o: ../nii.c ../tdef.h ./pt.h ../ext.h tw.h 53 | suftab.o: ../suftab.c 54 | version.o: ../version.c 55 | -------------------------------------------------------------------------------- /troff/nroff.d/draw.h: -------------------------------------------------------------------------------- 1 | extern int ndraw; 2 | 3 | void storechar(tchar, int, int); 4 | void npic(int); 5 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/.gitignore: -------------------------------------------------------------------------------- 1 | tab.[!u]* 2 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/Makefile.mk: -------------------------------------------------------------------------------- 1 | TABS = tab.2631 tab.2631-c tab.2631-e tab.lp \ 2 | tab.300 tab.300-12 tab.300s tab.300s-12 tab.382 \ 3 | tab.4000a tab.450 tab.450-12 tab.832 \ 4 | tab.37 tab.8510 tab.X tab.tn300 5 | 6 | LINKS = tab.300S tab.300S-12 tab.4000A 7 | 8 | all: $(TABS) $(LINKS) 9 | 10 | tab.2631: a.2631 b.lp 11 | cat a.2631 b.lp >$@ 12 | 13 | tab.2631-c: a.2631-c b.lp 14 | cat a.2631-c b.lp >$@ 15 | 16 | tab.2631-e: a.2631-e b.lp 17 | cat a.2631-e b.lp >$@ 18 | 19 | tab.lp: a.lp b.lp 20 | cat a.lp b.lp >$@ 21 | 22 | tab.300: a.300 b.300 23 | cat a.300 b.300 >$@ 24 | 25 | tab.300-12: a.300-12 b.300 26 | cat a.300-12 b.300 >$@ 27 | 28 | tab.300s: a.300s b.300 29 | cat a.300s b.300 >$@ 30 | 31 | tab.300s-12: a.300s-12 b.300 32 | cat a.300s-12 b.300 >$@ 33 | 34 | tab.382: a.382 b.300 35 | cat a.382 b.300 >$@ 36 | 37 | tab.4000a: a.4000a b.300 38 | cat a.4000a b.300 >$@ 39 | 40 | tab.450: a.450 b.300 41 | cat a.450 b.300 >$@ 42 | 43 | tab.450-12: a.450-12 b.300 44 | cat a.450-12 b.300 >$@ 45 | 46 | tab.832: a.832 b.300 47 | cat a.832 b.300 >$@ 48 | 49 | tab.37: ab.37 50 | cat ab.37 >$@ 51 | 52 | tab.8510: ab.8510 53 | cat ab.8510 >$@ 54 | 55 | tab.X: ab.X 56 | cat ab.X >$@ 57 | 58 | tab.tn300: ab.tn300 59 | cat ab.tn300 >$@ 60 | 61 | tab.300S: tab.300s 62 | rm -f $@ 63 | ln -s tab.300s $@ 64 | 65 | tab.300S-12: tab.300s-12 66 | rm -f $@ 67 | ln -s tab.300s-12 $@ 68 | 69 | tab.4000A: tab.4000a 70 | rm -f $@ 71 | ln -s tab.4000a $@ 72 | 73 | install: all 74 | test -d $(ROOT)$(TABDIR) || mkdir -p $(ROOT)$(TABDIR) 75 | cd $(ROOT)$(TABDIR) && rm -f tab.300S tab.300S-12 tab.4000A 76 | for i in $(TABS) tab.utf8; \ 77 | do \ 78 | $(INSTALL) -c -m 644 $$i $(ROOT)$(TABDIR)/$$i || exit; \ 79 | done 80 | cd $(ROOT)$(TABDIR) || exit 1; \ 81 | test -e tab.300S || ln -s tab.300s tab.300S || exit 1; \ 82 | test -e tab.300S-12 || ln -s tab.300s-12 tab.300S-12 || exit 1; \ 83 | test -e tab.4000A || ln -s tab.4000a tab.4000A || exit 1; 84 | 85 | clean: 86 | rm -f $(TABS) $(LINKS) 87 | 88 | mrproper: clean 89 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.2631: -------------------------------------------------------------------------------- 1 | 2631 2 | bset 0 3 | breset 0 4 | Hor 24 5 | Vert 40 6 | Newline 40 7 | Char 24 8 | Em 24 9 | Halfline 20 10 | Adj 24 11 | twinit "" 12 | twrest "" 13 | twnl "\n" 14 | hlr "" 15 | hlf "" 16 | flr "\0337" 17 | bdon "" 18 | bdoff "" 19 | iton "" 20 | itoff "" 21 | ploton "" 22 | plotoff "" 23 | up "" 24 | down "" 25 | right "" 26 | left "" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.2631-c: -------------------------------------------------------------------------------- 1 | 2631-c 2 | bset 0 3 | breset 0 4 | Hor 14 5 | Vert 40 6 | Newline 40 7 | Char 14 8 | Em 14 9 | Halfline 20 10 | Adj 14 11 | twinit "\033&k2S" 12 | twrest "\033&k0S" 13 | twnl "\n" 14 | hlr "" 15 | hlf "" 16 | flr "\0337" 17 | bdon "" 18 | bdoff "" 19 | iton "" 20 | itoff "" 21 | ploton "" 22 | plotoff "" 23 | up "" 24 | down "" 25 | right "" 26 | left "" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.2631-e: -------------------------------------------------------------------------------- 1 | 2631-e 2 | bset 0 3 | breset 0 4 | Hor 48 5 | Vert 40 6 | Newline 40 7 | Char 48 8 | Em 48 9 | Halfline 20 10 | Adj 48 11 | twinit "\033&k1S" 12 | twrest "\033&k0S" 13 | twnl "\n" 14 | hlr "" 15 | hlf "" 16 | flr "\0337" 17 | bdon "" 18 | bdoff "" 19 | iton "" 20 | itoff "" 21 | ploton "" 22 | plotoff "" 23 | up "" 24 | down "" 25 | right "" 26 | left "" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.300: -------------------------------------------------------------------------------- 1 | 300 2 | bset 0 3 | breset 054 4 | Hor 4 5 | Vert 5 6 | Newline 40 7 | Char 24 8 | Em 24 9 | Halfline 20 10 | Adj 24 11 | twinit "\007" 12 | twrest "\007" 13 | twnl "\015\n" 14 | hlr "\006\013\013\013\013\006" 15 | hlf "\006\012\012\012\012\006" 16 | flr "\013" 17 | bdon "" 18 | bdoff "" 19 | iton "" 20 | itoff "" 21 | ploton "\006" 22 | plotoff "\033\006" 23 | up "\013" 24 | down "\n" 25 | right " " 26 | left "\b" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.300-12: -------------------------------------------------------------------------------- 1 | 300-12 2 | bset 0 3 | breset 054 4 | Hor 4 5 | Vert 5 6 | Newline 30 7 | Char 20 8 | Em 20 9 | Halfline 15 10 | Adj 20 11 | twinit "\007" 12 | twrest "\007" 13 | twnl "\015\n" 14 | hlr "\006\013\013\013\006" 15 | hlf "\006\012\012\012\006" 16 | flr "\013" 17 | bdon "" 18 | bdoff "" 19 | iton "" 20 | itoff "" 21 | ploton "\006" 22 | plotoff "\033\006" 23 | up "\013" 24 | down "\n" 25 | right " " 26 | left "\b" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.300s: -------------------------------------------------------------------------------- 1 | 300s 2 | bset 0 3 | breset 054 4 | Hor 4 5 | Vert 5 6 | Newline 40 7 | Char 24 8 | Em 24 9 | Halfline 20 10 | Adj 24 11 | twinit "\033\006" 12 | twrest "\033\006" 13 | twnl "\015\n" 14 | hlr "\033H" 15 | hlf "\033h" 16 | flr "\032" 17 | bdon "\033E" 18 | bdoff "\033E" 19 | iton "" 20 | itoff "" 21 | ploton "\006" 22 | plotoff "\033\006" 23 | up "\032" 24 | down "\n" 25 | right " " 26 | left "\b" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.300s-12: -------------------------------------------------------------------------------- 1 | 300s-12 2 | bset 0 3 | breset 054 4 | Hor 4 5 | Vert 5 6 | Newline 30 7 | Char 20 8 | Em 20 9 | Halfline 15 10 | Adj 20 11 | twinit "\033\006" 12 | twrest "\033\006" 13 | twnl "\015\n" 14 | hlr "" 15 | hlf "" 16 | flr "\032" 17 | bdon "\033E" 18 | bdoff "\033E" 19 | iton "" 20 | itoff "" 21 | ploton "\006" 22 | plotoff "\033\006" 23 | up "\032" 24 | down "\n" 25 | right " " 26 | left "\b" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.382: -------------------------------------------------------------------------------- 1 | 382 2 | bset 0 3 | breset 054 4 | Hor 4 5 | Vert 5 6 | Newline 40 7 | Char 24 8 | Em 24 9 | Halfline 20 10 | Adj 24 11 | twinit "\033\006" 12 | twrest "\033A" 13 | twnl "\015\012" 14 | hlr "\033H" 15 | hlf "\033h" 16 | flr "\032" 17 | bdon "\033Z" 18 | bdoff "\033z" 19 | iton "" 20 | itoff "" 21 | ploton "\006" 22 | plotoff "\033\006" 23 | up "\032" 24 | down "\012" 25 | right " " 26 | left "\010" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.4000a: -------------------------------------------------------------------------------- 1 | 4000a 2 | bset 0 3 | breset 054 4 | Hor 4 5 | Vert 5 6 | Newline 40 7 | Char 24 8 | Em 24 9 | Halfline 20 10 | Adj 24 11 | twinit "\033H0" 12 | twrest "\033H0" 13 | twnl "\015\n" 14 | hlr "\033H4\033-Y0004\033H0" 15 | hlf "\033H4\033+Y0004\033H0" 16 | flr "\0337\0337\0337\0337\033\033" 17 | bdon "" 18 | bdoff "" 19 | iton "" 20 | itoff "" 21 | ploton "\033H4" 22 | plotoff "\033H0" 23 | up "\0337" 24 | down "\n" 25 | right " " 26 | left "\b" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.450: -------------------------------------------------------------------------------- 1 | 450 2 | bset 0 3 | breset 054 4 | Hor 4 5 | Vert 5 6 | Newline 40 7 | Char 24 8 | Em 24 9 | Halfline 20 10 | Adj 24 11 | twinit "\0334" 12 | twrest "\0334" 13 | twnl "\015\n" 14 | hlr "\033D" 15 | hlf "\033U" 16 | flr "\033\n" 17 | bdon "" 18 | bdoff "" 19 | iton "" 20 | itoff "" 21 | ploton "\0333" 22 | plotoff "\0334" 23 | up "\033\n" 24 | down "\n" 25 | right " " 26 | left "\b" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.450-12: -------------------------------------------------------------------------------- 1 | 450-12 2 | bset 0 3 | breset 054 4 | Hor 4 5 | Vert 5 6 | Newline 40 7 | Char 20 8 | Em 20 9 | Halfline 20 10 | Adj 20 11 | twinit "\0334\033\037\013" 12 | twrest "\0334\033\037\015" 13 | twnl "\015\n" 14 | hlr "\033D" 15 | hlf "\033U" 16 | flr "\033\n" 17 | bdon "" 18 | bdoff "" 19 | iton "" 20 | itoff "" 21 | ploton "\0333" 22 | plotoff "\0334" 23 | up "\033\n" 24 | down "\n" 25 | right " " 26 | left "\b" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.832: -------------------------------------------------------------------------------- 1 | 832 2 | bset 0 3 | breset 054 4 | Hor 4 5 | Vert 5 6 | Newline 40 7 | Char 24 8 | Em 24 9 | Halfline 20 10 | Adj 24 11 | twinit "\033N" 12 | twrest "\033N" 13 | twnl "\015\n" 14 | hlr "\0338" 15 | hlf "\0339" 16 | flr "\0337" 17 | bdon "" 18 | bdoff "" 19 | iton "" 20 | itoff "" 21 | ploton "\033P" 22 | plotoff "\033N" 23 | up "\013" 24 | down "\n" 25 | right " " 26 | left "\b" 27 | 28 | -------------------------------------------------------------------------------- /troff/nroff.d/terms.d/a.lp: -------------------------------------------------------------------------------- 1 | lp 2 | bset 0 3 | breset 0 4 | Hor 24 5 | Vert 40 6 | Newline 40 7 | Char 24 8 | Em 24 9 | Halfline 20 10 | Adj 24 11 | twinit "" 12 | twrest "" 13 | twnl "\n" 14 | hlr "" 15 | hlf "" 16 | flr "\0337" 17 | bdon "" 18 | bdoff "" 19 | iton "" 20 | itoff "" 21 | ploton "" 22 | plotoff "" 23 | up "" 24 | down "" 25 | right "" 26 | left "" 27 | 28 | -------------------------------------------------------------------------------- /troff/troff.d/.gitignore: -------------------------------------------------------------------------------- 1 | otfdump 2 | ta 3 | troff 4 | -------------------------------------------------------------------------------- /troff/troff.d/devaps/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ = daps.o build.o draw.o version.o 2 | 3 | FONTS = B I R S CT CW CX GB GI GR GS HI HK HX PO PX S1 SC SM TX DESC \ 4 | C G H BI CE CI HB HL MB MI MR MX PA PB PI TB 5 | 6 | FLAGS = -I. -I.. -DFNTDIR='"$(FNTDIR)"' 7 | 8 | .c.o: 9 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 10 | 11 | all: daps makedev fonts HM.out 12 | 13 | daps: $(OBJ) 14 | $(CC) $(_LDFLAGS) $(OBJ) $(LIBS) -lm -o daps 15 | 16 | makedev: makedev.o 17 | $(CC) $(_LDFLAGS) makedev.o $(LIBS) -o makedev 18 | 19 | fonts: makedev 20 | for i in $(FONTS); \ 21 | do \ 22 | ./makedev $$i || exit; \ 23 | done 24 | 25 | HM.out: HB.out 26 | rm -f $@ 27 | ln -s HB.out $@ 28 | 29 | HB.out: fonts 30 | 31 | install: all 32 | $(INSTALL) -c daps $(ROOT)$(BINDIR)/daps 33 | $(STRIP) $(ROOT)$(BINDIR)/daps 34 | mkdir -p $(ROOT)$(FNTDIR)/devaps 35 | for i in $(FONTS) *.add *.out version; \ 36 | do \ 37 | $(INSTALL) -c -m 644 $$i $(ROOT)$(FNTDIR)/devaps/$$i || exit; \ 38 | done 39 | 40 | clean: 41 | rm -f $(OBJ) daps makedev.o makedev *.add *.out core log *~ 42 | 43 | mrproper: clean 44 | 45 | build.o: build.c daps.h 46 | daps.o: daps.c aps.h dev.h daps.h daps.g 47 | makedev.o: makedev.c dev.h 48 | draw.o: draw.c ../draw.c 49 | -------------------------------------------------------------------------------- /troff/troff.d/devaps/S1: -------------------------------------------------------------------------------- 1 | #ident "@(#)S1 1.4 05/06/08 SMI" 2 | # 3 | # Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4 | # Use is subject to license terms. 5 | # 6 | # CDDL HEADER START 7 | # 8 | # The contents of this file are subject to the terms of the 9 | # Common Development and Distribution License, Version 1.0 only 10 | # (the "License"). You may not use this file except in compliance 11 | # with the License. 12 | # 13 | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 14 | # or http://www.opensolaris.org/os/licensing. 15 | # See the License for the specific language governing permissions 16 | # and limitations under the License. 17 | # 18 | # When distributing Covered Code, include this CDDL HEADER in each 19 | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 20 | # If applicable, add the following below this CDDL HEADER, with the 21 | # fields enclosed by brackets "[]" replaced with your own identifying 22 | # information: Portions Copyright [yyyy] [name of copyright owner] 23 | # 24 | # CDDL HEADER END 25 | # 26 | # University Copyright- Copyright (c) 1982, 1986, 1988 27 | # The Regents of the University of California 28 | # All Rights Reserved 29 | # 30 | # University Acknowledgment- Portions of this document are derived from 31 | # software developed by the University of California, Berkeley, and its 32 | # contributors. 33 | # 34 | name S1 35 | internalname 32051 36 | special 37 | max_range 2 38 | charset 39 | -+ 100 0 7 40 | !< 100 2 12 41 | !> 100 2 13 42 | le 100 2 14 43 | ge 100 2 15 44 | el 100 2 16 45 | eg 100 2 17 46 | LE 100 2 18 47 | GE 100 2 19 48 | EL 100 2 20 49 | EG 100 2 21 50 | <> 100 3 28 51 | >< 100 3 29 52 | as 100 2 30 53 | os 100 2 31 54 | RC 100 2 43 55 | TR 100 2 45 56 | RB 100 0 47 57 | CB 100 2 48 58 | =. 100 0 50 59 | =: 100 0 52 60 | gp 100 0 53 61 | =p 100 0 54 62 | 4d 75 0 55 63 | tf 100 2 57 64 | bc 100 2 59 65 | an 50 2 65 66 | ra 50 2 66 67 | pp 100 2 67 68 | cy 100 0 68 69 | de 50 2 71 70 | ps 50 2 76 71 | rd 50 0 81 72 | ld 50 0 83 73 | vs 68 0 121 font 10941 74 | cs 68 2 124 font 10941 75 | -------------------------------------------------------------------------------- /troff/troff.d/devaps/draw.c: -------------------------------------------------------------------------------- 1 | /* Sccsid @(#)draw.c 1.1 (gritter) 7/3/06 */ 2 | 3 | #include "../draw.c" 4 | -------------------------------------------------------------------------------- /troff/troff.d/devaps/version: -------------------------------------------------------------------------------- 1 | #ident "@(#)version 1.4 05/06/08 SMI" 2 | # 3 | # Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4 | # Use is subject to license terms. 5 | # 6 | # CDDL HEADER START 7 | # 8 | # The contents of this file are subject to the terms of the 9 | # Common Development and Distribution License, Version 1.0 only 10 | # (the "License"). You may not use this file except in compliance 11 | # with the License. 12 | # 13 | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 14 | # or http://www.opensolaris.org/os/licensing. 15 | # See the License for the specific language governing permissions 16 | # and limitations under the License. 17 | # 18 | # When distributing Covered Code, include this CDDL HEADER in each 19 | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 20 | # If applicable, add the following below this CDDL HEADER, with the 21 | # fields enclosed by brackets "[]" replaced with your own identifying 22 | # information: Portions Copyright [yyyy] [name of copyright owner] 23 | # 24 | # CDDL HEADER END 25 | # 26 | # University Copyright- Copyright (c) 1982, 1986, 1988 27 | # The Regents of the University of California 28 | # All Rights Reserved 29 | # 30 | # University Acknowledgment- Portions of this document are derived from 31 | # software developed by the University of California, Berkeley, and its 32 | # contributors. 33 | # 34 | 063285 35 | -------------------------------------------------------------------------------- /troff/troff.d/devaps/version.c: -------------------------------------------------------------------------------- 1 | #if __GNUC__ >= 3 && __GNUC_MINOR__ >= 4 || __GNUC__ >= 4 2 | #define USED __attribute__ ((used)) 3 | #elif defined __GNUC__ 4 | #define USED __attribute__ ((unused)) 5 | #else 6 | #define USED 7 | #endif 8 | static const char sccsid[] USED = "@(#)/usr/ucb/daps.sl 1.5 (gritter) 7/9/06"; 9 | /* SLIST */ 10 | /* 11 | aps.h: * Sccsid @(#)aps.h 1.3 (gritter) 8/9/05 12 | build.c: * Sccsid @(#)build.c 1.4 (gritter) 8/13/05 13 | daps.c: * Sccsid @(#)daps.c 1.8 (gritter) 7/9/06 14 | daps.h: * Sccsid @(#)daps.h 1.3 (gritter) 8/9/05 15 | dev.h: * Sccsid @(#)dev.h 1.3 (gritter) 8/9/05 16 | draw.c: Sccsid @(#)draw.c 1.1 (gritter) 7/3/06 17 | getopt.c: * Sccsid @(#)getopt.c 1.8 (gritter) 8/2/05 18 | makedev.c: * Sccsid @(#)makedev.c 1.3 (gritter) 8/9/05 19 | */ 20 | -------------------------------------------------------------------------------- /troff/troff.d/dhtml/Makefile.mk: -------------------------------------------------------------------------------- 1 | BST= ../../../stuff/bst 2 | BIN= dhtml 3 | OBJ= main.o dhtml.o tr_out.o char.o lib.o $(BST)/bst.o 4 | CPPFLAGS= -DFNTDIR='"$(FNTDIR)"' -I$(BST) 5 | 6 | all: $(BIN) 7 | 8 | install: 9 | $(STRIP) $(BIN) 10 | $(INSTALL) $(BIN) $(ROOT)$(BINDIR)/ 11 | sed 's"$$FNTDIR"$(FNTDIR)"g' $(BIN).1 > \ 12 | $(ROOT)$(MANDIR)/man1/$(BIN).1 13 | 14 | clean: 15 | rm -f $(OBJ) $(BIN) 16 | 17 | mrproper: clean 18 | 19 | $(BIN): $(OBJ) 20 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) -o $@ 21 | 22 | .c.o: 23 | $(CC) $(_CFLAGS) -c $< 24 | 25 | char.o: char.h main.h $(BST)/bst.h lib.h tr_out.h 26 | dhtml.o: dhtml.h tr_out.h char.h main.h 27 | lib.o: main.h $(BST)/bst.h 28 | main.o: dhtml.h char.h 29 | tr_out.o: tr_out.h main.h $(BST)/bst.h lib.h 30 | -------------------------------------------------------------------------------- /troff/troff.d/dhtml/char.h: -------------------------------------------------------------------------------- 1 | #define clslig() \ 2 | do { \ 3 | if (prevchar) { \ 4 | chrout(prevchar); \ 5 | prevchar = 0; \ 6 | } \ 7 | } while (0) 8 | 9 | void char_open(void); 10 | void char_c(int); 11 | void char_C(char *); 12 | void char_N(int); 13 | void chrout(int); 14 | 15 | extern int prevchar; 16 | -------------------------------------------------------------------------------- /troff/troff.d/dhtml/dhtml.h: -------------------------------------------------------------------------------- 1 | void run_lex(void); 2 | -------------------------------------------------------------------------------- /troff/troff.d/dhtml/lib.h: -------------------------------------------------------------------------------- 1 | #define I2BST(i) ((union bst_val)(int)i) 2 | #define S2BST(s) ((union bst_val)(void *)s) 3 | 4 | void *file2ram(char *, ssize_t *); 5 | ssize_t lineskip(char **, ssize_t); 6 | char *get_word(char **, ssize_t *, size_t *, int *); 7 | char *get_line(char **, ssize_t *, size_t *); 8 | int bst_scmp(union bst_val, union bst_val); 9 | int bst_icmp(union bst_val, union bst_val); 10 | -------------------------------------------------------------------------------- /troff/troff.d/dhtml/main.h: -------------------------------------------------------------------------------- 1 | extern char *progname; 2 | -------------------------------------------------------------------------------- /troff/troff.d/dhtml/roff.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "roff.h" 3 | 4 | static struct req_in_data { 5 | int not_1st; 6 | int last_i; 7 | } req_in_data; 8 | 9 | void 10 | req_in(int i) { 11 | #if 0 12 | if (req_in_data.not_1st) { 13 | puts("\n"); 14 | req_in_data.not_1st = 0; 15 | } 16 | if (i) { 17 | printf("\n
\n", i); 18 | req_in_data.not_1st = 1; 19 | } 20 | #endif 21 | puts("
"); 22 | } 23 | 24 | void 25 | req_sp(int i) { 26 | printf("\n
\n", (i*12)/40); 27 | } 28 | -------------------------------------------------------------------------------- /troff/troff.d/dhtml/roff.h: -------------------------------------------------------------------------------- 1 | void req_in(int); 2 | void req_sp(int); 3 | -------------------------------------------------------------------------------- /troff/troff.d/dhtml/tr_out.h: -------------------------------------------------------------------------------- 1 | #define hdecr() hdec += 10 * fontsize 2 | 3 | void out_anchor(char *); 4 | void out_begin_link(char *); 5 | void out_begin_ulink(char *); 6 | void out_end_link(void); 7 | void out_f(int); 8 | void out_h(int); 9 | void out_n(int); 10 | void out_s(int); 11 | void out_V(int); 12 | void out_w(void); 13 | void out_x_f(int, char *); 14 | void out_x_T(char *); 15 | 16 | extern int fontsize; 17 | extern int hdec; 18 | -------------------------------------------------------------------------------- /troff/troff.d/dpost.d/Makefile.mk: -------------------------------------------------------------------------------- 1 | BST = ../../../stuff/bst 2 | 3 | OBJ = dpost.o draw.o color.o pictures.o ps_include.o afm.o \ 4 | makedev.o glob.o misc.o request.o version.o \ 5 | asciitype.o otf.o ../fontmap.o $(BST)/bst.o 6 | 7 | FLAGS = -I. -I.. -DFNTDIR='"$(FNTDIR)"' -DPSTDIR='"$(PSTDIR)"' $(EUC) \ 8 | $(DEFINES) -I../../../include -I.. -I$(BST) 9 | 10 | .c.o: 11 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 12 | 13 | all: dpost dpost.1 14 | 15 | dpost: $(OBJ) 16 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o dpost 17 | 18 | install: 19 | $(INSTALL) -c dpost $(ROOT)$(BINDIR)/dpost 20 | $(STRIP) $(ROOT)$(BINDIR)/dpost 21 | mkdir -p $(ROOT)$(MANDIR)/man1 22 | $(INSTALL) -c -m 644 dpost.1 $(ROOT)$(MANDIR)/man1/dpost.1 23 | 24 | clean: 25 | rm -f $(OBJ) dpost core log *~ dpost.1 26 | 27 | mrproper: clean 28 | 29 | dpost.1: dpost.1.in 30 | sed -e 's"/usr/ucblib/doctools/font/devpost/postscript/"$(ROOT)$(PSTDIR)/"' \ 31 | -e 's"/usr/ucblib/doctools/font"$(ROOT)$(FNTDIR)"' \ 32 | -e 's"/usr/lib/lp/postscript/"$(ROOT)$(PSTDIR)/"' \ 33 | -e 's"/usr/ucblib/doctools/tmac/"$(ROOT)$(MACDIR)/"' dpost.1.in > $@ 34 | 35 | color.o: color.c gen.h ext.h 36 | dpost.o: dpost.c comments.h gen.h path.h ext.h ../dev.h dpost.h ../afm.h \ 37 | asciitype.h 38 | draw.o: draw.c gen.h ext.h 39 | glob.o: glob.c gen.h 40 | misc.o: misc.c gen.h ext.h path.h asciitype.h 41 | pictures.o: pictures.c comments.h gen.h path.h 42 | ps_include.o: ps_include.c ext.h gen.h asciitype.h path.h 43 | request.o: request.c gen.h request.h path.h 44 | afm.o: afm.c ../dev.h ../afm.h ../afm.c 45 | otf.o: otf.c ../dev.h ../afm.h ../otf.c 46 | makedev.o: makedev.c ../dev.h ../makedev.c 47 | asciitype.o: asciitype.h 48 | version.o: version.c ../../version.c 49 | -------------------------------------------------------------------------------- /troff/troff.d/dpost.d/afm.c: -------------------------------------------------------------------------------- 1 | /* 2 | * CDDL HEADER START 3 | * 4 | * The contents of this file are subject to the terms of the 5 | * Common Development and Distribution License, Version 1.0 only 6 | * (the "License"). You may not use this file except in compliance 7 | * with the License. 8 | * 9 | * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | * or http://www.opensolaris.org/os/licensing. 11 | * See the License for the specific language governing permissions 12 | * and limitations under the License. 13 | * 14 | * When distributing Covered Code, include this CDDL HEADER in each 15 | * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | * If applicable, add the following below this CDDL HEADER, with the 17 | * fields enclosed by brackets "[]" replaced with your own identifying 18 | * information: Portions Copyright [yyyy] [name of copyright owner] 19 | * 20 | * CDDL HEADER END 21 | */ 22 | 23 | /* 24 | * Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 25 | * 26 | * Sccsid @(#)afm.c 1.3 (gritter) 5/1/06 27 | */ 28 | 29 | #define DPOST 30 | #include "../afm.c" 31 | 32 | int NCHARS; 33 | -------------------------------------------------------------------------------- /troff/troff.d/dpost.d/ext.h: -------------------------------------------------------------------------------- 1 | /* 2 | * CDDL HEADER START 3 | * 4 | * The contents of this file are subject to the terms of the 5 | * Common Development and Distribution License, Version 1.0 only 6 | * (the "License"). You may not use this file except in compliance 7 | * with the License. 8 | * 9 | * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | * or http://www.opensolaris.org/os/licensing. 11 | * See the License for the specific language governing permissions 12 | * and limitations under the License. 13 | * 14 | * When distributing Covered Code, include this CDDL HEADER in each 15 | * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | * If applicable, add the following below this CDDL HEADER, with the 17 | * fields enclosed by brackets "[]" replaced with your own identifying 18 | * information: Portions Copyright [yyyy] [name of copyright owner] 19 | * 20 | * CDDL HEADER END 21 | */ 22 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 23 | /* All Rights Reserved */ 24 | 25 | 26 | /* from OpenSolaris "ext.h 1.5 05/06/08 SMI" SVr4.0 1.1 */ 27 | 28 | /* 29 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 30 | * 31 | * Sccsid @(#)ext.h 1.7 (gritter) 3/27/07 32 | */ 33 | 34 | /* 35 | * 36 | * External varible declarations - many are defined in glob.c. 37 | * 38 | */ 39 | 40 | 41 | extern char **argv; /* global so everyone can use them */ 42 | extern int argc; 43 | 44 | extern int x_stat; /* program exit status */ 45 | extern int debug; /* debug flag */ 46 | extern int ignore; /* what we do with FATAL errors */ 47 | 48 | extern long lineno; /* line number */ 49 | extern long position; /* byte position */ 50 | extern int printed; /* pages printed so far */ 51 | extern char *prog_name; /* and program name - for errors */ 52 | extern char *temp_file; /* temporary file - for some programs */ 53 | 54 | extern int LanguageLevel; /* language level of generated PS */ 55 | -------------------------------------------------------------------------------- /troff/troff.d/dpost.d/glob.c: -------------------------------------------------------------------------------- 1 | /* 2 | * CDDL HEADER START 3 | * 4 | * The contents of this file are subject to the terms of the 5 | * Common Development and Distribution License, Version 1.0 only 6 | * (the "License"). You may not use this file except in compliance 7 | * with the License. 8 | * 9 | * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | * or http://www.opensolaris.org/os/licensing. 11 | * See the License for the specific language governing permissions 12 | * and limitations under the License. 13 | * 14 | * When distributing Covered Code, include this CDDL HEADER in each 15 | * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | * If applicable, add the following below this CDDL HEADER, with the 17 | * fields enclosed by brackets "[]" replaced with your own identifying 18 | * information: Portions Copyright [yyyy] [name of copyright owner] 19 | * 20 | * CDDL HEADER END 21 | */ 22 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 23 | /* All Rights Reserved */ 24 | 25 | 26 | /* from OpenSolaris "glob.c 1.5 05/06/08 SMI" SVr4.0 1.1 */ 27 | 28 | /* 29 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 30 | * 31 | * Sccsid @(#)glob.c 1.3 (gritter) 8/9/05 32 | */ 33 | 34 | /* 35 | * 36 | * Definition and initialization of some global variables. 37 | * 38 | */ 39 | 40 | 41 | #include 42 | #include "gen.h" /* general purpose definitions */ 43 | 44 | 45 | char **argv; /* global so everyone can use them */ 46 | int argc; 47 | 48 | int x_stat = 0; /* program exit status */ 49 | int debug = OFF; /* debug flag */ 50 | int ignore = OFF; /* what we do with FATAL errors */ 51 | 52 | long lineno = 0; /* line number */ 53 | long position = 0; /* byte position */ 54 | char *prog_name = ""; /* and program name - for errors */ 55 | char *temp_file = NULL; /* temporary file - for some programs */ 56 | 57 | -------------------------------------------------------------------------------- /troff/troff.d/dpost.d/makedev.c: -------------------------------------------------------------------------------- 1 | /* 2 | * CDDL HEADER START 3 | * 4 | * The contents of this file are subject to the terms of the 5 | * Common Development and Distribution License, Version 1.0 only 6 | * (the "License"). You may not use this file except in compliance 7 | * with the License. 8 | * 9 | * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | * or http://www.opensolaris.org/os/licensing. 11 | * See the License for the specific language governing permissions 12 | * and limitations under the License. 13 | * 14 | * When distributing Covered Code, include this CDDL HEADER in each 15 | * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | * If applicable, add the following below this CDDL HEADER, with the 17 | * fields enclosed by brackets "[]" replaced with your own identifying 18 | * information: Portions Copyright [yyyy] [name of copyright owner] 19 | * 20 | * CDDL HEADER END 21 | */ 22 | 23 | /* 24 | * Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 25 | * 26 | * Sccsid @(#)makedev.c 1.1 (gritter) 9/4/05 27 | */ 28 | 29 | #include "../makedev.c" 30 | -------------------------------------------------------------------------------- /troff/troff.d/dpost.d/otf.c: -------------------------------------------------------------------------------- 1 | /* 2 | * CDDL HEADER START 3 | * 4 | * The contents of this file are subject to the terms of the 5 | * Common Development and Distribution License, Version 1.0 only 6 | * (the "License"). You may not use this file except in compliance 7 | * with the License. 8 | * 9 | * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | * or http://www.opensolaris.org/os/licensing. 11 | * See the License for the specific language governing permissions 12 | * and limitations under the License. 13 | * 14 | * When distributing Covered Code, include this CDDL HEADER in each 15 | * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | * If applicable, add the following below this CDDL HEADER, with the 17 | * fields enclosed by brackets "[]" replaced with your own identifying 18 | * information: Portions Copyright [yyyy] [name of copyright owner] 19 | * 20 | * CDDL HEADER END 21 | */ 22 | 23 | /* 24 | * Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 25 | * 26 | * Sccsid @(#)otf.c 1.3 (gritter) 10/13/05 27 | */ 28 | 29 | #include 30 | #if defined (__GLIBC__) && defined (_IO_putc_unlocked) 31 | #undef putc 32 | #define putc(c, f) _IO_putc_unlocked(c, f) 33 | #endif 34 | 35 | #define DPOST 36 | #include "../otf.c" 37 | -------------------------------------------------------------------------------- /troff/troff.d/dpost.d/path.h: -------------------------------------------------------------------------------- 1 | /* 2 | * CDDL HEADER START 3 | * 4 | * The contents of this file are subject to the terms of the 5 | * Common Development and Distribution License, Version 1.0 only 6 | * (the "License"). You may not use this file except in compliance 7 | * with the License. 8 | * 9 | * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | * or http://www.opensolaris.org/os/licensing. 11 | * See the License for the specific language governing permissions 12 | * and limitations under the License. 13 | * 14 | * When distributing Covered Code, include this CDDL HEADER in each 15 | * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | * If applicable, add the following below this CDDL HEADER, with the 17 | * fields enclosed by brackets "[]" replaced with your own identifying 18 | * information: Portions Copyright [yyyy] [name of copyright owner] 19 | * 20 | * CDDL HEADER END 21 | */ 22 | /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 23 | /* All Rights Reserved */ 24 | 25 | 26 | /* from OpenSolaris "path.h 1.5 05/06/08 SMI" SVr4.0 1.6 */ 27 | 28 | /* 29 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 30 | * 31 | * Sccsid @(#)path.h 1.5 (gritter) 12/18/05 32 | */ 33 | /* 34 | * 35 | * pathname definitions for important files and directories. 36 | * 37 | */ 38 | 39 | 40 | #define DPOST PSTDIR "/dpost.ps" 41 | #define POSTBGI PSTDIR "/postbgi.ps" 42 | #define POSTDAISY PSTDIR "/postdaisy.ps" 43 | #define POSTDMD PSTDIR "/postdmd.ps" 44 | #define POSTMD PSTDIR "/postmd.ps" 45 | #define POSTPLOT PSTDIR "/postplot.ps" 46 | #define POSTPRINT PSTDIR "/postprint.ps" 47 | #define POSTTEK PSTDIR "/posttek.ps" 48 | 49 | #define BASELINE PSTDIR "/baseline.ps" 50 | #define COLOR PSTDIR "/color.ps" 51 | #define CUTMARKS PSTDIR "/cutmarks.ps" 52 | #define DRAW PSTDIR "/draw.ps" 53 | #define FORMFILE PSTDIR "/forms.ps" 54 | #define KERNING PSTDIR "/kerning.ps" 55 | #define REQUESTFILE PSTDIR "/ps.requests" 56 | #define PSINCLUDEFILE PSTDIR "/ps_include.ps" 57 | 58 | #define HOSTFONTDIR "/usr/share/lib/hostfontdir" 59 | #define FONTDIR FNTDIR 60 | #define TEMPDIR "/tmp" 61 | 62 | -------------------------------------------------------------------------------- /troff/troff.d/dpost.d/version.c: -------------------------------------------------------------------------------- 1 | /* Sccsid @(#)dpost_version.c 4.37 (gritter) 10/3/05 */ 2 | #define DPOST 3 | #include "../../version.c" 4 | -------------------------------------------------------------------------------- /troff/troff.d/font/Makefile.mk: -------------------------------------------------------------------------------- 1 | VPATH=.. 2 | 3 | FONTS = AB AI AR AX BI CB CI CO CW CX GR HB HI HX Hb Hi Hr Hx \ 4 | KB KI KR KX NB NI NR NX PA PB PI PX S1 VB VI VR VX ZD ZI B H I R S 5 | 6 | FLAGS = -I. -I.. -DFNTDIR='"$(FNTDIR)"' 7 | 8 | .c.o: 9 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 10 | 11 | all: 12 | 13 | install: all 14 | test -d $(ROOT)$(FNTDIR) || mkdir -p $(ROOT)$(FNTDIR) 15 | test -d $(ROOT)$(FNTDIR)/devpost/charlib || \ 16 | mkdir -p $(ROOT)$(FNTDIR)/devpost/charlib 17 | cd devpost && for i in ? ?? H?? H??? ?.name ??.name H??.name \ 18 | H???.name DESC* FONTMAP; do \ 19 | $(INSTALL) -c -m 644 $$i $(ROOT)$(FNTDIR)/devpost/ || exit; \ 20 | done 21 | cd $(ROOT)$(FNTDIR)/devpost && \ 22 | for i in G HM HK HL; \ 23 | do \ 24 | rm -f $$i; ln -s H $$i || exit; \ 25 | done && \ 26 | rm -f GI; ln -s HI GI 27 | cd devpost/charlib && for i in ?? ??.map BRACKETS_NOTE README OLD_LH* \ 28 | LH_uc; \ 29 | do \ 30 | $(INSTALL) -c -m 644 $$i $(ROOT)$(FNTDIR)/devpost/charlib \ 31 | || exit; \ 32 | done 33 | test -d $(ROOT)$(FNTDIR)/devps || mkdir -p $(ROOT)$(FNTDIR)/devps 34 | cd devps && for i in ? ?.afm ?? ??.afm DESC MustRead.html FONTMAP; \ 35 | do \ 36 | $(INSTALL) -c -m 644 $$i $(ROOT)$(FNTDIR)/devps/ || exit; \ 37 | done 38 | rm -f $(ROOT)$(FNTDIR)/devps/charlib 39 | ln -s ../devpost/charlib $(ROOT)$(FNTDIR)/devps/charlib 40 | rm -f $(ROOT)$(FNTDIR)/devps/postscript 41 | ln -s ../devpost/postscript $(ROOT)$(FNTDIR)/devps/postscript 42 | for j in devpslow devpsmed; \ 43 | do \ 44 | test -d $(ROOT)$(FNTDIR)/$$j || mkdir -p $(ROOT)$(FNTDIR)/$$j; \ 45 | $(INSTALL) -c -m 644 $$j/DESC $(ROOT)$(FNTDIR)/$$j/; \ 46 | (cd $(ROOT)$(FNTDIR)/devps && for i in *; \ 47 | do \ 48 | test $$i != DESC || continue; \ 49 | rm -f ../$$j/$$i; \ 50 | ln -s ../devps/$$i ../$$j/$$i ; \ 51 | done); \ 52 | done 53 | 54 | clean: 55 | rm -f core log *~ 56 | 57 | mrproper: clean 58 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/B.in: -------------------------------------------------------------------------------- 1 | name B 2 | fontname Times-Bold 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/BI.in: -------------------------------------------------------------------------------- 1 | name BI 2 | fontname Times-BoldItalic 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/C.in: -------------------------------------------------------------------------------- 1 | name C 2 | fontname Courier 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/CB.in: -------------------------------------------------------------------------------- 1 | name CB 2 | fontname Courier-Bold 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/CI.in: -------------------------------------------------------------------------------- 1 | name CI 2 | fontname Courier-Oblique 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/CR.in: -------------------------------------------------------------------------------- 1 | name CR 2 | fontname Courier 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/CW.in: -------------------------------------------------------------------------------- 1 | name CW 2 | fontname Courier 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/DESC: -------------------------------------------------------------------------------- 1 | fonts 6 R I B CW CI CB 2 | sizes 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 | 24 25 26 27 28 29 30 31 32 33 34 35 36 38 40 44 48 54 60 72 0 4 | res 2160 5 | hor 1 6 | vert 1 7 | unitwidth 10 8 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/H.in: -------------------------------------------------------------------------------- 1 | name H 2 | fontname Helvetica 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/HB.in: -------------------------------------------------------------------------------- 1 | name HB 2 | fontname Helvetica-Bold 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/HI.in: -------------------------------------------------------------------------------- 1 | name HI 2 | fontname Helvetica-Oblique 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/I.in: -------------------------------------------------------------------------------- 1 | name I 2 | fontname Times-Italic 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/Makefile.mk: -------------------------------------------------------------------------------- 1 | BIN= makefont 2 | OBJS= $(BIN).o 3 | FONTS= R I B BI C CW CR CI CB H HI HB S 4 | 5 | .SUFFIXES: .in 6 | .in: ${BIN} 7 | cat $< > $@ 8 | ./${BIN} $@ >> $@ 9 | 10 | all: ${FONTS} 11 | 12 | install: 13 | d=$(ROOT)$(FNTDIR)/devhtml; test -d $$d || mkdir $$d; \ 14 | install -m 644 CHAR DESC $$d/; \ 15 | echo charset >> $$d/DESC; \ 16 | sed '1,2d;s/[[:space:]].*//' charset >> $$d/DESC; \ 17 | for i in $(FONTS); do \ 18 | install -m 644 $$i $$d/; \ 19 | done 20 | 21 | clean: 22 | rm -rf $(BIN) $(OBJS) $(FONTS) 23 | 24 | mrproper: clean 25 | 26 | $(BIN): $(OBJS) 27 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJS) -o $@ 28 | 29 | $(FONTS): $(BIN) 30 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/R.in: -------------------------------------------------------------------------------- 1 | name R 2 | fontname Times-Roman 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devhtml/S.in: -------------------------------------------------------------------------------- 1 | name S 2 | fontname Symbol 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/AB.name: -------------------------------------------------------------------------------- 1 | AvantGarde-Demi 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/AI.name: -------------------------------------------------------------------------------- 1 | AvantGarde-BookOblique 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/AR.name: -------------------------------------------------------------------------------- 1 | AvantGarde-Book 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/AX.name: -------------------------------------------------------------------------------- 1 | AvantGarde-DemiOblique 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/B.name: -------------------------------------------------------------------------------- 1 | Times-Bold 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/BI.name: -------------------------------------------------------------------------------- 1 | Times-BoldItalic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/CB.name: -------------------------------------------------------------------------------- 1 | Courier-Bold 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/CI.name: -------------------------------------------------------------------------------- 1 | Courier-Oblique 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/CO.name: -------------------------------------------------------------------------------- 1 | Courier 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/CW.name: -------------------------------------------------------------------------------- 1 | Courier 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/CX.name: -------------------------------------------------------------------------------- 1 | Courier-BoldOblique 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/DESC.big: -------------------------------------------------------------------------------- 1 | # 2 | # CDDL HEADER START 3 | # 4 | # The contents of this file are subject to the terms of the 5 | # Common Development and Distribution License, Version 1.0 only 6 | # (the "License"). You may not use this file except in compliance 7 | # with the License. 8 | # 9 | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | # or http://www.opensolaris.org/os/licensing. 11 | # See the License for the specific language governing permissions 12 | # and limitations under the License. 13 | # 14 | # When distributing Covered Code, include this CDDL HEADER in each 15 | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | # If applicable, add the following below this CDDL HEADER, with the 17 | # fields enclosed by brackets "[]" replaced with your own identifying 18 | # information: Portions Copyright [yyyy] [name of copyright owner] 19 | # 20 | # CDDL HEADER END 21 | # 22 | # Description file for Postscript printers. The resolution and unitwidth have 23 | # been selected to match, in a sense, PostScript's default coordinate system 24 | # and the widths given in Adobe's Font manual. 25 | # 26 | # Right now biggestfont shouldn't be set larger than 219. 27 | # 28 | 29 | fonts 10 R I B BI CW H HB HX S1 S 30 | sizes 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 31 | 24 25 26 27 28 29 30 31 32 33 34 35 36 38 40 44 48 54 60 72 0 32 | res 720 33 | hor 1 34 | vert 1 35 | unitwidth 10 36 | biggestfont 200 37 | charset 38 | hy ct fi fl ff Fi Fl dg em 14 34 12 \- en \' aa 39 | \` ga ru sc dd -> \e br Sl ps cs cy as os =. ld 40 | rd le ge pp -+ rs dq 41 | sq bx ci fa te ** pl mi \< eq \> ~= *A *B *X *D 42 | *E *F *G *Y *I *K *L *M *N *O *P *R *H *S *T *U *W 43 | *C *Q *Z ul \_ rn *a *b *x *d *e *f *g *y *i *k 44 | *l *m *n *o *p *h *r *s *t *u *w *c *q *z \{ \| 45 | \} ap fm <= sl if <- ua da de +- >= mu pt pd bu 46 | di != == ~~ al Ox O+ es ca cu sp ip sb ib mo gr 47 | rg co tm sr no \^ or lc lf lt lk lb bv is rc rf 48 | rt rk rb ts lh rh LV LH Lb L1 LA `` '' 49 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/FONTMAP: -------------------------------------------------------------------------------- 1 | ABI AX 2 | TB B 3 | TBI BI 4 | CR CW 5 | CBI CX 6 | HR H 7 | HBI HX 8 | Hb HNB 9 | Hi HNI 10 | Hr HNR 11 | Hx HNBI 12 | TI I 13 | BMB KB 14 | BMI KI 15 | BMR KR 16 | BMBI KX 17 | NBI NX 18 | PR PA 19 | PBI PX 20 | TR R 21 | ZCMI ZI 22 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/GR: -------------------------------------------------------------------------------- 1 | # 2 | # CDDL HEADER START 3 | # 4 | # The contents of this file are subject to the terms of the 5 | # Common Development and Distribution License, Version 1.0 only 6 | # (the "License"). You may not use this file except in compliance 7 | # with the License. 8 | # 9 | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | # or http://www.opensolaris.org/os/licensing. 11 | # See the License for the specific language governing permissions 12 | # and limitations under the License. 13 | # 14 | # When distributing Covered Code, include this CDDL HEADER in each 15 | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | # If applicable, add the following below this CDDL HEADER, with the 17 | # fields enclosed by brackets "[]" replaced with your own identifying 18 | # information: Portions Copyright [yyyy] [name of copyright owner] 19 | # 20 | # CDDL HEADER END 21 | # 22 | # University Copyright- Copyright (c) 1982, 1986, 1988 23 | # The Regents of the University of California 24 | # All Rights Reserved 25 | # 26 | # University Acknowledgment- Portions of this document are derived from 27 | # software developed by the University of California, Berkeley, and its 28 | # contributors. 29 | # 30 | #ident "@(#)GR 1.5 05/06/08 SMI" /* SVr4.0 1.1 */ 31 | # Greek 32 | name GR 33 | internalname 33 34 | special 35 | charset 36 | *a 63 0 97 37 | *b 55 3 98 38 | *g 41 1 103 39 | *d 49 2 100 40 | *e 44 0 101 41 | *z 49 3 122 42 | *y 60 1 104 43 | *h 52 2 113 44 | *i 33 0 105 45 | *k 55 0 107 46 | *l 55 2 108 47 | *m 58 1 109 48 | *n 52 0 110 49 | *c 49 3 120 50 | *o 55 0 111 51 | *p 55 0 112 52 | *r 55 1 114 53 | *s 60 0 115 54 | *t 44 0 116 55 | *u 58 0 117 56 | *f 52 3 102 57 | *x 55 1 99 58 | *q 69 1 121 59 | *w 69 0 119 60 | *A 72 2 65 61 | *B 67 2 66 62 | *G 60 2 71 63 | *D 61 2 68 64 | *E 61 2 69 65 | *Z 61 2 90 66 | *Y 72 2 72 67 | *H 74 2 81 68 | *R 56 2 82 69 | *I 33 2 73 70 | *K 72 2 75 71 | *L 69 2 76 72 | *M 89 2 77 73 | *N 72 2 78 74 | *C 65 2 88 75 | *O 72 2 79 76 | *P 77 2 80 77 | *S 59 2 83 78 | *T 61 2 84 79 | *U 69 2 85 80 | *F 76 2 70 81 | *X 72 2 67 82 | *Q 80 2 89 83 | *W 77 2 87 84 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/GR.name: -------------------------------------------------------------------------------- 1 | Symbol 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/H.name: -------------------------------------------------------------------------------- 1 | Helvetica 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/HB.name: -------------------------------------------------------------------------------- 1 | Helvetica-Bold 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/HI.name: -------------------------------------------------------------------------------- 1 | Helvetica-Oblique 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/HNB.name: -------------------------------------------------------------------------------- 1 | Helvetica-Narrow-Bold 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/HNBI.name: -------------------------------------------------------------------------------- 1 | Helvetica-Narrow-BoldOblique 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/HNI.name: -------------------------------------------------------------------------------- 1 | Helvetica-Narrow-Oblique 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/HNR.name: -------------------------------------------------------------------------------- 1 | Helvetica-Narrow 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/HX.name: -------------------------------------------------------------------------------- 1 | Helvetica-BoldOblique 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/I.name: -------------------------------------------------------------------------------- 1 | Times-Italic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/KB.name: -------------------------------------------------------------------------------- 1 | Bookman-Demi 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/KI.name: -------------------------------------------------------------------------------- 1 | Bookman-LightItalic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/KR.name: -------------------------------------------------------------------------------- 1 | Bookman-Light 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/KX.name: -------------------------------------------------------------------------------- 1 | Bookman-DemiItalic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/NB.name: -------------------------------------------------------------------------------- 1 | NewCenturySchlbk-Bold 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/NI.name: -------------------------------------------------------------------------------- 1 | NewCenturySchlbk-Italic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/NR.name: -------------------------------------------------------------------------------- 1 | NewCenturySchlbk-Roman 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/NX.name: -------------------------------------------------------------------------------- 1 | NewCenturySchlbk-BoldItalic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/PA.name: -------------------------------------------------------------------------------- 1 | Palatino-Roman 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/PB.name: -------------------------------------------------------------------------------- 1 | Palatino-Bold 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/PI.name: -------------------------------------------------------------------------------- 1 | Palatino-Italic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/PX.name: -------------------------------------------------------------------------------- 1 | Palatino-BoldItalic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/R.name: -------------------------------------------------------------------------------- 1 | Times-Roman 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/S.name: -------------------------------------------------------------------------------- 1 | Symbol 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/S1: -------------------------------------------------------------------------------- 1 | # 2 | # CDDL HEADER START 3 | # 4 | # The contents of this file are subject to the terms of the 5 | # Common Development and Distribution License, Version 1.0 only 6 | # (the "License"). You may not use this file except in compliance 7 | # with the License. 8 | # 9 | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | # or http://www.opensolaris.org/os/licensing. 11 | # See the License for the specific language governing permissions 12 | # and limitations under the License. 13 | # 14 | # When distributing Covered Code, include this CDDL HEADER in each 15 | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | # If applicable, add the following below this CDDL HEADER, with the 17 | # fields enclosed by brackets "[]" replaced with your own identifying 18 | # information: Portions Copyright [yyyy] [name of copyright owner] 19 | # 20 | # CDDL HEADER END 21 | # 22 | # University Copyright- Copyright (c) 1982, 1986, 1988 23 | # The Regents of the University of California 24 | # All Rights Reserved 25 | # 26 | # University Acknowledgment- Portions of this document are derived from 27 | # software developed by the University of California, Berkeley, and its 28 | # contributors. 29 | # 30 | #ident "@(#)S1 1.5 05/06/08 SMI" /* SVr4.0 1.1 */ 31 | # Times-Roman special font 32 | name S1 33 | internalname 1 34 | special 35 | charset 36 | " 41 2 34 37 | dq " 38 | # 50 2 35 39 | < 56 0 60 40 | > 56 0 62 41 | @ 92 3 64 42 | \ 28 2 92 43 | rs " 44 | or 20 2 124 45 | ^ 33 2 195 46 | ~ 33 2 196 47 | \' 33 2 194 48 | aa " 49 | \` 33 2 193 50 | ga " 51 | ru 50 0 95 52 | \- 65 0 177 53 | en " 54 | sc 50 3 167 55 | dg 50 3 178 56 | dd 50 3 179 57 | ct 50 3 162 58 | 14 75 2 1 59 | 34 75 2 1 60 | 12 75 2 1 61 | Sl 50 2 1 62 | ob 38 0 1 63 | `` 44 2 170 64 | '' 44 2 186 65 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/S1.name: -------------------------------------------------------------------------------- 1 | Times-Roman 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/VB.name: -------------------------------------------------------------------------------- 1 | Varitimes#Bold 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/VI.name: -------------------------------------------------------------------------------- 1 | Varitimes#Italic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/VR.name: -------------------------------------------------------------------------------- 1 | Varitimes#Roman 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/VX.name: -------------------------------------------------------------------------------- 1 | Varitimes#BoldItalic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/ZD.name: -------------------------------------------------------------------------------- 1 | ZapfDingbats 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/ZI.name: -------------------------------------------------------------------------------- 1 | ZapfChancery-MediumItalic 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/12: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_char12 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/12 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_12 { 28 | pop 29 | /optsize ptsize def 30 | /osize size def 31 | /ofont font def 32 | 33 | optsize 2 div dup R exch R f 34 | 0 size 2 mul 3 div dup neg exch 0 exch rmoveto 35 | 36 | (1) show 37 | rmoveto 38 | optsize R f 39 | (\244) show 40 | f 41 | (2) show 42 | 43 | optsize ofont f 44 | } def 45 | %%EndResource 46 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/14: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_char14 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/14 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_14 { 28 | pop 29 | /optsize ptsize def 30 | /osize size def 31 | /ofont font def 32 | 33 | optsize 2 div dup R exch R f 34 | 0 size 2 mul 3 div dup neg exch 0 exch rmoveto 35 | 36 | (1) show 37 | rmoveto 38 | optsize R f 39 | (\244) show 40 | f 41 | (4) show 42 | 43 | optsize ofont f 44 | } def 45 | %%EndResource 46 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/34: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_char34 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/34 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_34 { 28 | pop 29 | /optsize ptsize def 30 | /osize size def 31 | /ofont font def 32 | 33 | optsize 2 div dup R exch R f 34 | 0 size 2 mul 3 div dup neg exch 0 exch rmoveto 35 | 36 | (3) show 37 | rmoveto 38 | optsize R f 39 | (\244) show 40 | f 41 | (4) show 42 | 43 | optsize ofont f 44 | } def 45 | %%EndResource 46 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/Fi: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charFi 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/Fi 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_Fi { 28 | pop 29 | size .05 mul neg 0 (ffi) ashow 30 | } def 31 | %%EndResource 32 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/Fl: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charFl 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/Fl 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_Fl { 28 | pop 29 | size .05 mul neg 0 (ffl) ashow 30 | } def 31 | %%EndResource 32 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/L1: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charL1 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/L1 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_L1 { 28 | pop 29 | /picstr 40 string def 30 | gsave 31 | currentpoint translate 32 | .533 72 mul size mul 36 div 33 | .5 72 mul size mul 36 div 34 | scale 35 | 160 150 1 [160 0 0 -150 0 150] 36 | {currentfile picstr readhexstring pop} image 37 | grestore 38 | } def 39 | %%EndResource 40 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/LH_uc: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charLH 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/LH 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_LH {pop} def 28 | %%EndResource 29 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/Lb: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charLb 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/Lb 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_Lb { 28 | pop 29 | /picstr 78 string def 30 | gsave 31 | currentpoint translate 32 | 1.03 72 mul size mul 36 div 33 | .5 72 mul size mul 36 div 34 | scale 35 | 309 150 1 [309 0 0 -150 0 150] 36 | {currentfile picstr readhexstring pop} image 37 | grestore 38 | } def 39 | %%EndResource 40 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/OLD_LH: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %ident "@(#)lp:filter/postscript/font/devpost/charlib/OLD_LH 1.1" 3 | % 4 | % CDDL HEADER START 5 | % 6 | % The contents of this file are subject to the terms of the 7 | % Common Development and Distribution License, Version 1.0 only 8 | % (the "License"). You may not use this file except in compliance 9 | % with the License. 10 | % 11 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 12 | % or http://www.opensolaris.org/os/licensing. 13 | % See the License for the specific language governing permissions 14 | % and limitations under the License. 15 | % 16 | % When distributing Covered Code, include this CDDL HEADER in each 17 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 18 | % If applicable, add the following below this CDDL HEADER, with the 19 | % fields enclosed by brackets "[]" replaced with your own identifying 20 | % information: Portions Copyright [yyyy] [name of copyright owner] 21 | % 22 | % CDDL HEADER END 23 | % 24 | /build_LH { 25 | pop 26 | /picstr 78 string def 27 | gsave 28 | currentpoint translate 29 | 1.03 72 mul size mul 36 div 30 | .5 72 mul size mul 36 div 31 | scale 32 | 309 150 1 [309 0 0 -150 0 150] 33 | {currentfile picstr readhexstring pop} image 34 | grestore 35 | } def 36 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/README: -------------------------------------------------------------------------------- 1 | # -*- fundamental -*- vim: ft=text 2 | # CDDL HEADER START 3 | # 4 | # The contents of this file are subject to the terms of the 5 | # Common Development and Distribution License, Version 1.0 only 6 | # (the "License"). You may not use this file except in compliance 7 | # with the License. 8 | # 9 | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | # or http://www.opensolaris.org/os/licensing. 11 | # See the License for the specific language governing permissions 12 | # and limitations under the License. 13 | # 14 | # When distributing Covered Code, include this CDDL HEADER in each 15 | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | # If applicable, add the following below this CDDL HEADER, with the 17 | # fields enclosed by brackets "[]" replaced with your own identifying 18 | # information: Portions Copyright [yyyy] [name of copyright owner] 19 | # 20 | # CDDL HEADER END 21 | # 22 | # 23 | # University Copyright- Copyright (c) 1982, 1986, 1988 24 | # The Regents of the University of California 25 | # All Rights Reserved 26 | # 27 | # University Acknowledgment- Portions of this document are derived from 28 | # software developed by the University of California, Berkeley, and its 29 | # contributors. 30 | # 31 | #ident "@(#)README 1.5 05/06/08 SMI" /* SVr4.0 1.1 */ 32 | 33 | Postscript definitions of some special troff characters. For now each file 34 | is named by its two character troff name and is copied to the output file, 35 | as is, when the character is first used. Each procedure is called with a 36 | single argument, namely the width of the character. The name of the PostScript 37 | procedure that builds the character must begin with the prefix build_ and 38 | end with the character's name. 39 | 40 | The following variables are defined in dpost.ps and may help when you're building 41 | a new character: 42 | 43 | font name of the current font 44 | ptsize and the point size 45 | size Postscript is using this size - it's scaled up from ptsize 46 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/bx: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charbx 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/bx 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_bx { 28 | pop 29 | size 2 div /side exch def 30 | currentpoint 31 | newpath 32 | moveto 33 | 0 side rlineto 34 | side 0 rlineto 35 | 0 side neg rlineto 36 | closepath 37 | fill 38 | } def 39 | %%EndResource 40 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/ci: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charci 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/ci 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_ci { 28 | pop 29 | size 3 mul 8 div /rad exch def 30 | currentpoint 31 | newpath 32 | rad add exch rad add exch rad 0 360 arc 33 | stroke 34 | } def 35 | %%EndResource 36 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/ff: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charff 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/ff 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_ff { 28 | pop 29 | size .05 mul neg 0 (ff) ashow 30 | } def 31 | %%EndResource 32 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/ob: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charob 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/ob 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_ob { 28 | pop 29 | size 3 mul 16 div /rad exch def 30 | currentpoint 31 | newpath 32 | rad add exch rad add exch rad 0 360 arc 33 | stroke 34 | } def 35 | %%EndResource 36 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/sq: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charsq 1.1 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/sq 1.2" 4 | % 5 | % CDDL HEADER START 6 | % The contents of this file are subject to the terms of the 7 | % Common Development and Distribution License, Version 1.0 only 8 | % (the "License"). You may not use this file except in compliance 9 | % with the License. 10 | % 11 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 12 | % or http://www.opensolaris.org/os/licensing. 13 | % See the License for the specific language governing permissions 14 | % and limitations under the License. 15 | % 16 | % When distributing Covered Code, include this CDDL HEADER in each 17 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 18 | % If applicable, add the following below this CDDL HEADER, with the 19 | % fields enclosed by brackets "[]" replaced with your own identifying 20 | % information: Portions Copyright [yyyy] [name of copyright owner] 21 | % 22 | % CDDL HEADER END 23 | % 24 | % Portions Copyright(c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 25 | % 26 | /build_sq { 27 | pop 28 | size 2 div /side exch def 29 | currentpoint 30 | newpath 31 | moveto 32 | 0 side rlineto 33 | side 0 rlineto 34 | 0 side neg rlineto 35 | closepath 36 | currentfont dup /FontInfo dup 3 1 roll known { 37 | get dup /Weight dup 3 1 roll known { 38 | get dup dup (Ultra) eq exch (Bold) eq or exch (Heavy) eq or 39 | {fill} {stroke} ifelse 40 | } {pop pop stroke} ifelse 41 | } {pop pop stroke} ifelse 42 | } def 43 | %%EndResource 44 | -------------------------------------------------------------------------------- /troff/troff.d/font/devpost/charlib/~=: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | %%BeginResource: procset dpost_charapproxeq 1.0 0 3 | % from OpenSolaris "lp:filter/postscript/font/devpost/charlib/~= 1.2" 4 | % 5 | % CDDL HEADER START 6 | % 7 | % The contents of this file are subject to the terms of the 8 | % Common Development and Distribution License, Version 1.0 only 9 | % (the "License"). You may not use this file except in compliance 10 | % with the License. 11 | % 12 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | % or http://www.opensolaris.org/os/licensing. 14 | % See the License for the specific language governing permissions 15 | % and limitations under the License. 16 | % 17 | % When distributing Covered Code, include this CDDL HEADER in each 18 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | % If applicable, add the following below this CDDL HEADER, with the 20 | % fields enclosed by brackets "[]" replaced with your own identifying 21 | % information: Portions Copyright [yyyy] [name of copyright owner] 22 | % 23 | % CDDL HEADER END 24 | % 25 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 26 | % 27 | /build_~= { 28 | pop 29 | (\176) stringwidth pop neg size -.15 mul (\176\055) ashow 30 | } def 31 | %%EndResource 32 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/B: -------------------------------------------------------------------------------- 1 | name B.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/BI: -------------------------------------------------------------------------------- 1 | name BI.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/CB: -------------------------------------------------------------------------------- 1 | name CB.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/CI: -------------------------------------------------------------------------------- 1 | name CI.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/CW: -------------------------------------------------------------------------------- 1 | name CW.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/CX: -------------------------------------------------------------------------------- 1 | name CX.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/FONTMAP: -------------------------------------------------------------------------------- 1 | C CW 2 | CR CW 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/H: -------------------------------------------------------------------------------- 1 | name H.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/HB: -------------------------------------------------------------------------------- 1 | name HB.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/HI: -------------------------------------------------------------------------------- 1 | name HI.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/HX: -------------------------------------------------------------------------------- 1 | name HX.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/I: -------------------------------------------------------------------------------- 1 | name I.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/MustRead.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Core 14 AFM Files - ReadMe 7 | 8 | 9 | 10 | or 11 | 12 | 13 | 14 | 15 | 16 |
This file and the 14 PostScript(R) AFM files it accompanies may be used, copied, and distributed for any purpose and without charge, with or without modification, provided that all copyright notices are retained; that the AFM files are not distributed without this file; that all modifications to this file or any of the AFM files are prominently noted in the modified file(s); and that this paragraph is not modified. Adobe Systems has no responsibility or obligation to support the use of the AFM files. Col
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/R: -------------------------------------------------------------------------------- 1 | name R.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/S: -------------------------------------------------------------------------------- 1 | name S.afm 2 | special 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/S1: -------------------------------------------------------------------------------- 1 | name S1.afm 2 | special 3 | -------------------------------------------------------------------------------- /troff/troff.d/font/devps/ZD: -------------------------------------------------------------------------------- 1 | name ZD.afm 2 | -------------------------------------------------------------------------------- /troff/troff.d/fontmap.h: -------------------------------------------------------------------------------- 1 | void rdftmap(char *); 2 | const char *mapft(const char *); 3 | -------------------------------------------------------------------------------- /troff/troff.d/otfdump.1: -------------------------------------------------------------------------------- 1 | .\" 2 | .\" Sccsid @(#)otfdump.1 1.4 (gritter) 2/2/07 3 | .TH OTF_INFO 1 "2/2/07" "Heirloom Documentation Tools" "User Commands" 4 | .SH NAME 5 | otf_info \- dump the contents of OpenType font files 6 | .SH SYNOPSIS 7 | .HP 8 | .ad l 9 | .nh 10 | \fBotf_info\fR 11 | [\fB\-ckns\fR] 12 | font ... 13 | .br 14 | .hy 1 15 | .ad b 16 | .SH DESCRIPTION 17 | .I otf_info 18 | prints the contents of OpenType or TrueType font files 19 | in ASCII format 20 | just as 21 | .I troff 22 | interprets it. 23 | By default, 24 | all available information is printed. 25 | Options can be used to restrict the output: 26 | .TP 27 | .B \-c 28 | prints only the characters present in the font, 29 | in the format `\fBchar \fIstring \fBwidth \fInumber\fR'. 30 | .TP 31 | .B \-k 32 | prints only the kerning pairs present in the font, 33 | in the format `\fBkernpair \fIstring1 string2 \fBwidth \fInumber\fR'. 34 | .TP 35 | .B \-n 36 | prints only the PostScript name of the font, 37 | in the format `\fBname \fIstring\fR'. 38 | .TP 39 | .B \-s 40 | prints only the substitution features available with the font, 41 | in the format `\fBfeature \fIstring \fBsubstitution \fIstring1 string2\fR'. 42 | .SH "SEE ALSO" 43 | troff(1) 44 | -------------------------------------------------------------------------------- /troff/troff.d/otfdump_vs.c: -------------------------------------------------------------------------------- 1 | /* Sccsid @(#)otfdump_version.c 1.1 (gritter) 10/3/05 */ 2 | #define DUMP 3 | #include "../version.c" 4 | -------------------------------------------------------------------------------- /troff/troff.d/postscript/Makefile.mk: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | install: 4 | test -d $(ROOT)$(PSTDIR) || mkdir -p $(ROOT)$(PSTDIR) 5 | for i in *.ps ps.requests; \ 6 | do \ 7 | $(INSTALL) -c -m 644 $$i $(ROOT)$(PSTDIR)/$$i || exit; \ 8 | done 9 | 10 | clean: 11 | 12 | mrproper: clean 13 | -------------------------------------------------------------------------------- /troff/troff.d/postscript/fatcourier.ps: -------------------------------------------------------------------------------- 1 | %%BeginResource: procset dpost_fatcourier 1.2 0 2 | % from OpenSolaris "lp:filter/postscript/postscript/fatcourier.ps 1.1" 3 | % 4 | % CDDL HEADER START 5 | % 6 | % The contents of this file are subject to the terms of the 7 | % Common Development and Distribution License, Version 1.0 only 8 | % (the "License"). You may not use this file except in compliance 9 | % with the License. 10 | % 11 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 12 | % or http://www.opensolaris.org/os/licensing. 13 | % See the License for the specific language governing permissions 14 | % and limitations under the License. 15 | % 16 | % When distributing Covered Code, include this CDDL HEADER in each 17 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 18 | % If applicable, add the following below this CDDL HEADER, with the 19 | % fields enclosed by brackets "[]" replaced with your own identifying 20 | % information: Portions Copyright [yyyy] [name of copyright owner] 21 | % 22 | % CDDL HEADER END 23 | % 24 | % Portions Copyright 2005 Gunnar Ritter, Freiburg i. Br, Germany 25 | % 26 | % Sccsid @(#)fatcourier.ps 1.2 (gritter) 9/6/05 27 | % 28 | % Fat versions of the stroked Courier and Courier-Oblique - from Johnathan Shopiro. 29 | % Can be selectively pulled in using the -C option that's available with all the 30 | % PostScript translators or permanently added to any of the prologues. Helps on 31 | % Linotronic typesetters, where Courier and Courier-Oblique are too light! 32 | % 33 | 34 | /newdict /Courier findfont length dict def 35 | /Courier findfont { 36 | 1 index /FID ne 37 | {newdict 3 1 roll put} 38 | {pop pop} 39 | ifelse 40 | } forall 41 | newdict /StrokeWidth 60 put 42 | /Courier newdict definefont pop 43 | 44 | /newdict /Courier-Oblique findfont length dict def 45 | /Courier-Oblique findfont { 46 | 1 index /FID ne 47 | {newdict 3 1 roll put} 48 | {pop pop} 49 | ifelse 50 | } forall 51 | newdict /StrokeWidth 60 put 52 | /Courier-Oblique newdict definefont pop 53 | %%EndResource 54 | -------------------------------------------------------------------------------- /troff/troff.d/postscript/ps.requests: -------------------------------------------------------------------------------- 1 | % -*- ps -*- vim: ft=postscr 2 | % 3 | % CDDL HEADER START 4 | % 5 | % The contents of this file are subject to the terms of the 6 | % Common Development and Distribution License, Version 1.0 only 7 | % (the "License"). You may not use this file except in compliance 8 | % with the License. 9 | % 10 | % You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 11 | % or http://www.opensolaris.org/os/licensing. 12 | % See the License for the specific language governing permissions 13 | % and limitations under the License. 14 | % 15 | % When distributing Covered Code, include this CDDL HEADER in each 16 | % file and include the License file at usr/src/OPENSOLARIS.LICENSE. 17 | % If applicable, add the following below this CDDL HEADER, with the 18 | % fields enclosed by brackets "[]" replaced with your own identifying 19 | % information: Portions Copyright [yyyy] [name of copyright owner] 20 | % 21 | % CDDL HEADER END 22 | % 23 | % Keywords begin with an @ in the first column. The value follows on the next line 24 | % and includes everything up to next keyword line, except for comments which are 25 | % lines that begin with % in the first column. 26 | % 27 | 28 | @manualfeed 29 | statusdict begin 30 | /manualfeedtimeout 300 def 31 | /manualfeed true def 32 | end 33 | 34 | @ledgertray 35 | statusdict begin 36 | ledgertray 37 | end 38 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/.gitignore: -------------------------------------------------------------------------------- 1 | bib 2 | e 3 | m 4 | s 5 | andoc 6 | doc 7 | pm 8 | g 9 | an 10 | doc-ditroff 11 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/Makefile.mk: -------------------------------------------------------------------------------- 1 | MACS= acm.me bib chars.me deltext.me e eqn.me \ 2 | float.me footnote.me index.me local.me m mmn mmt ms.acc \ 3 | ms.cov ms.eqn ms.ref ms.tbl ms.ths ms.toc null.me refer.me \ 4 | s sh.me tbl.me thesis.me v vgrind \ 5 | an andoc doc doc-common doc-ditroff doc-nroff doc-syms \ 6 | pictures color pm srefs ptx safe g padj taa naa \ 7 | tmac.gchar an-ext 8 | 9 | MAN= mcolor.7 mpictures.7 man.7 mdoc.7 10 | 11 | .SUFFIXES: .in 12 | 13 | .in: 14 | sed 's:@MACDIR@:$(MACDIR):; s:@LIBDIR@:$(LIBDIR):' $< >$@ 15 | 16 | all: $(MACS) $(MAN) 17 | 18 | install: all $(ROOT)$(MACDIR) $(ROOT)$(MANDIR)/man7 19 | for i in $(MACS); do \ 20 | $(INSTALL) -m 644 $$i $(ROOT)$(MACDIR)/ || exit; \ 21 | done 22 | for i in $(MAN); do \ 23 | $(INSTALL) -m 644 $$i $(ROOT)$(MANDIR)/man7/ || exit; \ 24 | done 25 | 26 | clean: 27 | rm -f andoc bib doc e g m s pm an doc-ditroff mcolor.7 28 | 29 | mrproper: clean 30 | 31 | mcolor.7: mcolor.7.in 32 | sed -e 's"/usr/ucblib/doctools/font/devpost/postscript"$(ROOT)$(PSTDIR)"' \ 33 | -e 's"/usr/ucblib/doctools/tmac"$(ROOT)$(MACDIR)"' \ 34 | mcolor.7.in > $@ 35 | 36 | $(ROOT)$(MACDIR) $(ROOT)$(MANDIR)/man7: 37 | mkdir -p $@ 38 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/deltext.me: -------------------------------------------------------------------------------- 1 | .\" 2 | .\" Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3 | .\" Use is subject to license terms. 4 | .\" 5 | .\" CDDL HEADER START 6 | .\" 7 | .\" The contents of this file are subject to the terms of the 8 | .\" Common Development and Distribution License, Version 1.0 only 9 | .\" (the "License"). You may not use this file except in compliance 10 | .\" with the License. 11 | .\" 12 | .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | .\" or http://www.opensolaris.org/os/licensing. 14 | .\" See the License for the specific language governing permissions 15 | .\" and limitations under the License. 16 | .\" 17 | .\" When distributing Covered Code, include this CDDL HEADER in each 18 | .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | .\" If applicable, add the following below this CDDL HEADER, with the 20 | .\" fields enclosed by brackets "[]" replaced with your own identifying 21 | .\" information: Portions Copyright [yyyy] [name of copyright owner] 22 | .\" 23 | .\" CDDL HEADER END 24 | .\" 25 | .\"ident "@(#)deltext.me 1.5 05/06/08 SMI" 26 | .\" 27 | .\" University Copyright- Copyright (c) 1982, 1986, 1988 28 | .\" The Regents of the University of California 29 | .\" All Rights Reserved 30 | .\" 31 | .\" University Acknowledgment- Portions of this document are derived from 32 | .\" software developed by the University of California, Berkeley, and its 33 | .\" contributors. 34 | .\" 35 | .nr _0 \n(c. 36 | .\" @(#)deltext.me 2.1 8/18/80 37 | .de (d 38 | .am |d )d 39 | .sp \\n(bsu 40 | .. 41 | .de )d 42 | .if \\n# \ 43 | . nr $d +1 44 | .ds # [\\n($d]\k# 45 | .rr # 46 | .. 47 | .de pd 48 | .|d 49 | .rm |d 50 | .nr $d 1 1 51 | .ds # [1]\k# 52 | .. 53 | .nr c. \n(_0 54 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/local.me: -------------------------------------------------------------------------------- 1 | .\" 2 | .\" Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3 | .\" Use is subject to license terms. 4 | .\" 5 | .\" CDDL HEADER START 6 | .\" 7 | .\" The contents of this file are subject to the terms of the 8 | .\" Common Development and Distribution License, Version 1.0 only 9 | .\" (the "License"). You may not use this file except in compliance 10 | .\" with the License. 11 | .\" 12 | .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | .\" or http://www.opensolaris.org/os/licensing. 14 | .\" See the License for the specific language governing permissions 15 | .\" and limitations under the License. 16 | .\" 17 | .\" When distributing Covered Code, include this CDDL HEADER in each 18 | .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | .\" If applicable, add the following below this CDDL HEADER, with the 20 | .\" fields enclosed by brackets "[]" replaced with your own identifying 21 | .\" information: Portions Copyright [yyyy] [name of copyright owner] 22 | .\" 23 | .\" CDDL HEADER END 24 | .\" 25 | .\"ident "@(#)local.me 1.5 05/06/08 SMI" 26 | .\" 27 | .\" University Copyright- Copyright (c) 1982, 1986, 1988 28 | .\" The Regents of the University of California 29 | .\" All Rights Reserved 30 | .\" 31 | .\" University Acknowledgment- Portions of this document are derived from 32 | .\" software developed by the University of California, Berkeley, and its 33 | .\" contributors. 34 | .\" 35 | .nr _0 \n(c. 36 | .\" this file may contain local macros, which are initialized with 37 | .\" the ".lo" request. All macros and number registers in this file 38 | .\" should be named ".*X", where X is any letter (upper or lower case) 39 | .\" or digit, to avoid naming conflicts. 40 | .\" 41 | .\" @(#)local.me 2.1 8/18/80 42 | . \" *** insert new definitions before this line *** 43 | .nr c. \n(_0 44 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/m.in: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .\" 3 | .\" Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4 | .\" Use is subject to license terms. 5 | .\" 6 | .\" CDDL HEADER START 7 | .\" 8 | .\" The contents of this file are subject to the terms of the 9 | .\" Common Development and Distribution License, Version 1.0 only 10 | .\" (the "License"). You may not use this file except in compliance 11 | .\" with the License. 12 | .\" 13 | .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 14 | .\" or http://www.opensolaris.org/os/licensing. 15 | .\" See the License for the specific language governing permissions 16 | .\" and limitations under the License. 17 | .\" 18 | .\" When distributing Covered Code, include this CDDL HEADER in each 19 | .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 20 | .\" If applicable, add the following below this CDDL HEADER, with the 21 | .\" fields enclosed by brackets "[]" replaced with your own identifying 22 | .\" information: Portions Copyright [yyyy] [name of copyright owner] 23 | .\" 24 | .\" CDDL HEADER END 25 | .\" 26 | .\" from OpenSolaris "m 1.6 05/06/08 SMI" 27 | .\" 28 | .\" University Copyright- Copyright (c) 1982, 1986, 1988 29 | .\" The Regents of the University of California 30 | .\" All Rights Reserved 31 | .\" 32 | .\" University Acknowledgment- Portions of this document are derived from 33 | .\" software developed by the University of California, Berkeley, and its 34 | .\" contributors. 35 | .\" 36 | .\" Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 37 | .\" 38 | .\" Sccsid @(#)m.in 1.2 (gritter) 8/13/05 39 | .\" 40 | .if n .so @MACDIR@/mmn 41 | .if t .so @MACDIR@/mmt 42 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/ms.ths: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .\" 3 | .\" Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4 | .\" Use is subject to license terms. 5 | .\" 6 | .\" CDDL HEADER START 7 | .\" 8 | .\" The contents of this file are subject to the terms of the 9 | .\" Common Development and Distribution License, Version 1.0 only 10 | .\" (the "License"). You may not use this file except in compliance 11 | .\" with the License. 12 | .\" 13 | .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 14 | .\" or http://www.opensolaris.org/os/licensing. 15 | .\" See the License for the specific language governing permissions 16 | .\" and limitations under the License. 17 | .\" 18 | .\" When distributing Covered Code, include this CDDL HEADER in each 19 | .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 20 | .\" If applicable, add the following below this CDDL HEADER, with the 21 | .\" fields enclosed by brackets "[]" replaced with your own identifying 22 | .\" information: Portions Copyright [yyyy] [name of copyright owner] 23 | .\" 24 | .\" CDDL HEADER END 25 | .\" 26 | .\"ident "@(#)ms.ths 1.5 05/06/08 SMI" 27 | .\" 28 | .\" University Copyright- Copyright (c) 1982, 1986, 1988 29 | .\" The Regents of the University of California 30 | .\" All Rights Reserved 31 | .\" 32 | . \" TM - U.C. Berkeley thesis mode 33 | .ls 2 34 | .if v .nr PO 1.5i 35 | .rm CH 36 | .ds RH \\n(PN 37 | .rm CF 38 | .P1 39 | .nr TM 1 40 | . \" CT - chapter title 41 | .de CT 42 | .rn RH R@ 43 | .if \\n(1T .bp 44 | .RT 45 | .if \\n(1T .sp 46 | .if !\\n(1T .BG 47 | .RT 48 | .ft 3 49 | .if n .ul 100 50 | .ps \\n(PS+2 51 | .ce 100 52 | .nr CT 1 53 | .rn R@ RH 54 | .. 55 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/null.me: -------------------------------------------------------------------------------- 1 | .\" 2 | .\" Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3 | .\" Use is subject to license terms. 4 | .\" 5 | .\" CDDL HEADER START 6 | .\" 7 | .\" The contents of this file are subject to the terms of the 8 | .\" Common Development and Distribution License, Version 1.0 only 9 | .\" (the "License"). You may not use this file except in compliance 10 | .\" with the License. 11 | .\" 12 | .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | .\" or http://www.opensolaris.org/os/licensing. 14 | .\" See the License for the specific language governing permissions 15 | .\" and limitations under the License. 16 | .\" 17 | .\" When distributing Covered Code, include this CDDL HEADER in each 18 | .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | .\" If applicable, add the following below this CDDL HEADER, with the 20 | .\" fields enclosed by brackets "[]" replaced with your own identifying 21 | .\" information: Portions Copyright [yyyy] [name of copyright owner] 22 | .\" 23 | .\" CDDL HEADER END 24 | .\" 25 | .\"ident "@(#)null.me 1.5 05/06/08 SMI" 26 | .\" 27 | .\" University Copyright- Copyright (c) 1982, 1986, 1988 28 | .\" The Regents of the University of California 29 | .\" All Rights Reserved 30 | .\" 31 | .\" University Acknowledgment- Portions of this document are derived from 32 | .\" software developed by the University of California, Berkeley, and its 33 | .\" contributors. 34 | .\" 35 | .\" @(#)null.me 2.1 8/18/80 36 | .cc . 37 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/padj: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .\" Sccsid @(#)padj 1.1 (gritter) 11/12/06 3 | .do padj 4 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/ptx: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .\" 3 | .\" Changes by Gunnar Ritter, Freiburg i. Br., Germany, September 2005. 4 | .\" 5 | .\" Derived from Plan 9 v4 /sys/lib/tmac/tmac.ptx 6 | .\" 7 | .\" Copyright (C) 2003, Lucent Technologies Inc. and others. 8 | .\" All Rights Reserved. 9 | .\" 10 | .\" Distributed under the terms of the Lucent Public License Version 1.02. 11 | .\" 12 | .\" Sccsid @(#)ptx 1.2 (gritter) 11/6/05 13 | '''\" from ptx.src (ptx.src 1.1) - format permuted index macro 14 | .tr ~ 15 | .nr )y \n(.lu-.65i 16 | .nr )x \n()yu/2u 17 | .ds s2 ~~~ 18 | .ds s4 ~ 19 | .ds s5 ~ 20 | .de xx 21 | .ds s1 22 | .if \w\\$2 .ds s1 ~\| 23 | .ds s3 24 | .if \w\\$4 .ds s3 ~\| 25 | .ds y \\*(s4\f3\a\fP\\*(s5 26 | .ta \\n()yu-\w\\*(s5u 27 | \h\\n()xu-\w\\$1\\*(s1\\$2\\*(s2u\\$1\\*(s1\\$2\\*(s2\\$3\\*(s3\\$4\\*y\\$5 28 | .. 29 | .nf 30 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/safe: -------------------------------------------------------------------------------- 1 | .\" -*- nroff -*- vim: ft=nroff 2 | .\" Sccsid @(#)safe 1.2 (gritter) 12/13/05 3 | .ie (\n(.X>0) \{\ 4 | . do rm sy 5 | . do rm pi 6 | . do rm pso 7 | . do rm open 8 | . do rm opena 9 | .\} 10 | .el \{\ 11 | . rm sy 12 | . rm pi 13 | .\} 14 | -------------------------------------------------------------------------------- /troff/troff.d/tmac.d/thesis.me: -------------------------------------------------------------------------------- 1 | .\" 2 | .\" Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3 | .\" Use is subject to license terms. 4 | .\" 5 | .\" CDDL HEADER START 6 | .\" 7 | .\" The contents of this file are subject to the terms of the 8 | .\" Common Development and Distribution License, Version 1.0 only 9 | .\" (the "License"). You may not use this file except in compliance 10 | .\" with the License. 11 | .\" 12 | .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 | .\" or http://www.opensolaris.org/os/licensing. 14 | .\" See the License for the specific language governing permissions 15 | .\" and limitations under the License. 16 | .\" 17 | .\" When distributing Covered Code, include this CDDL HEADER in each 18 | .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 | .\" If applicable, add the following below this CDDL HEADER, with the 20 | .\" fields enclosed by brackets "[]" replaced with your own identifying 21 | .\" information: Portions Copyright [yyyy] [name of copyright owner] 22 | .\" 23 | .\" CDDL HEADER END 24 | .\" 25 | .\"ident "@(#)thesis.me 1.5 05/06/08 SMI" 26 | .\" 27 | .\" University Copyright- Copyright (c) 1982, 1986, 1988 28 | .\" The Regents of the University of California 29 | .\" All Rights Reserved 30 | .\" 31 | .\" University Acknowledgment- Portions of this document are derived from 32 | .\" software developed by the University of California, Berkeley, and its 33 | .\" contributors. 34 | .\" 35 | .nr _0 \n(c. 36 | .\" Setup for thesis. 37 | .\" This file should be modified to keep up with the standard 38 | .\" for a doctoral thesis at Berkeley. Other macros which may 39 | .\" be useful for a thesis are defined here. 40 | .\" @(#)thesis.me 2.1 8/18/80 41 | .nr tf 1 42 | .he '''%' 43 | .if n .if \n(_o \ 44 | . po 1.5i 45 | .if t .po 1.125i 46 | .ll 5.75i 47 | .if n .if 1n=0.1i \ 48 | . ll 5.8i 49 | .m1 1i 50 | .nr ?t 1 51 | .ls 2 52 | .nr c. \n(_0 53 | -------------------------------------------------------------------------------- /troff/troff.d/troff.h: -------------------------------------------------------------------------------- 1 | /* 2 | * CDDL HEADER START 3 | * 4 | * The contents of this file are subject to the terms of the 5 | * Common Development and Distribution License, Version 1.0 only 6 | * (the "License"). You may not use this file except in compliance 7 | * with the License. 8 | * 9 | * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | * or http://www.opensolaris.org/os/licensing. 11 | * See the License for the specific language governing permissions 12 | * and limitations under the License. 13 | * 14 | * When distributing Covered Code, include this CDDL HEADER in each 15 | * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | * If applicable, add the following below this CDDL HEADER, with the 17 | * fields enclosed by brackets "[]" replaced with your own identifying 18 | * information: Portions Copyright [yyyy] [name of copyright owner] 19 | * 20 | * CDDL HEADER END 21 | */ 22 | 23 | /* 24 | * Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 25 | * 26 | * Sccsid @(#)troff.h 1.27 (gritter) 8/19/08 27 | */ 28 | 29 | extern struct tracktab { 30 | int s1; 31 | int n1; 32 | int s2; 33 | int n2; 34 | } *tracktab; 35 | 36 | extern struct box { 37 | int val[4]; 38 | int flag; 39 | } mediasize, bleedat, trimat, cropat; 40 | 41 | extern struct ref { 42 | struct ref *next; 43 | char *name; 44 | int cnt; 45 | } *anchors, *links, *ulinks; 46 | 47 | extern struct dev dev; 48 | extern int Nfont; 49 | extern int *cstab; 50 | extern int *ccstab; 51 | extern int **fallbacktab; 52 | extern float *zoomtab; 53 | 54 | extern int nchtab; 55 | extern char *chname; 56 | extern int c_endash; 57 | 58 | extern int kern; 59 | extern int lettrack; 60 | extern float horscale; 61 | 62 | extern void growfonts(int); 63 | extern void setlig(int, int); 64 | extern int loadafm(int, int, char *, char *, int, enum spec); 65 | extern int getkw(tchar, tchar); 66 | extern void ptpapersize(void); 67 | extern void ptcut(void); 68 | -------------------------------------------------------------------------------- /troff/troff.d/unimap.h: -------------------------------------------------------------------------------- 1 | /* 2 | * CDDL HEADER START 3 | * 4 | * The contents of this file are subject to the terms of the 5 | * Common Development and Distribution License, Version 1.0 only 6 | * (the "License"). You may not use this file except in compliance 7 | * with the License. 8 | * 9 | * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | * or http://www.opensolaris.org/os/licensing. 11 | * See the License for the specific language governing permissions 12 | * and limitations under the License. 13 | * 14 | * When distributing Covered Code, include this CDDL HEADER in each 15 | * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | * If applicable, add the following below this CDDL HEADER, with the 17 | * fields enclosed by brackets "[]" replaced with your own identifying 18 | * information: Portions Copyright [yyyy] [name of copyright owner] 19 | * 20 | * CDDL HEADER END 21 | */ 22 | /* 23 | * Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 24 | * 25 | * Sccsid @(#)unimap.h 1.3 (gritter) 11/2/06 26 | */ 27 | 28 | extern const struct rawunimap { 29 | int code; 30 | const char *psc; 31 | } rawunimap[]; 32 | 33 | extern struct unimap { 34 | struct unimap *next; 35 | union { 36 | const char *psc; 37 | int code; 38 | } u; 39 | } **unimap[256]; 40 | 41 | extern void uninit(void); 42 | extern void unadd(int, const char *); 43 | -------------------------------------------------------------------------------- /version.mk: -------------------------------------------------------------------------------- 1 | #RELEASE = Git snapshot 190405 2 | RELEASE = release 191015 3 | -------------------------------------------------------------------------------- /vgrind/.gitignore: -------------------------------------------------------------------------------- 1 | vfontedpr 2 | vgrind 3 | -------------------------------------------------------------------------------- /vgrind/Makefile.mk: -------------------------------------------------------------------------------- 1 | OBJ = regexp.o vfontedpr.o vgrindefs.o version.o 2 | 3 | FLAGS = $(EUC) -DLIBDIR='"$(LIBDIR)"' $(DEFINES) -I../include 4 | 5 | .c.o: 6 | $(CC) $(_CFLAGS) $(FLAGS) -c $< 7 | 8 | all: vgrind vfontedpr vgrind.1 9 | 10 | vfontedpr: $(OBJ) 11 | $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o vfontedpr 12 | 13 | vgrind: vgrind.sh 14 | rm -f $@ 15 | echo "#!$(SHELL)" >>$@ 16 | echo "_TROFF=$(BINDIR)/troff" >>$@ 17 | echo "_VFONTEDPR=$(LIBDIR)/vfontedpr" >>$@ 18 | echo "_TMAC_VGRIND=$(MACDIR)/vgrind" >>$@ 19 | echo "_DPOST=$(BINDIR)/dpost" >>$@ 20 | cat vgrind.sh >>$@ 21 | chmod 755 $@ 22 | 23 | install: 24 | $(INSTALL) -c vgrind $(ROOT)$(BINDIR)/vgrind 25 | test -d $(ROOT)$(LIBDIR) || mkdir -p $(ROOT)$(LIBDIR) 26 | $(INSTALL) -c vfontedpr $(ROOT)$(LIBDIR)/vfontedpr 27 | $(STRIP) $(ROOT)$(LIBDIR)/vfontedpr 28 | $(INSTALL) -c -m 644 vgrindefs.src $(ROOT)$(LIBDIR)/vgrindefs 29 | $(INSTALL) -c -m 644 vgrind.1 $(ROOT)$(MANDIR)/man1/vgrind.1 30 | 31 | clean: 32 | rm -f $(OBJ) vfontedpr vgrind retest retest.o core log *~ vgrind.1 33 | 34 | mrproper: clean 35 | 36 | vgrind.1: vgrind.1.in 37 | sed -e 's"/usr/ucblib/tmac/"$(ROOT)$(MACDIR)/"' \ 38 | -e 's"/usr/ucblib/"$(ROOT)$(LIBDIR)/"' vgrind.1.in > $@ 39 | -------------------------------------------------------------------------------- /vgrind/retest.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1980 Regents of the University of California. 3 | * All rights reserved. The Berkeley software License Agreement 4 | * specifies the terms and conditions for redistribution. 5 | */ 6 | 7 | /* from OpenSolaris "retest.c 1.11 92/07/21 SMI" */ 8 | 9 | /* 10 | * Portions Copyright (c) 2005 Gunnar Ritter, Freiburg i. Br., Germany 11 | * 12 | * Sccsid @(#)retest.c 1.3 (gritter) 10/22/05 13 | */ 14 | /* from UCB 5.1 (Berkeley) 6/5/85 */ 15 | 16 | #include 17 | 18 | int l_onecase = 0; 19 | 20 | char *l_idchars = "_"; /* characters legal in identifiers in addition 21 | to alphanumerics */ 22 | 23 | char * Start; 24 | char * _escaped; 25 | char * convexp(); 26 | char * expmatch(); 27 | int 28 | main(void) 29 | { 30 | char reg[132]; 31 | char *ireg; 32 | char str[132]; 33 | char *match; 34 | char matstr[132]; 35 | char c; 36 | 37 | while (1) { 38 | printf ("\nexpr: "); 39 | scanf ("%s", reg); 40 | ireg = convexp(reg); 41 | match = ireg; 42 | while(*match) { 43 | switch (*match) { 44 | 45 | case '\\': 46 | case '(': 47 | case ')': 48 | case '|': 49 | printf ("%c", *match); 50 | break; 51 | 52 | default: 53 | if (isalnum(*match)) 54 | printf("%c", *match); 55 | else 56 | printf ("<%03o>", *match); 57 | break; 58 | } 59 | match++; 60 | } 61 | printf("\n"); 62 | getchar(); 63 | while(1) { 64 | printf ("string: "); 65 | match = str; 66 | while ((c = getchar()) != '\n') 67 | *match++ = c; 68 | *match = 0; 69 | if (str[0] == '#') 70 | break; 71 | matstr[0] = 0; 72 | Start = str; 73 | _escaped = 0; 74 | match = expmatch (str, ireg, matstr); 75 | if (match == 0) 76 | printf ("FAILED\n"); 77 | else 78 | printf ("match\nmatstr = %s\n", matstr); 79 | } 80 | 81 | } 82 | return 0; 83 | } 84 | -------------------------------------------------------------------------------- /vgrind/version.c: -------------------------------------------------------------------------------- 1 | #if __GNUC__ >= 3 && __GNUC_MINOR__ >= 4 || __GNUC__ >= 4 2 | #define USED __attribute__ ((used)) 3 | #elif defined __GNUC__ 4 | #define USED __attribute__ ((unused)) 5 | #else 6 | #define USED 7 | #endif 8 | static const char sccsid[] USED = "@(#)/usr/ucblib/vfontedpr.sl 5.1 (gritter) 10/25/05"; 9 | /* SLIST */ 10 | /* 11 | regexp.c: * Sccsid @(#)regexp.c 1.3 (gritter) 10/22/05 12 | retest.c: * Sccsid @(#)retest.c 1.3 (gritter) 10/22/05 13 | vfontedpr.c: * Sccsid @(#)vfontedpr.c 1.4 (gritter) 10/22/05 14 | vgrindefs.c: * Sccsid @(#)vgrindefs.c 1.3 (gritter) 10/22/05 15 | */ 16 | --------------------------------------------------------------------------------