groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/02: Set `transparent' flag for `\[cq]. Problem reported by Da


From: Werner LEMBERG
Subject: [groff] 01/02: Set `transparent' flag for `\[cq]. Problem reported by Dave Kemper <address@hidden>.
Date: Sat, 27 Sep 2014 05:54:24 +0000

wl pushed a commit to branch master
in repository groff.

commit 54405b9a91541c29d8af05dd1dca803d7d28a0e0
Author: Werner Lemberg <address@hidden>
Date:   Sat Sep 27 06:44:11 2014 +0200

    Set `transparent' flag for `\[cq].
    Problem reported by Dave Kemper <address@hidden>.
    
    * src/roff/troff/input.cpp (init_charset_table): Do it.
    
    * doc/groff.texinfo (Sentences, Using Symbols), man/groff_diff.man:
    Document it.
---
 ChangeLog                |   10 ++++++++++
 doc/groff.texinfo        |    8 ++++++--
 man/groff_diff.man       |    2 +-
 src/roff/troff/input.cpp |    1 +
 4 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4503704..a4c92f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-09-27  Werner LEMBERG  <address@hidden>
+
+       Set `transparent' flag for `\[cq].
+       Problem reported by Dave Kemper <address@hidden>.
+
+       * src/roff/troff/input.cpp (init_charset_table): Do it.
+
+       * doc/groff.texinfo (Sentences, Using Symbols), man/groff_diff.man:
+       Document it.
+
 2014-09-25  Bernd Warken  <address@hidden>
 
        * src/roff/grog/*.pl: Program more reasonable subs (functions).
diff --git a/doc/groff.texinfo b/doc/groff.texinfo
index 55a22da..d40fd73 100644
--- a/doc/groff.texinfo
+++ b/doc/groff.texinfo
@@ -4723,6 +4723,7 @@ in @ref{Input Conventions}.)
 @cindex character, transparent
 @cindex @code{dg} glyph, at end of sentence
 @cindex @code{rq} glyph, at end of sentence
address@hidden @code{cq} glyph, at end of sentence
 @cindex @code{"}, at end of sentence
 @cindex @code{'}, at end of sentence
 @cindex @code{)}, at end of sentence
@@ -4730,7 +4731,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{"},
address@hidden'}, @samp{)}, @samp{]}, @samp{*}, @code{\[dg]}, and @code{\[rq]}.
address@hidden'}, @samp{)}, @samp{]}, @samp{*}, @code{\[dg]}, @code{\[rq]}, and
address@hidden
 
 See the @code{cflags} request in @ref{Using Symbols}, for more details.
 
@@ -9564,12 +9566,14 @@ element.  Initially symbol @samp{\[br]} has this 
property.
 @cindex @code{*}, at end of sentence
 @cindex @code{dg} glyph, at end of sentence
 @cindex @code{rq} glyph, at end of sentence
address@hidden @code{cq} glyph, at end of sentence
 An end-of-sentence character followed by any number of characters with
 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]} and @samp{\[rq]} have this property).
+and the symbols @samp{\[dg]}, @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.man b/man/groff_diff.man
index 8aee878..eacccd3 100644
--- a/man/groff_diff.man
+++ b/man/groff_diff.man
@@ -1037,7 +1037,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]
+.B \[dq]')]*\[rs][dg]\[rs][rq]\[rs][cq]
 have this property).
 .
 .IP 64
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 6ae721f..8cac424 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -6656,6 +6656,7 @@ static void init_charset_table()
   charset_table['*']->set_flags(charinfo::TRANSPARENT);
   get_charinfo(symbol("dg"))->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);
   get_charinfo(symbol("hy"))->set_flags(charinfo::BREAK_AFTER);
   get_charinfo(symbol("ul"))->set_flags(charinfo::OVERLAPS_HORIZONTALLY);



reply via email to

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