Thursday Mar 19, 2009

关于字体的Bigadmin提交文章上线

最新提交给Bigadmin的关于字体知识的文章上线了。
谈谈字体那些事(第一部分):介绍根据外形字体分类
谈谈字体那些事(第二部分):介绍根据字体数据存贮格式分类
谈谈字体那些事(第三部分):介绍字体的大小的知识


计划继续将这个系列写下去。包扩介绍字体的使用,和字体是如何显示和工作的。

Monday Mar 16, 2009

InstallFest BeiYou University HongFu brach

On Mar.15, another InstallFest at BeiYou University HongFu brach. Some pictures FYI.

Slide :

Monday Mar 09, 2009

InstallFest for Colleges - Beiyou (Beijing University of Posts and Telecommunications) Station

Last Sunday (Mar. 8) afternoon, Techgirls Group from BLUG and BOSS (Beiyou University OSS society) in Beiyou University (BUPT) co-organizing a Girls Installfest. But this time is NOT girl only activity. ;). I received invistation to be a speaker and help to the participator to install OpenSolaris. It's good opportunity to promote OpenSolaris the community.

Almost all the participants had no any experience of using Solaris. Even it is the first for a lot of them to hear of Solaris. At the beginning,I did a twenty-minutes presentation to introduce the OpenSolaris. Then, Forrest Wu, who have been work on ZFS project as a DP for more than three years, also give a very short presentation to introduce ZFS. I believe the presentations are very helpful to attract the participated students to install OpenSolaris. Especially for ZFS. :)  This afternoon, Forrest and I helped more than ten students installed OpenSolaris (dual boot or in virtualbox) successfully.

This is a successful activity. I summarized some concern of students and issue we encountered. I think these issues/concern deserve our attention and improvement in order to attract more users.

1. Parted disk - Most of student have a WindowsXP/Vista OS, so the first thing to install dual root system is disk partition. It's seems only mast partition could be recognized by installer.

2. How much size ZFS snapshot need? very small, even you can ignore it.

3. Where I can download and upgrade software? Besides default IPS server, IPS server mirror available for China : http://pkg.unix-center.net. Futher more:
blastwave (preferred)               http://blastwave.network.com:10000/
sunfreeware                         http://pkg.sunfreeware.com:9000/

4. Instance message client application: Can I use qq and fetion? Yes, pidgin support qq and fetion protocol modules. But currently, you need compile them by yourself.   I have to say that these two instance message tools are very very popular in China. The office number by Tencent, there are 4 hundred million registered users for qq. And fetion is the fastest-growing instant messaging tools in China currently which delivered by China Mobile. So if these two modules could be integrated by default for China user, it will make OpenSolaris more closed with China user.

5. Driver, as you know this is old problem, we are resolving them step by step. The good thing is that we can see most major device drive we supported. And good news is more and more device drivers will be supported in the future.

Here some pictures I'd like share with you.


Python tips - Handle text file

There are two text files, each are 10 million lines, the size of the text file at about 100M. Now need to know that the two documents there is cross-check the number of lines, in other words, we want to know the the number of lines simultaneously in the two documents exist. Each text file here is unique, so they do not have any duplicate rows. Python set could do this very easy and higher efficient than shell, awk.
#!/usr/bin/python
a = set(open(”data.uniq.1″))
b = set(open(”date.uniq.2″))
print len(a; b)
Here I find a blog in Chinese also description this tips

Thursday Feb 26, 2009

Dragon Heads-raising Day

Today is Dragon Heads-rasing Day (二月二龙抬头). Folowing is information about it which forward from BaiduZhidao.

Dragon Heads-raising Day falls on the second day of the second lunar month, which is a traditional festival. In "Imperial Capital Accounts About Seasons", Pan Rongbi in Qing Dynasty wrote the following: The second day is the Dragon Heads-raising Day. On the day, farmers and villagers made an ash path into the houses and kitchens, then wind around the water vats from the outside. This is called leading the dragons back to houses. People in the capital city fry broomcorn millet flour, cakes made of wheat flour and dates, husked wheat rice, and other things as their food. They call this "fumigating insects".

