groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 21/50: [docs]: Fix content and style nits.


From: G. Branden Robinson
Subject: [groff] 21/50: [docs]: Fix content and style nits.
Date: Sat, 21 May 2022 12:17:26 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 95324f53cf89a20287e15e4fdaa85eb358935afa
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue May 17 18:36:46 2022 -0500

    [docs]: Fix content and style nits.
    
    * Strictly, UTF-8 is a character encoding; Unicode is not.
    * Recast explanation of how to avoid unwanted interpretation of
      decrementation operator.
---
 doc/groff.texi  | 10 +++++-----
 man/groff.7.man |  8 +++++---
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/doc/groff.texi b/doc/groff.texi
index 2c1630af..090c8650 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -6136,8 +6136,8 @@ expedient; in GNU @code{troff} it is unnecessary (outside 
of
 compatibility mode) because delimited arguments are parsed at a different
 input level than the surrounding context.  @xref{Implementation
 Differences}.}  Some of these code points are used by GNU @code{troff}
-internally, making it non-trivial to extend the program to cover Unicode
-or other character encodings that use characters from these
+internally, making it non-trivial to extend the program to accept UTF-8
+or other encodings that use characters from these
 ranges.@footnote{Consider what happens when a C1 control
 @code{0x80}--@code{0x9F} is necessary as a continuation byte in a UTF-8
 sequence.}
@@ -6944,9 +6944,9 @@ Increment (decrement) register @var{ident} by @var{value}.
 A leading minus sign in @var{value} is always interpreted as a
 decrementation operator, not an algebraic sign.  To assign a register a
 negative value or the negated value of another register, you can use
-either of two techniques to to force GNU @code{troff} to interpret the
-assigned value as a numeric expression: enclose it in parentheses or
-subtract it from zero.
+either of two techniques to to force GNU @code{troff} to interpret
+@code{-} as a negation or minus, rather than decrementation, operator:
+enclose it with its operand(s) in parentheses.
 
 @Example
 .nr a 7
diff --git a/man/groff.7.man b/man/groff.7.man
index 77ab21ce..331fabbd 100644
--- a/man/groff.7.man
+++ b/man/groff.7.man
@@ -1466,7 +1466,9 @@ not an algebraic sign.
 .
 To assign a register a negative value or the negated value of another
 register,
-enclose the assigned expression in parentheses or subtract it from zero.
+enclose
+.squoted_char \-
+with its operand(s) in parentheses.
 .
 If a prior value does not exist
 (the register was undefined),
@@ -4464,8 +4466,8 @@ and
 Some of these code points are used by
 .I @g@troff
 internally,
-making it non-trivial to extend the program to cover Unicode or other
-character encodings that use characters from these ranges.
+making it non-trivial to extend the program to accept UTF-8 or other
+encodings that use characters from these ranges.
 .
 (Consider what happens when a C1 control
 .BR 0x80 \[en] 0x9F



reply via email to

[Prev in Thread] Current Thread [Next in Thread]