Skip to content

Instantly share code, notes, and snippets.

@aminophen
Created December 21, 2017 11:08
Show Gist options
  • Save aminophen/44039ae0f78c63cca57781717ce13ec4 to your computer and use it in GitHub Desktop.
Save aminophen/44039ae0f78c63cca57781717ce13ec4 to your computer and use it in GitHub Desktop.
XeTeX: react to \uchyph=0 also for native Unicode font
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
@aminophen
Copy link
Author

@aminophen
Copy link
Author

TeX Live 2018 integrated this patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment