Re: Hebrew in LaTeX
Amit Aronovitch <[email protected]> Fri, 10 Feb 2006 11:01:49 +0200
| Newsgroups | gmane.linux.region.israel.ivrix.discuss |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--Boundary_(ID_ammamKz60mgzdHID2WqRTA)
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
Tzafrir Cohen wrote:
>On Thu, Feb 09, 2006 at 08:42:49AM +0200, Nadav Har'El wrote:
>
>
>>On Wed, Feb 08, 2006, Uwe Brauer wrote about "Re: Hebrew in LaTeX":
>>
>>
>>>Pity, did you try LyX?
>>>
>>>
>>Hi,
>>
>>No I did not, until a minute ago when I did try an noticed that none of
>>the Hebrew letters I type show up on the screen (not that this says much -
>>as I said I only spent a minute trying to get it to work, and apparently
>>setting the "document class" to "article (hebrew)" and the "language" to
>>"Hebrew" wasn't enough).
>>
>>
>
>I did run into a problem with LyX lately, after not trying it for a long
>time: I remember that "keymaps" implied "languages": when you set your
>keymap to "Hebrew" you'd type "Hebrew" characters (for Babel). However
>now this does not seem to be the case.
>
>Furthermore, while there are convinient key bindings for toggling
>keymaps, the key bindings for changing languages are rather lacking. At
>most you can assing one key to switch to language #0 and another one to
>switch to language #1.
>
>
>
You mean in 1.3.7?
I have 1.3.6, and the "language hebrew" command (bound to f12 in Dekel
Tzur's bindings file
http://www.cs.haifa.ac.il/~dekelts/lyx/instructions2.html ) seems to
toggle back and forth between English and Hebrew.
>This means that I can't easily write a document with mixed
>Hebrew/English . Which is a shame, because I remember a time where LyX
>used to be the easiest way for me to do so.
>
>
>
>>But more to the point, as far as I know LyX uses LaTeX to actually typeset
>>its final results. So if LaTeX doesn't work for me, it won't work, right?
>>In my current installation (Fedora Core 4), for example, I have a relatively
>>modern babel already installed with supposedly (?) most of the "ivritex"
>>fixes in it, but supposedly (?) no Hebrew LaTeX fonts installed and no
>>tricks (?) installed to make use of the Culmus fonts - so how is LyX
>>supposed to work?
>>
>>
>
>LyX supports babel, and has explicit support for Hebrew babel. Whether
>this is through the older hebfonts or the newer culmus is actually
>irrelevant, as the LaTeX document is the same.
>
>
>
I also did not use hebrew on LyX for a long time (I mostly use LyX for
English docs).
* I tried a minimal configuration (only the f12 binding), and it seems
to work - but inconenient: I got used to switch to hebrew using the
normal xkb key (alt-shift or whatever) - and the fingers are faster than
the brain...
In LyX this works (gets hebrew letters in), but does not effect
directionality of typing - you have to switch both language and keyboard
group, and you get reversed words if you forget one of these.
I suppose a keymap could work (can you remap the xkb group toggle?),
but maybe the more "natural" way would be to make the editor automaticly
switch language according to the typed character's unicode
directionality - I don't know LyX internals enough to tell if this is a
reasonable option.
* I also noticed a problem which I seem to recall from the past - hebrew
words in english section-titles show up as European accented chars
(otherwise the document shows up fine in xdvi).
I attach the lyx file. Let me know if there's a fix for that.
--Boundary_(ID_ammamKz60mgzdHID2WqRTA)
Content-type: text/plain; name=test_heb.lyx
Content-disposition: inline; filename=test_heb.lyx
Content-Transfer-Encoding: quoted-printable
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass heb-article
\language hebrew
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single=20
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Title
=EB=E5=FA=F8=FA =F8=E0=F9=E9=FA
\layout Abstract
=F0=F1=E9=E5=EF =F9=EE=EB=E9=EC=20
\lang english
also text in english
\lang hebrew
=E5=E2=ED=20
\lang english
some math=20
\lang hebrew
-=20
\lang english
\begin_inset Formula $\sum\frac{1}{\sqrt{1+x^{2}}}$
\end_inset=20
\lang hebrew
=E4=E0=ED =E6=E4 =F2=E5=E1=E3?
\layout Section
=EB=E5=FA=F8=FA =E1-=20
\lang english
hebrew
\layout Standard
=F7=F6=FA =E8=F7=F1=E8
\layout Section
\lang english
English title with
\lang hebrew
=EE=E9=EC=E4
\lang english
in hebrew
\layout Standard
\lang english
Some english text
\the_end
--Boundary_(ID_ammamKz60mgzdHID2WqRTA)
Content-Type: text/plain
Content-Disposition: inline
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
----
Ivrix-discuss list. See http://ivrix.org.il.
To unsubscribe, please send mail to [email protected] wi=
th
only the following line in the message body (NOT SUBJECT!): unsubscribe
--Boundary_(ID_ammamKz60mgzdHID2WqRTA)--