Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\ensureascii should not use PU encoding (from hyperref with unicode option) #30

Closed
jfbu opened this issue Sep 29, 2019 · 2 comments
Closed
Labels
🐞 bug Something isn't working

Comments

@jfbu
Copy link

jfbu commented Sep 29, 2019

Here is example

\documentclass[greek]{article}
\usepackage{babel}
%%%%\usepackage[LGR,T1]{fontenc}% from real use case but not needed for mwe
\usepackage[unicode]{hyperref}
\begin{document}
\show\ensureascii % should arguably use OT1, but uses PU which is not
                  % for typesetting to PDF

© % raises error

% \showoutput
\end{document}

The PU encoding is not intended for PDF typesetting only for bookmarks (I think). Same for PD1 when hyperref is used without option.

Should \ensureascii filter it out of candidate "ascii" encodings?

@u-fischer
Copy link
Member

There are more non-ascii/non-text encodings around that are stored in the \BabelNonASCII and \BabelNonText lists. Probably it would be better to setup a positive list \BabelASCII instead.

@jbezos
Copy link
Contributor

jbezos commented Sep 30, 2019

LGR and its non-LICR encoding, you know, Almost every issue involving \ensureascii is related to LGR. Maybe @u-fischer is right and a positive list is better (or even a combination of both).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants