LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 23887|回复: 78

MDK 9.2 完全美化 绝对详细步骤及所需文件打包

[复制链接]
发表于 2003-10-22 01:46:47 | 显示全部楼层 |阅读模式
目的:供大家在系统安装后汉化美化使用。为了兼容性起见,正文为英文。可以在没有汉化/美化好,或者汉字为方块,乱码的console下显示。

来源:步骤英文为原创。所需汉字字体美化原理由quicktime 兄所整理的美化方案提供;其他步骤由我们论坛上的其他兄弟们所整理的美化方案改编。gdm,firebird 字体美化由penny提供一并谢过
为兼容性起见,本人的汉字部分的美化步骤为最多步骤, 或许可以省去某一步也可以实现;哪位兄弟发现了请回贴,最好说明原理.hehe

注意:在gnome下的gedit 的locale 为utf-8 ,现在linux下的中文编码真让我等菜鸟头大,什么isoxxx;gb2312; gb13080; gbk;cpxxx;unicode;所以如果直接从网页上copy到编辑器里看的时候要注意。最好不要用gedit  。 尤其是代码部分!!所以我把所需要的一些文件打包了,可以按照步骤直接copy相应的文件到指定的位置便可。要注意某些文件的“执行”权限!!eg:  flyfirebird   要不然就只是一个文本文件了,不起作用。

注意: 本文的方法是中规中矩的方法,对系统没有大的更改,出错了可以很方便的手动改回来:到目前也没出过什么错。呵呵 。原理和quicktime在9.1下的快速美化脚本是一样的,只是考虑到9.2 和9.1的差异性,还是一步一步自己来吧。也另外添加了一些内容,比如,网页字体显示问题,  firebird启动器,Open Office 的字体等.

全文:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

A.  what you need to take care before you guys install the system (important!!)

     1.zh_CN  in installing the system ,locale ,no advanced ,other locale; no other locale in install some softwares. take care!!!
     2.LILO, acpi check---make sure to  select the ACPI in the LILO configuration when  the system installing  .   
     3.     null
     4.the locale of gedit ,the default is utf-8  !!  not we selected gb18030 or gbxxx
     5.the permission of the file ,espescially in the non-root acount.-----when you copy the file  I supplied . eg:  rwxrwxrwx  
     6.do not install the xcin ; chinput  .if you don't like the Chinput/miniChinput .
the fact is :It doesn't work well after our this PP method .
      7.do not select the gnome--galaxy theme  package when install the system  .It will draft any other  theme you installed  into  the gnome galaxy-liking;  eg:  the border and the button .   the other theme can not make effect  at all .  


B. X-windows  Fonts  optimize for chinese
        a. create  the directory   /usr/share/fonts/zh_CN/TrueType/simsun
        b. copy the fonts simsun.ttf (renamed from simsun.ttc ) ;  tahoma.ttf     tahomabd.ttf   etc. to this directory
=================================================================

        c.scretch the file      fonts.dir  as following code   (full)



        63
simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:simsun.ttf -misc-simsun-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:simsun.ttf -misc-simsun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0
ab=y:simsun.ttf -misc-simsun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:ab=y:simsun.ttf -misc-simsun-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:ab=y:simsun.ttf -misc-simsun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0
sw=1:bw=0.5:simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-c-0-iso8859-1
ab=y:sw=1:bw=0.5:simsun.ttf -misc-simsun-bold-r-normal--0-0-0-0-c-0-iso8859-1
ai=0.2:sw=1:bw=0.5:simsun.ttf -misc-simsun-medium-o-normal--0-0-0-0-c-0-iso8859-1
ai=0.4:sw=1:bw=0.5:simsun.ttf -misc-simsun-medium-i-normal--0-0-0-0-c-0-iso8859-1
ai=0.2:ab=y:sw=1:bw=0.5:simsun.ttf -misc-simsun-bold-o-normal--0-0-0-0-c-0-iso8859-1
ai=0.4:ab=y:sw=1:bw=0.5:simsun.ttf -misc-simsun-bold-i-normal--0-0-0-0-c-0-iso8859-1
ai=-0.2:sw=1:bw=0.5:simsun.ttf -misc-simsun-medium-ro-normal--0-0-0-0-c-0-iso8859-1
ai=-0.4:sw=1:bw=0.5:simsun.ttf -misc-simsun-medium-ri-normal--0-0-0-0-c-0-iso8859-1
ai=-0.2:ab=y:sw=1:bw=0.5:simsun.ttf -misc-simsun-bold-ro-normal--0-0-0-0-c-0-iso8859-1
ai=-0.4:ab=y:sw=1:bw=0.5:simsun.ttf -misc-simsun-bold-ri-normal--0-0-0-0-c-0-iso8859-1
ai=-0.4:simsun.ttf -misc-simsun-medium-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:ab=y:simsun.ttf -misc-simsun-bold-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:simsun.ttf -misc-simsun-medium-ro-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:ab=y:simsun.ttf -misc-simsun-bold-ro-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-c-0-gbk-0
ai=0.2:simsun.ttf -misc-simsun-medium-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:simsun.ttf -misc-simsun-medium-i-normal--0-0-0-0-c-0-gbk-0
ab=y:simsun.ttf -misc-simsun-bold-r-normal--0-0-0-0-c-0-gbk-0
ai=0.2:ab=y:simsun.ttf -misc-simsun-bold-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:ab=y:simsun.ttf -misc-simsun-bold-i-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:simsun.ttf -misc-simsun-medium-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:ab=y:simsun.ttf -misc-simsun-bold-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:simsun.ttf -misc-simsun-medium-ro-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:ab=y:simsun.ttf -misc-simsun-bold-ro-normal--0-0-0-0-c-0-gbk-0
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-koi8-u
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-koi8-r
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-16
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-15
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-14
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-13
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-10
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-9
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-8
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-7
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-6
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-5
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-4
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-3
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-2
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-1
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-koi8-u
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-koi8-r
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-16
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-15
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-14
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-13
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-10
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-9
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-8
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-7
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-6
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-5
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-4
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-3
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-2
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-1



          d.save the file  fonts.scale  ,now there are same two files  fonts.dir  and  fonts.scale  in the  directory   /usr/share/fonts/zh_CN/TrueType/simsun
===================================================================
          e. scretch the file  encodings.dir   in this directory   as the following code  (full)




40
big5.eten-0 /usr/X11R6/lib/X11/fonts/encodings/large/big5.eten-0.enc.gz
viscii1.1-1 /usr/X11R6/lib/X11/fonts/encodings/viscii1.1-1.enc.gz
microsoft-cp1258 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1258.enc

microsoft-cp1252 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1252.enc
microsoft-cp1253 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1253.enc
microsoft-cp1250 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1250.enc
microsoft-cp1251 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1251.enc
microsoft-cp1256 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1256.enc
microsoft-cp1257 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1257.enc
microsoft-cp1254 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1254.enc
mulelao-1 /usr/X11R6/lib/X11/fonts/encodings/mulelao-1.enc
microsoft-cp1255 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1255.enc
jisx0212.1990-0 /usr/X11R6/lib/X11/fonts/encodings/large/jisx0212.1990-0.enc.gz
jisx0208.1990-0 /usr/X11R6/lib/X11/fonts/encodings/large/jisx0208.1990-0.enc.gz
big5.cp950-0 /usr/X11R6/lib/X11/fonts/encodings/large/big5.eten-0.enc.gz
jisx0208.1983-0 /usr/X11R6/lib/X11/fonts/encodings/large/jisx0208.1983-0.enc.gz
big5-0 /usr/X11R6/lib/X11/fonts/encodings/large/big5.eten-0.enc.gz
gb2312.1980-0 /usr/X11R6/lib/X11/fonts/encodings/large/gb2312.1980-0.enc.gz
adobe-symbol /usr/X11R6/lib/X11/fonts/encodings/adobe-symbol.enc.gz
adobe-standard /usr/X11R6/lib/X11/fonts/encodings/adobe-standard.enc.gz
microsoft-ansi /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1252.enc
tis620-0 /usr/X11R6/lib/X11/fonts/encodings/iso8859-11.enc
tis620.2529-1 /usr/X11R6/lib/X11/fonts/encodings/iso8859-11.enc
armscii-8 /usr/X11R6/lib/X11/fonts/encodings/armscii-8.enc
gbk-0 /usr/X11R6/lib/X11/fonts/encodings/large/gbk-0.enc.gz
mulearabic-2 /usr/X11R6/lib/X11/fonts/encodings/mulearabic-2.enc
tis620.2533-0 /usr/X11R6/lib/X11/fonts/encodings/iso8859-11.enc
mulearabic-0 /usr/X11R6/lib/X11/fonts/encodings/mulearabic-0.enc
mulearabic-1 /usr/X11R6/lib/X11/fonts/encodings/mulearabic-1.enc
tis620.2533-1 /usr/X11R6/lib/X11/fonts/encodings/iso8859-11.enc
jisx0201.1976-0 /usr/X11R6/lib/X11/fonts/encodings/large/jisx0201.1976-0.enc.gz
ksc5601.1987-0 /usr/X11R6/lib/X11/fonts/encodings/large/ksc5601.1987-0.enc.gz
ibm-cp437 /usr/X11R6/lib/X11/fonts/encodings/ibm-cp437.enc
tcvn-0 /usr/X11R6/lib/X11/fonts/encodings/tcvn-0.enc
ibm-cp852 /usr/X11R6/lib/X11/fonts/encodings/ibm-cp852.enc
ibm-cp866 /usr/X11R6/lib/X11/fonts/encodings/ibm-cp866.enc
ibm-cp850 /usr/X11R6/lib/X11/fonts/encodings/ibm-cp850.enc
iso8859-13 /usr/X11R6/lib/X11/fonts/encodings/iso8859-13.enc
iso8859-11 /usr/X11R6/lib/X11/fonts/encodings/iso8859-11.enc
adobe-dingbats /usr/X11R6/lib/X11/fonts/encodings/adobe-dingbats.enc.gz


==================================================================
           f.modify the /etc/fonts/fonts.conf  as following  (full):


           <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts.conf file to configure system font access -->
<fontconfig>

<!--
The intent of this standard configuration file is to be adequate for
most environments. If you have a reasonably normal environment and
have found problems with this configuration, they are probably
things that others will also want fixed. Please send any suggested
changes to fonts@xfree86.org so that future releases can include
such changes.

Keith Packard
-->

<!-- Font directory list configured on Mon Sep 9 15:24:30 EDT 2002 -->

<dir>/usr/share/fonts/zh_CN/TrueType/simsun</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir>
<dir>/usr/share/fonts</dir>
<dir>/home/OtherFont</dir>
<dir>/usr/share/yudit/fonts</dir>
<dir>/usr/local/starsuite6.0/share/fonts/truetype</dir>
<dir>~/.fonts</dir>

<!--
Enable sub-pixel rendering
<match target="font">
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
-->
<match target="font">
<test qual="any" name="pixelsize" compare="less">
<double>17</double>
</test>
<test qual="any" name="family" compare="eq">
<string>simsun</string>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool></edit>
</match>
<!--
Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
<match target="pattern">
<test qual="any" name="family">
<string>mono</string>
</test>
<edit name="family" mode="assign">
<string>monospace</string>
</edit>
</match>

<!--
Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans serif</string>
</test>
<edit name="family" mode="assign">
<string>sans-serif</string>
</edit>
</match>

<!--
Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans</string>
</test>
<edit name="family" mode="assign">
<string>sans-serif</string>
</edit>
</match>

<!--
Mark common families with their generics so we'll get
something reasonable
-->

