用户名: 密码: 验证码:
基于Android平台的双向文本编辑及显示
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着世界信息产业的迅速发展,智能手机已经作为人们获取资讯的主要设备之一,尤其是自2007年11月12号,开放手机联盟发布Google Android SDK以后,Android操作系统利用其开源性的巨大优势,在全世界范围内发动了其迅速扩张的大幕。两年前Android操作系统就已经完全超越了昔日的霸主--诺基亚Symbian操作系。然而目前发布的Android2.3平台却不支持阿拉伯语的显示,这必将给有阿拉伯语编辑和显示需求的用户使用移动手机带来了诸多不便。因此,实现Android2.3平台上的阿拉伯文显示,对促进中东地区的经济及信息发展将起到一定的推动作用。
     本论文针对阿拉伯文的书写特点,结合已有系统,实现了双向文本显示排版引擎的设计,并且应用该引擎实现了基于Android平台的双向文本编辑器。本论文研究的主要内容及成果如下:
     1:双向文本显示排版引擎的设计及开发。主要解决了两个关键的技术问题:
     1):解决双向文本的显示问题。因为双向文本的逻辑顺序和视觉顺序不一致,为了双向文本的正确显示,所以在显示的过程中要将文本的逻辑顺序转换为视觉顺序。
     2):实现阿拉伯文字的变形问题。因为阿拉伯文字不像中文字和英文字母它们的名义字符和显示字符一致,对于阿拉伯字符来说,名义字符和显示字符是不一致的,它的显示字符会因为名义字符在文本中所处位置的不同而不同,所以阿拉伯字符在显示时需要经过一定的变形处理,才可正确显示。
     2:利用实现的双向文本显示排版引擎,设计了一个基于Android平台的双向文本编辑器。该编辑器支持阿拉伯字符的输入,双向文本的显示并且具有文本操作的基本功能,比如文本的保存、新建,删除,字符的插入,字体大小、颜色的设置以及文本对齐方式设置等。
Smartphone has become one of the main equipment to acquire information with the rapid development of the information technology and particularly the development of the new generation mobile internet devices. Especially since November12,2007, the Open Handset Alliance released the first edition of Google Android SDK. Android operating system swept the world quickly by its huge advantage of open-source. Two years ago,the android operating system has been beyond Nokia's Symbian operation system which dominates the markets for decades. However, the display of the Arabic characters is not supported on the android platform2.3.To display the Arabic characters on the android2.3platform will promote the development of economic and information in the Middle East region.
     In this paper, according to the characteristics of Arabic writing, the bi-directional text displaying layout engine were designed and realized based on the existing system, The bidirectional text editor based on Android platform with the this engine was implemented as well. The main content and results of this paper are as follows:
     1:The design and implementation of the bi-directional text layout engine. The bi-directional text layout engine process is aimed to solve two problems:
     1):Firstly, the display of the bi-directional text. For bi-directional text, the ordering between logical and visual is various. The logical sequence should be converted to visual order during the display processing. Bi-directional text would be displayed correctly by this way.
     2):Secondly, the Arabic characters deformation problem. The Arabic characters' name letters and displaying letters are inconsistent as the same name letter may be written in different displaying forms depending on its position in the sentence. A certain deformation processing is required in order to display Arabic characters correctly.
     2:The bi-directional text editor is designed and implemented based on android platform by using the realized bi-directional text displaying layout engine. It supports the Arab character inputting, bi-directional text displaying and the basic text manipulation features, such as text saving, creating, deleting, insertion of characters, font size settings, color settings, and text alignment settings.
