Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Helge Hafting


Den 26. sep. 2014 11:09, skrev Jürgen Spitzmüller:

Am Freitag 26 September 2014, 07:54:22 schrieb Sergey:

Hi,

In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
boxes. The program prevents to write any character if the keyboard is
switched to Macedonian (Cyrillic letters).
In previous versions I used this possibility to enter figure captions.
However, old .lyx files with such text in ERT are correctly compiled.

Do you have any suggestions how to enable this?

It is intentional (but under discussion). See
http://www.lyx.org/trac/ticket/9258

I don't think LyX should prevent the user from writing any plain text 
(including non-ascii) into ERT.
Having some text inside ERT is a very common case. I.e. 
\markupcommand{some plain text}
For the non-english user, plain text may contain any 
latin/greek/cyrillic/... character! Being limited to

latin1 (or even worse, ascii) will seem like a very random limit.

If it is hard to allow all characters that will work in ERT while also 
disallowing all that won't work - please err on the side of allowing too 
much. ERT is for LaTeX specialists - they can easily crash the compile 
with \invalidcommand or mismatched braces anyway. If you use ERT, you 
accept the responsibility and may have to debug your document.


But many users have latex set up for their own language, so using it in 
ERT tends to work. Loosing access to non-latin text will disrupt 
\mymarkup{text} which is a common case.


Helge Hafting




RE: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Jim Oldfield
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of
Helge Hafting
Sent: 1 October 2014 1:08 PM
 Having some text inside ERT is a very common case. I.e. 
 \markupcommand{some plain text}

I agree with your overall point, but I just want to point out that you can
also achieve \latincommand{non-latin text} by just putting \latincommand{
and } in two separate ERTs on either side of the non-latin text.

Jim



Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Sergey
Sergey curilov at gf.ukim.edu.mk writes:

 
 Hi,
 
 In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
 boxes. The program prevents to write any character if the keyboard is
 switched to Macedonian (Cyrillic letters).
 In previous versions I used this possibility to enter figure captions.
 However, old .lyx files with such text in ERT are correctly compiled.
 
 Do you have any suggestions how to enable this?
 
 


I successfully wrote cyrillic in ERT by using copy-paste.
However I agree with what Helge Hafting said.




Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Jürgen Spitzmüller
2014-10-01 14:08 GMT+02:00 Helge Hafting:

 I don't think LyX should prevent the user from writing any plain text
 (including non-ascii) into ERT.
 Having some text inside ERT is a very common case. I.e.
 \markupcommand{some plain text}
 For the non-english user, plain text may contain any
 latin/greek/cyrillic/... character! Being limited to
 latin1 (or even worse, ascii) will seem like a very random limit.


Sure. However, the problem is that ERT is internally defined as latin1.
This is a LyX limitation (and a bug IMHO), but it needs to be fixed first
before we can open ERT to other encodings. Note that the restriction was
introduced as a bugfix to prevent uncompilable documents (#9012).

Jürgen


Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Helge Hafting


Den 26. sep. 2014 11:09, skrev Jürgen Spitzmüller:

Am Freitag 26 September 2014, 07:54:22 schrieb Sergey:

Hi,

In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
boxes. The program prevents to write any character if the keyboard is
switched to Macedonian (Cyrillic letters).
In previous versions I used this possibility to enter figure captions.
However, old .lyx files with such text in ERT are correctly compiled.

Do you have any suggestions how to enable this?

It is intentional (but under discussion). See
http://www.lyx.org/trac/ticket/9258

I don't think LyX should prevent the user from writing any plain text 
(including non-ascii) into ERT.
Having some text inside ERT is a very common case. I.e. 
\markupcommand{some plain text}
For the non-english user, plain text may contain any 
latin/greek/cyrillic/... character! Being limited to

latin1 (or even worse, ascii) will seem like a very random limit.

If it is hard to allow all characters that will work in ERT while also 
disallowing all that won't work - please err on the side of allowing too 
much. ERT is for LaTeX specialists - they can easily crash the compile 
with \invalidcommand or mismatched braces anyway. If you use ERT, you 
accept the responsibility and may have to debug your document.


But many users have latex set up for their own language, so using it in 
ERT tends to work. Loosing access to non-latin text will disrupt 
\mymarkup{text} which is a common case.


Helge Hafting




RE: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Jim Oldfield
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of
Helge Hafting
Sent: 1 October 2014 1:08 PM
 Having some text inside ERT is a very common case. I.e. 
 \markupcommand{some plain text}

I agree with your overall point, but I just want to point out that you can
also achieve \latincommand{non-latin text} by just putting \latincommand{
and } in two separate ERTs on either side of the non-latin text.

Jim



Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Sergey
Sergey curilov at gf.ukim.edu.mk writes:

 
 Hi,
 
 In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
 boxes. The program prevents to write any character if the keyboard is
 switched to Macedonian (Cyrillic letters).
 In previous versions I used this possibility to enter figure captions.
 However, old .lyx files with such text in ERT are correctly compiled.
 
 Do you have any suggestions how to enable this?
 
 


I successfully wrote cyrillic in ERT by using copy-paste.
However I agree with what Helge Hafting said.




Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Jürgen Spitzmüller
2014-10-01 14:08 GMT+02:00 Helge Hafting:

 I don't think LyX should prevent the user from writing any plain text
 (including non-ascii) into ERT.
 Having some text inside ERT is a very common case. I.e.
 \markupcommand{some plain text}
 For the non-english user, plain text may contain any
 latin/greek/cyrillic/... character! Being limited to
 latin1 (or even worse, ascii) will seem like a very random limit.


Sure. However, the problem is that ERT is internally defined as latin1.
This is a LyX limitation (and a bug IMHO), but it needs to be fixed first
before we can open ERT to other encodings. Note that the restriction was
introduced as a bugfix to prevent uncompilable documents (#9012).

Jürgen


Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Helge Hafting


Den 26. sep. 2014 11:09, skrev Jürgen Spitzmüller:

Am Freitag 26 September 2014, 07:54:22 schrieb Sergey:

Hi,

In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
boxes. The program prevents to write any character if the keyboard is
switched to Macedonian (Cyrillic letters).
In previous versions I used this possibility to enter figure captions.
However, old .lyx files with such text in ERT are correctly compiled.

Do you have any suggestions how to enable this?

It is intentional (but under discussion). See
http://www.lyx.org/trac/ticket/9258

I don't think LyX should prevent the user from writing any plain text 
(including non-ascii) into ERT.
Having some text inside ERT is a very common case. I.e. 
\markupcommand{some plain text}
For the non-english user, "plain text" may contain any 
latin/greek/cyrillic/... character! Being limited to

latin1 (or even worse, ascii) will seem like a very random limit.

If it is hard to allow all characters that will work in ERT while also 
disallowing all that won't work - please err on the side of allowing too 
much. ERT is for "LaTeX specialists" - they can easily crash the compile 
with \invalidcommand or mismatched braces anyway. If you use ERT, you 
accept the responsibility and may have to debug your document.


But many users have latex set up for their own language, so using it in 
ERT tends to work. Loosing access to non-latin text will disrupt 
\mymarkup{text} which is a common case.


Helge Hafting




RE: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Jim Oldfield
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of
Helge Hafting
Sent: 1 October 2014 1:08 PM
> Having some text inside ERT is a very common case. I.e. 
> \markupcommand{some plain text}

I agree with your overall point, but I just want to point out that you can
also achieve \latincommand{non-latin text} by just putting "\latincommand{"
and "}" in two separate ERTs on either side of the non-latin text.

Jim



Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Sergey
Sergey  gf.ukim.edu.mk> writes:

> 
> Hi,
> 
> In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
> boxes. The program prevents to write any character if the keyboard is
> switched to Macedonian (Cyrillic letters).
> In previous versions I used this possibility to enter figure captions.
> However, old .lyx files with such text in ERT are correctly compiled.
> 
> Do you have any suggestions how to enable this?
> 
> 


I successfully wrote cyrillic in ERT by using copy-paste.
However I agree with what Helge Hafting said.




Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-10-01 Thread Jürgen Spitzmüller
2014-10-01 14:08 GMT+02:00 Helge Hafting:

> I don't think LyX should prevent the user from writing any plain text
> (including non-ascii) into ERT.
> Having some text inside ERT is a very common case. I.e.
> \markupcommand{some plain text}
> For the non-english user, "plain text" may contain any
> latin/greek/cyrillic/... character! Being limited to
> latin1 (or even worse, ascii) will seem like a very random limit.
>

Sure. However, the problem is that ERT is internally defined as latin1.
This is a LyX limitation (and a bug IMHO), but it needs to be fixed first
before we can open ERT to other encodings. Note that the restriction was
introduced as a bugfix to prevent uncompilable documents (#9012).

Jürgen


LyX 2.1.1 Cyrillic in ERT not possible

2014-09-26 Thread Sergey
Hi,

In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
boxes. The program prevents to write any character if the keyboard is
switched to Macedonian (Cyrillic letters).
In previous versions I used this possibility to enter figure captions.
However, old .lyx files with such text in ERT are correctly compiled.

Do you have any suggestions how to enable this?



Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-09-26 Thread Jürgen Spitzmüller
Am Freitag 26 September 2014, 07:54:22 schrieb Sergey:
 Hi,
 
 In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
 boxes. The program prevents to write any character if the keyboard is
 switched to Macedonian (Cyrillic letters).
 In previous versions I used this possibility to enter figure captions.
 However, old .lyx files with such text in ERT are correctly compiled.
 
 Do you have any suggestions how to enable this?

It is intentional (but under discussion). See
http://www.lyx.org/trac/ticket/9258

Jürgen





LyX 2.1.1 Cyrillic in ERT not possible

2014-09-26 Thread Sergey
Hi,

In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
boxes. The program prevents to write any character if the keyboard is
switched to Macedonian (Cyrillic letters).
In previous versions I used this possibility to enter figure captions.
However, old .lyx files with such text in ERT are correctly compiled.

Do you have any suggestions how to enable this?



Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-09-26 Thread Jürgen Spitzmüller
Am Freitag 26 September 2014, 07:54:22 schrieb Sergey:
 Hi,
 
 In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
 boxes. The program prevents to write any character if the keyboard is
 switched to Macedonian (Cyrillic letters).
 In previous versions I used this possibility to enter figure captions.
 However, old .lyx files with such text in ERT are correctly compiled.
 
 Do you have any suggestions how to enable this?

It is intentional (but under discussion). See
http://www.lyx.org/trac/ticket/9258

Jürgen





LyX 2.1.1 Cyrillic in ERT not possible

2014-09-26 Thread Sergey
Hi,

In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
boxes. The program prevents to write any character if the keyboard is
switched to Macedonian (Cyrillic letters).
In previous versions I used this possibility to enter figure captions.
However, old .lyx files with such text in ERT are correctly compiled.

Do you have any suggestions how to enable this?



Re: LyX 2.1.1 Cyrillic in ERT not possible

2014-09-26 Thread Jürgen Spitzmüller
Am Freitag 26 September 2014, 07:54:22 schrieb Sergey:
> Hi,
> 
> In LyX version 2.1.1 it is not possible to write text in Cyrillic in ERT
> boxes. The program prevents to write any character if the keyboard is
> switched to Macedonian (Cyrillic letters).
> In previous versions I used this possibility to enter figure captions.
> However, old .lyx files with such text in ERT are correctly compiled.
> 
> Do you have any suggestions how to enable this?

It is intentional (but under discussion). See
http://www.lyx.org/trac/ticket/9258

Jürgen