xfonts fix

#!/bin/bash # xfonts.fix by ian hutchinson 2002. use at your own risk. # makes symbol fonts available to browsers and fixes mozilla mathml. # it uses chkfontpath, locate, fgrep and sed. if [ $# = 1 ] ; then if [ "$1." == "--remove." ]; then ok=1; fi if [ "$1." == "--install." ]; then ok=1; fi if [ $ok. != 1. ]; then echo echo "usage: $0 [--install | --remove ]" exit fi fi echo echo this program, $0, creates aliases to the symbol fonts echo to make them accessible through iso8859-1 which most browsers use. echo it will also fix the mozilla mathml style sheet, preventing font problems. echo it should be run as root within your x server. echo you will be asked for verification before changes are made. echo responding with anything except "y" will skip the changes. echo read -p "do you want to continue: [y]es [n]o: " yesno if [ $yesno. != "y." ]; then exit; fi echo " here are the fontspecific symbol fonts your x-system reports:" xlsfonts -fn *adobe*symbol*fontspecific echo " here are the symbol fonts available in iso8859-1 encoding:" xlsfonts -fn *adobe*symbol*iso8859-1 if [ "$1." == "." ]; then if [ -z "`xlsfonts -fn *adobe*symbol*iso8859-1 2>/dev/null`" ]; then result=1 else result=0 fi else if [ "$1." == "--remove." ]; then result="0"; echo forcing remove. else if [ "$1." == "--install." ]; then result="1" echo forcing install. else echo echo "usage: $0 [--install | --remove ]" exit fi fi fi if [ $result != 0 ] ; then if [ -f /usr/sbin/chkfontpath ] ; then echo chkfontpath gives the following information /usr/sbin/chkfontpath fpaths=`/usr/sbin/chkfontpath |sed -n -e "s/^[0-9]*: //" -e "/dpi$/ p" -e "/dpi$/ q"` # change this to ensure that we never put the aliases in the first file if # it is not a dpi file, since that breaks the default font. the default font # appears to be the first iso-8859-1 named font in the first searched # directory's fonts.alias file. ..dpi files are probably safe. if [ -z "$fpaths" ]; then fpaths=`/usr/sbin/chkfontpath |sed -n -e "s/^[0-9]*: //" -e "s/:unscaled//" -e "/dpi$/ p" -e "/dpi$/ q"` if [ "$fpaths" ]; then echo 'using unscaled font reference:'; fi fi if [ "$fpaths" ] ; then faliases=$fpaths/fonts.alias fi fi if [ -z "$faliases" ] ; then echo you have the following candidate files for the aliases: locate dpi/fonts.alias echo the first available is usually used. faliases=`locate dpi/fonts.alias | sed -n -e "1 p"` fi if [ $faliases ] ; then echo i intend to use the file $faliases read -p "ok to proceed? [y]es [n]o: " yesno if [ $yesno. = "y." ]; then #cat $faliases $faliases if [ "`diff $faliases $faliases.xfonts`" ]; then echo ... some material cut. echo old version is $faliases.xfonts echo you have to execute the command killall -hup xfs, and restart x echo for any changes to have effect. else echo did not succeed in making any changes. fi else echo they do not seem to contain symalias sections. echo if you want to install the sections use \"$0 --force\" fi else echo if you want to add fonts to them. edit your fonts.alias files. fi fi mathmllist=`locate -r "res/mathml.css$"` found= for file in $mathmllist dummy; do if [ -f $file ]; then found=1; break; fi; done; if [ -z "$found" ] ; then if mathmllist=`/bin/ls /usr/lib/mozilla*/res/mathml.css`; then found=2 else mathmllist= fi fi if [ "$mathmllist" ] ; then echo echo i found the following mathml.css files: echo $mathmllist for mathml in $mathmllist; do echo undone=`sed -n -e "s/symbol, times/times, symbol/ p" $mathml` if [ "$undone" ]; then echo i recommend putting times before symbol by default in $mathml echo otherwise mathml will render incorrectly in mozilla. read -p "would you like me to correct that now for you? [y]es [n]o: " yesno if [ $yesno. = "y." ]; then if cp $mathml ${mathml%.css}.sym ; then sed -e "s/symbol, times/times, symbol/g" ${mathml%.css}.sym >$mathml echo saved original file as ${mathml%.css}.sym echo the changed lines are echo $undone else echo failed: could not copy the original mathml.css file echo you probably need to run this script as root or ask your sysadmin. fi fi else if [ -f ${mathml%.css}.sym ]; then echo your mozilla fonts are already fixed for file $mathml read -p "do you want to restore the old list? [y]es [n]o: " yesno if [ $yesno. = "y." ]; then cp ${mathml%.css}.sym $mathml fi fi fi done else echo you don''t seem to have mozilla''s mathml.css installed. echo if you install mozilla after the aliases, then to get mathml to work, echo you will have to run this script again a day later. fi echo whatever you have done can be reversed by running this script again.

