Debian Codegraph @

texmf-dist/tex/generic/tex4ht/polyglossia-hooks.4ht

raw
1 % polyglossia-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex
2 % Copyright 2020 TeX Users Group
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either
6 % version 1.3c of this license or (at your option) any
7 % later version. The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3c or later is part of all distributions
10 % of LaTeX version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status "maintained".
13 %
14 % The Current Maintainer of this work
15 % is the TeX4ht Project <http://tug.org/tex4ht>.
16 %
17 % If you modify this program, changing the
18 % version identification would be appreciated.
19 \immediate\write-1{version 2020-10-17-13:53}
20
21 \ExplSyntaxOn
22 \:AtEndOfPackage{
23 \ifdefined\orig_polyglossia@keys_define_lang:n\else
24 \cs_set_eq:NN\orig_polyglossia@keys_define_lang:n\polyglossia@keys_define_lang:n
25 %\let\orig_polyglossia@keys_define_lang:n\polyglossia@keys_define_lang:n
26 \cs_set_protected:Npn \polyglossia@keys_define_lang:n #1 {
27 \orig_polyglossia@keys_define_lang:n{#1}
28 \keys_define:nn {polyglossia}{
29 #1 / direction
30 . code:n = {},
31 #1 / script
32 . code:n = {\ifdefined\XeTeXversion
33 \edef\:tempscript{\str_uppercase:f{\tl_head:n {#1}}\tl_tail:n{#1}}
34 \xeuniuseblock{#1}
35 \expandafter\xeuniuseblock\expandafter{\:tempscript}
36 \fi},
37 }
38 }
39 \def\RequireBidi{}%
40 \fi
41 }
42 \ExplSyntaxOff
43