Dragons are auspicious omen, for which Chinese people have an admiration that bordered on worship. Dragons dominate wind and rain. So in ancient days, every time when there was a drought, people would make a straw dragon with sorghum stalks about one zhang (3.33 meters). Then in front of the straw dragon, four men carried the Dragon King’s memorial tablet on a tablet tray and in front of it, people perform acrobatics, singing and dancing, as walking on stilts, doing yangge dance, gongs, drums and flags leading the way. Everywhere contingent of parade passed, every family offered sacrifices, burned incenses and candles to worship the Dragon King. When the straw dragon passed by, people would carry buckets and sprinkle water over the straw dragon and the dragon dancers. They believe that the Dragon King would feel grateful and then make plentiful rain for the mankind.

FW:C中的宏处理

好久没发C的文章了,偶然的机会看到一篇有意思的文章,主要讲解了函数式的宏,转载了过来。原文:转自这里。这位博主还有不少对C语言有趣深入的研究文章。

p>宏的预处理这个坑看起来浅,其实还蛮深的。它也是最容易被忽视的几个地方之一。这里斗胆来谈谈,说实话,在写这句话时我也不清楚这坑究竟有多深,没关系,我们摸着石头过河,一起看看到最后这坑能有多深!同时这篇文章也将会是《C语言编程艺术》中的一部分。

从一个相对简单的例子说起吧。

#define f(a,b) a##b
      #define g(a)   #a
      #define h(a) g(a)
      h(f(1,2))
      g(f(1,2))

相信不少人都见过这个例子。我们不妨再仔细分析一下它的解析过程。应该是这样的:

