Warnings when using babel with LuaLaTeX











up vote
2
down vote

favorite












Recently I have started using LuaLaTeX over pdfLaTeX, without any real issue so far.



When working on a project I have noticed some warning messages I have failed to decpiher after consulting Google and TeXExchange:



LaTeX Warning: Please use usepackage{t1enc} with
usepackage[magyar]{babel}, to get accented chars hyphenated.


LaTeX Warning: Please use usepackage[latin2]{inputenc}
or usepackage[utf8]{inputenc}
with usepackage[magyar]{babel}.


Currently I am writing my document in english with some hungarian mixed in (my university requires hungarian declarations in a thesis). I use usepackage[magyar,english]{babel} so that both hungarian and english are loaded but english is used by default, then I switch over to hungarian using an otherlanguage environment when I need to, like so:



... english text ...
begin{otherlanguage}{magyar}
... hungarian text ...
end{otherlanguage}
... english text ...


The warning really is a warning in the sense that hyphenation seems to work just fine.
Any ideas what produces this warning? I have been thinking about weird package loading order problems, but trying different permutations didn't get rid of this warning.



Example document producing this error:



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
usepackage[magyar,english]{babel}

begin{document}
This is such a nice document.
end{document}


I compile it using latexmk -lualatex <file.tex>.










share|improve this question




















  • 1




    Welcome to TeX.SX! Please help us help you by providing a minimal compilable code example (MWE).
    – TeXnician
    Dec 1 at 8:31






  • 4




    Very likely nothing wrong, just a language style which has not been updated (t1enc is very very old and obsolete). If everything is ok, just ignore the warnings.
    – Javier Bezos
    Dec 1 at 8:44








  • 2




    It very much sounds like the warning messages are meant to be issued only under pdfLaTeX -- in case the inputenc and/or fontenc packages did not get loaded. Under both LuaLaTeX and XeLaTeX, these packages shouldn't be loaded anyway as long as fontspec is loaded. You may ignore the warning messages.
    – Mico
    Dec 1 at 9:01

















up vote
2
down vote

favorite












Recently I have started using LuaLaTeX over pdfLaTeX, without any real issue so far.



When working on a project I have noticed some warning messages I have failed to decpiher after consulting Google and TeXExchange:



LaTeX Warning: Please use usepackage{t1enc} with
usepackage[magyar]{babel}, to get accented chars hyphenated.


LaTeX Warning: Please use usepackage[latin2]{inputenc}
or usepackage[utf8]{inputenc}
with usepackage[magyar]{babel}.


Currently I am writing my document in english with some hungarian mixed in (my university requires hungarian declarations in a thesis). I use usepackage[magyar,english]{babel} so that both hungarian and english are loaded but english is used by default, then I switch over to hungarian using an otherlanguage environment when I need to, like so:



... english text ...
begin{otherlanguage}{magyar}
... hungarian text ...
end{otherlanguage}
... english text ...


The warning really is a warning in the sense that hyphenation seems to work just fine.
Any ideas what produces this warning? I have been thinking about weird package loading order problems, but trying different permutations didn't get rid of this warning.



Example document producing this error:



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
usepackage[magyar,english]{babel}

begin{document}
This is such a nice document.
end{document}


I compile it using latexmk -lualatex <file.tex>.










share|improve this question




















  • 1




    Welcome to TeX.SX! Please help us help you by providing a minimal compilable code example (MWE).
    – TeXnician
    Dec 1 at 8:31






  • 4




    Very likely nothing wrong, just a language style which has not been updated (t1enc is very very old and obsolete). If everything is ok, just ignore the warnings.
    – Javier Bezos
    Dec 1 at 8:44








  • 2




    It very much sounds like the warning messages are meant to be issued only under pdfLaTeX -- in case the inputenc and/or fontenc packages did not get loaded. Under both LuaLaTeX and XeLaTeX, these packages shouldn't be loaded anyway as long as fontspec is loaded. You may ignore the warning messages.
    – Mico
    Dec 1 at 9:01















up vote
2
down vote

favorite









up vote
2
down vote

favorite











Recently I have started using LuaLaTeX over pdfLaTeX, without any real issue so far.



