KR19990038651A - Printer Text Buffer and Control Method - Google Patents
Printer Text Buffer and Control Method Download PDFInfo
- Publication number
- KR19990038651A KR19990038651A KR1019970058472A KR19970058472A KR19990038651A KR 19990038651 A KR19990038651 A KR 19990038651A KR 1019970058472 A KR1019970058472 A KR 1019970058472A KR 19970058472 A KR19970058472 A KR 19970058472A KR 19990038651 A KR19990038651 A KR 19990038651A
- Authority
- KR
- South Korea
- Prior art keywords
- buffer
- field
- character
- information
- recorded
- Prior art date
Links
Abstract
프린터의 텍스트 버퍼에 사용되는 메모리 블록을 보통문자에 사용되며, "타입정보"필드,"문자의 이미지 포인터"필드 및 "X위치"필드로 구성되는 문자버퍼와; 한 페이지 상의 매 행의 선두에만 사용되는 것으로서 "타입정보"필드, "버퍼 카운터"필드 및 "Y위치"필드로 구성되는 라인헤드 버퍼와; 편집정보가 변경될 때만 기록되며 "타입정보"필드와 "편집정보"필드로 구성되는 편집정보버퍼의 3가지 형태의 메모리 블록을 조합하여 텍스트 버퍼를 구성한 후, 텍스트 버퍼에 기록되는 Y위치정보는 행이 변할 때만 기록하고, 편집정보는 그 편집정보가 변할 때만 텍스트 버퍼에 기록하여 메모리의 사용을 절감한다.A memory buffer used for the text buffer of the printer and used for ordinary characters, the character buffer comprising a "type information" field, an "image pointer of characters" field, and an "X position" field; A line head buffer, which is used only at the beginning of every row on one page and is composed of a "type information" field, a "buffer counter" field, and a "Y position" field; It is recorded only when the editing information is changed, and after composing the text buffer by combining three types of memory blocks of the editing information buffer composed of the "type information" field and the "edit information" field, the Y position information recorded in the text buffer is Only when the line changes, and the edit information is written to the text buffer only when the edit information changes, saving memory.
Description
본 발명은 프린터의 텍스트 버퍼에 관한 것으로, 특히 텍스트 버퍼에 사용되는 메모리를 절감할 수 있는 프린터의 텍스트 버퍼 및 그 제어방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a text buffer of a printer, and more particularly, to a text buffer of a printer and a method of controlling the same, which can reduce the memory used for the text buffer.
텍스트 버퍼는 입력된 문자코드 및 그 문자코드에 해당하는 글자가 기록되는 페이지 메모리 상에서의 위치정보, 확대, 밑줄 등의 편집정보를 저장하고 있는 메모리 블록으로 구성된다. 이러한 텍스트 버퍼는 보통 한 행 또는 한 페이지 분의 문자코드에 대한 정보를 가지고 있다.The text buffer is composed of a memory block that stores edited information such as position information, enlargement, and underlining on a page memory in which an input character code and a character corresponding to the character code are recorded. These text buffers usually contain information about character codes for a line or page.
도2에 종래의 텍스트 버퍼의 구조가 도시된다. 문자코드A1-An가 각 행의 첫 번째에 기록되며, X 위치정보 B1-Bn가 각 행에서 두 번째로 기록되고, Y위치정보 C1-Cn가 각 행에서 세 번째로 기록되고, 편집정보 D1-Dn가 각 행에서 네 번째로 기록된다.2 shows the structure of a conventional text buffer. Character code A 1 -A n is recorded first in each line, X position information B 1 -B n is recorded second in each line, and Y position information C 1 -C n is third in each line The editing information D 1 -D n is recorded fourth in each row.
호스트 컴퓨터(PC(Personal Computer)등)로부터 문자코드가 입력되면 해당 문자코드 및 그 문자가 기록될 페이지 상의 X위치,Y위치 및 그 문자의 편집정보 등을 텍스트 버퍼 상에 기록한다. X위치, Y위치 및 편집정보를 갱신한다. 즉, X위치는 한 행내에서 문자가 입력될 때마다 갱신되고, Y위치는 행 이송코드에 의해 갱신된다. 편집정보는 호스트로부터 문자의 형태를 변경하는 명령어가 입력될 때마다 갱신된다. 한 페이지분의 데이터를 인쇄하는 명령이 올 때까지 입력된 문자코드에 대한 위치정보 및 편집정보 등을 문자코드와 같이 텍스트 버퍼 상에 기록한다. 페이지 데이터 인쇄명령이 입력되면 텍스트 버퍼의 맨 처음부터 검색하면서 해당 문자코드에 대한 문자의 이미지 데이터를 읽고, 편집정보(D)에 따라 문자의 형태를 변형(확대 또는 밑줄등)한 다음 X위치(B), Y위치(C)에 해당하는 페이지 메모리 상에 기록한다. 맨 마지막 문자코드까지 앞의 과정을 반복한다. 텍스트 버퍼상의 모든 문자에 대한 이미지 데이터가 기록된 페이지 버퍼의 데이터를 최종적으로 인쇄용지에 인쇄한다.When a character code is input from a host computer (PC (Personal Computer, etc.)), the character code and the X position, Y position on the page on which the character is to be recorded, and edit information of the character are recorded on the text buffer. Update X position, Y position and edit information. That is, the X position is updated each time a character is input in one row, and the Y position is updated by the row transfer code. The editing information is updated whenever a command for changing the type of characters from the host is input. Until the command to print one page of data comes, the positional information and edited information of the input character code are recorded in the text buffer together with the character code. When the print page data command is input, the image data of the character for the character code is read while searching from the beginning of the text buffer, and the shape of the character is transformed (zoom or underlined) according to the edit information (D), and then the X position ( B), it writes on the page memory corresponding to the Y position (C). Repeat the above procedure until the last character code. The data of the page buffer in which image data for all characters on the text buffer are recorded are finally printed on the printing paper.
이와 같이 종래의 텍스트 버퍼에는 문자코드가 입력될 때마다 해당 문자코드 및 그 문자가 기록될 페이지 상의 X위치,Y위치 및 그 문자의 편집정보 등을 텍스트 버퍼 상에 기록하고, X위치, Y위치 및 편집정보를 갱신하기 때문에 행이 바뀌지 않아 변하지 않는 Y위치가 문자코드가 입력될 때마다 저장되어 동일한 내용의 정보가 중복되어 기록되며, 또한 현재 입력된 문자에 대한 편집정보가 전의 편집정보와 동일하더라도 동일한 편집정보를 그대로 기록하는 비효율적인 문제점이 있었다.As described above, whenever a character code is input into the conventional text buffer, the character code and the X position, Y position, and edit information of the character on the page on which the character is to be recorded are recorded on the text buffer. And the Y position, which does not change because the line is not changed because the information is updated, is stored each time the character code is input, and the information of the same content is duplicated and recorded, and the edit information of the currently entered character is the same as the previous edit information. Even if there was an inefficient problem of recording the same edit information as it is.
본 발명은 상기와 같은 문제점을 해결하기 위하여 안출된 것으로서, 그 목적은 텍스트 버퍼에 기록되는 위치정보와 편집정보를 그 정보가 변할 때만 텍스트 버퍼에 기록하여 텍스트 버퍼에 사용되는 메모리의 절감을 도모하는 프린터의 텍스트 버퍼 및 그 제어방법을 제공하는데 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object thereof is to reduce the memory used in the text buffer by recording the position information and the edit information recorded in the text buffer in the text buffer only when the information changes. The present invention provides a text buffer of a printer and a control method thereof.
도 1a 내지 도 1c는 본 발명에 의한 메모리 블록의 구조도이다.1A to 1C are structural diagrams of a memory block according to the present invention.
도 2는 종래의 텍스트 버퍼의 구조도이다.2 is a structural diagram of a conventional text buffer.
상기와 같은 목적을 달성하기 위한 본 발명의 특징에 따르면,According to a feature of the present invention for achieving the above object,
텍스트 버퍼에 사용되는 메모리 블록을 보통문자에 사용되며, "타입정보"필드,"문자의 이미지 포인터"필드 및 "X위치"필드로 구성되는 문자버퍼와; 한 페이지 상의 매 행의 선두에만 사용되는 것으로서 "타입정보"필드, "버퍼 카운터"필드 및 "Y위치"필드로 구성되는 라인헤드 버퍼와; 편집정보가 변경될 때만 기록되며 "타입정보"필드와 "편집정보"필드로 구성되는 편집정보버퍼의 3가지 형태의 메모리 블록을 조합하여 텍스트 버퍼를 구성한 후, 텍스트 버퍼에 기록되는 Y위치정보는 행이 변할 때만 기록하고, 편집정보는 그 편집정보가 변할 때만 텍스트 버퍼에 기록하여 메모리의 사용을 절감한다.A memory buffer used for a text buffer and used for ordinary characters, and a character buffer comprising a "type information" field, an "image pointer of a character" field, and an "X position" field; A line head buffer, which is used only at the beginning of every row on one page and is composed of a "type information" field, a "buffer counter" field, and a "Y position" field; It is recorded only when the editing information is changed, and after composing the text buffer by combining three types of memory blocks of the editing information buffer composed of the "type information" field and the "edit information" field, the Y position information recorded in the text buffer is Only when the line changes, and the edit information is written to the text buffer only when the edit information changes, saving memory.
이하, 본 발명의 바람직한 실시예를 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, with reference to the accompanying drawings, preferred embodiments of the present invention will be described in detail.
도 1a 내지 1c 는 본 발명에 의한 메모리 블록의 구조가 도시된다. 본 발명에 의한 메모리 블록은 3가지 형태의 메모리 블록을 조합하여 텍스트 버퍼를 구성한다. 도 1a는 문자버퍼이며 보통문자에 사용되는 것으로서, "타입(type)정보"필드,"문자의 이미지 포인터"필드 및 "X위치"필드로 구성된다. "타입(type)정보"필드에는 현재의 버퍼에 기록된 문자의 형태가 "보통문자"라는 것을 표시하는 코드가 기록된다. "문자의 이미지 포인터"필드에는 문자를 구성하는 이미지 데이터가 위치하는 시작위치를 표시한다. "X위치"필드에는 페이지 메모리상의 X 좌표를 표시한다.1A to 1C show the structure of a memory block according to the present invention. The memory block according to the present invention configures a text buffer by combining three types of memory blocks. Fig. 1A is a character buffer and is used for a normal character, and is composed of a "type information" field, an "image pointer of a character" field, and an "X position" field. In the "type information" field, a code indicating that the type of the character recorded in the current buffer is "normal character" is recorded. The "Image pointer of text" field indicates the starting position where the image data constituting the text is located. The "X Position" field displays the X coordinate in the page memory.
도 1b는 라인헤드 버퍼이며 한 페이지 상의 매 행의 선두에만 사용되는 것으로서 "타입정보"필드, "버퍼 카운터"필드 및 "Y위치"필드로 구성된다.Fig. 1B is a line head buffer, which is used only at the beginning of every row on one page, and is composed of a "type information" field, a "buffer counter" field, and a "Y position" field.
"타입정보"필드에는 라인 헤드를 가리키는 코드가 기록되고, "버퍼 카운터"필드에는 현재 행에 기록되는 버퍼 카운터값이 기록되며, "Y위치" 필드에는 페이지 메모리상의 Y 좌표를 표시한다.The code indicating the line head is recorded in the "Type Information" field, the buffer counter value recorded in the current line is recorded in the "Buffer Counter" field, and the Y coordinate in the page memory is displayed in the "Y Position" field.
도 1c는 편집정보버퍼이며, 편집정보가 변경될 때만 기록되는 것으로서 "타입정보"필드와 "편집정보"필드로 구성된다. 타입정보 필드에는 현재의 버퍼가 편집정보를 가지고 있다는 것을 표시하는 코드가 기록된다.Fig. 1C is an edit information buffer, which is recorded only when the edit information is changed, and is composed of a "type information" field and a "edit information" field. In the type information field, a code indicating that the current buffer has edit information is recorded.
이하 본 발명의 작용, 효과를 설명한다.Hereinafter, the operation and effects of the present invention will be described.
(1)라인헤드 버퍼를 구성하는 단계(1) configuring the linehead buffer
프린터에 전원이 투입되면 텍스트 버퍼의 시작부분을 라인헤드 버퍼로 구성한다. 도 1b에 본 발명에 의한 라인헤드 버퍼구조가 도시된다. 본 발명에 의한 라인헤드 버퍼는 타입정보 필드, 버퍼카운터 필드 및 Y위치 필드로 구성된다. 이때, "타입정보"필드에는 라인헤드 코드가 기록되고, "버퍼 카운터"필드에는 처음을 표시하는 카운트 값"Ø"이 기록되며, "Y위치"필드에는 첫 인자 위치의 Y좌표가 기록된다.When the printer is powered on, the beginning of the text buffer is configured as a linehead buffer. 1B shows a line head buffer structure according to the present invention. The line head buffer according to the present invention includes a type information field, a buffer counter field, and a Y position field. At this time, the line head code is recorded in the "Type information" field, the count value "Ø" indicating the beginning is recorded in the "buffer counter" field, and the Y coordinate of the first printing position is recorded in the "Y position" field.
(2)편집정보 버퍼를 구성하는 단계(2) step of configuring the edit information buffer
상기 라인헤드 버퍼를 구성한 후, 문자코드가 입력될 때마다 현재의 편집정보가 변경되었는지를 체크한 다음 변경되었으면 도 1c에 도시된 것과 같은 구조를 갖는 "편집정보 버퍼"를 구성한다. 편집정보 버퍼는 "타입정보"필드와 "편집정보"필드로 구성되며, "타입정보"필드에 편집정보 코드를, "편집정보"필드에는 변경된 편집정보를 기록한 다음 텍스트 버퍼의 포인터를 증가시킨다.After configuring the line head buffer, each time a character code is input, it is checked whether the current edit information has changed, and if so, a "edit information buffer" having a structure as shown in Fig. 1C is constructed. The edit information buffer is composed of a "type information" field and an "edit information" field. The edit information code is recorded in the "type information" field, and the changed edit information is recorded in the "edit information" field, and then the pointer of the text buffer is increased.
(3)문자버퍼를 구성하는 단계(3) step of configuring the character buffer
편집정보 버퍼를 구성한 후, 편집정보가 이전과 동일하면, 즉 문자의 형태를 변경하는 명령어가 입력되지 않았으면 "문자버퍼"를 구성한다. 도 1a에 문자버퍼의 구조가 도시된다. 본 발명에 의한 문자버퍼는 타입정보 필드, 문자의 이미지포인터 필드 및 X위치 필드로 구성된다. "타입정보"필드에 문자코드를, "문자의 이미지 포인터"필드에는 문자 이미지의 선두번지를, "X위치"필드에는 현재 입력된 문자가 인쇄될 X위치를 기록한 다음 텍스트 버퍼의 포인터를 증가시킨다. 이때 라인 헤드버퍼의 버퍼 카운터를 1증가시킨다. 행분리 명령어(라인 피드)가 입력될 때까지 상기 과정을 반복한다.After the edit information buffer is configured, if the edit information is the same as before, that is, if a command for changing the form of the character is not input, a "character buffer" is configured. The structure of the character buffer is shown in Fig. 1A. The character buffer according to the present invention is composed of a type information field, an image pointer field of a character, and an X position field. Write the character code in the "Type Information" field, the start address of the character image in the "Image Image Pointer" field, and the X position in which the currently entered character is printed in the "X Position" field, and then increase the pointer in the text buffer. . At this time, the buffer counter of the line head buffer is increased by one. The process is repeated until a line break command (line feed) is input.
(4)행분리 단계(4) row separation step
행분리 명령어가 입력되면 상기 라인헤드 버퍼를 구성하는 단계를 반복한다. 즉, 도 1b와 같은 구조를 갖는 "라인헤드버퍼"를 구성하고 버퍼 카운터값을 "Ø"으로 하고 타입정보 및 갱신된 Y위치를 기록하고, 다음 행분리 명령어가 입력될 때까지 편집정보 버퍼를 구성하는 단계를 반복한다.When the line break command is input, the step of configuring the line head buffer is repeated. That is, a "line head buffer" having a structure as shown in FIG. 1B is configured, the buffer counter value is set to "Ø", the type information and the updated Y position are recorded, and the edit information buffer is set until the next line break instruction is input. Repeat the steps to configure.
(5)인쇄과정을 수행하는 단계(5) performing printing process
페이지 인쇄명령이 입력될 때까지 상기 (2)편집정보 버퍼를 구성하는 단계와 (3)문자버퍼를 구성하는 단계 그리고 (4)행분리 단계를 되풀이한다. 페이지 인쇄 명령이 입력되면, 텍스트 버퍼의 처음부터 "타입정보"를 검색하면서 보통문자일 경우 "편집정보" 와 라인헤드의 "Y위치" 및 "X위치"를 참조하면서 페이지 메모리 상에 문자의 이미지를 형성한 다음 인쇄한다.The steps (2) constructing the edit information buffer, (3) constructing the character buffer, and (4) dividing the lines are repeated until a page print command is input. When a print page command is entered, an image of characters on page memory is searched for "type information" from the beginning of the text buffer, referring to "edit information" for normal characters and "Y position" and "X position" of the line head. Form and then print.
이상 설명한 바와 같이 본 발명에 의하면 한 행에 한번 Y위치를 기록하고, 변경되는 편집정보만을 기록함으로써 적은 량의 메모리로 텍스트 버퍼를 구성할 수 있으며, 그로 인하여 메모리 절감을 도모할 수 있다.As described above, according to the present invention, the text buffer can be configured with a small amount of memory by recording the Y position once per line and recording only the edited information that is changed, thereby achieving memory savings.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970058472A KR19990038651A (en) | 1997-11-06 | 1997-11-06 | Printer Text Buffer and Control Method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970058472A KR19990038651A (en) | 1997-11-06 | 1997-11-06 | Printer Text Buffer and Control Method |
Publications (1)
Publication Number | Publication Date |
---|---|
KR19990038651A true KR19990038651A (en) | 1999-06-05 |
Family
ID=66086439
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019970058472A KR19990038651A (en) | 1997-11-06 | 1997-11-06 | Printer Text Buffer and Control Method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR19990038651A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030056593A (en) * | 2001-12-28 | 2003-07-04 | 삼성전자주식회사 | Data printing method using find and replace |
-
1997
- 1997-11-06 KR KR1019970058472A patent/KR19990038651A/en not_active Application Discontinuation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030056593A (en) * | 2001-12-28 | 2003-07-04 | 삼성전자주식회사 | Data printing method using find and replace |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4717911A (en) | Technique for chaining lines of a document together to facilitate editing or proofreading | |
KR19990038651A (en) | Printer Text Buffer and Control Method | |
JP3850057B2 (en) | Character information processing device | |
EP0090802B1 (en) | A page modification method in a printer subsystem of the partial page buffer composing type | |
KR900007140B1 (en) | Output device | |
JPH0522933B2 (en) | ||
JPS59214967A (en) | Editing device of picture information | |
JP2606579B2 (en) | Character display device | |
JP2513682B2 (en) | Print control device | |
JP2700001B2 (en) | Character data output device | |
JPS5936316B2 (en) | Printing or display device | |
JPS5931752B2 (en) | printing device | |
JP3304112B2 (en) | Document output device | |
JP2889390B2 (en) | Printer device | |
JPS63304365A (en) | Text data editing/output system for multi-media editing/ output device | |
JPH0751374B2 (en) | Document processor | |
JP2001117910A (en) | Device and method for automatically correcting document format and storage medium storing automatic document format correction program | |
JPS59123046A (en) | Display system of document processor | |
JPH02269388A (en) | Character drawing system | |
JPS6359654A (en) | Picture processor | |
JPS6256992A (en) | Document editing processing system | |
JPH04118756A (en) | Document preparing device | |
JPH05342206A (en) | Document processor with long sentence editing function | |
JPS61267169A (en) | Document preparing device | |
JPS6248563A (en) | Control system for display format |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WITN | Withdrawal due to no request for examination |