texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: LuaTeX ligature suppression


From: Gavin D. Smith
Subject: branch master updated: LuaTeX ligature suppression
Date: Fri, 01 Nov 2024 18:22:03 -0400

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 1cc5254d02 LuaTeX ligature suppression
1cc5254d02 is described below

commit 1cc5254d025dcad4b212c9b5955406b30006eae5
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Nov 1 22:21:54 2024 +0000

    LuaTeX ligature suppression
    
    * doc/texinfo.tex (\nolig): New macro to suppress ligature
    creation in both LuaTeX and TeX.  LuaTeX diverges from the
    behaviour of TeX in that grouping characters do not suppress
    ligatures.
    (\unicodechardefs):
    Use \nolig for U+2018 and U+2019 (curly single quotes).
    
    Report from Werner Lemberg.
---
 ChangeLog       | 13 +++++++++++++
 doc/texinfo.tex | 16 +++++++++++++---
 2 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 35840ce7dc..243832b604 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2024-11-01  Gavin Smith <gavinsmith0123@gmail.com>
+
+       LuaTeX ligature suppression
+
+       * doc/texinfo.tex (\nolig): New macro to suppress ligature
+       creation in both LuaTeX and TeX.  LuaTeX diverges from the
+       behaviour of TeX in that grouping characters do not suppress
+       ligatures.
+       (\unicodechardefs):
+       Use \nolig for U+2018 and U+2019 (curly single quotes).
+
+       Report from Werner Lemberg.
+
 2024-11-01  Gavin Smith <gavinsmith0123@gmail.com>
 
        @uref line breaking
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index 05403fba2d..7b41a62ab3 100644
--- a/doc/texinfo.tex
+++ b/doc/texinfo.tex
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2024-11-01.20}
+\def\texinfoversion{2024-11-01.22}
 %
 % Copyright 1985, 1986, 1988, 1990-2024 Free Software Foundation, Inc.
 %
@@ -10523,6 +10523,16 @@ directory should work if nowhere else does.}
   \catcode"#1=\other
 }
 
+% Suppress ligature creation from adjacent characters.
+\ifx\luatexversion\thisisundefined
+  \def\nolig{{}}
+\else
+  % Braces do not suppress ligature creation in LuaTeX, e.g. in of{}fice
+  % to suppress the "ff" ligature.  Using a kern appears to be the only
+  % workaround.
+  \def\nolig{\kern0pt}
+\fi
+
 % https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_M
 % U+0000..U+007F = https://en.wikipedia.org/wiki/Basic_Latin_(Unicode_block)
 % U+0080..U+00FF = 
https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)
@@ -11140,8 +11150,8 @@ directory should work if nowhere else does.}
   % Punctuation
   \DeclareUnicodeCharacter{2013}{--}%
   \DeclareUnicodeCharacter{2014}{---}%
-  \DeclareUnicodeCharacter{2018}{\quoteleft{}}%
-  \DeclareUnicodeCharacter{2019}{\quoteright{}}%
+  \DeclareUnicodeCharacter{2018}{\quoteleft\nolig}%
+  \DeclareUnicodeCharacter{2019}{\quoteright\nolig}%
   \DeclareUnicodeCharacter{201A}{\quotesinglbase{}}%
   \DeclareUnicodeCharacter{201C}{\quotedblleft{}}%
   \DeclareUnicodeCharacter{201D}{\quotedblright{}}%



reply via email to

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