Re: foreign letter in text

Peter Selinger <[email protected]> Sun, 21 Apr 2024 19:42:07 +0000
Newsgroups gmane.comp.tex.pdftex
Message-ID <YQXPR01MB2551974EF83496BFA93F0021EA132@YQXPR01MB2551.CANPRD01.PROD.OUTLOOK.COM>
--_000_YQXPR01MB2551974EF83496BFA93F0021EA132YQXPR01MB2551CANP_
Content-Type: text/plain; charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

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=3Dutf8 egrep -n '[^ -~]' file.tex

-- Peter

________________________________
From: pdftex <pdftex-bounces+selinger=3Dmathstat.dal.ca-WUdSmCIlby8@public.gmane.org> on behalf =
of David Carlisle via pdftex <[email protected]>
Sent: April 21, 2024 4:01 PM
To: [email protected] <[email protected]>
Subject: Re: [pdftex] foreign letter in text


On 21/04/2024 19:53, Aleks Kleyn wrote:
>
> When I prepare text in English, I usually write it on Russian and then
> translate it into English. But sometimes these operations for different
> reason are separated in time. Initially pdflatex printed in log which are
> not English. It was helpful to locate such letters and finish text. Now
> pdflatex prints some blank symbol instead of foreign letter. And how I ca=
n
> locate now foreign letter in text that has about 20 files?
>
> Aleks Kleyn
>
>
As you provided no example it is hard to know what you have done but you
should never get no output with no warning.


For example this document with (I hope:-) one Russian word left in an
English paragraph



\documentclass{article}

\begin{document}

Some English  with a =F2=D5=D3=D3=CB=C9=CA word

\end{document}


Produces the error


! LaTeX Error: Unicode character =F2 (U+0420)
                not set up for use with LaTeX.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
  ...

l.5 Some English  with a =F2
                            =D5=D3=D3=CB=C9=CA word
?


Which as you see, higlights the exact location of the Cyrillic text.


David




Disclaimer

The Numerical Algorithms Group Ltd is a company registered in England and W=
ales with company number 1249803. The registered office is: 30 St. Giles, O=
xford, OX1 3LE, United Kingdom. Please see our Privacy Notice <https://www.=
nag.com/content/privacy-notice> for information on how we process personal =
data and for details of how to stop or limit communications from us.

This e-mail has been scanned for all viruses and malware by Microsoft Excha=
nge Online (EOP)


--_000_YQXPR01MB2551974EF83496BFA93F0021EA132YQXPR01MB2551CANP_
Content-Type: text/html; charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dkoi8-r">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
If you're on a unix-like system, the following command will find all lines =
with non-ASCII characters in one or more files:</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
LC_ALL=3Dutf8 egrep -n '[^ -~]' file.tex</div>
<div id=3D"appendonsend"></div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
-- Peter</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<hr style=3D"display: inline-block; width: 98%;">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><span style=3D"font-family: Calibri, =
sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b>&nbsp;pdftex=
 &lt;pdftex-bounces+selinger=3Dmathstat.dal.ca-WUdSmCIlby8@public.gmane.org&gt; on behalf of Dav=
id Carlisle via pdftex &lt;[email protected]&gt;<br>
<b>Sent:</b>&nbsp;April 21, 2024 4:01 PM<br>
<b>To:</b>&nbsp;[email protected] &lt;[email protected]&gt;<br>
<b>Subject:</b>&nbsp;Re: [pdftex] foreign letter in text</span>
<div class=3D"elementToProof" style=3D"font-size: 11pt;"><br>
</div>
<div class=3D"elementToProof" style=3D"font-size: 11pt;"><br>
On 21/04/2024 19:53, Aleks Kleyn wrote:<br>
&gt;<br>
&gt; When I prepare text in English, I usually write it on Russian and then=
<br>
&gt; translate it into English. But sometimes these operations for differen=
t<br>
&gt; reason are separated in time. Initially pdflatex printed in log which =
are<br>
&gt; not English. It was helpful to locate such letters and finish text. No=
w<br>
&gt; pdflatex prints some blank symbol instead of foreign letter. And how I=
 can<br>
&gt; locate now foreign letter in text that has about 20 files?<br>
&gt;<br>
&gt; Aleks Kleyn<br>
&gt;<br>
&gt;<br>
As you provided no example it is hard to know what you have done but you<br=
>
should never get no output with no warning.<br>
<br>
<br>
For example this document with (I hope:-) one Russian word left in an<br>
English paragraph<br>
<br>
<br>
<br>
\documentclass{article}<br>
<br>
\begin{document}<br>
<br>
Some English&nbsp; with a =F2=D5=D3=D3=CB=C9=CA word<br>
<br>
\end{document}<br>
<br>
<br>
Produces the error<br>
<br>
<br>
! LaTeX Error: Unicode character =F2 (U+0420)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; not set up for use with LaTeX.<br>
<br>
See the LaTeX manual or LaTeX Companion for explanation.<br>
Type&nbsp; H &lt;return&gt;&nbsp; for immediate help.<br>
&nbsp; ...<br>
<br>
l.5 Some English&nbsp; with a =F2<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; =D5=D3=D3=CB=C9=CA word<br>
?<br>
<br>
<br>
Which as you see, higlights the exact location of the Cyrillic text.<br>
<br>
<br>
David<br>
<br>
<br>
<br>
<br>
Disclaimer<br>
<br>
The Numerical Algorithms Group Ltd is a company registered in England and W=
ales with company number 1249803. The registered office is: 30 St. Giles, O=
xford, OX1 3LE, United Kingdom. Please see our Privacy Notice &lt;<a href=
=3D"https://www.nag.com/content/privacy-notice" id=3D"OWA7f81c072-92b1-7d59=
-ef95-54f93c9d321c" class=3D"OWAAutoLink" data-auth=3D"NotApplicable" data-=
loopstyle=3D"linkonly">https://www.nag.com/content/privacy-notice</a>&gt;
 for information on how we process personal data and for details of how to =
stop or limit communications from us.<br>
<br>
This e-mail has been scanned for all viruses and malware by Microsoft Excha=
nge Online (EOP)<br>
<br>
</div>
</div>
</body>
</html>

--_000_YQXPR01MB2551974EF83496BFA93F0021EA132YQXPR01MB2551CANP_--