Skip to content

Commit

Permalink
Only \bbl@deactivate shorthand char if babelshorthand was true
Browse files Browse the repository at this point in the history
Otherwise we overwrite other activations (such as csquotes')

Addresses #421
  • Loading branch information
jspitz committed May 21, 2020
1 parent e9f97f8 commit af00c26
Show file tree
Hide file tree
Showing 17 changed files with 45 additions and 44 deletions.
1 change: 1 addition & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Bug fixes:
* Fix incompatibility of Marathi with Beamer.
* Correct \partname in Hindi (#416).
* Updates and improvements to Kurdish (#418).
* Only activate shorthand character if babelshorthands is true (#421).

Interface and defaults changes:

Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-afrikaans.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}

\def\noextras@afrikaans{%
\noafrikaans@shorthands%
\ifafrikaans@babelshorthands\noafrikaans@shorthands\fi%
}

\def\blockextras@afrikaans{%
Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-belarusian.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@

\def\noextras@belarusian{%
\ifcyrillic@numerals\nobelarusian@numbers\fi%
\nobelarusian@shorthands%
\ifbelarusian@babelshorthands\nobelarusian@shorthands\fi%
}

\def\blockextras@belarusian{%
Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-catalan.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
\space de~\number\year}}

\def\noextras@catalan{%
\nocatalan@shorthands%
\ifcatalan@babelshorthands\nocatalan@shorthands\fi%
}

\def\blockextras@catalan{%
Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-croatian.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
}

\def\noextras@croatian{%
\nocroatian@shorthands%
\ifcroatian@babelshorthands\nocroatian@shorthands\fi%
}

\def\blockextras@croatian{%
Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-czech.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
}

\def\noextras@czech{%
\noczech@shorthands%
\ifczech@babelshorthands\noczech@shorthands\fi%
\noczech@hyphens%
\noczech@vlna%
\ifxetex\XeTeXinterchartokenstate=0\fi%
Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-dutch.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}

\def\noextras@dutch{%
\nodutch@shorthands%
\ifdutch@babelshorthands\nodutch@shorthands\fi%
}

\def\blockextras@dutch{%
Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-finnish.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
\space\number\year}}

\def\noextras@finnish{%
\nofinnish@shorthands%
\iffinnish@babelshorthands\nofinnish@shorthands\fi%
}

\def\blockextras@finnish{%
Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-georgian.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@

\def\noextras@georgian{%
\ifgeorgian@numerals\nogeorgian@numbers\fi%
\nogeorgian@shorthands%
\ifgeorgian@babelshorthands\nogeorgian@shorthands\fi%
}

\def\blockextras@georgian{%
Expand Down
6 changes: 3 additions & 3 deletions tex/gloss-german.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,15 @@
}

\def\noextras@german{%
\nogerman@shorthands%
\ifgerman@babelshorthands\nogerman@shorthands\fi%
}

\def\blockextras@german{%
\ifgerman@babelshorthands\german@shorthands\fi
\ifgerman@babelshorthands\german@shorthands\fi%
}

\def\inlineextras@german{%
\ifgerman@babelshorthands\german@shorthands\fi
\ifgerman@babelshorthands\german@shorthands\fi%
}

\endinput
18 changes: 9 additions & 9 deletions tex/gloss-italian.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,21 @@


\def\noextras@italian{%
\lccode\string"2019=\z@
\noitalian@shorthands
\xpgit@savedvalues
\lccode\string"2019=\z@%
\ifitalian@babelshorthands\noitalian@shorthands\fi%
\xpgit@savedvalues%
}

\def\blockextras@italian{%
\lccode\string"2019=\string"2019
\clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000
\finalhyphendemerits=50000000
\ifitalian@babelshorthands\italian@shorthands\fi
\lccode\string"2019=\string"2019%
\clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000%
\finalhyphendemerits=50000000%
\ifitalian@babelshorthands\italian@shorthands\fi%
}

\def\inlineextras@italian{%
\lccode\string"2019=\string"2019
\ifitalian@babelshorthands\italian@shorthands\fi
\lccode\string"2019=\string"2019%
\ifitalian@babelshorthands\italian@shorthands\fi%
}
%%% CHANGES END %%%
\endinput
Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-mongolian.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@

\def\noextras@mongolian{%
\ifcyrillic@numerals\nomongolian@numbers\fi%
\nomongolian@shorthands%
\ifmongolian@babelshorthands\nomongolian@shorthands\fi%
}

\def\blockextras@mongolian{%
Expand Down
18 changes: 9 additions & 9 deletions tex/gloss-occitan.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,20 @@
\finalhyphendemerits=\the\finalhyphendemerits}
}
\def\noextras@occitan{%
\lccode\string"2019=\z@
\nooccitan@shorthands
\xpgoc@savedvalues
\lccode\string"2019=\z@%
\ifoccitan@babelshorthands\nooccitan@shorthands\fi%
\xpgoc@savedvalues%
}
\def\blockextras@occitan{%
\lccode\string"2019=\string"2019
\clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000
\finalhyphendemerits=50000000
\ifoccitan@babelshorthands\occitan@shorthands\fi
\lccode\string"2019=\string"2019%
\clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000%
\finalhyphendemerits=50000000%
\ifoccitan@babelshorthands\occitan@shorthands\fi%
}

\def\inlineextras@occitan{%
\lccode\string"2019=\string"2019
\ifoccitan@babelshorthands\occitan@shorthands\fi
\lccode\string"2019=\string"2019%
\ifoccitan@babelshorthands\occitan@shorthands\fi%
}
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
Expand Down
18 changes: 9 additions & 9 deletions tex/gloss-piedmontese.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,21 @@


\def\noextras@piedmontese{%
\lccode\string"2019=\z@
\nopiedmontese@shorthands
\xpgpms@savedvalues
\lccode\string"2019=\z@%
\ifpiedmontese@babelshorthands\nopiedmontese@shorthands\fi%
\xpgpms@savedvalues%
}

\def\blockextras@piedmontese{%
\lccode\string"2019=\string"2019
\clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000
\finalhyphendemerits=50000000
\ifpiedmontese@babelshorthands\piedmontese@shorthands\fi
\lccode\string"2019=\string"2019%
\clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000%
\finalhyphendemerits=50000000%
\ifpiedmontese@babelshorthands\piedmontese@shorthands\fi%
}

\def\inlineextras@piedmontese{%
\lccode\string"2019=\string"2019
\ifpiedmontese@babelshorthands\piedmontese@shorthands\fi
\lccode\string"2019=\string"2019%
\ifpiedmontese@babelshorthands\piedmontese@shorthands\fi%
}
%%% CHANGES END %%%
\endinput
Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-russian.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
\def\@seccntformat##1{\csname the##1\endcsname\quad}% = LaTeX kernel
}%
\ifcyrillic@numerals\norussian@numbers\fi%
\norussian@shorthands%
\ifrussian@babelshorthands\norussian@shorthands\fi%
}

\def\blockextras@russian{%
Expand Down
2 changes: 1 addition & 1 deletion tex/gloss-slovak.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
}

\def\noextras@slovak{%
\noslovak@shorthands%
\ifslovak@babelshorthands\noslovak@shorthands\fi%
\noslovak@hyphens%
\noslovak@vlna%
\ifxetex\XeTeXinterchartokenstate=0\fi%
Expand Down
6 changes: 3 additions & 3 deletions tex/gloss-ukrainian.ldf
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@
\def\noextras@ukrainian{%
\def\@seccntformat##1{\csname the##1\endcsname\quad}% = LaTeX kernel
\ifcyrillic@numerals\noukrainian@numbers\fi
\noukrainian@shorthands%
\ifukrainian@babelshorthands\noukrainian@shorthands\fi%
}

\def\blockextras@ukrainian{%
\ukrainian@capsformat%
\ifcyrillic@numerals\ukrainian@numbers\fi
\ifukrainian@babelshorthands\ukrainian@shorthands\fi
\ifcyrillic@numerals\ukrainian@numbers\fi%
\ifukrainian@babelshorthands\ukrainian@shorthands\fi%
}

\def\inlineextras@ukrainian{%
Expand Down

0 comments on commit af00c26

Please sign in to comment.