对于g(f(1,2)),预处理器看到的先是g,然后是(,说明这是一个函数式的宏,好,然后替换后面的实参f(1, 2),得到#f(1,2)(注:直接这么写非法,这里只是为了表示方便而已),因为它前面有个#,所以下一步是不会替换f的参数的!所以进一步得到"f(1, 2)",解析结束。而对于h(f(1,2)),预处理器看到的先是h,然后(,对其参数f(1, 2)进行替换,得到g(f(1,2)),注意这里的下一步是,预处理器就继续往后走,处理刚得到的f(1,2),而不是回过头去再处理g!得到12,到了这里我们的得到的是一个:g(12),然后重新扫描整个宏,替换g,最后得到"12"。

标准第6.10.3.1节中对此描述的还比较清晰,它这样写道:

After the arguments for the invocation of a function-like macro have been
identified, argument substitution takes place. A parameter in the replacement
list, unless preceded by a # or ## preprocessing token or followed by a ##
preprocessing token (see below), is replaced by the corresponding argument
after all macros contained therein have been expanded.

注意加粗的部分。到了在这里,我们可以简单总结一下函数式宏的基本替换流程:

首先要识别出这是一个函数式宏,通过什么?通过调用中出现的(,没错是左括号!到这里后下一步是参数替换,就是根据该宏的定义把实参全部替换进去,然后接着向后走,除非是遇到了#和##(正如上面例子中的g),把后面替换后的东西中如果还有已知宏的话,进行替换或者同样的展开,直到解析到末尾:所有的参数都已经替换完(或者#或##已经处理完);最后,预处理器还会对整个宏再进行一次扫描,因为前一轮替换中有可能在前面替换出一些新的东西来(比如上面例子中的h)。

这里咋看之下没什么问题,其实问题很多!为什么?因为宏替换不仅允许发生在“调用”宏的时候,而且还发生在它定义时!

问题1:宏的名字本身会被替换吗?

这个问题也可以这样问:宏允许被重新定义吗?不允许,但是允许相同的重新定义。标准这样写道:

An identifier currently defined as an object-like macro shall not be
redefined by another #define preprocessing directive unless the second definition
is an object-like macro definition and the two replacement lists are identical.
Likewise, an identifier currently defined as a function-like macro shall not be
redefined by another #define preprocessing directive unless the second definition
is a function-like macro definition that has the same number and spelling of
parameters, and the two replacement lists are identical.

问题2:宏的参数(形参)会被替换吗?

先举个例子说明这个问题:

#define foo 1
#define bar(foo) foo + 2
bar(a)

我们是得到a+2还是1+2?a+2!因为形参是不会被替换掉的,你想想啊,如果形参都被替换掉了这个宏就没什么作用了!那实参呢?实参会的,因为实参的替换发生在传递这个参数之前:

Before being substituted, each argument’s preprocessing tokens are
completely macro replaced as if they formed the rest of the preprocessing file

问题3:宏中参数之外的符号会被替换吗?

会,上面提到过“after all macros contained therein have been expanded”,也就是说这个发生在参数替换之前。但是,这里有个非常诡异的问题:如果被替换出来的符号正好和形参一样怎么办?就像下面这个例子:

#define foo bar
#define baz(bar) bar + foo
baz(1)

我们会得到1+1还是1+bar?后者,因为替换出来的那个bar是不会计算在形参之内的,虽然标准并没有明确这一点。想想吧,如果是的话那个宏的定义也会被破坏了!

另一个例子:

#define foo bar
#define mac(x) x(foo)
mac(foo)

根据上面所说,我们首先得到foo(foo),然后foo再被替换成bar,最后得到bar(bar)。

好了,到这里我们终于可以看一下更复杂的例子了:

#define m !(m)+n
#define n(n) n(m)
m(m)

这个例子相当复杂,是我见过的最复杂的一个宏。:-) 刚看到我们可能都有点蒙,没关系,咱们一步一步地来。

第一步很好走,第一个m直接被替换,得到:!(m)+n(m),别犹豫,接着往下走,替换最后一个m,得到:!(m)+n(!(m)+n),这时这一遍扫描已经完成。到这里我们得提出另外一个东西才能继续,你可能知道,递归。标准对此的描述是:

If the name of the macro being replaced is found during this scan of the
replacement list (not including the rest of the source file’s preprocessing
tokens), it is not replaced.

在上次替换中,被替换的是m,所以m在这里的再次出现将不会被替换,所以下一步是会替换第一个n,得到:!(m)+!(m)+n(m),注意这里又替换出一个新的m来,这个m会被替换,因为这次扫描���没完成!下一步得到:!(m)+!(m)+n(!(m)+n),第二遍扫描结束,全部的替换完成。

综上,我们可以总结出两条重要的宏替换规则:1)再复杂的宏也只是被扫描两遍,而且递归是不允许发生的,即使在第2遍时;2)一个替换完成后如果还没扫描完,要从被替换的那里继续。

(全文完)

Sunday Feb 22, 2009

Beijing Openparty - Firefox l10n

Yesterday, I participated the Beijing Open party. I heard Beijing Open party several months ago, but until yesterday, I haven't have chance to see how was it. So, that was my first time to go there, and frankly, it's a really exited experience. Normally there are many optional topics, which brought by attendees. After attendees submit the topic, who prepare topic to do presentation, give a simple introduce, everyone need to vote which topics could be given presentation today. But this time, there are several special topic about Firefox: The over all goals of Mozilla’s Localization Program over 2009. A new software library that has been developed for l10n tools to be created . Firefox l10n introduction The speaker of the first topic, Seth Bindernagel is from Mozila US MountView office. He is the Director of Mozila l10n team. He give a very wonderful speech, and cool slide show.:) The other speaker are contributors of Mozila China l10n community. They have already translated lots of Mozila document to Chinese. It's cool and worth to be respected! Some Picture share with you:

Saturday Feb 14, 2009

It is written

After watched the movie "Slumdog Millionaire"(贫民窟的百万富翁) ; I was touched by this story. It's not only about love story, but also destiny, and I learned a word "It is written".

He cheated? He's lucky? He's a genius?
It is written.

Destiny? I believe
It is written before happen? I believe
It is all the past, the composition of the present self.
It is all the past determines the future of their own.
I do not believe that the anyone could cast off the past.
We will face the past, because it is part of our life.

It is written.
By who?
By yourself……
So, If you want a wonderful destiny.
Wirte it by yourself from now on.