<!--
Serif faces
-->
<alias>
<family>Tahoma</family>
<family>Simsun</family>
<family>Times</family>
<family>Times New Roman</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Kochi Mincho</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Batang</family>
<default><family>serif</family></default>
</alias>
<!--
Sans-serif faces
-->
<alias>
<family>Tahoma</family>
<family>SimSun</family>
<family>Helvetica</family>
<family>Arial</family>
<family>Verdana</family>
<family>Nimbus Sans L</family>
<family>Luxi Sans</family>
<family>Kochi Gothic</family>
<family>AR PL KaitiM GB</family>
<family>AR PL KaitiM Big5</family>
<family>Baekmuk Dotum</family>
<default><family>sans-serif</family></default>
</alias>
<!--
Monospace faces
-->
<alias>
<family>Tahoma</family>
<family>NSimSun</family>
<family>Courier</family>
<family>Courier New</family>
<family>Andale Mono</family>
<family>Luxi Mono</family>
<family>Nimbus Mono L</family>
<default><family>monospace</family></default>
</alias>
<!--
If the font still has no generic name, add sans-serif
-->
<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>sans-serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>monospace</string>
</test>
<edit name="family" mode="append_last">
<string>sans-serif</string>
</edit>
</match>

<!--
Load per-user customization file
-->
<include ignore_missing="yes">~/.fonts.conf</include>

<!--
Load local system customization file
-->
<include ignore_missing="yes">local.conf</include>

<!--
Alias well known font names to available TrueType fonts
-->
<alias>
<family>Times</family>
<accept><family>Times New Roman</family></accept>
</alias>
<alias>
<family>Helvetica</family>
<accept><family>Verdana</family></accept>
</alias>
<alias>
<family>Arial</family>
<accept><family>Verdana</family></accept>
</alias>
<alias>
<family>Courier</family>
<accept><family>Courier New</family></accept>
</alias>

<!--
Provide required aliases for standard names
-->
<alias>
<family>serif</family>
<prefer>
<family>Tahoma</family>
<family>Simsun</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Kochi Mincho</family>
<family>ZYSong18030</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Batang</family>
<family>Times New Roman</family>
<family>Times</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Tahoma</family>
<family>SimSun</family>
<family>Luxi Sans</family>
<family>Nimbus Sans L</family>
<family>Helvetica</family>
<family>Kochi Gothic</family>
<family>ZYSong18030</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Gulim</family>
<family>Verdana</family>
<family>Arial</family>

</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Tahoma</family>
<family>Simsun</family>
<family>Luxi Mono</family>
<family>Nimbus Mono L</family>
<family>Kochi Gothic</family>
<family>ZYSong18030</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Gulim</family>
<family>Andale Mono</family>
<family>Courier New</family>
</prefer>
</alias>

<!--
We can't hint CJK fonts well, so turn off hinting for CJK fonts.
-->

<match target="font">
<test name="lang" compare="contains">
<string>ja</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<!-- the rh_prefer_bitmaps options (a nonstandard
Red Hat extension), controls whether embedded
bitmaps, when available are preferred
to antialiased rendering. For Japanese,
we prefer antialiased rendering -->
<edit name="rh_prefer_bitmaps" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="lang" compare="contains">
<string>ko</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="lang" compare="contains">
<string>zh</string>
</test>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
</match>

<!--
Artificial oblique for fonts without an italic or oblique version
-->

<match target="font">
<!-- check to see if the font is roman -->
<test name="slant">
<const>roman</const>
</test>
<!-- check to see if the pattern requested non-roman -->
<test target="pattern" name="slant" compare="not_eq">
<const>roman</const>
</test>
<!-- multiply the matrix to slant the font -->
<edit name="matrix" mode="assign">
<times>
<name>matrix</name>
<matrix><double>1</double><double>.2</double>
<double>0</double><double>1</double>
</matrix>
</times>
</edit>
<!-- pretend the font is oblique now -->
<edit name="slant" mode="assign">
<const>oblique</const>
</edit>
</match>

<!--
Add by firefly@firefly.idv.tw
Artificial bold for fonts without a bold version.
-->
<match target="font">
<!-- check to see if the pattern requested > "medium" -->
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<!-- pretend the font is bold now -->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match>

<!--
Add by firefly@firefly.idv.tw
Artificial bold for fonts without a bold version.
-->
<match target="font">
<!-- check to see if the pattern requested > "medium" -->
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<!-- pretend the font is bold now -->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match>


