[pdftex] foreign letter in text
Aleks Kleyn
Aleks_Kleyn at MailAPS.org
Tue Apr 23 17:21:38 CEST 2024
If you interesting I attached short file where I tested your advice. In this file still works as I expect. However write now I found source of problem. Few years ago after some change in Babel I had a lot of errors which canceled translation before time. Somebody advised me to use macro
\UseRawInputEncoding
And it worked as I expected, but now when I put it after \usepackage[cp1251]{inputenc} it canceled usepackage.
Aleks Kleyn
<http://alekskleyn.dyndns-home.com:4080/> http://alekskleyn.dyndns-home.com:4080/
<http://sites.google.com/site/alekskleyn/> http://sites.google.com/site/AleksKleyn/
<http://arxiv.org/a/kleyn_a_1> http://arxiv.org/a/kleyn_a_1
<http://AleksKleyn.blogspot.com/> http://AleksKleyn.blogspot.com/
<http://kleynaleks.blogspot.com/> http://KleynAleks.blogspot.com/
Derivative in Banach algebra
dx2
=1⊗ x+x⊗1
dx
d x2 =(1⊗ x+x⊗1) ◦dx=dx x+x dx
From: Aleks Kleyn [mailto:Aleks_Kleyn at MailAPS.org]
Sent: Tuesday, April 23, 2024 11:02 AM
To: 'pdftex at tug.org'
Subject: RE: [pdftex] foreign letter in text
I use pdflatex since 2007, at that time windows notepad saved files in ANSI encoding. Sometimes when some symbol changed encoding to Unicode, pdflatex was unable to compile such files. So I was careful about this issue. Sometimes I use Russian symbols to make sure that compiler will remind me that I need to make changes in text for which I am not ready at current time. Sometimes I do translation to English later because I need to write original text faster.
So I added \usepackage[cp1251]{inputenc} as last usepackage macro and it does work for me. When I returned it to the beginning of text like it was originally I see that it does not work. In short example I did not see which macro cancels expected change. But at this time this is not important because I want to finish my text as soon as I can.
You wrote that pdflatex changed encoding few years ago. But I saw proper error messages even last winter. I use all years MikTeX. When I recently install TeXlive, I saw some problem in MikTeX so I uninstalled TeXlive. I have about 70 folders and few thousands files. I do not think that it is reasonable to spent time to change encoding. And what happens if somebody will make quietly another change which again destroy all previous work.
I appreciate your help.
Aleks Kleyn
<http://alekskleyn.dyndns-home.com:4080/> http://alekskleyn.dyndns-home.com:4080/
<http://sites.google.com/site/alekskleyn/> http://sites.google.com/site/AleksKleyn/
<http://arxiv.org/a/kleyn_a_1> http://arxiv.org/a/kleyn_a_1
<http://AleksKleyn.blogspot.com/> http://AleksKleyn.blogspot.com/
<http://kleynaleks.blogspot.com/> http://KleynAleks.blogspot.com/
Derivative in Banach algebra
dx2
=1⊗ x+x⊗1
dx
d x2 =(1⊗ x+x⊗1) ◦dx=dx x+x dx
From: pdftex [mailto:pdftex-bounces+aleks_kleyn=mailaps.org at tug.org] On Behalf Of David Carlisle via pdftex
Sent: Monday, April 22, 2024 6:22 PM
To: pdftex at tug.org
Subject: Re: [pdftex] foreign letter in text
On 22/04/2024 21:59, Aleks Kleyn wrote:
I discovered one more interesting thing. When I put \usepackage[cp1251]{inputenc} in the beginning of document (like it was originally), I get wrong error reporting. This macro works properly when it come last in the set of packages. This means that some packages change input encoding.
Packages should not change the declared encoding of the main document, but quite possibly some do, that would be an issue to raise with the package maintainer. There is nothing that pdftex can do about that.
This list is really about the pdftex engine, which is not directly involved, all the features you are discussing are purely about the latex macro layer.
but \usepackage[cp1251]{inputenc} can only do anything useful if the files are actually in the Windows Code page 1251 encoding.
You have not said what encoding your files are in, nor given any example, nor said what error you got.
I am guessing that your issue is related to the change of default encoding for latex in 2018, but that should not have affected any document that was correctly declaring the encoding it was using, so it is surprising to see it causing problems now.
You also have not said what change you made, certainly if you updated from texlive 2023 to 2024 my guess that it was related to the default encoding can not be right.
If you showed a small document and said what system you used previously where it worked, and said what it does wrong in texlive 2024, someone could help, otherwise I really can not guess any more.
I would still say you should consider re-encoding your files to UTF-8 (back them up first but then you should be able to convert them all with various commandline tools, you would not have to edit each file "by hand")
David
Disclaimer
The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: 30 St. Giles, Oxford, 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 Exchange Online (EOP)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/pdftex/attachments/20240423/b4520f79/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test27.tex
Type: application/octet-stream
Size: 421 bytes
Desc: not available
URL: <https://tug.org/pipermail/pdftex/attachments/20240423/b4520f79/attachment-0001.obj>
More information about the pdftex
mailing list.