LyX ⇒ Incorrect display of English that's inline with Hebrew text
Incorrect display of English that's inline with Hebrew text
Hello everyone,
I'm new to LyX and LaTeX (coming from LibreOffice, Word, etc.) and I really like what LyX offers in terms of text formatting.
I'm writing a Hebrew article and I have trouble writing English inline with Hebrew.
The problem is that when I write English text on it's own new line, it's all fine, but when an English word appears between Hebrew text, the PDF that is produced is a little strange: the embedded English is all CAPITAL, and an annoying 'L' letter is appended to it. A screenshot is added for demonstration.
How can I fix this issue?
I'm running a 64-bit Ubuntu 16.04 and Lyx v2.2.2
To add Hebrew support I have installed the required packages and changed the encoding to cp1255.
I have assigned a shortcut (F10) to switch to English (primary keyboard null, secondary is Hebrew).
Appreciate any advice.
I'm new to LyX and LaTeX (coming from LibreOffice, Word, etc.) and I really like what LyX offers in terms of text formatting.
I'm writing a Hebrew article and I have trouble writing English inline with Hebrew.
The problem is that when I write English text on it's own new line, it's all fine, but when an English word appears between Hebrew text, the PDF that is produced is a little strange: the embedded English is all CAPITAL, and an annoying 'L' letter is appended to it. A screenshot is added for demonstration.
How can I fix this issue?
I'm running a 64-bit Ubuntu 16.04 and Lyx v2.2.2
To add Hebrew support I have installed the required packages and changed the encoding to cp1255.
I have assigned a shortcut (F10) to switch to English (primary keyboard null, secondary is Hebrew).
Appreciate any advice.
- Attachments
-
- lyx1.png (44.88 KiB) Viewed 9762 times
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Incorrect display of English that's inline with Hebrew text
Can you please post the .lyx file associated with the screenshot? Ideally you could post this as a bug on https://www.lyx.org/trac , but if you post a .lyx file I'll take a look at it.
Incorrect display of English that's inline with Hebrew text
Yep, here it is.
I don't know if it's a bug... But if you can spot something suspicious I'll post it.
Thank you !
I don't know if it's a bug... But if you can spot something suspicious I'll post it.
Thank you !
- Attachments
-
- en-he-test.lyx
- (4.03 KiB) Downloaded 448 times
Incorrect display of English that's inline with Hebrew text
Unfortunately I've just spotted the same problem with Math Mode.
Switching to Math Mode with 'Ctrl+M' will result in capitalized math text with the 'L' letter appended to the end of it.
Have searched extensively for a solution to no avail.
How can I fix this problem?
Switching to Math Mode with 'Ctrl+M' will result in capitalized math text with the 'L' letter appended to the end of it.
Have searched extensively for a solution to no avail.
How can I fix this problem?
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Incorrect display of English that's inline with Hebrew text
I tried your document but it doesn't compile to PDF for me. Is the preamble necessary? Do you compile with XeTeX or pdfTeX?
If I go to Document > Settings > Fonts and click on the checkbox "Use non-TeX fonts" and then set them to FreeSans, and then compile with XeTeX, I get a PDF that seems correct to me. Does that work for you?
I'm on Ubuntu with TeX Live 2016 and LyX 2.2.2. I attach the files for convenience.
If I go to Document > Settings > Fonts and click on the checkbox "Use non-TeX fonts" and then set them to FreeSans, and then compile with XeTeX, I get a PDF that seems correct to me. Does that work for you?
I'm on Ubuntu with TeX Live 2016 and LyX 2.2.2. I attach the files for convenience.
- Attachments
-
- en-he-test.pdf
- (7.42 KiB) Downloaded 316 times
-
- en-he-test.lyx
- (3.99 KiB) Downloaded 378 times
Incorrect display of English that's inline with Hebrew text
Thank you for your reply scottkosty,
What preamble do you mean ?
Unfortunately changing the font settings as you said, produces the following errors (only the relevant first few lines):
A quick check suggested that it may be a problem with XeTeX/TeX Live, so I've reinstalled it but the same error persists.
What preamble do you mean ?

Unfortunately changing the font settings as you said, produces the following errors (only the relevant first few lines):
Code: Select all
Right-to-Left Support Error: use TeX--XeT or e-TeX engine.Package inputenc Error: inputenc is not designed for xetex or luatex.
I'm not sure which one, but the format I choose before viewing the pdf (Ctrl+R by default) is pdfLatex (actually, an option for XeTeX isn't listed there at all).Do you compile with XeTeX or pdfTeX?
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Incorrect display of English that's inline with Hebrew text
Dang. What if you try downloading the .lyx file instead of following the steps. Do you still get the same error if you try to compile it without changing anything?
Incorrect display of English that's inline with Hebrew text
Yep of course I have also tried it before posting the reply
.
I guess it's worth trying to reinstall lyx with all its dependencies and retry.
I'll report back once I try that on a freshly installed lyx (unless someone has another idea ?)

I guess it's worth trying to reinstall lyx with all its dependencies and retry.
I'll report back once I try that on a freshly installed lyx (unless someone has another idea ?)
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Incorrect display of English that's inline with Hebrew text
I think it is rather your LaTeX installation. Are you using TeX Live from the Ubuntu repository or did you install it manually? If you used it from the Ubuntu repository, it is probably not up to date.danielbog wrote:Yep of course I have also tried it before posting the reply.
I guess it's worth trying to reinstall lyx with all its dependencies and retry.
I'll report back once I try that on a freshly installed lyx (unless someone has another idea ?)
The following will take time, but I think it is the safest to proceed:
Install Ubuntu 16.04 in a virtual box (this is very easy).
Run
Code: Select all
sudo ./install-tl-ubuntu --hebrew
https://github.com/scottkosty/install-tl-ubuntu
Then see if the .lyx file that I posted here works on that. If so, then it means the difference was our LaTeX installations.
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Incorrect display of English that's inline with Hebrew text
I forgot to say, install LyX *after* that command not before (cause if you do it before then it will install TeX Live from the Ubuntu repos).