summaryrefslogtreecommitdiff
path: root/tmac/s.tmac
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-07-07 07:37:33 +0000
committerwlemb <wlemb>2003-07-07 07:37:33 +0000
commitf011af41ce79eb34a7bba5097f4754caa4ab54ac (patch)
treeeaad8d7a2d42bd32cc0ce83d18d311c3da1c22dd /tmac/s.tmac
parent68b7d33189b177dac5a8cc0755dde75c3514bbbc (diff)
downloadgroff-f011af41ce79eb34a7bba5097f4754caa4ab54ac.tar.gz
Make grotty work on platforms which have unsigned char as the
default for char. Based on a patch by Thomas Klausner <wiz@netbsd.org>. * src/devices/grotty/tty.cpp (schar): New typedef. Updated calls to declare_ptable and implement_ptable. (glyph): Use schar for back_color_idx and fore_color_idx. (tty_printer): Use schar for curr_fore_idx and curr_back_idx. (tty_printer::tty_color, tty_printer::tty_printer, tty_printer::color_to_idx, tty_printer::put_color): Updated. * src/roff/nroff/nroff.sh: Add option -d for completeness. * src/roff/nroff/nroff.man: Updated. * NEWS, tmac/groff_www.man: Updated. * doc/Makefile.sub: Updated. Implement support for multiple HTML output files. * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for -j command line option. * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New global variables. (file): New fields `new_output_file', `require_links', `output_file_name'. (file::file): Updated. (files::set_file_name, files::set_links_required, files::are_links_required, files::is_new_output_file, files::file_name, files::next_file_name): New functions. (header_desc): New fields `no_of_level_one_headings', `header_filename'. (header_desc::header_desc): Updated. (header_desc::write_headings): Handle multiple files. (html_printer::write_header): Save file name in which header occurs. (html_printer::determine_header_level): Possibly split files on level one headings. (html_printer::do_links, html_printer::troff_tag): Updated. (html_printer::insert_split_file, html_printer::do_job_name, html_printer::emit_link, html_printer::write_navigation, html_printer::do_file_components): New functions. (html_printer::~html_printer): Handle multiple files. (main): Handle command line option `-j'. * src/devices/grohtml/grohtml.man: Updated. * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule which splits file. * tmac/www.tmac (JOBNAME): New macro. * tmac/s.tmac (SH-NO-TAG): New macro. (@SH): Call SH-NO-TAG. (@NH): Updated.
Diffstat (limited to 'tmac/s.tmac')
-rw-r--r--tmac/s.tmac11
1 files changed, 7 insertions, 4 deletions
diff --git a/tmac/s.tmac b/tmac/s.tmac
index 7a8bf0d0..9de28e88 100644
--- a/tmac/s.tmac
+++ b/tmac/s.tmac
@@ -1322,13 +1322,16 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
.\}
.el \!.par*box-draw \\$1 \\$2
..
-.de @SH
+.de SH-NO-TAG
.par@finish
.\" Keep together the heading and the first two lines of the next paragraph.
.ne 3v+\\n[\\n[.ev]:PD]u+\\n(.Vu
.sp 1
.ft B
-.HTML-TAG ".SH 1"
+..
+.de @SH
+. SH-NO-TAG
+. HTML-TAG ".SH 1"
..
.\" TL, AU, and AI are aliased to these in cov*ab-init.
.de par@TL
@@ -1451,7 +1454,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
.nr nh*hl 0
.\" numbered heading
.de @NH
-.HTML-TAG ".NH \\$1"
.ie '\\$1'S' \{\
. shift
. nr nh*hl 0
@@ -1492,7 +1494,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
. nr nh*i +1
. as SN \\n[H\\n[nh*i]].
.\}
-.SH
+.SH-NO-TAG
+.HTML-TAG ".NH \\$1"
\\*[SN]
..
.\" ****************************