groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/02: Mark \[dd] as transparent at end of sentence.


From: G. Branden Robinson
Subject: [groff] 01/02: Mark \[dd] as transparent at end of sentence.
Date: Fri, 17 Jan 2020 10:24:36 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit fe573546753df07e94d77303d967899cc61d4690
Author: Dave Kemper <address@hidden>
AuthorDate: Sat Jan 18 00:57:19 2020 +1100

    Mark \[dd] as transparent at end of sentence.
    
    * src/roff/troff/input.cpp: Mark \[dd] character (double dagger)
      as transparent for purposes of end-of-sentence recognition.
    
    * doc/groff.texi:
    * man/groff_diff.7.man: Document this.
    
    Fixes <https://savannah.gnu.org/bugs/?57546>.
    
    Signed-off-by: G. Branden Robinson <address@hidden>
---
 ChangeLog                | 11 +++++++++++
 doc/groff.texi           | 10 ++++++----
 man/groff_diff.7.man     |  2 +-
 src/roff/troff/input.cpp |  1 +
 4 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 92b560b..4b9dca2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2020-01-18  G. Branden Robinson <address@hidden>
+
+       * src/roff/troff/input.cpp: Mark \[dd] character (double dagger)
+       as transparent for purposes of end-of-sentence recognition.
+
+       * doc/groff.texi:
+       * man/groff_diff.7.man: Document this.
+
+       Report and patch by Dave Kemper <address@hidden>.
+       Fixes <https://savannah.gnu.org/bugs/?57546>.
+
 2020-01-17  G. Branden Robinson <address@hidden>
 
        * src/preproc/refer/refer.1.man:
diff --git a/doc/groff.texi b/doc/groff.texi
index 3ee915f..54d392e 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -4376,6 +4376,7 @@ in @ref{Input Conventions}.)
 @cindex transparent characters
 @cindex character, transparent
 @cindex @code{dg} glyph, at end of sentence
+@cindex @code{dd} glyph, at end of sentence
 @cindex @code{rq} glyph, at end of sentence
 @cindex @code{cq} glyph, at end of sentence
 @cindex @code{"}, at end of sentence
@@ -4385,8 +4386,8 @@ in @ref{Input Conventions}.)
 @cindex @code{*}, at end of sentence
 In addition, the following characters and symbols are treated
 transparently while handling end-of-sentence characters: @samp{"},
-@samp{'}, @samp{)}, @samp{]}, @samp{*}, @code{\[dg]}, @code{\[rq]}, and
-@code{\[cq]}.
+@samp{'}, @samp{)}, @samp{]}, @samp{*}, @code{\[dg]}, @code{\[dd]},
+@code{\[rq]}, and @code{\[cq]}.
 
 See the @code{cflags} request in @ref{Using Symbols}, for more details.
 
@@ -9291,6 +9292,7 @@ element.  Initially symbol @samp{\[br]} has this property.
 @cindex @code{]}, at end of sentence
 @cindex @code{*}, at end of sentence
 @cindex @code{dg} glyph, at end of sentence
+@cindex @code{dd} glyph, at end of sentence
 @cindex @code{rq} glyph, at end of sentence
 @cindex @code{cq} glyph, at end of sentence
 An end-of-sentence character followed by any number of characters with
@@ -9298,8 +9300,8 @@ this property is treated as the end of a sentence if 
followed by a
 newline or two spaces; in other words the character is @dfn{transparent}
 for the purposes of end-of-sentence recognition -- this is the same as
 having a zero space factor in @TeX{} (initially characters @samp{"')]*}
-and the symbols @samp{\[dg]}, @samp{\[rq]}, and @samp{\[cq]} have this
-property).
+and the symbols @samp{\[dg]}, @samp{\[dd]}, @samp{\[rq]}, and
+@samp{\[cq]} have this property).
 
 @item 64
 Ignore hyphenation code values of the surrounding characters.  Use this
diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
index 8843dde..366e8a1 100644
--- a/man/groff_diff.7.man
+++ b/man/groff_diff.7.man
@@ -1023,7 +1023,7 @@ this property is treated as the end of a sentence if 
followed by a
 newline or two spaces; in other words the character is transparent for
 the purposes of end-of-sentence recognition; this is the same as having
 a zero space factor in \*[tx] (initially characters
-.B \[dq]')]*\[rs][dg]\[rs][rq]\[rs][cq]
+.B \[dq]')]*\[rs][dg]\[rs][dd]\[rs][rq]\[rs][cq]
 have this property).
 .
 .IP 64
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 188a4b7..8a642ba 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -6863,6 +6863,7 @@ static void init_charset_table()
   charset_table[']']->set_flags(charinfo::TRANSPARENT);
   charset_table['*']->set_flags(charinfo::TRANSPARENT);
   get_charinfo(symbol("dg"))->set_flags(charinfo::TRANSPARENT);
+  get_charinfo(symbol("dd"))->set_flags(charinfo::TRANSPARENT);
   get_charinfo(symbol("rq"))->set_flags(charinfo::TRANSPARENT);
   get_charinfo(symbol("cq"))->set_flags(charinfo::TRANSPARENT);
   get_charinfo(symbol("em"))->set_flags(charinfo::BREAK_AFTER);



reply via email to

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