Look, I just tried what you're saying, and I can see that it sort of
works, but not really: it's fine as long as you're typing only in
English or only in Hebrew, but as soon as you want to mix languages
within a paragraph, it breaks down. I would be surprised if it weren't
that way.
AFAIK, you're supposed to be using the language commands to switch
languages, and that's what F12 gives you. In addition, Dekel's
instructions, which I still more or less follow, set up the keymap so
that you don't need to switch languages at the keyboard level. I prefer
that, because switching at the keyboard level affects all applications
--- so if I'm typing LyX in Hebrew, and then switch to my email, I find
myself to still be in Hebrew. When using the keymap, I don't have this
problem. Either way, I think that just switching at the keyboard without
using the language commands is wrong, I'm surprised we get as far as
we do without it.
I also tried the math cut & paste, but I can't reproduce your bug no
matter what. Can anyone else confirm the problem that Elazar is seeing
with cut & paste in RTL math? This is starting to remind me of the
troubles we were seeing a few months back, where some of us could see
Hebrew find and others couldn't. That time, it turned out to have to do
with the locale environment variables. What locale do you have set up?
(You can type 'env | grep LC' to find out). Also, you are using a recent
version out of SVN, right? I can't think of anything else that might
cause this, at the moment...
Dov
Dov Feldstern wrote:
I still don't understand. I want to figure out what you're doing. If you
want to type a Hebrew document, you open LyX (I'm assuming the RTL
preference is already true, of course). You do
Document->settings->language and choose Hebrew. (BTW, what encoding are
you using in that dialog box?)
You switch your keyboard input to Hebrew? And you start typing.
Is this right so far?
Now let's say you want to insert a word in english -- you just switch
the keyboard, and type in English? and then switch back, etc.? Never
touch any of the language commands or anything? And the latex output is
correct?
Can you please send me a sample document which you typed this way?
Thanks!
Dov
Elazar Leibovich wrote:
Sure thing. It's running like a wild beast. Working with 100%.
If you define the whole paragraph to be in Hebrew then you don't need
anything to be setted any further, as far as I understand.
Try to recreate the bug w/o F12. BTW my patch needs to be applied
nevertheless, it affects only mathematics and has no other negative
effects (The last patch, not the first one).
On 5/15/07, Dov Feldstern
<[EMAIL PROTECTED]> wrote:
Wait a minute --- this may explain the trouble you're having with the
cut and paste...
I think you should still be using F12 to switch between languages. The
main thing that that does is not to set the keyboard input, but also
tell latex about the language change. Have you been able to generate
latex output without using F12 up until now?
Elazar Leibovich wrote:
> Nice to see another Lyx hebrew user!
> IIRC the hebrew binding where only needed in older versions of LyX,
> where it wouldn't respect input from X, there, we'd define F12 to
> replace between Hebrew and English key binding internally. Now, you
> should just switch to Hebrew and it should work out of the box (after
> setting RTL support in the configuration dialogue).
>
> On 5/14/07, Ran Rutenberg
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I would like to know if it is possible to add to the LyX distribution
>> the Hebrew bind file that exists in the wiki (
>> http://wiki.lyx.org/uploads/Windows/Hebrew/he_cua.bind ), and make it
>> the default bind file when using LyX in Hebrew.
>>
>>
>> Sincerely,
>>
>> Ran Rutenberg
>>
>