Created
December 21, 2017 11:08
-
-
Save aminophen/44039ae0f78c63cca57781717ce13ec4 to your computer and use it in GitHub Desktop.
XeTeX: react to \uchyph=0 also for native Unicode font
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: source/texk/web2c/xetexdir/xetex.web | |
=================================================================== | |
--- source/texk/web2c/xetexdir/xetex.web (revision 46102) | |
+++ source/texk/web2c/xetexdir/xetex.web (working copy) | |
@@ -20799,7 +20799,8 @@ | |
if lc_code(c) <> 0 then begin | |
hf:=native_font(s); | |
prev_s:=s; | |
- goto done2; | |
+ if (lc_code(c)=c)or(uc_hyph>0) then goto done2 | |
+ else goto done1; | |
end; | |
if c>=@"10000 then incr(l); | |
end |
TeX Live 2018 integrated this patch.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixes the issue latex3/latex2e#4. Test case: https://gist.github.com/aminophen/862a20ea5468efb54832e722bbd0df4e