GB18030字符集在VxWorks中的显示和输入实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着计算机的发展和应用的普及,实时计算机系统在工业、交通、能源、科学研究和科学试验、国防等各个领域发挥极其重要的作用。VxWorks作为主流的嵌入式操作系统,已经在我国得到越来越广泛的应用,但它并不能处理四字节长度的字符。中国政府于2000年3月17日颁布的GB18030-2000编码标准采用了单字节、二字节和四字节字符混合的方式进行汉字编码,并要求国内所有文字信息处理产品采用该标准。
     本文在现有VxWorks系统的基础上,采用原有的字符显示原理,构造汉字的数据结构、点阵信息,使得VxWorks能够正确识别和转换GB18030编码标准字符集中的字符,同时在WindML中正确显示GB18030编码标准字符。
     本文还介绍了汉字输入法的一些基本概念和原理,并以五笔字型输入法为例,详细描述了GB18030编码标准字符在VxWorks中的输入实现。
Following the popularization of Computer Development and Application, the Real-time computer System becomes more and more important in the areas of Industry, Transportation, Scientific Research, Scientific Examination, and National Defence, etc. As the main Embedded Operation System, VxWorks has been used in comprehensive fields in our country, while it cannot manage characters with the length of four bytes. GB18030-2000 Coding Standard, which was issued by Chinese government on March 17, 2003, adopting a mixed way of single byte, two bytes, and four bytes to coding the Chinese Characters, and requiring that all domestic products of characters information processing must match with this standard.
     Based on VxWorks and using the intrinsic theory of characters displaying, this article constructs the date structure of Chinese characters and lattice information so that all characters of GB18030 Coding Standard can be identified and exchanged in VxWorks and can be exactly displayed in WindML.
     This article also introduces some basic concepts and principles of Chinese characters imputing, and particularly describes how to imputing characters matching with GB18030 Coding Standard in VxWorks.
引文
1 王金刚,宫霄霖.基于VxWorks的嵌入式实时系统设计.第1版.北京:清华大学出版社,2004
    2 王金刚.VxWorks网络程序员指南.第1版.北京:清华大学出版社,2002
    3 王金刚.VxWorks BSP开发人员指南.第1版.北京:清华大学出版社,2003
    4 王金刚.VxWorks程序员指南.第1版.北京:清华大学出版社,2002
    5 李方敏.VxWorks高级程序设计.第1版.北京:清华大学出版社,2004
    6 王金刚.Tornado用户指南.第1版.北京:清华大学出版社,2004
    7 陈智育.VxWorks程序开发实践.第1版.北京:人民邮电出版社,2004
    8 王学龙.嵌入式VxWorks系统开发与应用.第1版.北京:人民邮电出版社,2003
    9 罗国庆.VxWorks与嵌入式软件开发.第1版.北京:机械工业出版社,2003
    10 程敬原.VxWorks软件开发项目实例完全解析.第1版.北京:中国电力出版社,2005
    11 孔祥营,柏桂枝.嵌入式实时操作系统VxWorks及其开发环境Tornado.第1版.北京:中国电力出版社,2002
    12 周启平,张杨.VXWORKS下设备驱动程序及BSP开发指南。第1版.北京:中国电力出版社,2004
    13 吴琼,张杨.VXWORKS开发指南与TORNADO实用手册.第1版.北京:中国电力出版社,2004
    14 邝坚.TORNADO/VXWORKS入门与提高.第1版.北京:科学出版社,2005
    15 陈曙晖.嵌入式系统一体系结构、编程与设计.第1版.北京:清华大学出版社;2005
    16 探矽工作室.嵌入式系统开发圣经.第1版.北京:中国青年出版社;2002
    17 郑灵翔.嵌入式系统设计与应用开发.第1版.北京:北京航空航天大学出版社,2006
    18 Tony Graham.Unicode:A Primer.First Edition.U.S.A.:Wiley,2000
    19 王式杰,邢小茹.汉字录入与编辑技术.第4版.北京:电子工业出版社,2004
    20 汪仕.新编汉字录入与文字处理标准教程.第1版.成都:成都时代出版社,2005
    21 侯捷.Effective C++中文版.第1版.武汉:华中科技大学出版社,2001
    22 郭大海.实用C语言编程.第3版.北京:中国电力出版社,2000
    23 冯舜玺.数据结构与算法分析—C语言描述.第2版。北京:机械工业出版社,2004
    24 邱仲潘.C语言参考手册.第5版.北京:机械工业出版社,2003
    25 林锐,顾晓刚,谢义军.高质量程序设计指南—C++/C语言.第1版.北京:电子工业出版社,2002
    26 陈继辉.C语言嵌入式系统开发.第1版.北京:中国电力出版社,2003
    27 郑扣根.操作系统概念(翻译版).第5版.北京:高等教育出版社,2005
    28 陈渝.操作系统——精髓与设计原理.第5版.北京:电子工业出版社,2006
    29 Stanley B.Lippman.深度探索C++对象模型(影印版)第1版.北京:中国电力出版社,2003
    30 Andrei Alexandrescu.C++设计新思维(影印版)第1版.北京:中国电力出版社,2003
    31 周靖.C++面向对象程序设计.第4版.北京:清华大学出版社,2003
    32 Bjarne Stroustrup.The C++ Programming Language.3rd Edition.U.S.A.:Pearson Education,2000
    33 Brian w.Kernighan,Dennis M.Ritchie.C程序设计语言(影印版).第2版.北京:清华大学出版社,2000
    34 Raj Kamal.Embedded Systems:Architecture,Programming and Design.1Edition.U.S.A.:McGraw-Hill,2006
    35 Frank VahidTony Givargis.Embedded System Design:A Unified Hardware/Software Introduction.First Edition.U.S.A.:Wiley,2001
    36 David E.Simon.An Embedded Software Primer.First Edition.U.S.A.:Pearson Education,2000
    37 Michael Barr.Programming Embedded Systems in C and C++.First Edition.U.S.A.:O'Reilly,1999
    38 Christof Wehner.Tornado and Vxworks.First Edition.U.S.A.:Demand Gmbh,2005
    39 Jane W.S.Real-Time Systems.First Edition.U.S.A.:Prentice Hall,2000
    40 Jukka Korpela.Unicode Explained.First Edition.U.S.A.:O'Reilly,2006