AbiWord CZ?

BzF bzf na centrum.cz
Pondělí Leden 7 01:28:08 CET 2002


Dne Sun, 6 Jan 2002 15:56:43 +0100
Petr Šigut <petr.sigut na atlas.cz> napsal/a:

> Dobrý den,
vám též
> Jak udelam aby AbiWord zobrazoval ceske znaky ( respektive jak
> do neho naheaju ceske fonty?)
Někdo to tu popisoval asi před měsícem - zkuste archiv (nebo je to
přepsaný na http://penguin.cz/novinky-view.php3?id=406),
jinak já jsem to zkoušel pomocí TTF:
(Tohle je víceméně neupravený popis toho, co jsem posílal na fórum
mandrake.cz - prý funkční, ale nevím, jak je to S TISKEM - dle FAQ jsou
s tím (ttf) problémy - umřela mi tiskárna, jestli to budete zkoušet, dejte mi
prosím vědět, jak to dopadlo, díky moc)
---------------- tu to začíná ----------------
Pokud máte na mysli menu, tak v ~/.AbiSuite/AbiWord.Profile změnit
všechny _builtin_ na _custom_ a všechny _en-US_ na cs-CZ

Pokud písma, tak:
- někdy minulý týden bylo něco na penguin.cz (odkaz na www.linux.cz)

- nebo zkuste přiložený skript - řešil jsem to pomocí písem ttf
(ke stáhnutí http://www.microsoft.com/truetype/fontpack/win.htm
písma arial32.exe, courier32.exe times32.exe verdana32.exe
k rozbalení cabextract (odkaz nemám, autorem je Stuart Caie,
google.com ho najde :-) ))

Doplněno - od zdenek.tauer na centrum.cz
   odkaz na cabextract je http://www.kyz.uklinux.net/cabextract.php3

(nebo pokud máte windows, tak je zkuste vzít odtama)

jako root je dát do adresáře /root/tmp.ttf
(a přejmenovat je na malá písmenka - to v tom skriptu bohužel není)
ozálohovat /usr/share/AbiSuite/fonts/*
a spustit abi-ttfinst.sh (pokud aspoň trošku umíte anglicky, tak vám to
řekne, co to dělá; taky není od věci se podívat do toho skriptu, je to tam
jakž-takž popsaný)

pak přidat 
/usr/share/fonts/ttf/win
do /etc/X11/fs/config k části: catalogue = 
a
service xfs restart
restartovat X-ka (či celý počítač)
a mělo by to jet (pak smazat /root/tmp.ttf)

Oficiálně  podpora ttf už není v FAQ, protože prý jsou problémy
s jejich tiskem - nezkoušel jsem

PROSÍM, pokud to někdo budete zkoušet, a máte tiskárnu
(moje "umřela") dejte vědět, jestli se to vytiskne korektně
Díky
BzF
---------------- tu to končí ----------------
---------------- tu začíná abi-ttfinst.sh ----------------
#!/bin/sh
# abi-ttfinst.sh - a small scripts that simplifies installing
# TrueType Fonts for use with AbiWord - http://www.abisource.com
# It install ttf in /usr/share/ttf/win and creates links to them
# for AbiWord. The advantage of this is that you can use them in X.
# It even works with "hated" font - times :-)
#
# Copyright (C) 2001 BzF <bzf na centrum.cz> All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# -----------------------------------------------------------------
# I assume that you installed AbiWord properly and that it works,
# also that you have downloaded/obtained TrueType Fonts 
# 
# I tried to do it as simple as possible - so there are no prompts,
# no variables ... I hope you won't need to run it very often,
# so manual edition of this is fine :-)
# 
# It worked with abiword 0.9.0 and Microsoft's fonts -
# see http://www.microsoft.com/truetype/fontpack/win.htm for me,
# but NO WARRANTY - see above
#
# !!! PLEASE READ ALL COMMENTS (lines begining with # hash) !!!
# You will probably need run this script as root.
# -----------------------------------------------------------------
#
# !!! At first _BACKUP_ all files from /usr/share/AbiSuite/fonts to
# a secure place. If something goes wron delete all there and
# restore all the files from backup
#
# Create ~/tmp.ttf and place the fonts there
# and delete the folder afterwards - if everything is fine
#
rm -f /usr/share/AbiSuite/fonts/*
clear
echo "Have You backuped all files from /usr/share/AbiSuite/fonts ?"
echo "If no, you have about 5 seconds to abort this script (hit Ctrl+C)"
sleep 8
cd ~/tmp.ttf
# This is really important !
# Choose your encoding (my is ISO-8859-2)
# You can get help by running: /usr/share/AbiSuite/bin/ttfadmin.sh
/usr/share/AbiSuite/bin/ttfadmin.sh ./ ISO-8859-2
ttmkfdir > fonts.scale
mkfontdir
mv fonts.dir fonts.dir.orig
# This is _REALLY_ important !
# Choose your encoding - my is iso8859-2
cat fonts.dir.orig | grep "iso8859-2$" >fonts.dir.tmp
wc -l fonts.dir.tmp | sed 's/\>.*//g' | sed 's/ //g' >fonts.dir
cat fonts.dir.tmp >>fonts.dir
rm -f fonts.dir.tmp
# This is _REALLY_ important !
# Choose your favorite folder for the fonts
# this is mine: /usr/share/fonts/ttf/win
# PLEASE make sure that the specified folder does _NOT_ exist !
mkdir /usr/share/fonts/ttf
mkdir /usr/share/fonts/ttf/win
cp * /usr/share/fonts/ttf/win
ln -s /usr/share/fonts/ttf/win/* /usr/share/AbiSuite/fonts
clear
echo "If you use xfs add /usr/share/fonts/ttf/win"
echo "to /etc/X11/fs/config at section: catalogue = "
echo "and restart xfs: service xfs restart"
echo "Otherwise consult your manual"
echo "If everything is fine than delete the folder ~/tmp.ttf"
echo "Done :-)"
sleep 3

---------------- tu končí abi-ttfinst.sh ----------------
> Petr Šigut
> E-mail: petr.sigut na atlas.cz
> 
> 
> 


Další informace o konferenci Linux