[XeTeX] latin-1 encoded characters in commented out parts trigger log warnings

David Carlisle d.p.carlisle at gmail.com
Mon Feb 22 10:02:11 CET 2021


On Mon, 22 Feb 2021 at 01:28, Ross Moore <ross.moore at mq.edu.au> wrote:

> Hi Jonathan, and others.
>
>
> There’s actually a pretty easy fix, at least for XeLaTeX.
> The package contains 2 files only:   xstring.sty  and  xstring.tex .
> The .sty is just a 1-liner to load the .tex .
>
> It could be beefed up with:
>
>  \RequirePackage{ifxetex}     %   is this still the best package for
>  \ifxetex   ?
> \ifxetex
>   \XeTeXdefaultencoding "iso-8859-1"
> \input{xstring.tex}
>   \XeTeXdefaultencoding "utf8"
> \else
>  \input{xstring.tex}
> \fi
>
>
That would sort of work but be a suboptimal fix, it imposes a run-time test
on everyone just to save the file in a legacy encoding when saving the file
as
utf-8 (or as ascii with accents shown as commands) has no run time cost and
places the file in the default text encoding used by almost all current
systems.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20210222/e39e14a4/attachment.html>


More information about the XeTeX mailing list.