<config>
<!--
These are the default Unicode chars that are expected to be blank
in fonts. All other blank chars are assumed to be broken and
won't appear in the resulting charsets
-->
<blank>
<int>0x20</int> <!-- space -->
<int>0xa0</int> <!-- nsbp -->
<int>0x2000</int> <!-- general punctuation spaces -->
<int>0x2001</int>
<int>0x2002</int>
<int>0x2003</int>
<int>0x2004</int>
<int>0x2005</int>
<int>0x2005</int>
<int>0x2006</int>
<int>0x2007</int>
<int>0x2008</int>
<int>0x2009</int>
<int>0x200a</int>
<int>0x200b</int>
<int>0x3000</int> <!-- CJK space -->
</blank>
<!--
Rescan configuration every 30 seconds when FcFontSetList is called
-->
<rescan>
<int>30</int>
</rescan>
</config>

</fontconfig>


              g.install the xft2-2.1.1-3mdk.firefly.i586.rpm
              h.modify the /etc/X11/XF86Config-4


                 in  Section "Files"  add
                      FontPath "/usr/share/fonts/zh_CN/TrueType/simsun"
                                # where you place the simsun+tahoma

                 in Section "Module"   add
                      Load "xtt"
                                                and disabled by insert "#" before them
                      Load "type1"
                      Load "freetype"
  ===========================================================
              i.modify the /etc/gtk/gtkrc.zh_CN   (full)  to  optimize  the gtk 1.0  's program Fonts   in the KDE/Gnome    eg: xmms  gimp

              


# $(gtkconfigdir)/gtkrc.zh_CN
#
# This file defines the fontsets for Chinese language (zh) using
# the simplified chinese standard GuoBiao as in mainland China (CN)
#
# 1999, Pablo Saratxaga <pablo@mandrakesoft.com>
#

#the original code in the QuickTime
#style "gtk-default-zh-cn" {
#fontset = "-*-tahoma-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0,*-r-*,\
#-misc-simsun-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0"
#}
#class "GtkWidget" style "gtk-default-zh-cn"

style "gtk-default-zh-cn" {
fontset = "-microsoft-tahoma-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
-misc-simsun-medium-r-normal--12-*-*-*-*-*-gbk-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"

C. the Theme of the gtk/gtk2 program in the KDE
        
       a. the  gtk2.0  theme and Fonts   in the KDE
                         1)  install the theme in the gnome
                         2) go into my baby KDE
=========================================================
                         3) modify the file  ~/.gtkrc-2.0  like the following   for gtk 2.0     
(full)




#/home/youraccout/.themes/XXXX   is  where the theme installed  ,it also can be install in the /usr/share/themes  

include "/home/youraccout /.themes/XXXX/gtk-2.0/gtkrc"  

# optimize the  font  that gtk 2.0 in the KDE

style "user-font"
{
font_name="tahoma 9"
}
widget_class "*" style "user-font"

============================================================
                          b.  the  gtk1.0  theme    in the KDE ;  like xmms ,gimp
modify the file  ~/.gtkrc like the following   for  the them of  gtk 1.0




# /home/pyouraccout/.themes/XXXX   is  where the theme installed  ,it also can be install in the /usr/share/themes  

include "/home/youraccout/.themes/XXX/gtk/gtkrc"     

      #where the theme installed   and find  the "gtkrc" file in the gtk folder if the re is the gtk folder.

==============================================================


         
              c. do not  install the linuxfans-xft2!! To install xft2-2.1.1-3mdk.firefly.i586.rpm  is good engouh.
               d.logout login
                e. modify the  /etc/X11/Xresources     Xft.dpi: 96  for kde  

             f.set gnome 96,9; and the kde 96,9; tahoma ; the font setting of  kde konquer  is in the control centre-->component-->file manager-->font


               g. install the Chinese input fcitx  .You can choose others .but the Xsim in the 9.1  can not work well in the 9.2 .   After you install the fcitx from rpm ,nothing needs to be configured.

               h.  Open Office 1.1  , install the OO; it's very very very  good .   replace the "tahoma" to  the "simsun" in the  option-->fonts .  then use the system fonts  in the "others option" .then you can see the beautiful simsun fonts in your OO menu .   

