aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2020-07-11 16:19:20 +0200
committerRobert Alessi <alessi@robertalessi.net>2020-07-11 16:19:20 +0200
commitc3c014a477b2b010cd336d2ab47906295ace1661 (patch)
treee2d02184e4014c0c90c9acd01094c86acf1d9b9f
parent6d08b12fc14072c8493cff9d4a969be97eb9761c (diff)
downloadekdosis-c3c014a477b2b010cd336d2ab47906295ace1661.tar.gz
added support for polyglossia
-rw-r--r--ekdosis.dtx34
1 files changed, 29 insertions, 5 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index fe4d6d8..871fa81 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -3126,7 +3126,11 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
3126 \ltx@ifpackageloaded{babel}% 3126 \ltx@ifpackageloaded{babel}%
3127 {\noexpand\selectlanguage{\languagename}% 3127 {\noexpand\selectlanguage{\languagename}%
3128 \unexpanded\expandafter{\ekdlr@alt}}% 3128 \unexpanded\expandafter{\ekdlr@alt}}%
3129 {\unexpanded\expandafter{\ekdlr@alt}}% 3129 {\lxt@ifpackageloaded{polyglossia}%
3130 {\noexpand\seleclanguage{\languageid{bcp-47}}%
3131 \unexpanded\expandafter{\ekdlr@alt}}%
3132 {\unexpanded\expandafter{\ekdlr@alt}}%
3133 }%
3130 \ifdefined\ekdlr@post% 3134 \ifdefined\ekdlr@post%
3131 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 3135 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
3132 \else 3136 \else
@@ -3134,7 +3138,11 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
3134 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 3138 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
3135 \ltx@ifpackageloaded{babel}% 3139 \ltx@ifpackageloaded{babel}%
3136 {\noexpand\selectlanguage{\languagename}\unexpanded{#2}}{% 3140 {\noexpand\selectlanguage{\languagename}\unexpanded{#2}}{%
3141 \ltx@ifpackageloaded{polyglossia}%
3142 {\noexpand\selectlanguage{\languageid{bcp-47}}%
3137 \unexpanded{#2}}% 3143 \unexpanded{#2}}%
3144 {\unexpanded{#2}}%
3145 }%
3138 \ifdefined\ekdlr@post% 3146 \ifdefined\ekdlr@post%
3139 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 3147 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
3140 \fi 3148 \fi
@@ -3207,7 +3215,11 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
3207 \ltx@ifpackageloaded{babel}% 3215 \ltx@ifpackageloaded{babel}%
3208 {\noexpand\selectlanguage{\languagename}% 3216 {\noexpand\selectlanguage{\languagename}%
3209 \unexpanded\expandafter{\ekdlr@alt}}% 3217 \unexpanded\expandafter{\ekdlr@alt}}%
3210 {\unexpanded\expandafter{\ekdlr@alt}}% 3218 {\ltx@ifpackageloaded{polyglossia}%
3219 {\noexpand\selectlanguage{\languageid{bcp-47}}%
3220 \unexpanded\expandafter{\ekdlr@alt}}%
3221 {\unexpanded\expandafter{\ekdlr@alt}}%
3222 }%
3211 \ifdefined\ekdlr@post% 3223 \ifdefined\ekdlr@post%
3212 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 3224 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
3213 \else 3225 \else
@@ -3215,7 +3227,11 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
3215 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 3227 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
3216 \ltx@ifpackageloaded{babel}% 3228 \ltx@ifpackageloaded{babel}%
3217 {\noexpand\selectlanguage{\languagename}\unexpanded{#2}}{% 3229 {\noexpand\selectlanguage{\languagename}\unexpanded{#2}}{%
3218 \unexpanded{#2}}% 3230 \ltx@ifpackageloaded{polyglossia}%
3231 {\noexpand\selectlanguage{\languageid{bcp-47}}%
3232 \unexpanded{#2}}%
3233 {\unexpanded{#2}}%
3234 }%
3219 \ifdefined\ekdlr@post% 3235 \ifdefined\ekdlr@post%
3220 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 3236 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
3221 \fi 3237 \fi
@@ -3307,11 +3323,19 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
3307 \ltx@ifpackageloaded{babel}% 3323 \ltx@ifpackageloaded{babel}%
3308 {\noexpand\selectlanguage{\languagename}% 3324 {\noexpand\selectlanguage{\languagename}%
3309 \unexpanded\expandafter{\ekdn@lem}}% 3325 \unexpanded\expandafter{\ekdn@lem}}%
3310 {\unexpanded\expandafter{\ekdn@lem}}% 3326 {\ltx@ifpackageloaded{polyglossia}%
3327 {\noexpand\selectlanguage{\languageid{bcp-47}}%
3328 \unexpanded\expandafter{\ekdn@lem}}%
3329 {\unexpanded\expandafter{\ekdn@lem}}%
3330 }%
3311 \unexpanded\expandafter{\ekdn@sep}\else\fi% 3331 \unexpanded\expandafter{\ekdn@sep}\else\fi%
3312 \ltx@ifpackageloaded{babel}% 3332 \ltx@ifpackageloaded{babel}%
3313 {\noexpand\selectlanguage{\languagename}\unexpanded{#2}}{% 3333 {\noexpand\selectlanguage{\languagename}\unexpanded{#2}}{%
3314 \unexpanded{#2}}}}% 3334 \ltx@ifpackageloaded{polyglossia}%
3335 {\noexpand\selectlanguage{\languageid{bcp-47}}%
3336 \unexpanded{#2}}%
3337 {\unexpanded{#2}}%
3338 }}}%
3315 \ifekd@mapps% 3339 \ifekd@mapps%
3316 \unconditional@appin[\ekdan@type]{\note@contents}% 3340 \unconditional@appin[\ekdan@type]{\note@contents}%
3317 \else% 3341 \else%