Re: English environment is changed to textenglish

2022-02-21 Thread tush via lyx-users
Well done.
Thanks a lot!

--- Original Message ---
On Monday, February 21st, 2022 at 11:20 AM, tush via lyx-users 
 wrote:

> What do you mean "I have just fixed it"?
>
>  Original Message 
> On Feb 21, 2022, 10:55, Jürgen Spitzmüller via lyx-users < 
> lyx-users@lists.lyx.org> wrote:
>
>> Am Sonntag, dem 20.02.2022 um 18:00 + schrieb tush via lyx-users:
>>> Please consider the two lyx files attached.
>>> It is a MWE of a book that includes mainly Hebrew but also some
>>> English.
>>>
>>> The wrong thing here is that the last line is converted in LyX (via
>>> the Code Preview Pane) as
>>> \begin{english}
>>> Some text in English. This should be left aligned.
>>> \end{english}
>>>
>>> but when exporting `main.lyx` to tex (via XeTeX), this English
>>> sentence is formatted as
>>>
>>> \textenglish[variant=american]{Some text in English. This should
>>> be left aligned.}
>>>
>>> which causes the line to be right aligned.
>>>
>>> Why is it?
>>
>> This is a bug in LyX. I have just fixed it.
>>
>>> How to keep the English line of text to be inside an English
>>> environment?
>>
>> Workaround is to write \setLTR in TeX mode at the beginning of the
>> English paragraph, having the TeX mode inset itself in Hebrew. See
>> attached.
>>
>> Jürgen
>>
>> --
>> lyx-users mailing list
>> lyx-users@lists.lyx.org
>> http://lists.lyx.org/mailman/listinfo/lyx-users-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: English environment is changed to textenglish

2022-02-21 Thread Jürgen Spitzmüller via lyx-users
Am Montag, dem 21.02.2022 um 09:20 + schrieb tush via lyx-users:
> What do you mean "I have just fixed it"?

I mean that I have committed a fix to the LyX development repository
(what will become LyX 2.4.0). The fix might also be backported to the
next LyX 2.3 version, but this is not yet decided.

Jürgen



signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: English environment is changed to textenglish

2022-02-21 Thread tush via lyx-users
What do you mean "I have just fixed it"?

 Original Message 
On Feb 21, 2022, 10:55, Jürgen Spitzmüller via lyx-users wrote:

> Am Sonntag, dem 20.02.2022 um 18:00 + schrieb tush via lyx-users:
>> Please consider the two lyx files attached.
>> It is a MWE of a book that includes mainly Hebrew but also some
>> English.
>>
>> The wrong thing here is that the last line is converted in LyX (via
>> the Code Preview Pane) as
>> \begin{english}
>> Some text in English. This should be left aligned.
>> \end{english}
>>
>> but when exporting `main.lyx` to tex (via XeTeX), this English
>> sentence is formatted as
>>
>> \textenglish[variant=american]{Some text in English. This should
>> be left aligned.}
>>
>> which causes the line to be right aligned.
>>
>> Why is it?
>
> This is a bug in LyX. I have just fixed it.
>
>> How to keep the English line of text to be inside an English
>> environment?
>
> Workaround is to write \setLTR in TeX mode at the beginning of the
> English paragraph, having the TeX mode inset itself in Hebrew. See
> attached.
>
> Jürgen
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: English environment is changed to textenglish

2022-02-21 Thread Jürgen Spitzmüller via lyx-users
Am Sonntag, dem 20.02.2022 um 18:00 + schrieb tush via lyx-users:
> Please consider the two lyx files attached.
> It is a MWE of a book that includes mainly Hebrew but also some
> English.
> 
> The wrong thing here is that the last line is converted in LyX (via
> the Code Preview Pane) as
>     \begin{english}
>     Some text in English. This should be left aligned.
>     \end{english}
> 
> but when exporting `main.lyx` to tex (via XeTeX), this English
> sentence is formatted as
> 
>     \textenglish[variant=american]{Some text in English. This should
> be left aligned.}
> 
> which causes the line to be right aligned.
> 
> Why is it? 

This is a bug in LyX. I have just fixed it.

> How to keep the English line of text to be inside an English
> environment?

Workaround is to write \setLTR in TeX mode at the beginning of the
English paragraph, having the TeX mode inset itself in Hebrew. See
attached.

Jürgen



ch01.lyx
Description: application/lyx


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users