===============================================================================
                   i. the Chinese fonts in  xmms  playlist ,check the "using the  fontscollect" in the perference of font in xmms  , then copy the following code in it   

   
   -microsoft-tahoma-medium-r-normal-*-*-120-*-*-p-*-iso8859-1 ,-misc-simsun-medium-r-normal-*-*-120-*-*-c-*-iso8859-1



                  
                    D  .the menu/html  font  of    the galeon  ,mozilla , firebird  ;the gdm   . You will find it  :   prefectly!!!!!
============================================================================
                       add the code to the  /etc/fonts/fonts.conf



<!--linusware  found  in linuxsir -->
<match target="pattern">
                 <test qual="any" name="family" compare="eq">
                         <string>SimSun</string>
                 </test>
                 <edit name="family" mode="prepend_first" binding="strong">
                         <string>Tahoma</string>
                 </edit>
         </match>



                E .the gnome-terminal  vim will  work perfectly with the gnome-terminal ,the rvxt should be needed, no CJK needed.

===============================================================
                 F.MozillaFirebird one user use the same  one  profile  ---it makes one window   use one  profile originally  !!!  shit!
                    scratch the shellscript by following method  (full):

  

  #!/bin/bash
MozillaFirebird -remote "openurl($@, new-window)" >& /dev/null || MozillaFirebird $@

         if you like tab :
MozillaFirebird -remote "openurl($@, new-tab)">& /dev/null || MozillaFirebird $@





                      then    save as flyfirebird in the same directory with the MozillaFirebird
                        then ln -s /usr/local/MozillaFirebird/MozillaFirebird  /usr/local/bin/MozillaFirebird
                        then ln -s /usr/local/MozillaFirebird/flyfirebird  /usr/local/bin/flyfirebird


                        take care about the permission in non-root account        -x       executable!!!


                    G.stickynotes   install automatically in the gnome 2.4
                 H.stardict :  install the stardict  rpm for 9.1 can cause the crash of the menu !!!
                  I. firebird 0.7 flash plugin : use the rpm in the  folder
                 J. backup the /usr/share/applnk-mdk  when after/before install a program that may make the menu crash
                 L . install the gnome icon   copy it to the  folder     ~/.icons
and choose it from the theme chooser in the gnome if this icon theme works well.



>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Good luck !!!!


文件夹里有readme  先读!!大家不用复制,粘贴了。我把改好的,需要的文件打好包了。配置文件直接拷贝到目标文件夹覆盖即可。别忘了备份原来的配置文件。

  不带字体文件。自己论坛上找吧。从windows里拷也行。

倒,压缩好了700来K,不能发在这里了。我发到论坛上ftp里了。

文件夹 Mandrake9.2-PP 便是。
这个zip在9.2下由KDE制作。包括:   

fonts.dir
fonts.scale
encodings.dir
fonts.conf       其中withmozilla的可以解决firebird,mozilla ,galeon,gdm 菜单字体,网页字体 乱码,难看的问题。

xft2-2.1.1-3mdk.firefly.i586.rpm
gtkrc.zh_CN
flash插件 稳定 rpm

flyfirebird        firebird 在一个用户中可以打开多个单独的窗口而只用一个profile的启动脚本。要不然要用到多个profile ,或者老是要从菜单上和键盘开新窗口。这个作为建立启动器用。

下载地址:

http://download.linuxsir.cn/Mandrake9.2-PP/MDK9.2PPneeded.zip


在这里也可以下载到,我的屏幕效果图:
http://www.linuxfans.org/nuke/mo ... geninfo&did=485
  

英文步骤在下面这篇帖子的附件里。PPstepfor9.2

 楼主| 发表于 2003-10-22 02:58:43 | 显示全部楼层

英文步骤

PPstepfor9.2

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2003-10-22 05:10:03 | 显示全部楼层
基本上quicktime的方法
不知道你改进的地方在哪里,不过看你的美化效果很不错 是不是你的font.conf不一样?等会试试先
看着so累!!那个h条目OO是不是openofice哦?猜了半天