引文
[1]扶松柏Android开发从入门到精通[M].北京希望电子出版社.2012.01.
    [2]崔启亮.软件国际化与本地化管理[J].软件世界.2006.12(5):58-59.
    [3]刘磊,周作栋,彭永昱.安卓手机的前景与现状[J].成功(教育)[J].2013.295.
    [4]韩敬海,丁春强等Android程序设计[M].电子工业出版社.2012.02.
    [5]张伟,卢友飞,张岩,缪成,李晓敦.永中OFFICE维、哈、柯文版的关键技术及其实现[J].计算机工程与应用.2007.05(43):90-93
    [6]张志杰.智能手机操作系统的竞争与发展研究[D].北京邮电大学博士研究生学位论文.2012.05.
    [7]金晓耕.智能手机操作系统行业格局分析[J].科技创业月刊2012.09(9):38-39.
    [8]赵朋飞.智能手机操作系统Google Android分析[J].科技信息.2011.08(23):69-70.
    [9]朱旭冬.智能手机操作系统:三分天下or两户争斗[J].消费指南.2011.03:66-68.
    [10]李宗恒,李俭伟.主要智能手机操作系统发展现状及前景展望[J].移动通信.2010.02(3):115-117.
    [11]Majdi Beseiso,Abdul R,ahim Ahmad,Roslan Ismail. An Arabic Language FrameWork for SeMantic Web[C]. Noah S.A.N,Omar N,Crestani F等.2011 International Conference on Semantic Technology and Information Retrieval (STAIR 2011). Putrajaya,Malaysia.2011.
    [12]贾彦明,吴建.一种支持多语言文本布局方向的文档处理模型[J].中文信息学报.2005.12(1):60-62.
    [13]董治江,吴建,钟义信.基于OpenType的复杂文本语言处理的研究与实现[J].计算机应用研究.2003.10(10):158-161
    [14]马莉,马宁,王燕凤.浅谈民文版软件的国际化与本地化[J].电脑与信息.2009(08):93-94.
    [15]施春宏.语言规范化应加强理论建设——戴昭铭《规范语言学探索》读后[J].汉语学习.2001.04(02):77-79.
    [16]芮建武,吴健,孙玉芳.国际化文字处理综述[J].中文信息学报.2005.01(2):87-92.
    [17]芮建武.操作系统国际化基础的研究与实践[D].中国科学研究生院博士学位论文,2005.
    [18]JohnH,Jenkins. The Unicode character-glyphmodel:Case studies [A]. In:15th InternationalUnicode Conference[C],San Jose,California,USA,September 1999.
    [19]Joshua Hadley,DirkMeyer. Script-specific font features [A]. In:Eighteenth InternationalUnicode Conference[C],Hong Kong,April 2001. The Unicode Consortium.
    [20]吴海辉,樊庆林,王虎TrueType字体技术的研究分析与应用电脑知识与技术(学术交流)[J].2007-02:783-784.
    [21]姚大富,杨斌.QT图形库下基于OpenType字库的复杂文本显示研究[J].2010,10(6):608-611.
    [22]Sharon Correll-Graphite:An extensible rendering engine for complex writing systems [C]-The 17th Int'l Unicode Conf,2000
    [23]冯灵清,杨怀卿,刘宇晶.常用编码方式及其格式转换[J].计算机时代2011.11(1):33-35.
    [24]钟小莉,谢旻旻,李永宁.文字编码与Unicode编码研究[J].电子信息2010.10:364.
    [25]DAVIS M. Unicode Standard Annex#14:The Bidirectional Algorithm [EB/OL]. http://www.unicode.org/reports/tr14/,2012.
    [26]Unicode协会The Unicode Standard,Version5.0孙伟峰,李德龙.清华大学出版社.2010.01.
    [27]WEINSTEINV. Getting Started With ICU [A]. San Jose:Proceed-ings of the 26th Internationalization and Unicode Conference[C].2004.
    [28]Leisher,Mark. "The UCData Unicode Character Properties and Bidi AlgorithmPackage."Available:http://crl.nmsu.edu/-mleisher/ucdata.html. Retrieved: July 17,2000.
    [29]Grobgeld,Dov. "A Free Implementation of the Unicode Bidi Algorithm."Available:http://imagic.weizmann.ac.il/-dov/freesw/FriBidi/.Retrieved: July 17,2003
    [30]李培峰,朱巧明,钱培德.一个面向信息处理的双向文字处理算法IBidi [J]计算机应用.2007.06(6):1514-1516.
    [31]EDWARD S. A Framework for Multilingual Information Processing[D]. Doctoral dissertation, USA:Florida Institute of Technology,2003.
    [32]Becker, Joseph. "Arabic Word Processing." Communication of the ACM, July 1987, Volume 30, Number 7:600-610.
    [33]IBM Corporation. National Language Support Bidi Guide, NLDG Volume 3. IBM Canada Ltd.1995
    [34]Steven Atkin.A framework for multilingual information processing:[Ph D dissertation] [D]-Florida Institute of Technology,2002
    [35]Jones, Simon P. et al. "Report on the Programming Language Haskell 98, A Non-strict, Purely Functional Language." Yale University,Department of Computer Science Tech Report YALEU/DCS/RR-1106, February 1999.
    [36]霓红军.基于Android系统的数据存储访问机制研究[J].2013.03(6).http://www.cnki.net/kcms/detail/61.1450.TP.20130305.0816.020.html.
    [37]尹京花,王华军.基于Android开发的数据存储[J].数字通信.2012.06(6):79-81.
    [38]彭艳,杨欧Android平台的数据存储技术[J].计算机系统应用.2012.05(5):192-194.
    [39]Altuwaijri, Bayoumi.Arabic text recognition using neural networks[C]. Proceedings of IEEE International Symposium on Circuits and Systems-ISCAS '94. London, UK. 1994.
    [40]艾赛提江.艾拜都拉.永中Office多语言混合排版设计与实现[D].新疆大学硕士研究生学位论文.2005.
    [41]Mohammad Shirali-Shahreza,M.Hassan Shirali-Shahreza.An Improved Version of Persian/Arabic Text Steganography Using "La" Word[C].2008 IEEE Joint 6th National Conference on TelecommunicationTechnologies & 2nd Malaysia Conference on Photonics. Putrajaya, Malaysia.2008.
    [42]Mohammad Shirali-Shahreza,Sajad Shirali-Shahreza.Persian/Arabic Unicode Text Steganography[C].4th International Symposium on Information Assurance and Security. Napoli, ITALY.2008.
    [43]Erich Gamma,RichardHelm,Ralph Johnson,JohnVlissides.设计模式可复用面向对象软件的基础.李英军,马晓星,蔡敏,刘建中等.机械工业出版社.2010.07
    [44]马越.Android的架构与应用[D].中国地质大学硕士研究生学位论文.2008.
    [45]陈勋.基于Android平台的资源管理器设计[D].电子科技大学硕士研究生学位论文.2011.
    [46]宋小倩,周东升.基于Android平台的应用开发研究[J].2011.02(18):104-106.
    [47]许文庆,郑美容.基于Android的智能手机应用开发的研究[J].2012.08(24):55-57
    [48]王向辉,张国印,沈浩.Android应用程序开发[M].清华大学出版社.2010.
    [49]吴想想.基于Android平台软件开发方法的研究与应用[D].北京邮电大学硕士研究生学位论文.2011.
    [50]张伟,任大明,许晓辉,赵凡,张岩.维、哈、柯文显示及排版技研究[J].计算机应用研究.2008.03(3):836-843.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700