FYI. Slumdog Millionaire officale site.
More comments in Chinese from Douban.

Wednesday Feb 11, 2009

font-conf 的资源连接

本篇主要是为了列出几个关于fonts有用的连接:

首先关于font-conf,英文的原版:http://www.fontconfig.org/fontconfig-user.html
有人对照着翻译了:http://cle.linux.org.tw/~edt1023/fontconfig/fontconfig-user.html
这里还有个简体中文版翻译的片段: http://hi.baidu.com/bullfire/blog/item/4efa27460a904a096b63e5a6.html
个人感觉翻译出来内容看着不如原文清楚,当然如果之前你们有任何基础直接看翻译的文章,可能更看不懂。建议原文译文一起看,来回的反复看效果会更好。
这里有几个例子,都是通过更改字体的配置解决一些实际问题的。http://lfeng.cn/2008/12/05/configure-intrepid-fonts-and-display/
Xorg:http://www.archlinux.it/wiki/index.php?title=Xorg_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
Xorg的字体配置:http://wiki.archlinux.org/index.php/Xorg%E5%AD%97%E4%BD%93%E9%85%8D%E7%BD%AE_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) 

其他一些好的文章:
字体设置:http://www.linuxsir.org/bbs/showthread.php?t=254314
介绍了好多基本的字体概念,入门者值得一看。
http://blog.chinaunix.net/u2/87783/showart.php?id=1769325
简单介绍了X系统的字体只是,以及工作的原理。如果你想了解Xwindow的字体系统,文章开头给出的三个参考连接非常值得一看。
DPI 详解: http://blog.chinaunix.net/u/28570/showart_352426.html
非常详细的讲解DPI这个概念的文章。强烈推荐。


Thursday Feb 05, 2009

Contributor of X Window System (x_win) community

Beginning of the new year 2009(On January 15, 2009), the X community granted Contributor status (Contributor grants for the X Window System (x_win) community).  I have been granted as a contributor for contribution of xi18n. Hope I can do more contributor to X community in the future.

由fontconfig 到CSS

在学习fontconfig的配置的时候看到介绍,fontconfig的配置格式解析算法使用的是css2 (Cascading Style Sheets)。自然就计入CSS的主页看了,发现这个专业自动提供很多语言的翻译,其中自然还有中文的CSS主页。这下对于不喜欢读英文的朋友可以说是个福音了。
重叠样式表 (CSS) 是一种为 Web 文档添加样式(例如字体、颜色和边距)简单机制。
举个例子,假如在一个页面或整个网站中,要求凡是标题都为  H1  、黑体字及蓝色,正文则为  4  号字、宋体及黄色,这是一种风格,也即  "  样式  "  ,通过样式表来实现这种风格。  具体的内容大家自己看吧。


The current Fontconfig matching algorithm was inherited from Xft; it was designed to provide a
mechanism similar to cascading style sheets but without actually studying and duplicating that
specification. As the differences are minor, and essentially unwarranted, the matching algorithm in
Fontconfig will be changed to make performing CSS2-style matching more convenient.
There are aspects of CSS2 which Fontconfig cannot perform, in particular, it has no context in which to
interpret terms like “bolder”, “larger” or “wider”. These must still be interpreted by the application.
However, the weight fill-in and slant substitution specifications can easily be replicated, and the relative
weight operators can be handled with some application assistance.
The resulting matching mechanism will be useful wherever CSS2 is used, and also provide a more
accessible specification as developers and users become comfortable using the CSS2 font specification
mechanisms.

Sunday Jan 18, 2009

如何让xterm 显示中文

默认安装好Xorg的xterm后,如果使用默认的配置很多中文的显示都是小方框,也就是无法显示。有2个方法可以暂时解决这个问题,不过都不是特别完美,只不过通过修改配置,或者改变了字号。估计是默认的点阵字体不全的原因,只有默写字号有比较全的字体(GB2312)。

方法1:
修改:/etc/X11/app-defaults/XTerm 中:
\*VT100.utf8Fonts.font:  -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1 
->  \*VT100.utf8Fonts.font5:  -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
\*VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
->  \*VT100.utf8Fonts.font: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
或者直接指定字体启动xterm:
xterm -fn -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1

方法2:
1、编辑 ~/.Xresources 文件,加入
        xterm\*faceName:AR PL Uming CN
        xterm\*faceSize:12
2、执行  xrdb -load .Xresources
3、重启 xterm,问题解决了。

方法3:
1、编辑 ~/.Xresources 文件 :
    XTerm\*font: -misc-fixed-medium-r-normal-\*-18-120-100-100-c-90-iso10646-1
    XTerm\*wideFont: -misc-fixed-medium-r-normal-\*-18-120-100-100-c-180-iso10646-1
2、执行  xrdb -load .Xresources
3、重启 xterm,问题解决了。

 

Monday Dec 15, 2008

Myers-Briggs type

准备Preseed的一个预备培训时,要求测试你的Myers-Briggs type,似乎每个人都要测一下。呵呵。你可以在这里在线的测试你的Myers-Briggs type: Click here

不过这个测试似乎专为美国人设计的,比如一下的两个题目就不好回答:

Individual Income Level
Under $25,000
$25,000 - $50,000
$50,000 - $75,000
$75,000 - $100,000
More Than $100,000

For most issues, which political
party more accurately reflects
your values?
Democratic
Republican

而且测试的题目需要被测试的人对自己有个大概的了解定位,因此结果难免主观。我猜测这个也许是简单版本的吧,因为之前似乎听说过也做过这样的测试,题目是相当多的选择题。Anyway,来看我的结果吧,也许可能大概不是很准确。

Your Profile

Here are the results of the Personality Type Assessment. If you are like most people, you will be impressed with how accurately these paragraphs describe you.

Extravert, iNtuitive, Thinker, Judger (ENTJ)
ENTJs represent between 2 and 5% of the U.S. population.

Natural leaders with a hearty and frank style, ENTJs tend to take charge of any situation they find themselves in. They are good organizers of people because they have the ability to see ahead and then communicate their vision to others. Usually friendly and outgoing, ENTJs have a lot of energy, often speaking, thinking and moving quickly. Excellent strategic thinkers, they grasp new concepts quickly, even complicated or complex issues and they generally convey confidence. ENTJs often juggle several projects at once, and pride themselves on completing them all with skill and efficiency. Creative and innovative, most ENTJs enjoy developing high-level strategy and leading a team or organization towards implementation. Because ENTJs are so logical and analytical, they are usually good at anything that requires reasoning and intelligence. Driven to achieve competence in all they do, they can naturally spot the flaws that may exist in a situation and see immediately how to improve them.

ENTJs Tend To Be:

• Logical, objective & analytical decision-makers
• Quick to grasp complex issues & see the "big picture"
• Strategic visionaries; long-range planners
• Determined, priority-driven & hard-working with high standards
• Confident, natural leaders
• Highly directive; quick to take ownership over their projects

Career Satisfiers
All people are most satisfied and successful when using their natural talents in an environment that is consistent with their personality preferences and values. Research shows that ENTJs are most satisfied by jobs that provide the following:

• Long-range strategic planning assignments
• The opportunity to work on challenging, intellectual problems
• A place to interact with capable, interesting & influential people
• The opportunity to generate innovate approaches to a variety of problems
• Competitive environment where accomplishments are recognized
• The opportunity to set & meet goals in a timely & efficient manner
You are just about finished!

Here are just a few popular and often satisfying careers for people whose Personality Type is ENTJ.

    \* Chief Executive Officer
    \* Network integration specialist
    \* Management consultant
    \* Politician/political manager
    \* Franchise owner
    \* Corporate finance attorney
    \* Personnel financial planner
    \* Real estate developer
    \* Marketing executive
    \* Intellectual property attorney
    \* Investment consultant/planner
    \* Economic analyst
    \* Chemical engineer
    \* Educational consultant
    \* Judge

My Rainbow - 我的色彩

