Skip to content

Commit

Permalink
Fix XeTeX/babel-french space issue with \textnohyphenation (plk#979)
Browse files Browse the repository at this point in the history
Big thanks to Ulrike Fischer for the workaround in
https://tex.stackexchange.com/a/544914/

This only fixes \textnohyphenation, the switch \nohyphenation is
not fixed.
  • Loading branch information
moewew committed May 21, 2020
1 parent b1fc2d3 commit cd0cccf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tex/latex/biblatex/biblatex.sty
Original file line number Diff line number Diff line change
Expand Up @@ -2153,8 +2153,15 @@
\providerobustcmd*{\nohyphenation}{%
\language\blx@langwohyphens}
\providerobustcmd*{\textnohyphenation}[1]{%
\bgroup\nohyphenation#1\egroup}
% work around odd XeTeX/babel-french behaviour
% https://github.com/plk/biblatex/issues/979
% fix by Ulrike Fischer
% https://tex.stackexchange.com/a/544914/
\ifundef\XeTeXrevision
{\providerobustcmd*{\textnohyphenation}[1]{%
\bgroup\nohyphenation#1\egroup}}
{\providerobustcmd*{\textnohyphenation}[1]{%
\bgroup\nohyphenation#1\egroup^^^^200b}}
\blx@regimcs{%
\setpunctfont \resetpunctfont \ifcapital \autocap \ifpunctmark
Expand Down

0 comments on commit cd0cccf

Please sign in to comment.