[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cannot see hebrew fonts in abiword
- To: Itai Arad <itaia(at-nospam)astro.huji.ac.il>
- Subject: Re: Cannot see hebrew fonts in abiword
- From: Tzafrir Cohen <tzafrir(at-nospam)technion.ac.il>
- Date: Tue, 10 Jul 2001 15:28:59 +0300 (IDT)
- cc: linux-il(at-nospam)cs.huji.ac.il
- In-Reply-To: <20010710150730.A19806@linux1.fiz.huji.ac.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Tue, 10 Jul 2001, Itai Arad wrote:
> On Mon, Jul 09, 2001 at 08:10:14PM +0300, Tzafrir Cohen wrote:
> > On Mon, 9 Jul 2001, Itai Arad wrote:
> >
> > > Hi List,
> > >
> > > I am trying (realy hard) to get bidi-abiword work on my Mandrake 8.0
> > > linux.
> > >
> > > So I compiled abiword-0.7.14-2 (with bidi enabled) and installed it
> > > just as they say you should.
> > >
> > > HOWEVER: I cannot get the hebrew to work!!
> > >
> > > I wish to work with *unicode* hebrew. So I this is what I did:
> > >
> > > 1. Modified XF86Config-4 file so it would have hebrew keymap (according
> > > to the instructions in IGLU)
> > > 2. Defined LANG=he_IL.UTF-8
> > >
> > > 3. Copied some ttf fonts from Window (Arial + Courier New)
> >
> > I suggest that you also get Times New Roman
>
> OK, I'll give it a try.
>
> >
> >> to the
> > > AbiSuite/font directory and added only the iso-10646-1 entries to the
> > > fonts.dir, fonts.scale files
> >
> > How have you created the entries for them? Does ttmkfdir extract
> > iso10646-1 encodings as well?
>
> Well in Mandrake 8.0 you have the option to import the window fonts. The
> fonts are copied to /usr/lib/X11/fonts/drakefont and a fonts.dir file is
> created by the some script. This file also include iso10646-1 entries. I
> think that in the previous version (7.2) these entries were not created.
> Anyhow, that's where I took the entries from.
How exactly did you create fonts.dir for that directory?
Did you put aas a first line a count of all the other lines?
>
> >
> >
> > >
> > > Now when I run abiword I can use these ttf fonts only in english. When I
> > > pass to hebrew (pressing left-shfit + right-shift), I get some undifined
> > > symbols on the screen. However, the BiDi mechanisem seems to work well -
> > > that is, the direction of writing changes as it should.
> > >
> > > I think it actually idetifies the hebrew letters becuase whenI save the
> > > file as utf8, and browse it in an utf-8 enabled xterm - I see just what I
> > > wrote.
> > >
> > > However, I cannot see it on the screen...
> > >
> > > btw: the utf8 enabled xterm works just fine, and shows the hebrew
> > > letters....
> > >
> > >
> > > (*) I also tried to put the ttf fonts in a UTF-8 subdirectory under
> > > AbiSuite/fonts (If I understood the vauge instructions of abiword) - but
> > > then abiword did not recognize them...
> >
> > It needs to be in a spesific subdirectory: he-IL.UTF-8 . Note the "-"
> > """
> > instead of "_".
>
> Yes, well I tried that and it didn't work. Actually if I put it there,
> abiword does not even load them.
Then maybe the problem is indeed with your fonts.dir file?
>
> >
> > Actually, I suggest that this directory will be a symlink to a directory
> > that X uses (either idrectly or indirectly through xfs).
> >
> > Maybe try removing all the fonts from the main directory, to prevent name
> > clashes: Maybe it already has another "Arial".
>
> There is no clash. If you have two fonts with the same name, they will both
> appear in the list. It is also easy to identify which font is beeing used
> since the ttf fonts are much nicer than those supplied by abiword.
I'll stick to this suggestion if things don't work well.
Create a directory with arial*.ttf, times*.ttf and cour*.ttf from your
drakfont dir.
Use ttmkfdir to create there a fonts.dir file. If ttmkfdir does not create
lines for iso10646-1, then use something like:
ttmkfdir | sed -e 's/-iso8859-9$/-iso10646-1/' >fonts.dir
Link that directory as he-IL.UTF-8
Also, if that doesn't work, try working with an ISO-8859-8 locale (and
link the same directory as he-il-ISO-8859-8)
--
Tzafrir Cohen
mailto:tzafrir@technion.ac.il
http://www.technion.ac.il/~tzafrir
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il