[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff-commit] groff/contrib/mom BUGS ChangeLog NEWS copyright...
From: |
Werner LEMBERG |
Subject: |
[Groff-commit] groff/contrib/mom BUGS ChangeLog NEWS copyright... |
Date: |
Sat, 14 Jan 2006 08:22:42 +0000 |
CVSROOT: /cvsroot/groff
Module name: groff
Branch:
Changes by: Werner LEMBERG <address@hidden> 06/01/14 08:22:41
Modified files:
contrib/mom : BUGS ChangeLog NEWS copyright om.tmac
contrib/mom/momdoc: docelement.html
Log message:
o Reworked changing and setting of traps associated with outputting
left and right margin notes. See BUGS.
o Bracketed outputting of margin notes diversions with .nf/.fi.
o Corrected docs MN_INIT so that the optional first arg is properly
given as RAGGED | SYMMETRIC
o Fixed MN_INIT macro routine that reads MN_INIT args into strings
so that the strings are first "initialized" with the @ character
if the corresponding arg is blank. Since MN-init tests for \A
and \B (correctly, I hope) for each of its args, the @ character
should be safe.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/mom/BUGS.diff?tr1=1.21&tr2=1.22&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/mom/ChangeLog.diff?tr1=1.36&tr2=1.37&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/mom/NEWS.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/mom/copyright.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/mom/om.tmac.diff?tr1=1.29&tr2=1.30&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/mom/momdoc/docelement.html.diff?tr1=1.16&tr2=1.17&r1=text&r2=text
Patches:
Index: groff/contrib/mom/BUGS
diff -u groff/contrib/mom/BUGS:1.21 groff/contrib/mom/BUGS:1.22
--- groff/contrib/mom/BUGS:1.21 Thu Sep 15 11:41:31 2005
+++ groff/contrib/mom/BUGS Sat Jan 14 08:22:41 2006
@@ -8,6 +8,8 @@
address@hidden
or
address@hidden
+ or
+ address@hidden
If writing me directly, please include the word "groff" or "mom" in
the Subject line or you risk my spam filters nuking your message.
@@ -17,6 +19,51 @@
========================================================================
+Version 1.3-b
+=============
+
+ITALIC_MEANS_ITALIC not being respected when DOCTYPE LETTER.
+---Fixed---
+
+Underlining of italic passages in PRINTSTYLE TYEPWRITE not spanning
+pages.
+---Fixed---
+
+PRINTSTYLE TYPEWRITE depositing extra space on new pages above quotes
+that span pages.
+---Fixed---
+
+MN doesn't accept OFF, QUIT, END, X, etc.
+---Fixed---
+
+Margin notes that begin flush with the last line of text on a page
+are running down the same page, instead of the remainder being
+collected and output on the next.
+---Fixed---
+
+MN sometimes erroneously dropping margin notes near the bottom of
+a page, even when they'd fit. (MN-shifted not being removed by
+MN-top.)
+---Fixed---
+
+MN_INIT not accepting "" args for default values.
+---Fixed---
+
+Documentation for margin notes erroneously states that the first
+(optional) argument can be either "ragged" or "symmetric". S/b
+"RAGGED" or "SYMMETRIC".
+---Fixed---
+
+Use of "" to tell MN_INIT to use the default for any specific
+argument in the arg list broken.
+---Fixed---
+
+Paragraphs that begin with a "smart" double quote when the
+preceding paragraph has no corresponding close quote (i.e. dialogue
+passages containing multiple paragraphs) are starting off with a
+close quote.
+---Fixed---
+
Version 1.3-a
=============
Index: groff/contrib/mom/ChangeLog
diff -u groff/contrib/mom/ChangeLog:1.36 groff/contrib/mom/ChangeLog:1.37
--- groff/contrib/mom/ChangeLog:1.36 Thu Sep 15 11:47:55 2005
+++ groff/contrib/mom/ChangeLog Sat Jan 14 08:22:41 2006
@@ -1,3 +1,23 @@
+*Thu Jan 12 2006
+
+o Reworked changing and setting of traps associated with outputting
+ left and right margin notes. See BUGS.
+
+*Sat Jan 7 2006
+
+o Bracketed outputting of margin notes diversions with .nf/.fi.
+
+*Fri Jan 6 2006
+
+o Corrected docs MN_INIT so that the optional first arg is properly
+ given as RAGGED | SYMMETRIC
+
+o Fixed MN_INIT macro routine that reads MN_INIT args into strings
+ so that the strings are first "initialized" with the @ character
+ if the corresponding arg is blank. Since MN-init tests for \A
+ and \B (correctly, I hope) for each of its args, the @ character
+ should be safe.
+
*Thu Sep 15 2005
o First baseline of type isn't going where it's supposed to when the
Index: groff/contrib/mom/NEWS
diff -u groff/contrib/mom/NEWS:1.18 groff/contrib/mom/NEWS:1.19
--- groff/contrib/mom/NEWS:1.18 Sat May 14 07:07:12 2005
+++ groff/contrib/mom/NEWS Sat Jan 14 08:22:41 2006
@@ -1,3 +1,15 @@
+Release 1.3-b
+-------------
+Bug fix release. SMARTQUOTES has been smartened; miscellaneous
+glitches in PRINTSTYLE TYPEWRITE fixed (see BUGS). Primarily
+corrects inconsistencies and bugs with the margin notes routines.
+
+Release 1.3-a
+-------------
+Bug fixes: First baseline of type wasn't going where it was supposed
+to when the docheader was turned off; fixes to errors in html
+formattting of docs.
+
Release 1.3
-----------
Index: groff/contrib/mom/copyright
diff -u groff/contrib/mom/copyright:1.4 groff/contrib/mom/copyright:1.5
--- groff/contrib/mom/copyright:1.4 Sat May 14 07:07:12 2005
+++ groff/contrib/mom/copyright Sat Jan 14 08:22:41 2006
@@ -1,10 +1,9 @@
AUTHOR
------
-Peter Schaffter (address@hidden) (address@hidden)
-320 Gordon St.
-Fergus, Ontario
-CANADA
-N1M 2W3
+Peter Schaffter (address@hidden) (address@hidden) (address@hidden)
+3-281, rue de Cannes
+Gatineau (QC)
+J8T 8B9
========================================================================
Index: groff/contrib/mom/momdoc/docelement.html
diff -u groff/contrib/mom/momdoc/docelement.html:1.16
groff/contrib/mom/momdoc/docelement.html:1.17
--- groff/contrib/mom/momdoc/docelement.html:1.16 Sun Aug 7 08:56:38 2005
+++ groff/contrib/mom/momdoc/docelement.html Sat Jan 14 08:22:41 2006
@@ -4203,7 +4203,7 @@
<p>
<a name="MN_INIT">
- <nobr>Macro: <strong>MN_INIT</strong> [ ragged | symmetric ] <
left-width right-width gutter family+font point-size lead colour
hyphenation-flags ></nobr>
+ <nobr>Macro: <strong>MN_INIT</strong> [ RAGGED | SYMMETRIC ] <
left-width right-width gutter family+font point-size lead colour
hyphenation-flags ></nobr>
</a>
<p>
Before you enter your first margin note, you must initialize
@@ -4215,12 +4215,12 @@
explanation of each argument follows. Any argument whose value you
want to be the default must be entered as "" (i.e. two
double-quotes with no space between them). Defaults for each
-argument are given in the explanation below.
+argument are given in the explanations below.
<p>
-<strong>[ ragged | symmetric ]</strong>
+<strong>[ RAGGED | SYMMETRIC ]</strong>
<br>
-If the first argument is "ragged", both left and right margin notes
-will be flush left. If the first argument is "symmetric", left
+If the first argument is "RAGGED", both left and right margin notes
+will be flush left. If the first argument is "SYMMETRIC", left
margin notes will be set flush <em>right</em>, and right margin
notes will be set flush <em>left</em>. The effect is something
like this:
@@ -4278,6 +4278,17 @@
argument must be PI. The default is the same family+font combo used
for a document's paragraph text.
<p>
+<strong>point size</strong>
+<br>
+The point size of type for margin notes. There is no need to append a
+<a href="definitions.html#TERMS_UNITOFMEASURE">unit of measure</a>
+to the argument;
+<a href="definitions.html#TERMS_PICASPOINTS">points</a>
+is assumed (although there's nothing preventing you from appending an
+alternative unit of measure directly to the argument). The default
+is for margin notes to use the same point size of type as is used
+in document paragraphs.
+<p>
<strong>lead</strong>
<br>
The
@@ -4324,7 +4335,7 @@
<p>
<a name="MN">
- <nobr>Macro: <strong>MN</strong> LEFT|RIGHT |
<anything></nobr>
+ <nobr>Macro: <strong>MN</strong> LEFT|RIGHT</nobr>
</a>
<p>
Once you've initialized margin notes with
Index: groff/contrib/mom/om.tmac
diff -u groff/contrib/mom/om.tmac:1.29 groff/contrib/mom/om.tmac:1.30
--- groff/contrib/mom/om.tmac:1.29 Thu Sep 15 11:41:31 2005
+++ groff/contrib/mom/om.tmac Sat Jan 14 08:22:41 2006
@@ -21,7 +21,7 @@
with groff; see the file COPYING. If not, write to the Free Software
Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-Version 1.3-b
+Version 1.3-c
-------------
Antoine de St-Exupéry asserted that elegance in engineering is
achieved not when there is nothing left to add, but when there is
@@ -47,12 +47,12 @@
\#
\# Check which version of groff is being run
.if (\n[.x]\n[.y] < 118) \
-. ab You need GNU troff version 1.18 or higher to run this version of mom.
+. ab [mom]: You need GNU troff version 1.18 or higher to run this version of
mom.
\# Check that GNU troff is being run
.if !\n[.g]=1 \
-. ab The mom macros require that you be running GNU troff.
+. ab [mom]: The mom macros require that you be running GNU troff.
.if \n(.C \
-. ab The groff mom macros do not work in compatibility mode.
+. ab [mom]: The groff mom macros do not work in compatibility mode.
\# Add supplementary styles
.sty \n[.fp] L \" Light Roman
.sty \n[.fp] LI \" Light Italic
@@ -3487,13 +3487,13 @@
. nr #BOLDER_UNITS 0
. nr #CONDENSE 0
. nr #EXTEND 0
-. rm IT
+. if !\\n[#ITALIC_MEANS_ITALIC] \{ .rm IT \}
. rm BD
. rm BDI
-. rm PREV
-. UNDERLINE_SLANT
-. UNDERLINE_ITALIC
-. UNDERLINE_QUOTES
+. if !\\n[#ITALIC_MEANS_ITALIC] \{ .rm PREV \}
+. if !\\n[#SLANT_MEANS_SLANT] \{ .UNDERLINE_SLANT \}
+. if !\\n[#ITALIC_MEANS_ITALIC] \{ .UNDERLINE_ITALIC \}
+. if !\\n[#UNDERLINE_QUOTES] \{ .UNDERLINE_QUOTES \}
. nr #IGNORE_COLUMNS 1
. char \(em --
. tr `'
@@ -7954,7 +7954,7 @@
. nr #Q_OFFSET \\n[#L_MARGIN]+(\\n[#PP_INDENT]*\\n[#Q_OFFSET_VALUE])
. po \\n[#Q_OFFSET]u
. \}
-. ALD \\n[#Q_LEAD_DIFF]u
+. if \\n[#PRINTSTYLE]=2 \{ .ALD \\n[#Q_LEAD_DIFF]u \}
. \}
. if \\n[#EPIGRAPH] \{\
. ie \\n[#TAB_ACTIVE] \{ .TAB \\n[#CURRENT_TAB] \}
@@ -8011,6 +8011,7 @@
. if \\n[#SLANT_ON] \{\
. if \\n[#UNDERLINE_SLANT] \{ .UNDERLINE \}
. \}
+. if \\n[#UNDERLINE_ITALIC] \{ .UNDERLINE \}
. \}
. rr #FROM_HEADER
. rr #DEFER_SPACE_ADDED
@@ -9368,6 +9369,12 @@
. \}
. nr #Q_PP +1
. \}
+\# This takes care of multi-paragraph dialogue, where each para
+\# is introduced by an open quote whereas the previous para has
+\# no close quote.
+. if \\n[#OPEN_CLOSE]=1 \{\
+. nr #OPEN_CLOSE 0
+. \}
. nr #PP_ACTIVE 1
.END
\#
@@ -14246,7 +14253,7 @@
. nr #SPACE_REMAINING 0
. nr #FN_DEPTH 0
. nr #VARIABLE_FOOTER_POS 0-\\n[#B_MARGIN]u
-. wh 20i FOOTER
+. wh \\n(.pu FOOTER
. wh -(\\n[#FN_OVERFLOW_TRAP_POS]u) FN_OVERFLOW_TRAP
. ch FOOTER -\\n[#B_MARGIN]u
. \}
@@ -15550,15 +15557,23 @@
\#
.MAC MN_INIT END
. if !'\\$1'rerun' \{\
-. ds $MN-arg1 \\$1
-. ds $MN-arg2 \\$2
-. ds $MN-arg3 \\$3
-. ds $MN-arg4 \\$4
-. ds $MN-arg5 \\$5
-. ds $MN-arg6 \\$6
-. ds $MN-arg7 \\$7
-. ds $MN-arg8 \\$8
-. ds $MN-arg9 \\$9
+. ds $MN-arg1 \\$1
+. ie '\\$2'' .ds $MN-arg2 @
+. el .ds $MN-arg2 \\$2
+. ie '\\$3'' .ds $MN-arg3 @
+. el .ds $MN-arg3 \\$3
+. ie '\\$4'' .ds $MN-arg4 @
+. el .ds $MN-arg4 \\$4
+. ie '\\$5'' .ds $MN-arg5 @
+. el .ds $MN-arg5 \\$5
+. ie '\\$6'' .ds $MN-arg6 @
+. el .ds $MN-arg6 \\$6
+. ie '\\$7'' .ds $MN-arg7 @
+. el .ds $MN-arg7 \\$7
+. ie '\\$8'' .ds $MN-arg8 @
+. el .ds $MN-arg8 \\$8
+. ie '\\$9'' .ds $MN-arg9 @
+. el .ds $MN-arg9 \\$9
. \}
. ie \\n[#START_FOR_MNinit]=0 \{\
. nr #MNinit_DEFERRED 1
@@ -15636,7 +15651,6 @@
. ab MN: Left margin too small for requested margin notes settings.
. if (\\n[MN-left-width] < 1n) \
. ab MN: Left margin notes width too small (<1n).
-.
. ie \B'\\$2' \{\
. nr MN-right-width (n;\\$2)
. nr MN-right-start (\\n[.o] + \\n[.l] + \\n[MN-sep])
@@ -15738,9 +15752,15 @@
\#
.de MN
.ds MN-dir \\$1
+.if !'\\$1'LEFT' \{\
+. if !'\\$1'RIGHT' \{\
+. MN_QUIT
+. return
+. \}
+.\}
.if \\n[#COLUMNS]=1 \{\
. if \\n[#NUM_COLS]>2 \{\
-. tm MN: More than two columns. Ignoring margin notes.
+. tm [mom]: Macro MN: More than two columns. Ignoring margin notes.
. return
. \}
. if !\\n[#NUM_COLS]=1 \{\
@@ -15749,12 +15769,12 @@
. \}
.\}
. if !\\n[#MNinit]=1 \{\
-. tm MN: You must set parameters with MN_INIT before using MN.
+. tm [mom]: Macro MN: You must set parameters with MN_INIT before using MN.
. ab Aborting
. \}
. ie !'\\$1'' \{\
. if \\n[MN-active] \{\
-. tm MN: Can't handle nested margin notes.
+. tm [mom]: Macro MN: Can't handle nested margin notes.
. return
. \}
. nr MN-active 1
@@ -15773,6 +15793,15 @@
. di MN-div-\\*[MN-curr]
. \}
. el \{\
+. MN_QUIT
+. \}
+..
+\#
+\# MN_QUIT
+\# -------
+\# Utility macro to handle .MN OFF | QUIT | X etc
+\#
+.de MN_QUIT
. if \\n[MN-active] \{\
. br
. di
@@ -15780,7 +15809,6 @@
. ev
. \}
. nr MN-active 0
-. \}
..
\#
\# MNtop
@@ -15790,6 +15818,8 @@
. nr MN-left 0
. nr MN-right 0
. nr MN-active 0
+. rr MN-shifted
+. ch FOOTER -\\n[#B_MARGIN]u
..
\#
\# MNbottom-left
@@ -15804,7 +15834,7 @@
. mk MN-curr-pos
. if \\n[MN-active] \{\
. di
-. tm MN: Margin note finished by new page. Ignored.
+. tm [mom]: Macro MN: Margin note finished by new page. Ignored.
. \}
. po \\n[MN-left-start]u
. ev MNbottom-left-env
@@ -15818,23 +15848,31 @@
. sp 1v
. SHIM
. if \\n[#SHIM]u>\\n[MN-spacing] .sp -(1v+\\n[MN-lead-adj]u)
-. tm MN: Warning: Left margin note #\\n[MN-curr] on page \\n[#P] shifted
down.
+. tm [mom]: Macro MN: Warning: Left margin note #\\n[MN-curr] on page
\\n[#P] shifted down.
. \}
.\" If last margin note doesn't fit
-. if ( (\\n(nl+\\n[MN-div-l-\\n[MN-curr]-depth]) >
(\\n(.p+\\n[#VARIABLE_FOOTER_POS]) ) \{\
+. if ( (\\n(nl+\\n[MN-div-l-\\n[MN-curr]-depth]) >
(\\n(.p+\\n[#VARIABLE_FOOTER_POS]-1) ) \{\
. if \\n[MN-shifted]=1 \{\
. sp -(1v+\\n[#SHIM]u)
. rm MN-div-l-\\n[MN-curr]
-. tm1 "[mom]: No room to start left margin note #\\n[MN-curr] on page
\\n[#P] on page \\n[#P].
+. tm1 "[mom]: No room to start left margin note #\\n[MN-curr] on page
\\n[#P].
. tm1 " Ignoring margin note.
. rr MN-shifted
. \}
. nr #no-repeat-MN-left 1
. nr #OVERFLOW_LEFT 1
-. wh \\n[.p]u+\\n[#VARIABLE_FOOTER_POS]u-1u MN_OVERFLOW_TRAP
+. ie \\n[#FN_COUNT]=0 \{\
+. ch FOOTER \\n(.pu
+. wh \\n[#VARIABLE_FOOTER_POS]u+\\n[MN-lead-adj]u+1u MN_OVERFLOW_TRAP
+. \}
+. el \{\
+. wh \\n[.p]u+\\n[#VARIABLE_FOOTER_POS]u-1u MN_OVERFLOW_TRAP
+. \}
. vpt 1
. \}
+. nf
. MN-div-l-\\n[MN-curr]
+. fi
. br
. nr MN-last-pos \\n[nl]
.\}
@@ -15865,7 +15903,7 @@
. nr MN-shifted 1
. sp 1v
. SHIM
-. tm MN: Warning: Right margin note #\\n[MN-curr] on page \\n[#P] shifted
down.
+. tm [mom]: Macro MN: Warning: Right margin note #\\n[MN-curr] on page
\\n[#P] shifted down.
. \}
.\" If last margin note doesn't fit
. if ( (\\n(nl+\\n[MN-div-r-\\n[MN-curr]-depth]) >
(\\n(.p+\\n[#VARIABLE_FOOTER_POS]) ) \{\
@@ -15878,10 +15916,18 @@
. \}
. nr #no-repeat-MN-right 1
. nr #OVERFLOW_RIGHT 1
-. wh \\n[.p]u+\\n[#VARIABLE_FOOTER_POS]u-1u MN_OVERFLOW_TRAP
+. ie \\n[#FN_COUNT]=0 \{\
+. ch FOOTER \\n(.pu
+. wh \\n[#VARIABLE_FOOTER_POS]u+\\n[MN-lead-adj]u+1u MN_OVERFLOW_TRAP
+. \}
+. el \{\
+. wh \\n[.p]u+\\n[#VARIABLE_FOOTER_POS]u-1u MN_OVERFLOW_TRAP
+. \}
. vpt 1
. \}
+. nf
. MN-div-r-\\n[MN-curr]
+. fi
. br
. nr MN-last-pos \\n[nl]
.\}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Groff-commit] groff/contrib/mom BUGS ChangeLog NEWS copyright...,
Werner LEMBERG <=