KR100268179B1 - Method of displaying a hangul using the sprite data structure on risc os - Google Patents
Method of displaying a hangul using the sprite data structure on risc os Download PDFInfo
- Publication number
- KR100268179B1 KR100268179B1 KR1019970075362A KR19970075362A KR100268179B1 KR 100268179 B1 KR100268179 B1 KR 100268179B1 KR 1019970075362 A KR1019970075362 A KR 1019970075362A KR 19970075362 A KR19970075362 A KR 19970075362A KR 100268179 B1 KR100268179 B1 KR 100268179B1
- Authority
- KR
- South Korea
- Prior art keywords
- sprite
- hangul
- data buffer
- buffer
- sprite data
- Prior art date
Links
Images
Landscapes
- Document Processing Apparatus (AREA)
Abstract
Description
본 발명은 리스크 운영체제에서 스프라이트 데이터 구조를 이용한 한글 출력 방법에 관한 것이다.The present invention relates to a Hangul output method using a sprite data structure in risk operating system.
한글을 컴퓨터에서 출력하기 위해서는 일반적으로 비트맵 화일을 메모리에 저장하고, 입력에 따라 비트맵에 저장된 자소를 찾아서 글자체를 조합하는 방법이 많이 쓰이고 있다. 그러나 리스크 운영체제(RISC OS)에서는 비트맵에 관련된 라이브러리가 지원되지 않아서 한글을 종래의 방법에 따라 출력하기 위해서는 많은 전처리 과정이 필수 불가결하여 방법 자체가 매우 복잡할 뿐만 아니라, 속도가 저하되는 문제가 있다.In order to output Hangul from a computer, a general method of storing a bitmap file in a memory and finding a phoneme stored in a bitmap according to an input and combining fonts is used. However, the RISC OS does not support libraries related to bitmaps, so many preprocessing steps are indispensable for outputting Hangul according to the conventional method. .
따라서, 본 발명은 리스크 운용체제에서 스프라이트 화일 구조를 이용하여 한글을 간단하고 용이하게 출력할 수 있도록 함으로써, 상기한 단점을 해소할 수 있는 리스크 운영체제에서 스프라이트 데이터 구조를 이용한 한글 출력 방법을 제공하는데 그 목적이 있다.Accordingly, the present invention provides a Hangul output method using a sprite data structure in a risk operating system that can solve the above disadvantages by enabling the simple and easy output of Hangul using a sprite file structure in a risk management system. There is a purpose.
상술한 목적을 달성하기 위한 본 발명은 비트맵 화일 변환부 및 한글 출력부로 구성된 리스크 운영체제에서 한글 자소 비트맵 데이터 버퍼로부터 스프라이트 데이터를 생성하기 위해 스프라이트 데이터의 전체 바이트 수, 스프라이트 데이터에 포함되어 있는 전체 스프라이트의 갯수 및 첫 번째 스프라이트의 오프셋 바이트 수를 기술하는 스프라이트 어리어 콘트롤 블록을 생성하는 제 1 단계와, 상기 제 1 단계에서 생성된 스프라이트 어리어 콘트롤 블록을 스프라이트 데이터 버퍼에 기록하는 제 2 단계와, 상기 한글 자소 비트맵 데이터 버퍼로부터 한글 자소 한 개를 읽는 제 3 단계와, 상기 스프라이트 데이터 버퍼에 들어갈 각각의 스프라이트의 특성을 기술하는 스프라이트 어리어 콘트롤 블록을 생성하는 제 4 단계와, 상기 제 4 단계에서 생성된 스프라이트 어리어 콘트롤 블록을 스프라이트 데이터 버퍼에 기록하는 제 5 단계와, 상기 제 3 단계에서 읽은 한글 자소 비트맵 데이터를 스프라이트 이미지로 변환하여 스프라이트 데이터 버퍼에 기록하는 제 6 단계와, 상기 한글 자소 비트맵 데이터 버퍼의 끝에 도달했는지 아닌지를 판단하여 한글 자소 비트맵 데이터 버퍼의 끝에 도달했으면 스프라이트 데이터 버퍼를 저장한 후 제어 흐름을 종료하고, 아니면 상기 제 3 단계로 복귀하여 상기 단계들을 반복 수행하는 제 7 단계를 포함하여 이루어진 것을 특징으로 한다.The present invention for achieving the above object is the total number of bytes of the sprite data, the total number of sprite data contained in the sprite data to generate the sprite data from the Hangul alphabet bitmap data buffer in a risk operating system composed of a bitmap file conversion unit and a Hangul output unit A first step of generating a sprite area control block describing the number of sprites and the offset byte number of the first sprite, and a second step of writing the sprite area control block generated in the first step into a sprite data buffer; A third step of reading one Hangul alphabet from a Hangul alphabet bitmap data buffer, a fourth step of generating a sprite area control block describing the characteristics of each sprite to be entered into the sprite data buffer, and the fourth step Became A fifth step of writing the Freight area control block into the sprite data buffer, a sixth step of converting the Hangul alphabet bitmap data read in the third step into a sprite image and writing it to the sprite data buffer, and the Hangul alphabet bitmap data Determining whether the end of the buffer has been reached or not, if the end of the Hangul alphabetic bitmap data buffer is reached, saving the sprite data buffer and ending the control flow, or returning to the third step to repeat the steps. Characterized in that the made up.
또한, 상술한 목적을 달성하기 위한 본 발명은 비트맵 화일 변환부 및 한글 출력부로 구성된 리스크 운영체제에서 한글 코드 열을 입력으로 하여 주어진 한글 코드에 일치하는 한글 글자체를 출력하기 위해 한글 코드 버퍼로부터 2 바이트를 읽는 제 1 단계와, 상기 한글 코드 버퍼의 끝에 도달하였는지 여부를 판단하는 제 2 단계와, 상기 제 2 단계의 판단결과 한글 코드 버퍼의 끝에 도달하지 않았으면 상기 제 1 단계에서 읽은 한글코드 2 바이트로부터 초성, 중성 및 종성의 자소 코드를 분리하는 제 3 단계와, 상기 제 3 단계에서 분리된 각각의 자소에 따르는 스프라이트 이미지를 스프라이트 데이터 버퍼로부터 찾기위하여 스프라이트 데이터 버퍼를 검색하는 제 4 단계와, 상기 제 4 단계에서 검색된 초성, 중성 및 종성 각각의 자소 스프라이트 이미지를 스프라이트 이미지로부터 로드하는 제 5 단계와, 상기 초성, 중성 및 종성 각각의 이미지를 조합하여 하나의 스프라이트 데이터를 생성한 다음 이 스프라이트 데이터를 이용하여 한글 글자체를 출력한 후 상기 제 1단계로 복귀하여 상기 단계를 반복 수행하는 제 6 단계와, 상기 제 2 단계의 판단결과 한글 코드 버퍼의 끝에 도달하였으면 제어 흐름을 종료하는 제 7 단계를 포함하여 이루어진 것을 특징으로 한다.In addition, the present invention for achieving the above object is 2 bytes from the Hangul code buffer to output the Hangul font that matches the given Hangul code by inputting the Hangul code string in a risk operating system composed of a bitmap file converter and a Hangul output unit. A first step of reading a; a second step of determining whether the end of the Hangul code buffer has been reached; and a second byte of the Hangul code read in the first step if the end of the Hangul code buffer has not been reached as a result of the determination of the second step A third step of separating the initial, neutral, and final phoneme codes from the first step; a fourth step of searching for the sprite data buffer to find a sprite image according to each element separated in the third step from the sprite data buffer; Elementary sprite images of initial, neutral, and final stars respectively retrieved in the fourth step The fifth step of loading from the sprite image, and the image of each of the initial, neutral, and final, are combined to generate one sprite data, and then outputs the Hangul font using the sprite data and returns to the first step. And a sixth step of repeatedly performing the step, and a seventh step of terminating the control flow when the determination result of the second step reaches the end of the Hangul code buffer.
도 1은 본 발명에 따른 리스크 운영체제에서 스프라이트 데이터 구조를 이용한 한글 출력 방법을 설명하기 위해 도시한 블록도.1 is a block diagram illustrating a Hangul output method using a sprite data structure in a risk operating system according to the present invention.
도 2는 한글 자소 비트맵 데이터로부터 스프라이트 데이터를 생성하는 제어 흐름도.2 is a control flowchart of generating sprite data from Hangul alphabet bitmap data.
도 3은 한글 코드 열을 입력받아 한글 글자체를 출력하는 흐름도.Figure 3 is a flow chart for receiving the Hangul code string and output the Hangul font.
〈도면의 주요 부분에 대한 부호의 설명〉<Explanation of symbols for main parts of drawing>
1: 비트맵 화일 변환부 2: 한글 출력부1: bitmap file converter 2: Hangul output
3: 한글 자소 스프라이트 생성 모듈3: Hangul alphabetic sprite generation module
4: 스프라이트 데이터 검색 모듈 5: 한글 자소 조합 모듈4: Sprite Data Search Module 5: Hangul Phoneme Combination Module
이하, 첨부된 도면을 참조하여 본 발명을 상세히 설명하면 다음과 같다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
도 1은 본 발명에 따른 리스크 운영체제에서 스프라이트 데이터 구조를 이용한 한글 출력 방법을 설명하기 위해 도시한 블록도로서, 비트맵 화일 변환부(1) 및 한글 출력부(2)로 구성된다. 비트맵 화일 변환부(1)는 비트맵 형태로 이루어진 한글 자소 화일을 입력으로 하여 스프라이트(Sprite) 화일로 변환한 후 초성, 중성 및 종성의 한글 자소 데이터를 스프라이트 화일 데이터로 생성하는 한글 자소 스프라이트 생성 모듈(3)로 구성된다. 한글 출력부(2)는 키보드 입력을 받아서 이 키보드 입력에 알맞은 한글을 출력하는 기능을 한다. 한글 출력부(2)는 키보드 입력으로부터 한글코드를 생성하는 한글 오토마타 모듈, 생성된 스프라이트 데이터를 검색하여 주어진 초성, 중성 및 종성 각각의 한글 자소에 해당하는 스프라이트 데이터를 읽어오는 스프라이트 데이터 검색 모듈(4) 및 검색된 한글 초성, 중성 및 종성 스프라이트 데이터를 조합(논리적OR)하여 한글 자체를 생성하는 한글자소 조합 모듈(5)로 구성된다.FIG. 1 is a block diagram illustrating a Hangul output method using a sprite data structure in a risk operating system according to the present invention, and includes a
본 발명에 따른 제어 흐름은 비트맵 화일을 입력받아 한글 자소 스프라이트 데이터를 생성하는 비트맵 화일 변환 제어 흐름 및 키보드 입력에 알맞은 한글 자체를 생성하여 화면에 출력하는 한글 출력 제어 흐름의 두 가지로 나누어진다. 그들은 각각 도 2 및 도 3을 통해 동작을 설명하면 다음과 같다.The control flow according to the present invention is divided into two types: a bitmap file conversion control flow that receives a bitmap file and generates Hangul alphabet sprite data, and a Hangul output control flow that generates a Hangul itself suitable for keyboard input and outputs it to the screen. . If they explain the operation through Figs. 2 and 3, respectively.
도 2는 한글 자소를 모두 포함하고 있는 주어진 한글 자소 비트맵 데이터 버퍼로부터 스프라이트(Sprite) 데이터를 생성하는 제어 흐름도로서 각 단계별로 설명하면 다음과 같다.FIG. 2 is a control flowchart for generating sprite data from a given Hangul phoneme bitmap data buffer including all Hangul phonemes.
제 1 단계(101)는 스프라이트 데이터의 전체 바이트 수, 스프라이트 데이터에 포함되어 있는 전체 스프라이트의 갯수 및 첫 번째 스프라이트의 오프셋 바이트 수를 기술하는 스프라이트 어리어 콘트롤 블록(Sprite Area Control Block)을 생성한다. 제 2 단계(102)는 상기 제 1 단계(101)에서 생성된 스프라이트 어리어 콘트롤 블록을 스프라이트 데이터 버퍼에 기록한다. 제 3 단계(103)는 한글 자소 비트맵 데이터 버퍼로부터 한글 자소 한 개를 읽는다. 제 4 단계(104)는 스프라이트 데이터 버퍼에 들어갈 각각의 스프라이트의 특성을 기술하는 스프라이트 어리어 콘트롤 블록을 생성한다. 상기 스프라이트 어리어 콘트롤 블록은 다음에 들어있는 스프라이트의 바이트 오프셋, 스프라이트 이름 12 바이트, 스프라이트의 가로 크기, 스프라이트의 세로 크기, 스프라이트 이미지(Image)가 들어갈 바이트 오프셋, 스프라이트 모드(Mode) 및 팔레트 데이터 등을 기술한다. 제 5 단계(105)는 상기 제 4 단계(104)에서 생성된 스프라이트 어리어 콘트롤 블록을 스프라이트 데이터 버퍼에 기록한다. 제 6 단계(106)는 상기 제 3 단계(103)에서 읽은 한글 자소 비트맵 데이터를 스프라이트 이미지로 변환하여 스프라이트 데이터 버퍼에 기록한다. 제 7 단계(107)는 한글 자소 비트맵 데이터 버퍼의 끝에 도달했는지 아닌지를 판단하여 한글 자소 비트맵 데이터 버퍼의 끝에 도달했으면 스프라이트 데이터 버퍼를 저장한 후 제어 흐름을 종료하고, 아니면 상기 제 3 단계(103)로 복귀하여 상기 단계들을 반복 수행하게 된다.The
도 3은 한글 코드 열을 입력으로 받아서 주어진 한글 코드에 일치하는 한글 글자체를 출력하는 제어 흐름도로서, 단계별로 동작을 설명하면 다음과 같다.FIG. 3 is a control flowchart of receiving a Hangul code string as an input and outputting a Hangul font corresponding to a given Hangul code.
제 1 단계(201)는 한글 코드 버퍼로부터 2바이트를 읽는다. 제 2 단계(202)는 한글 코드 버퍼의 끝에 도달하였는지 아닌지를 판단한다. 제 3 단계(203)는 상기 제 2 단계(202)에서 한글 코드 버퍼의 끝에 도달하지 않았으면 상기 제 1 단계(201)에서 읽은 한글코드 2 바이트로부터 초성, 중성 및 종성의 자소 코드를 분리한다. 제 4 단계(204)는 상기 제 3 단계(203)에서 분리된 각각의 자소에 따르는 스프라이트 이미지를 스프라이트 데이터 버퍼로부터 찾기 위하여 스프라이트 데이터 버퍼를 검색한다. 제 5 단계(205)는 상기 제 4 단계(204)에서 검색된 초성, 중성 및 종성 각각의 자소 스프라이트 이미지를 스프라이트 이미지로부터 로드한다. 제 6 단계(206)는 초성, 중성 및 종성 각각의 이미지를 조합(ORRing)하여 하나의 스프라이트 데이터를 생성한 다음 이 스프라이트 데이터를 이용하여 한글 글자체를 출력한 후 상기 제 1 단계(201)로 복귀하여 상기 단계를 반복 수행하게 된다. 그리고, 상기 제 2 단계(202)에서 한글 코드 버퍼의 끝에 도달하였으면 제어 흐름을 종료한다.The
상술한 바와 같이 본 발명에 의하면 리스크 운용체제에서 스프라이트 화일 구조를 이용하여 한글을 간단하고 용이하게 출력할 수 있도록 함으로써, 리스크 운용체제에서 한글을 쉽고 간단하게 출력할 수 있는 탁월한 효과가 있다.As described above, according to the present invention, by using the sprite file structure in the risk management system, it is possible to simply and easily output Hangul, thereby providing an excellent effect of easily and simply outputting Hangul in the risk management system.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970075362A KR100268179B1 (en) | 1997-12-27 | 1997-12-27 | Method of displaying a hangul using the sprite data structure on risc os |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970075362A KR100268179B1 (en) | 1997-12-27 | 1997-12-27 | Method of displaying a hangul using the sprite data structure on risc os |
Publications (2)
Publication Number | Publication Date |
---|---|
KR19990055418A KR19990055418A (en) | 1999-07-15 |
KR100268179B1 true KR100268179B1 (en) | 2000-10-16 |
Family
ID=19528976
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019970075362A KR100268179B1 (en) | 1997-12-27 | 1997-12-27 | Method of displaying a hangul using the sprite data structure on risc os |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100268179B1 (en) |
-
1997
- 1997-12-27 KR KR1019970075362A patent/KR100268179B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR19990055418A (en) | 1999-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0620192Y2 (en) | Chinese display | |
KR100288144B1 (en) | Foreign language coding method in Korean and search method using the same | |
KR100268179B1 (en) | Method of displaying a hangul using the sprite data structure on risc os | |
JPH042982B2 (en) | ||
JPS61235977A (en) | Kana-kanji converter | |
JP2644778B2 (en) | Character generator | |
JPH0140370B2 (en) | ||
JP3272536B2 (en) | Kana-Kanji conversion method | |
JPS6154569A (en) | Document poicture processing system | |
JP2771020B2 (en) | Character processor | |
JP2674887B2 (en) | Word processor | |
JP4061283B2 (en) | Apparatus, method and program for converting lexical data to data | |
JPS60570A (en) | Method and device for information retrieval | |
JPS60221865A (en) | Document processor | |
JP2005275880A (en) | Device, method and program for converting word and phrase into data | |
JPH0764969A (en) | Device for reproducing outline font data | |
JPH0273455A (en) | Character processing system | |
JPH0230557A (en) | Printer | |
JPH06187371A (en) | Storing method and reading method for compressed place name data | |
JPH08339365A (en) | Method and device for documentation | |
JPS58144251A (en) | Input device for chinese compound word | |
JPH0683813A (en) | Document preparing device | |
JPH0583957B2 (en) | ||
JPH05323950A (en) | Character output device | |
JPH08137885A (en) | Multilingual document processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20100701 Year of fee payment: 11 |
|
LAPS | Lapse due to unpaid annual fee |