Am Freitag, den 29.03.2019, 10:03 +0000 schrieb Guenter Milde:
> Take the file autotests/export/latex/CJK/en-de-el-ru-zh_CN_language-
> default.lyx
> It compiles fine with the inputenc settings: "auto", "utf8", and
> "utf8-cjk"
> but not with any of the fixed-width 8-bit encodings: Changing to the
> present
> English default encoding "iso8859-15" results in the error
> 
>   Could not find LaTeX command for character '就' (code point 0x5c31)
> 
> and no output.

Thanks. I will check these when I do the change.

> There are no definitions for Arabic characters or CJK charactes in
> lib/unicodesymbols. Therefore, characters from the Arabic, Chinese,
> Korean,
> and Japanese script are only supported, if they are handled by
> LaTeX's
> inputenc package:
> 
> * The CJK package adds handling of CJK characters (for utf8 and some
>   "native" legacy encodings)
> 
> * The Arabi package adds handling of Arab characters (for utf8 and
>   cp1256)

This, too.

> > So with your solution a significant group of users will stick with
> > 8bit
> > encodings forever.
> 
> This is easily solved by changing the default default:
> 
> diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
> index de46966f2e..028889cd66 100644
> --- a/src/BufferParams.cpp
> +++ b/src/BufferParams.cpp
> @@ -425,7 +425,7 @@ BufferParams::BufferParams()
>       fonts_sans_scale[1] = 100;
>       fonts_typewriter_scale[0] = 100;
>       fonts_typewriter_scale[1] = 100;
> -     inputenc = "auto";
> +     inputenc = "utf8";
>       lang_package = "default";
>       graphics_driver = "default";
>       default_output_format = "default";

This is just even more finger-painting. You basically want to defunc
auto.

> > I have this on my agenda, and I will definitely go on to change
> > languages for 2.4.0, so be aware that all work you do on templates
> > might be wasted time.
> 
> Please don't force this unless 
> 
> a) it does not break any tests, or
> b) a majority of developers agree that it it OK to break these tests.

I will. If tests break, we can fix the cause. In any case, just
painting over the language's default encoding everywhere is not a sane
solution.

Jürgen

> 
> Günter
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to