Acceuil

suivante

xfonts fix  Garniture Mousse pour fix Standard: Acheter dans plus de 270 ...  Quick-Fix Keychain  tono fix you (Tono Monofónico fix you) (sonnerie.01net.com)  Détails constructifs. CYPE. FIX: Planchers Inclinés. Détails ...  WinSock XP Fix 1.2  HOUSE OF FIX - LIMITED EDITION T-SHIRTS ! - Les news de Bikini Test  Firefox Bug 246078 Fix :: Mozilla Stuff :: JohnHaller.com  DIVFIX.MAXELINE.COM - Offical DivFix homepage - divx, avi, video ...  Permanent Fix for the Shmoo Group exploit - The OLD TechLifeBlogged  McKenzie can fix front-row woes - Rugby - Fox Sports  engrais - Bio Fix Grotek  Porte-bidon, bottle fix kit de fixation pour porte bidon  East Bay SPCA  Ultim'Fix Spray Coiffant Studio Line de L'Oréal Paris  PocketPCFreeware : Notification Clear Fix 1.2  XTREM'FIX - produits professionnels Bostik  Fix-max, fix-wear, fixmax, se fixe partout!  Fix It Tools - cheap power tools, discount air tools and hand tools  Why Search Sucks & You Won't Fix It The Way You Think  Fix My Essay: Personal Statement and Admissions Essay Help ...  JScreenFix - Fix stuck pixels  The Daily Fix  Télécharger Div Divx Fix Repair Joiner. Fixez le dossier endommagé ...  CRAOWIKI - Fix Fix  BUG FIX définition BUG FIX  Télécharger Norton 2000 BIOS Test/Fix: version 1.0 [Freeware ...  Daily Funny Fix / Media  Couverture Zewi-Fix Bleu 60 x 120 cm Zewi Bébé jou (Zewi Bébé jou)  Couverture Zewi-Fix Ciel 90 x 190/200 cm Zewi Bébé jou (Zewi Bébé jou)  Chancelière Cabrio Fix Athletic : enfant - article bébé à petit prix  fix : traduction fix dans le dictionnaire MEDIADICO  FIX: Fatal error: Allowed taille de la mémoire de 8388608 octets ...  Free advice on how to fix your bicycle  fortycentfix!  Télécharger WinSock XP Fix  VICHY THERMAL FIX MAT  Pants'Fix trousers solution women femme - Vidéos Actualités Mode ...  Flickr: FIX MY PIC  Wii Strap Fix - a photoset on Flickr  Coop's Daily Joke Fix  FixVideoResolutionHowto - Community Ubuntu Documentation  Qwik-Fix qfcoresvc  Daily Fix Coffee  New Statesman - The road fix  jem & fix - Lavpris byggemarked  Définition : FIX - informatique Gers, vente, maintenance ...  Forum AideInfo.com :: Voir le Forum - (FIX) Correctifs et mises à ...  IBM - 6.0.2.7: WebSphere Application Server V6.0.2 Fix Pack 7 for ...  Fix-It : Home  Neowin.net - Apple Releases Fix for iMac Freeze Issue, fix not enough  Restaurant Fix Saint Geneys Haute-loire Restaurants Fix Saint Geneys  Développeur C++ /Protocoles FIX/ Bourse - Freelance-info  Forums de wow-europe.com -> [INADMETTABLE] Fix teh banner ffs ...  Avi Fix Repair Joiner : télécharger Avi Fix Repair Joiner  Tax Fix  Jackie Craven: The Fix  BYO - In Memoriam: Dr. George J. Fix III  How to fix the Firefox memory leak (Firefox hack) « // Internet ...  Télécharger Object Fix Zip - 01net. Telecharger.com ...  Theory Fix (Isabelle2005: October 2005)