BI-Directional Text Editing and Displaying Based on Android Platform

Author
ZhangMeiJing
Advisor
LouXinYuan
School
Southwest Jiaotong University
Major
Computer technology
Classification
TP391.1 Text Processing
Degree
Master's thesis
Year
2013
Downloads
7
Citations
0

Request the full text

Abstract

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.

Table of contents

Summary 6-7 Abstract 7-8 directory 8-11 Chapter 1 Introduction 11-16 <br / > 1.1 Background and Significance of 11-12 1.2 Overview of bidirectional text processing 12-14 1.2.1 bidirectional text processing content 12-13 <br / > 1.2.2 bidirectional text font handling technology status 13-14 1.3 the main research and thesis structure 14-16 1.3.1 the main contents 14 1.3.2 structure of the thesis 14-16 Chapter 2 system Requirements Analysis 16-23 2.1 Overview 16 2.2 text editor, system use case diagrams 16-17 2.3 text editor, system use case description 17-18 2.4 text editor, system functional requirements 18-23 2.4.1 typesetting bidirectional text display function analysis 19-21 2.4.2 basic functional analysis 21-22 2.4.3 font operation functional analysis 22-23 Chapter 3 program to determine the system design 23-37 3.1 scheme selection 23-27 3.1.1 Unicode encoding introduces 23-24 3.1.2 determine handle bidirectional text layout algorithm 24-26 determine nbsp 3.1.3 data storage methods ; 26-27 3.2 algorithm term 27-30 3.2.1 logical order and display order 27-29 3.2.2 bidirectional text character type 29 <br / > 3.2.3 bidirectional text direction mark 29 3.2.4 direction of the format code 29-30 3.3 system design 30-37 3.3 .1 overall system design 30-31 3.3.2 system level architecture design 31-33 3.3.3 part of the sub-module design 33-37 <br / > Chapter 4 bi-directional text display layout engine design 37-49 4.1 bidirectional text layout engine to display the overall design 37 4.2 overall bidirectional text processing 37 -39 4.2.1 bidirectional text display processing flow chart 37-38 4.2.2 character processing flow chart 38-39 4.3 bi- specific text for each module processing 39-42 4.3.1 split text 39 4.3.2 text reorientation 39-40 4.3.3 Arabic alphabet deformation 40-41 4.3.4 measurement Positioning 41-42 4.4 UniBidi improved algorithm 42-49 4.4.1 pretreatment 43-44 4.4.2 marks the direction attribute 44-47 4.4.3 reordering 47-49 Chapter 5 system implementation 49-58 5.1 Android smartphone operating system features advantage 49-51 5.1.1 Android platform 49-50 5.1.2 Android platform shortcomings 50-51 5.2 system layout engine functions to achieve 51-55 5.2.1 off -line functions to achieve 51-52 5.2.2 determine the form of the Arab character display characters 52-53 5.2.3 layout classes were added in the Arab character deformation algorithm 53 5.2.4 Arabic characters selected shape implementation process 53-54 5.2.5 to determine the character position draw characters 54-55 5.3 font basic operating functions to achieve 55-56 5.3.1 word Processing 55 5.3.2 font color and font size settings 55-56 achieve 5.4 clipboard functionality 56 5.5 applications to achieve Arabic localization 56-58 Chapter 6, system testing and application examples test 58-67 6.1 system 58-60 6.2 results show 60-66 6.2.1 bidirectional text layout to achieve results show 60-63 6.2.2 interface to achieve results show 63-66 <br / > 6.3 performance 66-67 summary and Outlook 67-68 Thanks 68-69 References 69-71