Monday, 7. August 2006, 15:15:39
随笔杂记, Essay, 户外, Outdoor
八月初,北京天气闷热,回到家乡小小休整一番。四日,与友人登市郊玲珑峰,周边有景点名曰龙凤洞。
此处连绵群峰间三条窄河,蜿蜒南下汇成流经承德市中心的武烈河,周围景色一绿无边。
群山中有一山顶有座小庙,不知供奉哪一方的神仙,是我们首先攀登的目标,山不高,但中途路段颇为陡峭,好景加一点困难,使得此次户外小走显得非常完整,回家后于是胡乱拼诗一首。
路险无惧香尘厚 何怨偏向顶峰来
庙外青山无限碧 一啸神清两江开
首先攀登的有庙的小峰:

在山顶庙外了望青山绿水,有这样的美景抒怀,何必翻越险阻只为求神? :)

Monday, 7. August 2006, 02:06:45
Linux, Debian & Ubuntu
贴一份字体配置文件上来,算是备份,也为其它使用中文的兄弟提供个参考吧:)
基本上我在fonts.conf中保留原样,只调整一下字体顺序,其它的一些特殊设置全写进local.conf这个文件
my fonts.conf
=============
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<!-- Font directory list -->
<dir>/usr/share/fonts</dir>
#<dir>/usr/share/X11/fonts</dir>
#<dir>/usr/X11R6/lib/X11/fonts/TrueType/</dir>
#<dir>/usr/lib/X11/fonts/TrueType/</dir>
#<dir>/usr/local/share/fonts</dir>
#<dir>~/.fonts</dir>
<!--
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>DejaVu Serif</family>
<family>Bitstream Vera Serif</family>
<family>FreeSerif</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ShanHeiSun Uni</family>
<family>SimSun</family>
<family>Microsoft YaHei</family>
<family>AR PL ZenKai Uni</family>
<family>FangSong_GB2312</family>
<family>SimHei</family>
<family>KaiTi_GB2312</family>
<default><family>serif</family></default>
</alias>
<!--
Sans-serif faces
-->
<alias>
<family>DejaVu Sans</family>
<family>Bitstream Vera Sans</family>
<family>Tahoma</family>
<family>Crystal clear</family>
<family>FreeSans</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ShanHeiSun Uni</family>
<family>SimSun</family>
<family>Microsoft YaHei</family>
<family>AR PL ZenKai Uni</family>
<family>FangSong_GB2312</family>
<family>SimHei</family>
<family>KaiTi_GB2312</family>
<default><family>sans-serif</family></default>
</alias>
<!--
Monospace faces
-->
<alias>
<family>DejaVu Sans Mono</family>
<family>Bitstream Vera Sans Mono</family>
<family>A.D.MONO</family>
<family>FreeMono</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ShanHeiSun Uni</family>
<family>NSimSun</family>
<family>Microsoft YaHei</family>
<family>AR PL ZenKai Uni</family>
<family>FangSong_GB2312</family>
<family>SimHei</family>
<family>KaiTi_GB2312</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>
<!--
AMT provides metric and shape compatible fonts for these three web font
families.
-->
<alias>
<family>Times New Roman</family>
<accept><family>Thorndale AMT</family></accept>
</alias>
<alias>
<family>Arial</family>
<accept><family>Albany AMT</family></accept>
</alias>
<alias>
<family>Courier New</family>
<accept><family>Cumberland AMT</family></accept>
</alias>
<alias>
<family>ZapfDingbats</family>
<accept><family>Dingbats</family></accept>
</alias>
<alias>
<family>Symbol</family>
<accept><family>Open Symbols L</family></accept>
</alias>
<!--
Some Asian fonts misadvertise themselves as monospaced when
in fact they are dual-spaced (half and full). This makes
FreeType very confused as it forces all widths to match.
Undo this magic by disabling the width forcing code -->
<match target="font">
<test name="family"><string>GulimChe</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>DotumChe</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>BatangChe</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>GungsuhChe</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<!--
The Bitstream Vera fonts have GASP entries suggesting that hinting be
disabled below 8 ppem, but FreeType ignores those, preferring to use
the data found in the instructed hints. The initial Vera release
didn't include the right instructions in the 'prep' table. Fix this
by disabling hinting manually at smaller sizes (< 8ppem)
-->
<match target="font">
<test name="family">
<string>Bitstream Vera Sans</string>
</test>
<test name="pixelsize" compare="less">
<double>7.5</double>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>Bitstream Vera Serif</string>
</test>
<test name="pixelsize" compare="less">
<double>7.5</double>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>Bitstream Vera Sans Mono</string>
</test>
<test name="pixelsize" compare="less">
<double>7.5</double>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
<!--
Load per-user customization file
-->
<include ignore_missing="yes">~/.fonts.conf</include>
<!--
Load local system customization file
-->
<include ignore_missing="yes">conf.d</include>
<include ignore_missing="yes">local.conf</include>
<!--
Load local ubuntu-specific language custom file
-->
<include ignore_missing="yes">language-selector.conf</include>
<!--
Provide required aliases for standard names
-->
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>Bitstream Vera Serif</family>
<family>FreeSerif</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>SimSun</family>
<family>Microsoft YaHei</family>
<family>AR PL ZenKai Uni</family>
<family>FangSong_GB2312</family>
<family>SimHei</family>
<family>KaiTi_GB2312</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu Sans</family>
<family>Bitstream Vera Sans</family>
<family>Tahoma</family>
<family>Crystal clear</family>
<family>FreeSans</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>SimSun</family>
<family>Microsoft YaHei</family>
<family>AR PL ZenKai Uni</family>
<family>FangSong_GB2312</family>
<family>SimHei</family>
<family>KaiTi_GB2312</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>DejaVu Sans Mono</family>
<family>Bitstream Vera Sans Mono</family>
<family>A.D.MONO</family>
<family>FreeMono</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>NSimSun</family>
<family>Microsoft YaHei</family>
<family>AR PL ZenKai Uni</family>
<family>FangSong_GB2312</family>
<family>SimHei</family>
<family>KaiTi_GB2312</family>
</prefer>
</alias>
<!--
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>0.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>
<!--
Synthetic emboldening for fonts that do not have bold face available
-->
<match target="font">
<!-- check to see if the font is just regular -->
<test name="weight" compare="less_eq">
<int>100</int>
</test>
<!-- check to see if the pattern requests bold -->
<test target="pattern" name="weight" compare="more_eq">
<int>200</int>
</test>
<!-- set the embolden flag -->
<edit name="embolden" mode="assign">
<bool>true</bool>
</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>0x0020</int><!-- SPACE -->
<int>0x00A0</int><!-- NO-BREAK SPACE -->
<int>0x00AD</int><!-- SOFT HYPHEN -->
<int>0x034F</int><!-- COMBINING GRAPHEME JOINER -->
<int>0x0600</int><!-- ARABIC NUMBER SIGN -->
<int>0x0601</int><!-- ARABIC SIGN SANAH -->
<int>0x0602</int><!-- ARABIC FOOTNOTE MARKER -->
<int>0x0603</int><!-- ARABIC SIGN SAFHA -->
<int>0x06DD</int><!-- ARABIC END OF AYAH -->
<int>0x070F</int><!-- SYRIAC ABBREVIATION MARK -->
<int>0x115F</int><!-- HANGUL CHOSEONG FILLER -->
<int>0x1160</int><!-- HANGUL JUNGSEONG FILLER -->
<int>0x1680</int><!-- OGHAM SPACE MARK -->
<int>0x17B4</int><!-- KHMER VOWEL INHERENT AQ -->
<int>0x17B5</int><!-- KHMER VOWEL INHERENT AA -->
<int>0x180E</int><!-- MONGOLIAN VOWEL SEPARATOR -->
<int>0x2000</int><!-- EN QUAD -->
<int>0x2001</int><!-- EM QUAD -->
<int>0x2002</int><!-- EN SPACE -->
<int>0x2003</int><!-- EM SPACE -->
<int>0x2004</int><!-- THREE-PER-EM SPACE -->
<int>0x2005</int><!-- FOUR-PER-EM SPACE -->
<int>0x2006</int><!-- SIX-PER-EM SPACE -->
<int>0x2007</int><!-- FIGURE SPACE -->
<int>0x2008</int><!-- PUNCTUATION SPACE -->
<int>0x2009</int><!-- THIN SPACE -->
<int>0x200A</int><!-- HAIR SPACE -->
<int>0x200B</int><!-- ZERO WIDTH SPACE -->
<int>0x200C</int><!-- ZERO WIDTH NON-JOINER -->
<int>0x200D</int><!-- ZERO WIDTH JOINER -->
<int>0x200E</int><!-- LEFT-TO-RIGHT MARK -->
<int>0x200F</int><!-- RIGHT-TO-LEFT MARK -->
<int>0x2028</int><!-- LINE SEPARATOR -->
<int>0x2029</int><!-- PARAGRAPH SEPARATOR -->
<int>0x202A</int><!-- LEFT-TO-RIGHT EMBEDDING -->
<int>0x202B</int><!-- RIGHT-TO-LEFT EMBEDDING -->
<int>0x202C</int><!-- POP DIRECTIONAL FORMATTING -->
<int>0x202D</int><!-- LEFT-TO-RIGHT OVERRIDE -->
<int>0x202E</int><!-- RIGHT-TO-LEFT OVERRIDE -->
<int>0x202F</int><!-- NARROW NO-BREAK SPACE -->
<int>0x205F</int><!-- MEDIUM MATHEMATICAL SPACE -->
<int>0x2060</int><!-- WORD JOINER -->
<int>0x2061</int><!-- FUNCTION APPLICATION -->
<int>0x2062</int><!-- INVISIBLE TIMES -->
<int>0x2063</int><!-- INVISIBLE SEPARATOR -->
<int>0x206A</int><!-- INHIBIT SYMMETRIC SWAPPING -->
<int>0x206B</int><!-- ACTIVATE SYMMETRIC SWAPPING -->
<int>0x206C</int><!-- INHIBIT ARABIC FORM SHAPING -->
<int>0x206D</int><!-- ACTIVATE ARABIC FORM SHAPING -->
<int>0x206E</int><!-- NATIONAL DIGIT SHAPES -->
<int>0x206F</int><!-- NOMINAL DIGIT SHAPES -->
<int>0x3000</int><!-- IDEOGRAPHIC SPACE -->
<int>0x3164</int><!-- HANGUL FILLER -->
<int>0xFEFF</int><!-- ZERO WIDTH NO-BREAK SPACE -->
<int>0xFFA0</int><!-- HALFWIDTH HANGUL FILLER -->
<int>0xFFF9</int><!-- INTERLINEAR ANNOTATION ANCHOR -->
<int>0xFFFA</int><!-- INTERLINEAR ANNOTATION SEPARATOR -->
<int>0xFFFB</int><!-- INTERLINEAR ANNOTATION TERMINATOR -->
</blank>
<!--
Rescan configuration every 30 seconds when FcFontSetList is called
-->
<rescan>
<int>30</int>
</rescan>
</config>
</fontconfig>
My local.conf
=============
<fontconfig>
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
配置粗体中文显示,要配合freetype-2.1.10,libxft-2.1.7,fontconfig-2.3.X
-->
<match target="font">
<!-- check to see if the font is just regular -->
<test name="weight" compare="less_eq">
<int>100</int>
</test>
<!-- check to see if the pattern requests bold -->
<test target="pattern" name="weight" compare="more_eq">
<int>180</int>
</test>
<!-- set the embolden flag -->
<edit name="embolden" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
default settings for all fonts.
-->
<match target="font" >
<!-- 打开字体的反锯齿即AA,大号字用AA会更美观 -->
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle" >
<const>hintfull</const>
</edit>
<!-- 打开hint -->
<edit mode="assign" name="hint" >
<bool>true</bool>
</edit>
<!-- 关闭autohint -->
<edit mode="assign" name="autohint" >
<bool>false</bool>
</edit>
</match>
<!-- 关闭小字体的AA -->
<match target="font" >
<test name="lang" compare="contains">
<string>zh-cn</string>
<string>zh-tw</string>
<string>ja</string>
<string>ko</string>
</test>
<test compare="more_eq" name="pixelsize" qual="any" >
<double>8</double>
</test>
<test compare="less_eq" name="pixelsize" qual="any" >
<double>16</double>
</test>
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
<!-- 字体替换 -->
<match target="pattern">
<test name="family">
<string>DeJaVu Sans</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>AR PL ShanHeiSun Uni</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>Tahoma</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>SimSun</string>
</edit>
</match>
<!-- 解决英文字体间距过宽 -->
<match target="font">
<test target="pattern" name="lang" compare="contains">
<string>zh-tw</string>
<string>zh-cn</string>
<string>ja</string>
<string>ko</string>
</test>
<edit name="spacing">
<const>proportional</const>
</edit>
<edit name="globaladvance">
<bool>false</bool>
</edit>
</match>
<!--
设定中文最小字号,使得小字的中文美观
-->
<match target="font" >
<test name="family" qual="any" >
<string>WenQuanYi Bitmap Song</string>
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL SenKai Uni</string>
<string>SimSun</string>
<string>NSimSun</string>
<string>SimHei</string>
<string>FangSong_GB2312</string>
<string>KaiTi_GB2312</string>
<string>FZSongTi</string>
<string>FZMingTiB</string>
<string>AR PL New Sung</string>
</test>
<test compare="more_eq" name="pixelsize" >
<int>8</int>
</test>
<test compare="less_eq" name="pixelsize" >
<int>12</int>
</test>
<edit compare="eq" name="pixelsize" >
<int>12</int>
</edit>
</match>
</fontconfig>
Sunday, 6. August 2006, 17:46:59
Linux, Debian & Ubuntu
非常喜欢mplayer,她几乎提供了我在linux要看电影的所有需要,可是常常在搭建自己的桌面时又无法放弃totem,因为它的简单,因为它能支持rm流媒体文件的拖动(mplayer中只能用快捷键快进,拖动无效)等一些小小的方便之处,也因为我更喜欢totem那种播放器GUI的形式。
如果您和我有一样的喜好,那么kmplayer将是一个超酷的选择(当然,与totem不同的是,这是一个基于KDE环境下的播放软件),故名思义,这东西应该是mplayer的一个前端或者移植,但比这更多的是,它还同时支持xine和gstream后端,一个软件支持三种后端,就几乎把当前linux下主流的播放方式都兼容了,只要在各种后端间切换,就可以供你选择各种后端不同的优势,真是个好播放器啊,在我的fluxbox下,它的启动还要快于totem和mplayer,真的很好──我在编译安装了这个软件以后,正式aptitude remove了totem-xine
Wednesday, 2. August 2006, 18:22:57
Essay, 随笔杂记, Outdoor, 户外
在你身边的,你往往未必懂得,就像大多数故乡人对避暑山庄。
很久以来,各种大帽子扣到了人们眼中这座大公园上,与学术界极高评价对应的是我们内心的怀疑──实在没觉得它有那么多的超凡之处。
直到今年五一,,和老友半日之内,穿梭与松枝灌木之间,在半无路半有路的山内走访了二十几处山庄未修缮的建筑遗址,才深深感觉到这座皇家园林的雄浑与伟大!
山庄原有建筑群130余处,著名的康乾72景原本只是其中被“钦点”的而已,现在游人看到的,更只是以“缺乏科学严谨精神”的态度所修复的湖区和山区显要处30余景,修复中工艺的精湛也与昔日相去甚远。
现存于山庄深山内的多处遗址之宏大超出想像,这些建筑均依山势而建,落差很大,仅从现存的基石,也不难想像当年盛况。
现在所称的梨花伴月沟,据史记当年更有27坐桥横卧溪流之上,连成独有的“曲径”。
我想,既然名为“山庄”,恐怕这山内洞天,才是这座园林的灵魂渊源。
站在这些遗址上,远望可能并无多大变化的迤逦山色,徒叹岁月无情之余,想像着当年这些景观犹在之时的样子,更慨叹所谓园林艺术的最高峰,其实便藏在这残垣断壁之间啊!
从山庄出来以后,犹在暗暗感叹,便写了首不成格调的小诗。
2006年5月6日,这趟山庄晨游,不虚此行:)
三百年来兴衰尽 三百年去楼台空
遍阅新彩无诗兴 始知古人描不成
阁不在时见形胜 寺无存处禅意浓
不识山庄真面目 只缘未入深山中
Showing posts 1 -
5 of 6.