[issue:318] italian.ldf error on platex

Hironobu Yamashita h.y.acetaminophen @ gmail.com
2019年 11月 16日 (土) 01:30:18 JST


Hi Claudio,

Thanks for maintaining the package babel-italian.
But I noticed that \usepackage[italian]{babel} cannot
be used on platex and uplatex after TeX Live 2018:

MWE:
    \documentclass{article}
    \usepackage[italian]{babel}
    \begin{document}
    a
    \end{document}

Error:
    ! Bad character code (8217).
    <to be read again>
                       =
    l.3 \begin{document}

    ?

The problem lies in \lccode"2019, as
  * pTeX and upTeX are not Unicode-compliant, so \lccode allows
    only 0--255.
  * pdfTeX is not Unicode-compilant either, so \lccode should never
    work for 256 or larger code (silently ignored without error?)

Therefore, I propose the patch attached;
here I used \Umathcode for detecting truely
Unicode-compilant engines (= LuaTeX and XeTeX).

Best regards,
Hironobu


---
Hironobu YAMASHITA
GitHub: https://github.com/aminophen
Japanese TeX Development Community https://texjp.org/

-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: 20191115_italian.ldf.patch
型:         application/octet-stream
サイズ:     608 バイト
説明:       無し
URL:        <http://ml.texjp.org/pipermail/issue/attachments/20191116/3641864e/attachment.obj>


issue メーリングリストの案内