Skip to content

charmap does not correctly handle commands with letter names #10

@rhaas80

Description

@rhaas80

In charmap.pm there are replacements like this:

chr(0x015f) => "\\cs", # ş

which use a LaTeX command \cs which does not exist (at least for me LaTeX version). Instead to get ş I have to write \c s or \c{s}. Eg:

\documentclass{article}
\begin{document}
\cs
\end{document}

results in

This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./foo.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-09-24>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
No file foo.aux.
! Undefined control sequence.
l.7 \cs

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions