Re: foreign letter in text
Jim Diamond <[email protected]> Mon, 22 Apr 2024 09:39:02 -0300
| Newsgroups | gmane.comp.tex.pdftex |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Apr 21, 2024 at 19:42 (+0000), Peter Selinger wrote:
> If you're on a unix-like system, the following command will find all
> lines with non-ASCII characters in one or more files:
> LC_ALL=utf8 egrep -n '[^ -~]' file.tex
That falsely reports lines with tab characters. This fixes that problem
(at least in shells which accept $'...' syntax)
LC_ALL=utf8 egrep -n $'[^ -~]' file.tex
(Although my system complains
warning: setlocale: LC_ALL: cannot change locale (utf8)
so maybe a bit more UTF magic is desired anyway. Or maybe my system needs
work.)
Jim