diff options
author | Karl Berry <karl@freefriends.org> | 2021-03-18 21:12:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-03-18 21:12:52 +0000 |
commit | 8f60c584b2c1e5e39516a1998602d1f79a720dfe (patch) | |
tree | 5dc5c053c3ac8f79fe33cadf9c2eb2c8521de9ce /Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx | |
parent | ebebd4e205544738045ebd45e68d94696e79637e (diff) |
pdfmanagement-testphase (18mar21) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2020.0@58520 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx index d1ded1659b8..60d60d184ed 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx @@ -53,7 +53,7 @@ % }^^A % } % -% \date{Version 0.95b, released 2021-03-07} +% \date{Version 0.95c, released 2021-03-17} % % \maketitle % \begin{documentation} @@ -68,13 +68,20 @@ % \cs{pdf_name_from_unicode_e:n} \Arg{content} % \end{syntax} % This converts \meta{content} to a format suitable for a PDF Name. -% It will first expand the content with \cs{text_expand:n} and +% The output depends on the backend: For almost all backends +% it will first expand the content with \cs{text_expand:n} and % then escape it in the way needed in a PDF Name with % \cs{str_convert_pdfname:e}, and at last prepend a slash before. % Typically such names use only ascii, % but non-ascii is supported, but should be utf8 encoded. For example\\ % |\pdf_name_from_unicode_e:n {A~B\c_percent_str C\c_hash_str D€}}|\\ % will output |/A#20B#25C#23D#E2#82#AC|. +% +% With dvips it will expand the content with \cs{text_expand:n} and then wrap it +% in a |cvn| operation (\enquote{convert to name}). +% So the example above will output |(A B%C#D€) cvn| to +% the postscript. The content should not contain unbalanced parentheses with dvips. +% % \end{function} % \begin{function}[added=2020-07-04] % {\pdf_string_from_unicode:nnN} @@ -208,7 +215,7 @@ % % \begin{macrocode} %<*header> -\ProvidesExplPackage {l3pdftools} {2021-03-07} {0.95b} +\ProvidesExplPackage{l3pdftools}{2021-03-17}{0.95c} {candidate commands for l3pdf---LaTeX PDF management testphase bundle} %</header> % \end{macrocode} @@ -224,7 +231,7 @@ \cs_new:Npn \pdf_name_from_unicode_e:n #1 { - / \str_convert_pdfname:e { \text_expand:n { #1 } } + \__kernel_pdf_name_from_unicode_e:n { #1 } } \cs_generate_variant:Nn \pdf_name_from_unicode_e:n {V} |