When working on a project I have noticed some warning messages I have failed to decpiher after consulting Google and TeXExchange:



LaTeX Warning: Please use usepackage{t1enc} with
usepackage[magyar]{babel}, to get accented chars hyphenated.


LaTeX Warning: Please use usepackage[latin2]{inputenc}
or usepackage[utf8]{inputenc}
with usepackage[magyar]{babel}.


Currently I am writing my document in english with some hungarian mixed in (my university requires hungarian declarations in a thesis). I use usepackage[magyar,english]{babel} so that both hungarian and english are loaded but english is used by default, then I switch over to hungarian using an otherlanguage environment when I need to, like so:



... english text ...
begin{otherlanguage}{magyar}
... hungarian text ...
end{otherlanguage}
... english text ...


The warning really is a warning in the sense that hyphenation seems to work just fine.
Any ideas what produces this warning? I have been thinking about weird package loading order problems, but trying different permutations didn't get rid of this warning.



Example document producing this error:



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
usepackage[magyar,english]{babel}

begin{document}
This is such a nice document.
end{document}


I compile it using latexmk -lualatex <file.tex>.










share|improve this question















Recently I have started using LuaLaTeX over pdfLaTeX, without any real issue so far.



When working on a project I have noticed some warning messages I have failed to decpiher after consulting Google and TeXExchange:



LaTeX Warning: Please use usepackage{t1enc} with
usepackage[magyar]{babel}, to get accented chars hyphenated.


LaTeX Warning: Please use usepackage[latin2]{inputenc}
or usepackage[utf8]{inputenc}
with usepackage[magyar]{babel}.


Currently I am writing my document in english with some hungarian mixed in (my university requires hungarian declarations in a thesis). I use usepackage[magyar,english]{babel} so that both hungarian and english are loaded but english is used by default, then I switch over to hungarian using an otherlanguage environment when I need to, like so:



... english text ...
begin{otherlanguage}{magyar}
... hungarian text ...
end{otherlanguage}
... english text ...


The warning really is a warning in the sense that hyphenation seems to work just fine.
Any ideas what produces this warning? I have been thinking about weird package loading order problems, but trying different permutations didn't get rid of this warning.



Example document producing this error:



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
usepackage[magyar,english]{babel}

begin{document}
This is such a nice document.
end{document}


I compile it using latexmk -lualatex <file.tex>.







luatex babel unicode warnings






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 1 at 8:34

























asked Dec 1 at 8:29









krispet krispet

1134




1134








  • 1




    Welcome to TeX.SX! Please help us help you by providing a minimal compilable code example (MWE).
    – TeXnician
    Dec 1 at 8:31






  • 4




    Very likely nothing wrong, just a language style which has not been updated (t1enc is very very old and obsolete). If everything is ok, just ignore the warnings.
    – Javier Bezos
    Dec 1 at 8:44








  • 2




    It very much sounds like the warning messages are meant to be issued only under pdfLaTeX -- in case the inputenc and/or fontenc packages did not get loaded. Under both LuaLaTeX and XeLaTeX, these packages shouldn't be loaded anyway as long as fontspec is loaded. You may ignore the warning messages.
    – Mico
    Dec 1 at 9:01
















  • 1




    Welcome to TeX.SX! Please help us help you by providing a minimal compilable code example (MWE).
    – TeXnician
    Dec 1 at 8:31






  • 4




    Very likely nothing wrong, just a language style which has not been updated (t1enc is very very old and obsolete). If everything is ok, just ignore the warnings.
    – Javier Bezos
    Dec 1 at 8:44








  • 2




    It very much sounds like the warning messages are meant to be issued only under pdfLaTeX -- in case the inputenc and/or fontenc packages did not get loaded. Under both LuaLaTeX and XeLaTeX, these packages shouldn't be loaded anyway as long as fontspec is loaded. You may ignore the warning messages.
    – Mico
    Dec 1 at 9:01










1




1




Welcome to TeX.SX! Please help us help you by providing a minimal compilable code example (MWE).
– TeXnician
Dec 1 at 8:31




Welcome to TeX.SX! Please help us help you by providing a minimal compilable code example (MWE).
– TeXnician
Dec 1 at 8:31




4




4




