Re: fonts and symbolic links
Igor Pechtchanski wrote: Shouldn't this be fonts.dir (note the s)? Sorry, Its a typo, all these missing ss and the wrong case. I did not paste my actual script Just re-typed it in the mail. The actual code is exactly as you said. Do you Google: http://google.com/search?q=ttmkfdir+cygwin? The matches show that ttmkfdir is not part of the Cygwin/X distribution, so you must've downloaded it separately. FWIW, I'm going to do some work with fonts soon, and might consider making ttmkfdir into a Cygwin package, installable via setup.exe. There is a sourceforge project for ttmkfdir. They only have ELF binaries for download. It was easier to find it on the net than to compile. I found it packaged with cygwin/XFree86 so I assumed it was a part of cygwin/XFree86. Any way, it is a part of many Linux distributions. It looks odd that cygwin that leaves within Windows will not take advantage of windows fonts. It should be part of the Basic-X package, this and the 2 fonts I specified in the 2nd letter. Than the post-Install script should prepare the windows fonts directory for use by X. The standard fonts that are now part of cygwin/X should only be optional in a different (none default) package. As they are not necessary. (and not as beautiful). And they triple the size of the base X package. (this is Just my $0.02) I don't know how much help it is, but I found that a directory of symlinks (instead of a symlink to a directory) works with XWin. So, try something like ln -s /cygdrive/c/WINDOWS/Fonts/* /usr/X11R6/lib/X11/fonts/TTF and see if it helps. And, as you've already noticed, mount will also work. Igor I like the mount way so I'll keep it. It might be considered by cygwin1.dll teem to change symlinks to directories from windows shortcut-files to mount points. As it looks like the current way is not so transparent for UNIX applications. Thank you very much for your reply, and grate work to all the X teem. It is totally production ready. Free life Boaz
Re: fonts and symbolic links
On Wed, 25 Aug 2004, Boaz Harrosh wrote: There is a sourceforge project for ttmkfdir. They only have ELF binaries for download. It was easier to find it on the net than to compile. I found it packaged with cygwin/XFree86 so I assumed it was a part of cygwin/XFree86. it was but recently mkfontdir had support for TTF fonts and ttmkfdir was not needed. Any way, it is a part of many Linux distributions. It looks odd that cygwin that leaves within Windows will not take advantage of windows fonts. It should be part of the Basic-X package, this and the 2 fonts I specified in the 2nd letter. Than the post-Install script should prepare the windows fonts directory for use by X. The standard fonts that are now part of cygwin/X should only be optional in a different (none default) package. As they are not necessary. (and not as beautiful). And they triple the size of the base X package. (this is Just my $0.02) Hm. That should be possible. something like mkdir -p /usr/X11R6/lib/X11/fonts/windows lndir `cygpath -W` /usr/X11R6/lib/X11/fonts/windows mkfontscale -b -l /usr/X11R6/lib/X11/fonts/windows bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Newbie: GB layout, M$ Natural keyboard does not work
Hi, I have a Cygwin installation on XP and have recently installed the latest X11 software for it. Working fine, except for one minor irritation. I have a Microsoft Natural keyboard, UK layout. X seems to ignore (for all practical purposes) the options -xkbmodel microsoft -xkblayout gb which I specify on the Xwin.exe command line. In X, if I use setxkbmap -print, it correctly displays that it's an MS keyboard with UK layout, however several keys are always incorrect, like Shift-2 which is @ instead of , Shift-3 which is # instead of £, and the usual suspects of \/| which are also incorrectly mapped. What am I doing wrong? Thanks Liam The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s). Please direct any additional queries to: [EMAIL PROTECTED] Thank You.
Re: Newbie: GB layout, M$ Natural keyboard does not work
On Wed, 25 Aug 2004, Liam Friel wrote: Hi, I have a Cygwin installation on XP and have recently installed the latest X11 software for it. Working fine, except for one minor irritation. I have a Microsoft Natural keyboard, UK layout. X seems to ignore (for all practical purposes) the options -xkbmodel microsoft -xkblayout gb which I specify on the Xwin.exe command line. In X, if I use setxkbmap -print, it correctly displays that it's an MS keyboard with UK layout, however several keys are always incorrect, like Shift-2 which is @ instead of , Shift-3 which is # instead of £, and the usual suspects of \/| which are also incorrectly mapped. What am I doing wrong? Please send /tmp/XWin.log. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
RE: Newbie: GB layout, M$ Natural keyboard does not work
Aha, That was a useful hint. Anyhow the interesting bits of Xwin.log are these: (--) winConfigKeyboard - Layout: 1809 (1809) (--) Using preset keyboard for Irish (1809), type 4 (++) XKB: model: microsoft (++) XKB: layout: gb Rules = xorg Model = microsoft Layout = gb Variant = (null) Options = (null) (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap S, where should the XKB keymap be, and how do I fix it up? Thanks, Liam The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s). Please direct any additional queries to: [EMAIL PROTECTED] Thank You.
RE: Newbie: GB layout, M$ Natural keyboard does not work
On Wed, 25 Aug 2004, Liam Friel wrote: Aha, That was a useful hint. Anyhow the interesting bits of Xwin.log are these: (--) winConfigKeyboard - Layout: 1809 (1809) (--) Using preset keyboard for Irish (1809), type 4 (++) XKB: model: microsoft (++) XKB: layout: gb Rules = xorg Model = microsoft Layout = gb Variant = (null) Options = (null) (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap S, where should the XKB keymap be, and how do I fix it up? Check the FAQ: http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-xkb-not-working bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
RE: Newbie: GB layout, M$ Natural keyboard does not work
On Wed, 25 Aug 2004, Liam Friel wrote: Aha, That was a useful hint. Anyhow the interesting bits of Xwin.log are these: (--) winConfigKeyboard - Layout: 1809 (1809) (--) Using preset keyboard for Irish (1809), type 4 BTW: Is this correct? It would load the ie layout by default. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
RE: Newbie: GB layout, M$ Natural keyboard does not work
I checked the FAQ, but it was not exactly enlightening. xkbcomp -w 3 -xkm ... as given in the FAQ works with no errors, but any setxkbmap command fails with Error loading new keymap description Is this a search path thing? /etc/X11/xkb or its subdirs are not on the path. Do they have to be, or is the location assumed? The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s). Please direct any additional queries to: [EMAIL PROTECTED] Thank You.
RE: Newbie: GB layout, M$ Natural keyboard does not work
(--) winConfigKeyboard - Layout: 1809 (1809) (--) Using preset keyboard for Irish (1809), type 4 BTW: Is this correct? It would load the ie layout by default. It loads the ie layout by default unless you override it with the -xkblayout option on the Xwin.exe command line. Neither has the correct keymap ... The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s). Please direct any additional queries to: [EMAIL PROTECTED] Thank You.
RE: Newbie: GB layout, M$ Natural keyboard does not work
On Wed, 25 Aug 2004, Liam Friel wrote: I checked the FAQ, but it was not exactly enlightening. xkbcomp -w 3 -xkm ... as given in the FAQ works with no errors, but any setxkbmap command fails with Error loading new keymap description have you check the mount settings? bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: fonts and symbolic links
On Wed, 25 Aug 2004, Alexander Gottwald wrote: On Wed, 25 Aug 2004, Boaz Harrosh wrote: There is a sourceforge project for ttmkfdir. They only have ELF binaries for download. It was easier to find it on the net than to compile. I found it packaged with cygwin/XFree86 so I assumed it was a part of cygwin/XFree86. it was but recently mkfontdir had support for TTF fonts and ttmkfdir was not needed. Any way, it is a part of many Linux distributions. It looks odd that cygwin that leaves within Windows will not take advantage of windows fonts. It should be part of the Basic-X package, this and the 2 fonts I specified in the 2nd letter. Than the post-Install script should prepare the windows fonts directory for use by X. The standard fonts that are now part of cygwin/X should only be optional in a different (none default) package. As they are not necessary. (and not as beautiful). And they triple the size of the base X package. (this is Just my $0.02) Hm. That should be possible. something like mkdir -p /usr/X11R6/lib/X11/fonts/windows lndir `cygpath -W` /usr/X11R6/lib/X11/fonts/windows ^ Shouldn't this be lndir `cygpath -W`'\Fonts' /usr/X11R6/lib/X11/fonts/windows ? mkfontscale -b -l /usr/X11R6/lib/X11/fonts/windows Is ttmkfdir needed here too? Igor bye ago -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing. -- Dr. Jubal Harshaw
RE: Newbie: GB layout, M$ Natural keyboard does not work
These are the mount settings: C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) C:\cygwin\bin on /usr/bin type system (binmode) C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin\tmp on /tmp type system (binmode) C:\cygwin on / type system (binmode) The FAQ talks about /tmp mounted in text mode, which the above would suggest is not the case. I am getting used to typing shift-@ for double quotes, but it is perhaps not optimal The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s). Please direct any additional queries to: [EMAIL PROTECTED] Thank You.
Re: fonts and symbolic links
On Wed, 25 Aug 2004, Igor Pechtchanski wrote: mkdir -p /usr/X11R6/lib/X11/fonts/windows lndir `cygpath -W` /usr/X11R6/lib/X11/fonts/windows ^ Shouldn't this be lndir `cygpath -W`'\Fonts' /usr/X11R6/lib/X11/fonts/windows actually yes. missed that when copying the line ? mkfontscale -b -l /usr/X11R6/lib/X11/fonts/windows Is ttmkfdir needed here too? no. mkfontscale (and mkfontdir which is just a wrapper for mkfontscale) can handle all true type fonts. the wrapper mkfontdir looks like exec /usr/X11R6/bin/mkfontscale -b -s -l $@ -b: read bitmap fonts -s: ignore scalable fonts the correct way to setup a font dir is mkfontscale $dir# scan Truetype fonts mkfontscale -b -s -l $dir # scan bitmap fonts bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: fonts and symbolic links
On Wed, 25 Aug 2004, Alexander Gottwald wrote: On Wed, 25 Aug 2004, Igor Pechtchanski wrote: mkdir -p /usr/X11R6/lib/X11/fonts/windows lndir `cygpath -W` /usr/X11R6/lib/X11/fonts/windows ^ Shouldn't this be lndir `cygpath -W`'\Fonts' /usr/X11R6/lib/X11/fonts/windows actually yes. missed that when copying the line Sorry for the mess-up above, that should have been `cygpath -W`/Fonts (but you still need the quotes). mkfontscale -b -l /usr/X11R6/lib/X11/fonts/windows Is ttmkfdir needed here too? no. mkfontscale (and mkfontdir which is just a wrapper for mkfontscale) can handle all true type fonts. the wrapper mkfontdir looks like exec /usr/X11R6/bin/mkfontscale -b -s -l $@ -b: read bitmap fonts -s: ignore scalable fonts the correct way to setup a font dir is mkfontscale $dir # scan Truetype fonts mkfontscale -b -s -l $dir # scan bitmap fonts Ah, I see now. One more question: the above commands seem to ignore all of the microsoft-cp12* encodings except microsoft-cp1252. I found that I needed to add an explicit -a microsoft-cp1251 flag if I wanted the microsoft-cp1251 encoding to be included. Why is that, and where is the default list of encodings coming from? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing. -- Dr. Jubal Harshaw
Re: fonts and symbolic links
On Wed, 25 Aug 2004, Igor Pechtchanski wrote: Sorry for the mess-up above, that should have been `cygpath -W`/Fonts (but you still need the quotes). right. mkfontscale -b -l /usr/X11R6/lib/X11/fonts/windows Is ttmkfdir needed here too? no. mkfontscale (and mkfontdir which is just a wrapper for mkfontscale) can handle all true type fonts. the wrapper mkfontdir looks like exec /usr/X11R6/bin/mkfontscale -b -s -l $@ -b: read bitmap fonts -s: ignore scalable fonts the correct way to setup a font dir is mkfontscale $dir# scan Truetype fonts mkfontscale -b -s -l $dir # scan bitmap fonts Ah, I see now. One more question: the above commands seem to ignore all of the microsoft-cp12* encodings except microsoft-cp1252. I found that I needed to add an explicit -a microsoft-cp1251 flag if I wanted the microsoft-cp1251 encoding to be included. Why is that, and where is the default list of encodings coming from? Hm. There is a file encodings.dir in /usr/X11R6/lib/X11/fonts/Type1. Does it work if you copy it to the TTF directory? bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: fonts and symbolic links
On Wed, 25 Aug 2004, Alexander Gottwald wrote: On Wed, 25 Aug 2004, Igor Pechtchanski wrote: Ah, I see now. One more question: the above commands seem to ignore all of the microsoft-cp12* encodings except microsoft-cp1252. I found that I needed to add an explicit -a microsoft-cp1251 flag if I wanted the microsoft-cp1251 encoding to be included. Why is that, and where is the default list of encodings coming from? It is hardcoded into mkfontscale. { iso8859-1, iso8859-2, iso8859-3, iso8859-4, iso8859-5, iso8859-6, iso8859-6.8, iso8859-6.8x, iso8859-6.16, iso8859-7, iso8859-8, iso8859-9, iso8859-10, iso8859-11, iso8859-12, iso8859-13, iso8859-14, iso8859-15, iso8859-16, ansi-1251, koi8-r, koi8-u, koi8-ru, koi8-e, koi8-uni, tis620-2, sun.unicode.india-0, suneu-greek, adobe-standard, adobe-symbol, ibm-cp437, ibm-cp850, ibm-cp852, ibm-cp866, microsoft-cp1252, /* But not adobe-dingbats, as it uses generic glyph names. */ cns11643-1, cns11643-2, cns11643-3, jisx0201.1976-0, jisx0208.1983-0, jisx0208.1990-0, jisx0212.1990-0, big5-0, big5.eten-0, big5hkscs-0, gb2312.1980-0, gb18030.2000-0, gb18030.2000-1, ksc5601.1987-0, ksc5601.1992-3}; I think of adding a wrapper which reads directories and encodings from configfiles (+some builtins) and does the fontdir update for us. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: fonts and symbolic links
On Wed, 25 Aug 2004, Alexander Gottwald wrote: On Wed, 25 Aug 2004, Alexander Gottwald wrote: On Wed, 25 Aug 2004, Igor Pechtchanski wrote: Ah, I see now. One more question: the above commands seem to ignore all of the microsoft-cp12* encodings except microsoft-cp1252. I found that I needed to add an explicit -a microsoft-cp1251 flag if I wanted the microsoft-cp1251 encoding to be included. Why is that, and where is the default list of encodings coming from? Hm. There is a file encodings.dir in /usr/X11R6/lib/X11/fonts/Type1. Does it work if you copy it to the TTF directory? Nope. But, FWIW, I was thinking of doing exactly what you proposed below. IMO, all of the microsoft-cp12* encodings should be added as default for Cygwin/X, since those are what Windows uses. It is hardcoded into mkfontscale. { iso8859-1, iso8859-2, iso8859-3, iso8859-4, iso8859-5, iso8859-6, iso8859-6.8, iso8859-6.8x, iso8859-6.16, iso8859-7, iso8859-8, iso8859-9, iso8859-10, iso8859-11, iso8859-12, iso8859-13, iso8859-14, iso8859-15, iso8859-16, ansi-1251, koi8-r, koi8-u, koi8-ru, koi8-e, koi8-uni, tis620-2, sun.unicode.india-0, suneu-greek, adobe-standard, adobe-symbol, ibm-cp437, ibm-cp850, ibm-cp852, ibm-cp866, microsoft-cp1252, /* But not adobe-dingbats, as it uses generic glyph names. */ cns11643-1, cns11643-2, cns11643-3, jisx0201.1976-0, jisx0208.1983-0, jisx0208.1990-0, jisx0212.1990-0, big5-0, big5.eten-0, big5hkscs-0, gb2312.1980-0, gb18030.2000-0, gb18030.2000-1, ksc5601.1987-0, ksc5601.1992-3}; I think of adding a wrapper which reads directories and encodings from configfiles (+some builtins) and does the fontdir update for us. Yep, that'd be great. Thanks. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing. -- Dr. Jubal Harshaw
Re: fonts and symbolic links
On Wed, 25 Aug 2004, Igor Pechtchanski wrote: I think of adding a wrapper which reads directories and encodings from configfiles (+some builtins) and does the fontdir update for us. Yep, that'd be great. Thanks. check the attached script. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723#!/bin/sh # # Update font information for X11 # # Creates fonts.scale, fonts.dir and fonts.cache-1 # PATH=$PATH:/usr/X11R6/bin # # /etc/X11/font-encodings contains one encoding per line # /etc/X11/font-dirs contains one fontdir per line ENC_FILE=/etc/X11/font-encodings DIR_FILE=/etc/X11/font-dirs # # Build ENCODINGS parameter. This is ugly. Who can do it better? # ENCODINGS=` ( cat EOF microsoft-cp1250 microsoft-cp1251 microsoft-cp1252 microsoft-cp1253 microsoft-cp1254 microsoft-cp1255 microsoft-cp1256 microsoft-cp1257 microsoft-cp1258 EOF test -r $ENC_FILE sed -e 's/#.*//' $ENC_FILE ) | while read encoding; do echo -a $encoding done` ( cat EOF /usr/X11R6/lib/X11/fonts/100dpi /usr/X11R6/lib/X11/fonts/75dpi /usr/X11R6/lib/X11/fonts/misc /usr/X11R6/lib/X11/fonts/CID /usr/X11R6/lib/X11/fonts/TTF /usr/X11R6/lib/X11/fonts/Type1 /usr/X11R6/lib/X11/fonts/cyrillic /usr/X11R6/lib/X11/fonts/local EOF test -r $DIR_FILE sed 's/#.*//' $DIR_FILE ) | while read fontdir; do if test -d $fontdir; then need_update= test -e $fontdir/fonts.dir || need_update=1 test -e $fontdir/fonts.scale || need_update=1 test -n $need_update || \ test $ENC_FILE -nt $fontdir/fonts.dir need_update=1 test -n $need_update || \ find $fontdir -not '(' \ -name fonts.scale -o \ -name fonts.dir -o \ -name encodings.dir -o \ -name fonts.cache-1 ')' \ -a '(' \ -newer $fontdir/fonts.dir -o \ -newer $fontdir/fonts.scale \ ')' \ -mindepth 1 -follow | read line need_update=1 if test -n $need_update; then echo updating $fontdir 2 rm -f $fontdir/fonts.scale rm -f $fontdir/fonts.dir mkfontscale $ENCODINGS $fontdir || rm -f $fontdir/fonts.scale mkfontscale -b -s -l $ENCODINGS $fontdir || rm -f $fontdir/fonts.dir fc-cache $fontdir else echo $fontdir is up-todate. skipping 2 fi else echo $fontdir is not a directory. skipping 2 fi done
Re: fonts and symbolic links
On Wed, 25 Aug 2004, Alexander Gottwald wrote: On Wed, 25 Aug 2004, Igor Pechtchanski wrote: I think of adding a wrapper which reads directories and encodings from configfiles (+some builtins) and does the fontdir update for us. Yep, that'd be great. Thanks. check the attached script. [script inlined below] #!/bin/sh # # Update font information for X11 # # Creates fonts.scale, fonts.dir and fonts.cache-1 # PATH=$PATH:/usr/X11R6/bin # # /etc/X11/font-encodings contains one encoding per line # /etc/X11/font-dirs contains one fontdir per line ENC_FILE=/etc/X11/font-encodings DIR_FILE=/etc/X11/font-dirs # # Build ENCODINGS parameter. This is ugly. Who can do it better? # ENCODINGS=` ( cat EOF microsoft-cp1250 microsoft-cp1251 microsoft-cp1252 microsoft-cp1253 microsoft-cp1254 microsoft-cp1255 microsoft-cp1256 microsoft-cp1257 microsoft-cp1258 EOF test -r $ENC_FILE sed -e 's/#.*//' $ENC_FILE ) | while read encoding; do echo -a $encoding done` How about ENCODINGS=`( cd /usr/X11R6/lib/X11/fonts/encodings ls microsoft-cp* | sed -e 's/.enc$//' test -r $ENC_FILE sed -e 's/#.*$//' -e '/^ *$/d' $ENC_FILE ) | sed -e 's/^/-a /'` ? ( cat EOF /usr/X11R6/lib/X11/fonts/100dpi /usr/X11R6/lib/X11/fonts/75dpi /usr/X11R6/lib/X11/fonts/misc /usr/X11R6/lib/X11/fonts/CID /usr/X11R6/lib/X11/fonts/TTF /usr/X11R6/lib/X11/fonts/Type1 /usr/X11R6/lib/X11/fonts/cyrillic /usr/X11R6/lib/X11/fonts/local EOF test -r $DIR_FILE sed 's/#.*//' $DIR_FILE ) | while read fontdir; do Again, what about something like ( ls -d /usr/X11R6/lib/X11/fonts/* test -r $DIR_FILE sed -e 's/#.*$//' -e '/^ *$/d' $DIR_FILE ) | while read fontdir; do here? if test -d $fontdir; then need_update= test -e $fontdir/fonts.dir || need_update=1 test -e $fontdir/fonts.scale || need_update=1 test -n $need_update || \ test $ENC_FILE -nt $fontdir/fonts.dir need_update=1 test -n $need_update || \ find $fontdir -not '(' \ -name fonts.scale -o \ -name fonts.dir -o \ -name encodings.dir -o \ -name fonts.cache-1 ')' \ -a '(' \ -newer $fontdir/fonts.dir -o \ -newer $fontdir/fonts.scale \ ')' \ -mindepth 1 -follow | read line need_update=1 if test -n $need_update; then echo updating $fontdir 2 rm -f $fontdir/fonts.scale rm -f $fontdir/fonts.dir mkfontscale $ENCODINGS $fontdir || rm -f $fontdir/fonts.scale mkfontscale -b -s -l $ENCODINGS $fontdir || rm -f $fontdir/fonts.dir fc-cache $fontdir else echo $fontdir is up-todate. skipping 2 fi else echo $fontdir is not a directory. skipping 2 fi done I'm sure there's a way to make the above shorter, but if it works, why bother? Looks reasonable. Thanks, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing. -- Dr. Jubal Harshaw
Re: Newbie seeking help.
Dear Mike, Good day. I think that's help. Many Thanks. Rgrds, bt. --- Michel Bardiaux [EMAIL PROTECTED] wrote: bt tan wrote: --- bt tan [EMAIL PROTECTED] wrote: Dear Mike, Here's the output of ./configure [snip] checking for X... (cached) no checking for X11 header files... checking for X11 libraries... checking for XCreateWindow in -lXwindow... (cached) no couldn't find any! Using -lX11. checking for main in -lXbsd... (cached) no It is indicating it couldn't locate the X11 libraries, althought the path I've specified within the windows environment path to includes the following directory /usr/X11R6/bin/usr/X11R6/lib/usr/X11R6/X11/lib/usr/X11R6/X11/bin IIRC configure does *not* use the path to locate X (reason: finding the X libraries does not indicate where the X headers are!). Run './configure --help' and it is very likely there is some argument to tell where the X stuff is. Using the path to locate libraries is a Windowism. I suspect cygwin does *not* do that at all, even for a dlopen (but IANAG) HaND, -- Michel Bardiaux Peaktime Belgium S.A. Bd. du Souverain, 191 B-1160 Bruxelles Tel : +32 2 790.29.41 __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail