mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix LaTeX generation of files with inputenc == default.
See the patch itself for further comments. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16421 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fcd3b56a22
commit
67dd949130
@ -78,8 +78,9 @@ LyX file-format changes
|
||||
encoding of the LyX file:
|
||||
|
||||
\inputencoding LyX file encoding
|
||||
auto as determined by the document language
|
||||
default latin1
|
||||
auto as determined by the document language(s)
|
||||
default unspecified 8bit (treated as latin1 internally,
|
||||
see comment in bufferparams.h)
|
||||
everything else as determined by \inputencoding
|
||||
|
||||
2006-07-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
@ -1468,11 +1468,18 @@ Encoding const & BufferParams::encoding() const
|
||||
{
|
||||
if (inputenc == "auto")
|
||||
return *(language->encoding());
|
||||
Encoding const * const enc = encodings.getFromLaTeXName(inputenc);
|
||||
Encoding const * const enc = (inputenc == "default") ?
|
||||
encodings.getFromLyXName("iso8859-1") :
|
||||
encodings.getFromLaTeXName(inputenc);
|
||||
if (enc)
|
||||
return *enc;
|
||||
lyxerr << "Unknown inputenc value `" << inputenc
|
||||
<< "'. Using `auto' instead." << endl;
|
||||
if (inputenc == "default")
|
||||
lyxerr << "Could not find iso8859-1 encoding for inputenc "
|
||||
"value `default'. Using inputenc `auto' instead."
|
||||
<< endl;
|
||||
else
|
||||
lyxerr << "Unknown inputenc value `" << inputenc
|
||||
<< "'. Using `auto' instead." << endl;
|
||||
return *(language->encoding());
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,10 @@ public:
|
||||
* The input encoding for LaTeX. This can be one of
|
||||
* - auto: find out the input encoding from the used languages
|
||||
* - default: Don't load the inputenc package and hope that it will
|
||||
* work (unlikely)
|
||||
* work (unlikely). The encoding is an unspecified 8bit encoding,
|
||||
* the interpretation is up to the LaTeX compiler. Because we need
|
||||
* a rule how to create this from our internal UCS4 encoded
|
||||
* document contents we treat this as latin1 internally.
|
||||
* - any encoding supported by the inputenc package
|
||||
* The encoding of the LyX file is always utf8 and has nothing to
|
||||
* do with this setting.
|
||||
|
Loading…
Reference in New Issue
Block a user