还有就是你那个压缩包的目录也太深了吧
发表于 2003-10-22 09:01:47 | 显示全部楼层
hoho 没有注意。
什么时候不用修改locale,都可以直接用gbk的字体了!
MDK 默认的好像是gb2312哦。
难道gtk1中的东西不是乱码?
发表于 2003-10-22 09:02:28 | 显示全部楼层
还是有点问题,你对系统本身的要求太高,自带的 miniChinput 都不能用,而且要求locale不能是zh_CN.UTF8。因为自 Mandrake 1.0 起,系统所有涉及语言的选项都要全部转到 UTF8,然后不再区分字体语言,安装完成后就是一个真正的国际系统。
 楼主| 发表于 2003-10-22 10:13:39 | 显示全部楼层
最初由 mandrakechina 发表
还是有点问题,你对系统本身的要求太高,自带的 miniChinput 都不能用,而且要求locale不能是zh_CN.UTF8。因为自 Mandrake 1.0 起,系统所有涉及语言的选项都要全部转到 UTF8,然后不再区分字体语言,安装完成后就是一个真正的国际系统。


系统的要求并不高啊,正常安装的啊。

我在安装系统的时候,是安装了miniChinput的,但是如此汉化后,miniChinput的确可以使用,经过 gtconfig 修改了不能在qt程序下输入的问题;但是就是没有解决界面字体显示成方块的问题。但是五笔,拼音输入都非常好用,打字的时候能猜着打。所以删了。  

不知道为何。mandrakechina有解决方案吗?这样,系统装好就可以用miniChinput了,就不用再装fcitx了。

具体情况是这样的,附图:
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=68418

---------------------------------------------------------------------
汉字编码的问题,我一直很糊涂,怎么这么多.........而且9.1的时候,在gnome下一用nautilus 移动或复制一些中文文件名的文件nautilus总会崩溃。在kde下ark解压有中文文件名的压缩包结果惨不忍睹。  不知道9.2 解决了没有,还没来的及试验。不过我所知galeon到现在保存,打开网页  还是不支持中文名的。

---- ---什么时候可以不在用为设置locale ,输入法,编码,字体安装,字体美化,发愁啊。  刻录光盘的时候什么时候可以不为中文字符,文件名,长文件名,特殊符号发愁啊。
-------- utf-8  ?? 我以前在论坛上听哪为兄弟说utf-8 中国政府不是不支持 ?   
---------------- 等待 Mandrake 10 。
发表于 2003-10-22 10:25:22 | 显示全部楼层
chinput.font                        =        8x16
chinput.gbfont                  =       -misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
chinput.gbkfont                  =      -misc-simsun-medium-r-normal--0-0-0-0-c-0-gbk-0
chinput.gb18030font             =       -misc-simsun-medium-r-normal--0-0-0-0-c-0-iso10646-1
chinput.big5font                =       -taipei-ming-medium-r-normal--16-160-75-75-c-160-big5-0
!
!
试试这样子!
 楼主| 发表于 2003-10-22 10:33:44 | 显示全部楼层
最初由 dlz_cn 发表
chinput.font                        =        8x16
chinput.gbfont                  =       -misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
chinput.gbkfont                  =      -misc-simsun-medium-r-normal--0-0-0-0-c-0-gbk-0
chinput.gb18030font             =       -misc-simsun-medium-r-normal--0-0-0-0-c-0-iso10646-1
chinput.big5font                =       -taipei-ming-medium-r-normal--16-160-75-75-c-160-big5-0
!
!
试试这样子!


我是不想再删了fcitx 再装 miniChinput 试了。我已经装好fctix了。可是miniChinput的确很好用。哪位兄弟装系统的时候试试这个方案行否?行的话,敬请回复。大家的输入法又多一种方案了。
 楼主| 发表于 2003-10-22 10:41:07 | 显示全部楼层
gjtk 1 没有乱码. 看见截图里的gimp了么?hehe
发表于 2003-10-22 22:00:12 | 显示全部楼层
多谢 linusware 兄了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表