⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 766.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
                    <TBODY>
                    <TR>
                        <TD vAlign=top width="80%"> 
                          <DIV align=center>
                        <FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
                            </FORM>
                        <TABLE cellSpacing=0 cellPadding=0 width="95%" 
                          border=0><TBODY>
                          <TR>
                            <TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif" 
                          height=30></TD></TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=3 width="95%" 
                        align=center border=0>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=0 cellPadding=3 width="100%" 
                              border=0>
                                <TBODY>
                                <TR>
                                      <TD vAlign=top> 
<p><FONT class=normalfont><B><font color=blue>谈谈redhat9KDE的汉化</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:calting<br>来自:Linux知识宝库<br>联系方式:无名<br><br>笔者前不久装了redhat9,进入kde发现其中文字体比以前确实有很多改进,除了字体有点淡之外<br>
比起以前笔者的7.2,好看了不少,也许以后的某个版本不要我们动手汉化了.<br>
ok! let'go!<br>
1.先去掉xft的字体支持<br>
<br>
a. 修改 /etc/bashrc文件,加入 export GDK_USE_XFT=0<br>
<br>
b. 运行qtconfig,选Fonts.将:<br>
<br>
Enable Anti-Aliasen Font Stpport (Xft)<br>
<br>
Anti-Alias Fonts by Default<br>
<br>
前的"交差"取消,保存退出.<br>
<br>
2. 建立目录:<br>
笔者是这样的 mkdir /usr/share/fonts/winfonts<br>
<br>
3. 从 Windows 下拷出simsun.ttc、SimSun18030.ttc、tahoma.ttf及tahomabd.ttf到以上目录,将simsun.ttc、SimSun18030.ttc改为ttf字体.<br>
然后 ttmkfdir&gt;fonts.dir<br>
修改fonts.scale使其与如下相似:<br>
<br>
12<br>
tahoma.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1<br>
ai=0.3:tahoma.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-1<br>
tahomabd.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-1<br>
ai=0.3:tahomabd.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-1<br>
:1:SimSun18030.ttf -misc-NSimSun_18030-medium-r-normal--0-0-0-0-m-0-gb18030.2000-1<br>
SimSun18030.ttf -misc-SimSun_18030-medium-r-normal--0-0-0-0-m-0-gb18030.2000-1<br>
:1:simsun.ttf -misc-NSimSun-medium-r-normal--0-0-0-0-m-0-gb2312.1980-0<br>
:1:simsun.ttf -misc-NSimSun-medium-r-normal--0-0-0-0-m-0-gbk-0<br>
:1:simsun.ttf -misc-NSimSun-medium-r-normal--0-0-0-0-m-0-iso10646-1<br>
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0<br>
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gbk-0<br>
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-iso10646-1<br>
<br>
然后 cat fonts.scale&gt; fonts.dir<br>
<br>
<br>
5. 修改/etc/X11/XF86Config添加:<br>
FontPath "/usr/share/fonts/winfonts"注意要添加在unix/:7100这一行前面。<br>
再在module段中添加:<br>
<br>
Load "xtt"<br>
<br>
(注意注释掉"load type1"和"load freetype"模块. )<br>
<br>
像这样:<br>
#load type1<br>
#load freetype<br>
<br>
6. 修改/etc/fonts/fonts.conf,<br>
<br>
&lt; !-- Font directory list configured on Mon Sep 9 15:24:30 EDT 2002 -- &gt;<br>
<br>
  &lt; dir &gt;/usr/share/fonts/winfonts&lt; /dir &gt; #这是我们加上去的<br>
  &lt; dir &gt;/usr/X11R6/lib/X11/fonts/Type1&lt; /dir &gt;<br>
  &lt; dir &gt;/usr/share/fonts&lt; /dir &gt;<br>
  &lt; dir &gt;~/.fonts&lt; /dir &gt;<br>
  &lt; dir &gt;/usr/local/zhfonts&lt; /dir&gt;<br>
<br>
 必需修改的第二处:<br>
<br>
<br>
  &lt; !--<br>
  If the font still has no generic name, add sans-serif<br>
  -- &gt;<br>
  &lt; match target="pattern" &gt;<br>
  &lt; test qual="all" name="family" compare="not_eq" &gt;<br>
    &lt; string &gt;Simsun&lt; /string &gt;<br>
  &lt; /test &gt;<br>
  &lt; test qual="all" name="family" compare="not_eq" &gt;<br>
    &lt; string &gt;Simsun&lt; /string &gt;<br>
  &lt; /test &gt;<br>
  &lt; test qual="all" name="family" compare="not_eq" &gt;<br>
    &lt; string &gt;Simsun&lt; /string &gt;<br>
  &lt; /test &gt;<br>
  &lt; edit name="family" mode="append_last" &gt;<br>
    &lt; string &gt;Simsun&lt; /string &gt;<br>
  &lt; /edit &gt;<br>
  &lt; /match &gt;<br>
<br>
<br>
此处的修改可让不支持汉字的字库使用SimSun字库 .<br>
<br>
   &lt; match target="font" &gt;<br>
&lt; test name="lang" compare="contains" &gt;<br>
&lt; string &gt;ko&lt; /string &gt;<br>
&lt; /test &gt;<br>
&lt; edit name="hinting" mode="assign" &gt;<br>
&lt; bool &gt;false&lt; /bool &gt;<br>
&lt; /edit &gt;<br>
&lt; /match &gt;<br>
&lt; match target="font" &gt;<br>
&lt; test name="lang" compare="contains" &gt;<br>
&lt; string &gt;zh&lt; /string &gt;<br>
&lt; /test &gt;<br>
&lt; edit name="hinting" mode="assign" &gt;<br>
&lt; bool &gt;true&lt; /bool &gt;# 去掉中文(zh)字体的平滑功能(将fale改成true)。<br>
&lt; /edit &gt;<br>
&lt; /match &gt;<br>
<br>
<br>
重起Xwindow<br>
<br>
再运行qtconfig,在Fonts选择你喜欢的字体,这个时候就可以找到simsun了。保存退出。<br>
<br>
在KDE选simsun字体.<br>
<br>
*****************************************************<br>
附录:<br>
我把前面的方法稍作解释<br>
在fonts.dir文件里tahoma.ttf及tahomabd.ttf是用来显示英文的<br>
初学这可能对里面的设置不理解<br>
最上面的12意思是下面有12行<br>
以ai=0.3:tahomabd.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-1 作为例子<br>
ai=0.3意思是右倾斜0.3宽度,tahomabd.ttf是字体文件名(任你取名),misc是组织名这里大概是微软的意思吧,<br>
SimSun是这个字体的真实明,(其实这里我们骗了一下电脑,目的是用他来显示英文),bold是粗体字,i是斜体字,(medium是普通字)<br>
( r是罗马体,)<br>
0对应的是字体大小,这个系统会自动修改所以一般设为0,<br>
0 点大小,同上.<br>
0 X轴解析度,同上.<br>
0 Y轴解析度,同上.<br>
c 字间距为c,即一个汉字的距离,另外还有p,即英文字符距离<br>
0 平均宽度,系统自动修改,所以一般为0.<br>
iso8859-1是字符集,另外上面四种字体可以在windows中得到SimSun18030,可到微软网站下载<br>
后者xp中得到.大家没必要装SimSun18030,他只不过比simsun多了一些少数民族字符,而且他在xtt的驱动下没有simsun好看,有点得不偿失.<br>
我们把FontPath "/usr/share/fonts/winfonts"放在unix/:7100的原因是使我们的设置在重起之后不被xfs字体服务器还原.<br>
xtt,freetype,type1,都是用来驱动truetype字体的,属于系统模块,相比之下,xtt较好<br>
大家可以发现redhat9的本地local是gb18030他是gb2312和gbk的扩充.增加了四字节的编码,目的是为了解决一些生、偏、难字的问题<br>
支持全部中日韩(CJK)统一汉字字符<br>
1.xmms显示中文:<br>
-misc-simsun-medium-r-normal--12-*-*-*-c-*-gb2312.1980-0,fixed<br>
<br>
2. 在用mozilla作浏览器时注意选字符集gb18030或gbk.因为gb2312对有些生坯字不能显示.<br>
* ***************************************<br>
*我的qq是88936393 *<br>
*email :lt-fdisk@163.com 欢迎大家和我一起讨论linux<br>
*** *************************************<br>
</FONT><br>
                                      </TD>
                                    </TR>
                                <TR>
                                <TD colSpan=2><FONT 
                                class=middlefont></FONT><BR>
                                        <FONT 
                                class=normalfont>全文结束</FONT> </TD>
                                    </TR>
                                <TR>
                                <TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2 
                                height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
                        <TD vAlign=top width="20%" 
                      background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2> 
                          <DIV align=center> 
                            <table class=tableoutline cellspacing=1 cellpadding=4 
                        width="100%" align=center border=0>
                              <tr class=firstalt> 
                                <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
                                <font class=normalfont><b>所有分类</b></font></td>
                              </tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td>    </tr>  </table></td></tr>                            </table>
                          </DIV></TD></TR>
                    <TR vAlign=top>
                        <TD width="80%"> 
                          <DIV align=center><BR>
                          </DIV>
                        </TD></TR></TBODY></TABLE></TD></TR>
                </TABLE></TD></TR>
          </TABLE>
      <TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee 
        border=0><TBODY>
        <TR>
          <TD width="50%">
              <P><FONT class=middlefont>版权所有 &copy; 2004 <A 
            href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
                违者必究. </FONT></P>
            </TD>
          <TD width="50%">
              <DIV align=right><FONT class=middlefont>Powered by: <A 
            href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
            </TD></TR></TBODY></TABLE>
      <CENTER></CENTER></TD></TR>
    </TABLE></CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -