mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
Fix encoding for japanese documents
The header parameter \inputenc uses the LaTeX name, so we need must not set it to the LyX name for japanese documents.
This commit is contained in:
parent
4061e5bbdb
commit
2a1eb2fe9b
@ -805,7 +805,7 @@ void Preamble::handle_package(Parser &p, string const & name,
|
||||
Encoding const * const enc = encodings.fromIconvName(
|
||||
p.getEncoding(), Encoding::japanese, false);
|
||||
if (enc)
|
||||
h_inputencoding = enc->name();
|
||||
h_inputencoding = enc->latexName();
|
||||
is_nonCJKJapanese = true;
|
||||
// in this case babel can be removed from the preamble
|
||||
registerAutomaticallyLoadedPackage("babel");
|
||||
|
Loading…
Reference in New Issue
Block a user