Re: makewrapper.sh patch


Subject: Re: makewrapper.sh patch
From: Vlad Harchev (hvv@hippo.ru)
Date: Fri Dec 29 2000 - 08:05:40 CST


On Thu, 28 Dec 2000, Kevin Vajk wrote:

 Hi,

 Please don't take this as an offense, but your approach is wrong.

 Adding all sundirs with fonts it can find is a useless thing unless AW
is modified to look for all fonts in all subdirs while booting. Making
AW look for all subdirs for fonts is also a very bad idea - different subdirs
can provide fonts for different encodings but the same name (e.g. Helvetica) -
and since AW doesn't display font's encoding, user will see a 5 fonts named
"Helvetica" in font combobox (and will have to guess which one corresponds to
some encoding).

 Also, some subdirs shouldn't be added to font path since fonts.dir in them
has nonstandard syntax - such subdirs should be indicated by presense of a
file with magic name (say .already-in-fp) in them.
 SO we should make shell script computing all "permutations" of
locale-specific subdirectory name.

 As for not removing fonts from font path - I also told how to detect
whether AW is running 20 minutes ago.

 So someone should write script that will generate all permutations of
locale-specific subdir name, add means for detecting whether AW is running and
update all 4 scripts that generate AbiWord script.
 
>
> I've made two changes to the makewrapper.sh script, which seem to make
> life easier for me. I think this is the way to go, so if others agree
> please consider checking this in.
>
> The important change is that it now does *not* remove the font
> directories it added to your font path. In the current scheme, two
> concurrent abiword processes will still step on each other if the one
> which was started first is exited first.
> (I understand not wanting to leave behind litter in the font path after
> we've exited, but I don't see any way around this, since there is no
> reliable method of determining whether or not another abiword process
> is still running on the same display.)
>
> The other change is that any subdirectories of $ABISUITE_FONT_HOME which
> contain a fonts.dir file are added to your font path as well. (For most
> users, there won't be any.) I think this is cleaner than having a shell
> script try to figure out your locale settings.
>
> Thanks!
>
> - Kevin Vajk
> <kvajk@ricochet.net>

 Best regards,
  -Vlad



This archive was generated by hypermail 2b25 : Fri Dec 29 2000 - 08:32:42 CST