diff options
author | Karl Berry <karl@freefriends.org> | 2021-10-17 20:51:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-10-17 20:51:10 +0000 |
commit | 29116173aae7aa9682c5eb2be190b680b62342fd (patch) | |
tree | 8b77f877edd7634f085c0ac84a31b3d5583464e2 /Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def | |
parent | 77079b6394ae3a4db8618c08200cb6724cdd2f23 (diff) |
l3 (17oct21)
git-svn-id: svn://tug.org/texlive/trunk@60790 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def | 49 |
1 files changed, 37 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def b/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def index 9f74df6ce76..28afd4cba32 100644 --- a/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def +++ b/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def @@ -26,7 +26,7 @@ %% %% File: l3backend-basics.dtx \ProvidesExplFile - {l3backend-xetex.def}{2021-10-12}{} + {l3backend-xetex.def}{2021-10-17}{} {L3 backend support: XeTeX} \cs_if_exist:NTF \__kernel_dependency_version_check:nn { @@ -195,6 +195,32 @@ \cs_gset_protected:Npn \__color_backend_reset: { \__kernel_backend_literal:n { pdf: ec } } } +\prop_new:N \g__color_backend_colorant_prop +\cs_new:Npx \__color_backend_devicen_colorants:n #1 + { + \exp_not:N \tl_if_blank:nF {#1} + { + \c_space_tl + << ~ + /Colorants ~ + << ~ + \exp_not:N \__color_backend_devicen_colorants:w #1 ~ + \exp_not:N \q_recursion_tail \c_space_tl + \exp_not:N \q_recursion_stop + >> ~ + >> + } + } +\cs_new:Npn \__color_backend_devicen_colorants:w #1 ~ + { + \quark_if_recursion_tail_stop:n {#1} + \prop_if_in:NnT \g__color_backend_colorant_prop {#1} + { + #1 ~ + \prop_item:Nn \g__color_backend_colorant_prop {#1} ~ + } + \__color_backend_devicen_colorants:w + } \cs_new_protected:Npn \__color_backend_select_separation:nn #1#2 { \__color_backend_select:nn { /#1 ~ cs ~ #2 ~ scn } { /#1 ~ CS ~ #2 ~ SCN } } \cs_new_eq:NN \__color_backend_select_devicen:nn \__color_backend_select_separation:nn @@ -208,15 +234,11 @@ /C0 ~ [#4] ~ /C1 ~ [#5] /N ~ 1 } - \__color_backend_separation_init:n - { - /Separation ~ - / \str_convert_pdfname:n {#1} ~ #2 ~ - \pdf_object_ref_last: - } + \exp_args:Nx \__color_backend_separation_init:nn + { \str_convert_pdfname:n {#1} } {#2} \bool_lazy_and:nnT { \cs_if_exist_p:N \pdfmanagement_if_active_p: } - { \pdfmanagement_if_active_p:} + { \pdfmanagement_if_active_p: } { \use:x { @@ -227,9 +249,12 @@ } } } -\cs_new_protected:Npn \__color_backend_separation_init:n #1 +\cs_new_protected:Npn \__color_backend_separation_init:nn #1#2 { - \pdf_object_unnamed_write:nx { array } {#1} + \pdf_object_unnamed_write:nx { array } + { /Separation /#1 ~ #2 ~ \pdf_object_ref_last: } + \prop_gput:Nnx \g__color_backend_colorant_prop { /#1 } + { \pdf_object_ref_last: } } \cs_new_protected:Npn \__color_backend_separation_init_CIELAB:nnn #1#2#3 { @@ -277,12 +302,13 @@ } { {#3} } } - \__color_backend_separation_init:n + \pdf_object_unnamed_write:nx { array } { /DeviceN ~ [ ~ #1 ~ ] ~ #2 ~ \pdf_object_ref_last: + \__color_backend_devicen_colorants:n {#1} } \bool_lazy_and:nnT { \cs_if_exist_p:N \pdfmanagement_if_active_p: } @@ -303,7 +329,6 @@ \tl_if_blank:nF {#2} { \__color_backend_devicen_init:w #2 \s__color_stop } } -\cs_new_eq:NN \__color_backend_devicen_init:n \__color_backend_separation_init:n \int_compare:nNnT \c__kernel_sys_dvipdfmx_version_int < { 20201111 } { \cs_gset_protected:Npn \__color_backend_select_separation:nn #1#2 { } |