Very likely nothing wrong, just a language style which has not been updated (t1enc is very very old and obsolete). If everything is ok, just ignore the warnings.
– Javier Bezos
Dec 1 at 8:44






Very likely nothing wrong, just a language style which has not been updated (t1enc is very very old and obsolete). If everything is ok, just ignore the warnings.
– Javier Bezos
Dec 1 at 8:44






2




2




It very much sounds like the warning messages are meant to be issued only under pdfLaTeX -- in case the inputenc and/or fontenc packages did not get loaded. Under both LuaLaTeX and XeLaTeX, these packages shouldn't be loaded anyway as long as fontspec is loaded. You may ignore the warning messages.
– Mico
Dec 1 at 9:01






It very much sounds like the warning messages are meant to be issued only under pdfLaTeX -- in case the inputenc and/or fontenc packages did not get loaded. Under both LuaLaTeX and XeLaTeX, these packages shouldn't be loaded anyway as long as fontspec is loaded. You may ignore the warning messages.
– Mico
Dec 1 at 9:01












1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










You can use this to suppress the warnings:



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
defmagyarOptions{suggestions=no}
usepackage[magyar,english]{babel}

begin{document}
This is such a nice document.
end{document}


magyar.ldf is quite long and contains lots of adaptions and patches (often optional). It obviously hasn't been adapted to lualatex/xelatex yet. The fontencoding seems to be ok with this engines but there is no garanty that there isn't somewhere code which implicitly assumes an 8-bit engine. So check the output.






share|improve this answer





















  • Would you actually suggest doing this? I mean couldn't this potentially suppress actually useful warnings later on? I am quite suprised to learn that things like this weren't adopted yet, as LuaLaTeX is like 8 years old now and is the offical successor to pdfLaTeX.
    – krispet krispet
    Dec 1 at 10:59








  • 1




    Sorry I don't have the time to analyze the code. The option suppresses around 6 "suggestions", you can find them in line 2550-2650. lualatex is not the "official" successor of pdflatex, and things get adapted when someone does it. Ask the maintainer or find someelse with the needed knowledges about tex, luatex and hungarian to do it.
    – Ulrike Fischer
    Dec 1 at 11:14













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462664%2fwarnings-when-using-babel-with-lualatex%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote



accepted










You can use this to suppress the warnings:



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
defmagyarOptions{suggestions=no}
usepackage[magyar,english]{babel}

begin{document}
This is such a nice document.
end{document}


magyar.ldf is quite long and contains lots of adaptions and patches (often optional). It obviously hasn't been adapted to lualatex/xelatex yet. The fontencoding seems to be ok with this engines but there is no garanty that there isn't somewhere code which implicitly assumes an 8-bit engine. So check the output.






share|improve this answer





















  • Would you actually suggest doing this? I mean couldn't this potentially suppress actually useful warnings later on? I am quite suprised to learn that things like this weren't adopted yet, as LuaLaTeX is like 8 years old now and is the offical successor to pdfLaTeX.
    – krispet krispet
    Dec 1 at 10:59








  • 1




    Sorry I don't have the time to analyze the code. The option suppresses around 6 "suggestions", you can find them in line 2550-2650. lualatex is not the "official" successor of pdflatex, and things get adapted when someone does it. Ask the maintainer or find someelse with the needed knowledges about tex, luatex and hungarian to do it.
    – Ulrike Fischer
    Dec 1 at 11:14

















up vote
4
down vote



accepted










You can use this to suppress the warnings:



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
defmagyarOptions{suggestions=no}
usepackage[magyar,english]{babel}

begin{document}
This is such a nice document.
end{document}


magyar.ldf is quite long and contains lots of adaptions and patches (often optional). It obviously hasn't been adapted to lualatex/xelatex yet. The fontencoding seems to be ok with this engines but there is no garanty that there isn't somewhere code which implicitly assumes an 8-bit engine. So check the output.






