summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.phases.code.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-06-09 22:52:19 +0000
committerKarl Berry <karl@freefriends.org>2016-06-09 22:52:19 +0000
commit36d552979c032d6ef452a4ca9a2fa8a1053f85a6 (patch)
tree6b2f218b497e7fe9c4cd50b29832295d1a273c7f /Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.phases.code.tex
parent1a536214c99cadbd376fd416f36a8babec9d7a36 (diff)
chemmacros (8jun16)
git-svn-id: svn://tug.org/texlive/trunk@41327 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.phases.code.tex')
-rw-r--r--Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.phases.code.tex32
1 files changed, 19 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.phases.code.tex b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.phases.code.tex
index 38fa658a8f5..2ab75a98e14 100644
--- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.phases.code.tex
+++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.phases.code.tex
@@ -25,7 +25,7 @@
%
% The Current Maintainer of this work is Clemens Niederberger.
% --------------------------------------------------------------------------
-\ChemModule{phases}{2015/06/09 phase descriptors}
+\ChemModule{phases}{2016/05/31 phase descriptors}
\chemmacros_load_module:n {chemformula}
@@ -44,6 +44,7 @@
\NewChemMacroset {Phase} {mm}
{ \chemmacros_define_phase:Nn #1 {#2} }
+\ChemCompatibilityTo{5.6}
\cs_new_protected:Npn \chemmacros_define_phase:Nn #1#2
{
\tl_set:Nx \l__chemmacros_tmpa_tl { phase-\chemmacros_remove_backslash:N #1 }
@@ -54,6 +55,20 @@
\__chemmacros_define_phase:Nx #1
{ \exp_not:N \chemmacros_translate:n { \exp_not:V \l__chemmacros_tmpa_tl } }
}
+\EndChemCompatibility
+
+\ChemCompatibilityFrom{5.7}
+\cs_new_protected:Npn \chemmacros_define_phase:Nn #1#2
+ {
+ \tl_set:Nx \l__chemmacros_tmpa_tl { phase-\chemmacros_remove_backslash:N #1 }
+ \chemmacros_declare_translation:Vnn
+ \l__chemmacros_tmpa_tl
+ {fallback}
+ {#2}
+ \__chemmacros_define_phase:Nx #1
+ { \exp_not:N \chemmacros_translate:n { \exp_not:V \l__chemmacros_tmpa_tl } }
+ }
+\EndChemCompatibility
\cs_new_protected:Npn \__chemmacros_define_phase:Nn #1#2
{
@@ -101,30 +116,20 @@
\chemmacros_declare_translations:nn {phase-sld}
{
fallback = s ,
- English = s ,
German = f
}
\chemmacros_declare_translations:nn {phase-lqd}
{
fallback = l ,
- English = l ,
German = f\/l
}
\chemmacros_declare_translations:nn {phase-gas}
- {
- fallback = g ,
- English = g ,
- German = g
- }
+ { fallback = g }
\chemmacros_declare_translations:nn {phase-aq}
- {
- fallback = aq ,
- English = aq ,
- German = aq
- }
+ { fallback = aq }
\EndChemCompatibility
% --------------------------------------------------------------------------
@@ -132,3 +137,4 @@
2015/06/09 - first version
2016/04/27 - moved translations from lang module to phases module
+2016/05/31 - adapt to changes in `lang' module