不经意看到别人的blog做的 My rainbow 测试, 好奇的我也去测了一把。我选择的是绿色和黄色,得到如下输出:

Your rainbow is shaded white and indigo.

 
 
 
 
 
 
 

What is says about you: You are a contemplative person. You appreciate cities, technology, and other great things people have created. People depend on you to make them feel secure. Friends count on you for being honest and insightful.

Find the colors of your rainbow at spacefem.com.

Saturday Nov 29, 2008

(转)仓颉造字的传说 到 仓颉输入法

【仓颉的简介】
  cāng jié
  仓 颉
  也称苍颉,原姓侯冈,名颉,号史皇氏,是传说为黄帝的史官,汉字的创造者,被后人尊为中华文字始祖。但普遍认为汉字由仓颉一人创造只是传说,不过他可能是汉字的整理者。在位起讫:前4637—前4596年。
    生卒年:前4666—前4596年。
    出生地:衙邑(今陕西渭南市白水县东南)。
    立都:阳武(今河南新乡市原阳县东南)。
    年号:仓帝元年(甲辰,前4637)。
【仓颉造字的传说】
相传仓颉在黄帝手下当官。黄帝分派他专门管理圈里牲口的数目、屯里食物的多少。可慢慢的,牲口、食物的储藏在逐渐增加、变化,光凭脑袋记不住了。仓颉犯难了。
  仓颉整日整夜地想办法,先是在绳子上打结,用各种不同颜色的绳子,表示各种不同的牲口。但时间一长久,就不奏效了。这增加的数目在绳子上打个结很便当,而减少数目时,在绳子上解个结就麻烦了。仓颉又想到了在绳子上打圈圈,在圈子里挂上各式各样的贝壳,来代替他所管的东西。增加了就添一个贝壳,减少了就去掉一个贝壳。这法子顶管用,一连用了好几年。
  黄帝见仓颉这样能干,叫他管的事情愈来愈多,年年祭祀的次数,回回狩猎的分配,部落人丁的增减,也统统叫仓颉管。仓颉又犯悉了,凭着添绳子、挂贝壳已不抵事了。怎么才能不出差错呢?
  这天,他参加集体狩猎,走到一个三岔路口时,几个老人为往哪条路走争辩起来。一个老人坚持要往东,说有羚羊;一个老人要往北,说前面不远可以追到鹿群;一个老人偏要往西,说有两只老虎,不及时打死,就会错过了机会。仓颉一问,原来他们都是看着地下野兽的脚印才认定的。仓颉心中猛然一喜:既然一个脚印代表一种野兽,我为什么不能用一种符号来表示我所管的东西呢?他高兴地拔腿奔回家,开始创造各种符号来表示事物。果然,把事情管理得头头是道。
  黄帝知道后,大加赞赏,命令仓颉到各个部落去传授这种方法。渐渐地,这些符号的用法,全推广开了,就形成了文字。
  仓颉造了字,黄帝十分器重他,人人都称赞他,他的名声越来越大。仓颉头脑就有点发热了,眼睛慢慢向上移,移到头顶心里去了,什么人也看不起,造的字也马虎起来。
  这话传到黄帝耳朵里,黄帝很恼火。他眼里容不得一个臣子变坏。怎么叫仓颉认识到自己的错误呢?黄帝召来了身边最年长的老人商量。这老人长长的胡子上打了一百二十多个结,表示他已是一百二十多岁的人了。老人沉吟了一会,独自去找仓颉了。
  仓颉正在教各个部落的人识字,老人默默地坐在最后,和别人一样认真地听着。仓颉讲完,别人都散去了,唯独这老人不走,还坐在老地方。仓颉有点好奇,上前问他为什么不走。
  老人说:“仓颉啊,你造的字已经家喻户晓,可我人老眼花,有几个字至今还糊涂着呢,你肯不肯再教教我?”
  仓颉看这么大年纪的老人都这样尊重他,很高兴,催他快说。
  老人说:“你造的‘马’字,‘驴’字,‘骡’字,都有四条腿吧?,而牛也有四条腿,你造出来的‘牛’字怎么没有四条腿,只剩下一条尾巴呢?”
  仓颉一听,心里有点慌了:自己原先造“鱼”字时,是写成“牛”样的,造“牛”字时,是写成“鱼”样的。都怪自己粗心大意,竟然教颠倒了。
  老人接着又说:“你造的‘重’字,是说有千里之远,应该念出远门的‘出’字,而你却教人念成重量的‘重’字。反过来,两座山合在一起的‘出’字,本该为重量的‘重’字,你倒教成了出远门的‘出’字。这几个字真叫我难以琢磨,只好来请教你了。”
  这时仓颉羞得无地自容,深知自己因为骄傲而铸成了大错。这些字已经教给了各个部落,传遍了天下,改都改不了。他连忙跪下,痛哭流涕地表示忏悔。
  老人拉着仓颉的手,诚恳地说:“仓颉啊,你创造了字,使我们老一代的经验能记录下来,传下去,你做了件大好事,世世代代的人都会记住你的,但你可不能骄傲自大啊!”
  从此以后,仓颉每造一个字,总要将字义反复推敲,还行拿去征求人们的意见,一点也不敢粗心。大家都说好时,才定下来,然后逐渐传到每个部落去。

摘自百度百科,更多请参考:http://baike.baidu.com/view/2070.htm

【仓颉输入法】
朱邦复1980年代初在个人电脑上设计中文系统,以仓颉码为其根本,收字数万,效率甚高。

朱邦复于1982年登报公开放弃仓颉输入法专利,并且极力推动电脑之中文化。现今大部分操作系统,甚至一些电子辞典皆附有仓颉输入法,为注音以外最普及的形码输入法。以往为正体中文使用地区最常用的形码输入法,用于香港、马来西亚等地。但台湾由于智慧注音输入法之发展,以及后继发明之免费及非免费等形码输入法甚多,“万码奔腾”,仓颉输入法未成主流。目前选用仓颉输入法者,除早期使用而不愿更换外,多为其普及率考量。

朱邦复本来想根据其“汉字基因”理论,建立一“仓颉系统”,用仓颉码统一处理汉字形、音、义、码、序、辨等六大问题。其中仓颉码的原始目的是汉字检索及排序,其取码具有字首及字身的概念,以字首做为分类,字身做为补充,如此便可让电脑“理解”汉字,进而达到组字、字义理解,甚至与人沟通的功能。

由于本以汉字检索为目的,仓颉取码依据视觉辨识原理,能反映汉字的细微特征,几乎所有不同字形或异体字,都有不同的编码,因此重码率为当今中文输入法中最低。仓颉输入法亦为一般系统中字库最大者,几乎所有系统可见的字型,皆可用仓颉输入法键入,因此也成为汉字文化工作者选用的主要输入法。然而,当今主流电脑系统只提供仓颉输入法,而没有采用整套仓颉系统,因此许多原先的设计理念,如仓颉内码、字型产生器与极大字库等,皆没有实现。

然而仓颉输入法也受到许多批评,例如为顾及检索,编码规则繁复,无容错编码,加上系统字集问题[1]、字体问题[2]、版本混乱问题[3],导致规则混乱、取码麻烦,因而不少人视学习为畏途。另外仓颉输入法并未为常用字之快速输入设计简快码,标点符号之输入也略嫌不便,因此没有成为最快速的中文输入法。

目前仓颉输入法最新的公开版本是第五代,最常使用版本是第三代。待公开的第六代(又称苍颉检字法),由朱邦复的多年助手沈红莲设计,应用于他们开发的苍颉系统上,该系统字库完整收录了历代文献用字十万以上,以仓颉码作为内码,重码率低于5%。因设计符合汉字特性,获国学大师钱钟书赞赏,并指定用来进行古籍电子化。[4]第六代现仅提供部分文史专家学者使用。苍颉检字法不是为了支援统一码;朱邦复批评统一码处理汉字方法愚昧,收字不全,字序混乱,码长不等,因此不能采用。

摘自wiki百科,详情请参考:Cangjie input method

About

williamxue

Search

Archives
« March 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    
       
Today