share|improve this answer





















  • Would you actually suggest doing this? I mean couldn't this potentially suppress actually useful warnings later on? I am quite suprised to learn that things like this weren't adopted yet, as LuaLaTeX is like 8 years old now and is the offical successor to pdfLaTeX.
    – krispet krispet
    Dec 1 at 10:59








  • 1




    Sorry I don't have the time to analyze the code. The option suppresses around 6 "suggestions", you can find them in line 2550-2650. lualatex is not the "official" successor of pdflatex, and things get adapted when someone does it. Ask the maintainer or find someelse with the needed knowledges about tex, luatex and hungarian to do it.
    – Ulrike Fischer
    Dec 1 at 11:14















up vote
4
down vote



accepted







up vote
4
down vote



accepted






You can use this to suppress the warnings:



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
defmagyarOptions{suggestions=no}
usepackage[magyar,english]{babel}

begin{document}
This is such a nice document.
end{document}


magyar.ldf is quite long and contains lots of adaptions and patches (often optional). It obviously hasn't been adapted to lualatex/xelatex yet. The fontencoding seems to be ok with this engines but there is no garanty that there isn't somewhere code which implicitly assumes an 8-bit engine. So check the output.






share|improve this answer












You can use this to suppress the warnings:



documentclass[12pt,a4paper]{report}
usepackage{fontspec}
defmagyarOptions{suggestions=no}
usepackage[magyar,english]{babel}

begin{document}
This is such a nice document.
end{document}


magyar.ldf is quite long and contains lots of adaptions and patches (often optional). It obviously hasn't been adapted to lualatex/xelatex yet. The fontencoding seems to be ok with this engines but there is no garanty that there isn't somewhere code which implicitly assumes an 8-bit engine. So check the output.







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 1 at 9:58









Ulrike Fischer

184k7289666




184k7289666












  • Would you actually suggest doing this? I mean couldn't this potentially suppress actually useful warnings later on? I am quite suprised to learn that things like this weren't adopted yet, as LuaLaTeX is like 8 years old now and is the offical successor to pdfLaTeX.
    – krispet krispet
    Dec 1 at 10:59








  • 1




    Sorry I don't have the time to analyze the code. The option suppresses around 6 "suggestions", you can find them in line 2550-2650. lualatex is not the "official" successor of pdflatex, and things get adapted when someone does it. Ask the maintainer or find someelse with the needed knowledges about tex, luatex and hungarian to do it.
    – Ulrike Fischer
    Dec 1 at 11:14




















  • Would you actually suggest doing this? I mean couldn't this potentially suppress actually useful warnings later on? I am quite suprised to learn that things like this weren't adopted yet, as LuaLaTeX is like 8 years old now and is the offical successor to pdfLaTeX.
    – krispet krispet
    Dec 1 at 10:59








  • 1




    Sorry I don't have the time to analyze the code. The option suppresses around 6 "suggestions", you can find them in line 2550-2650. lualatex is not the "official" successor of pdflatex, and things get adapted when someone does it. Ask the maintainer or find someelse with the needed knowledges about tex, luatex and hungarian to do it.
    – Ulrike Fischer
    Dec 1 at 11:14


















Would you actually suggest doing this? I mean couldn't this potentially suppress actually useful warnings later on? I am quite suprised to learn that things like this weren't adopted yet, as LuaLaTeX is like 8 years old now and is the offical successor to pdfLaTeX.
– krispet krispet
Dec 1 at 10:59






Would you actually suggest doing this? I mean couldn't this potentially suppress actually useful warnings later on? I am quite suprised to learn that things like this weren't adopted yet, as LuaLaTeX is like 8 years old now and is the offical successor to pdfLaTeX.
– krispet krispet
Dec 1 at 10:59






1




1




Sorry I don't have the time to analyze the code. The option suppresses around 6 "suggestions", you can find them in line 2550-2650. lualatex is not the "official" successor of pdflatex, and things get adapted when someone does it. Ask the maintainer or find someelse with the needed knowledges about tex, luatex and hungarian to do it.
– Ulrike Fischer
Dec 1 at 11:14






Sorry I don't have the time to analyze the code. The option suppresses around 6 "suggestions", you can find them in line 2550-2650. lualatex is not the "official" successor of pdflatex, and things get adapted when someone does it. Ask the maintainer or find someelse with the needed knowledges about tex, luatex and hungarian to do it.
– Ulrike Fischer
Dec 1 at 11:14




















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462664%2fwarnings-when-using-babel-with-lualatex%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei