groff-commit
[Top][All Lists]
Advanced

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

[groff] 04/08: groff_char(7): Clarify NFD discussion.


From: G. Branden Robinson
Subject: [groff] 04/08: groff_char(7): Clarify NFD discussion.
Date: Thu, 8 Oct 2020 11:19:25 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 1455bf9af0bd401bec52c4223dbf701152d96935
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 9 01:40:46 2020 +1100

    groff_char(7): Clarify NFD discussion.
    
    Clarify that GNU troff (the formatter) requires Unicode special
    character escapes to be in Normalization Form D.  Give examples of 3
    ways that work to input "café", and one that doesn't, using a
    non-NFD-compliant Unicode special character escape.
    
    Thanks to Dave Kemper for the discussion.
    
    Fixes item #3 in Savannah #57618.
---
 man/groff_char.7.man | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/man/groff_char.7.man b/man/groff_char.7.man
index f1a27e4..8ec6fd9 100644
--- a/man/groff_char.7.man
+++ b/man/groff_char.7.man
@@ -701,12 +701,23 @@ producing \[lq]\[u02DA]\[rq].
 .
 .P
 Unicode code points can be composed as well;
-in fact,
-.I groff
+when they are,
+.I @g@troff
 requires NFD
 (Normalization Form D),
 where all Unicode glyphs are maximally decomposed.
 .
+Thus,
+.I @g@troff
+accepts
+.RB \[lq]caf \[rs][\[aq]e] \[rq],
+.RB \[lq]caf \[rs][e\~aa] \[rq],
+and
+.RB \[lq]caf \[rs][u0065_0301] \[rq],
+but not
+.RB \[lq]caf \[rs][u00e9] \[rq],
+as ways to input \[lq]caf\['e]\[rq].
+.
 .
 .TP
 .BI \[rs][u base-glyph\c



reply via email to

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