[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Elmar fonts not reversed with biditext-0.9.1



Ilya Konstantinov wrote:

> Hi,
> 
> If anyone was using Elmar fonts with biditext-0.9.1 and wondered
> why certain fonts don't get reversed, please run this script in the
> Elmar fonts directory (make sure it contains ONLY Elmar fonts!).
> 
> for filename in *.pcf;\
> do echo $filename;\
> perl -i -pe "s/CHARSET_ENCODING\\0001/CHARSET_ENCODING\\0008/g" $filename;\
> done
> xset fp rehash
> 
> The problem is due to the .pcf fonts internally specifying an ISO8859-1
> encoding, which the new biditext recognizes as non-Hebrew and doesn't
> reverse. The problem is NOT in biditext.
> 
> I notified Eli about the problem.

It is true that the value of the BDF property "CHARSET_ENCODING" in all
my 35 PCF files is "1" and not "8".

Years ago, it was "8", but due to problems and conflicts with various
operating systems and applications, it was changed to "1".

Many applications and operating systems just don't love non-standard
fonts.

Some applications are programmed to supply the user with only 8859-1
fonts (e.g. in dialog boxes that customize the font to use).

Other applications and operating systems suffer the opposite problem:
They like Hebrew too much. So they have their way to "support" Hebrew.

Unfortunately, they usually do it very bad and everything is screwed
up.

So after repeated problems and failures, I agreed to change it to "1".
The XLFD14 ("FONT") remained "8859-8".
In addition, the "fonts.dir" that *I* supply (and not mkfontdir),
still uses "8859-8" and not "8859-1".
ONLY one thing was changed to "1" - the CHARSET_ENCODING property.

It makes me happy to hear that there are applications which support
Hebrew well, and not "too well".

But before I change it back, please ensure that you use the correct
fonts.dir, and that only the CHARSET_ENCODING property can solve the
problem.

Regards,
-- 
Eli Marmor
marmor@netmask.it
CTO, Founder
Netmask (El-Mar) Internet Technologies Ltd.
__________________________________________________________
Tel.:   +972-9-766-1020          8 Yad-Harutzim St.
Fax.:   +972-9-766-1314          P.O.B. 7004
Mobile: +972-50-23-7338          Kfar-Saba 44641, Israel

=================================================================
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