KR840000051B1 - Hangul printer - Google Patents
Hangul printer Download PDFInfo
- Publication number
- KR840000051B1 KR840000051B1 KR1019800003422A KR800003422A KR840000051B1 KR 840000051 B1 KR840000051 B1 KR 840000051B1 KR 1019800003422 A KR1019800003422 A KR 1019800003422A KR 800003422 A KR800003422 A KR 800003422A KR 840000051 B1 KR840000051 B1 KR 840000051B1
- Authority
- KR
- South Korea
- Prior art keywords
- output
- code
- hangul
- format
- space
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
Abstract
Description
제1도는 본 발명의 실시예를 나타낸 한글출력장치의 구성블럭도.1 is a block diagram of a Hangul output device showing an embodiment of the present invention.
제2도는 제1도에 나타낸 실시예에 의한 데이터처리 상태도.2 is a data processing state diagram according to the embodiment shown in FIG.
제3도는 본 발명을 실시한 경우의 한글출력장치의 메모리상의 데이터예를 나타낸 설명도.3 is an explanatory diagram showing an example of data on a memory of a Hangul output device in the case of implementing the present invention.
제4도는 제3도에 나타낸 데이터에 의한 출력에의 설명도.4 is an explanatory diagram for output by the data shown in FIG.
제5도는 본 발명을 실시하지 않는 경우의 메모리상의 데이터예의 설명도이다.5 is an explanatory diagram of an example of data on a memory when the present invention is not implemented.
본 발명은 한글 출력장치에 관한 것으로서, 상세히 말하자면 소정의 포매트형식에 의거, 한글물자를 포함하는 문자를 출력하는 한글출력장치에 관한 것이다.The present invention relates to a Hangul output device, and more particularly, to a Hangul output device for outputting characters including Hangul material based on a predetermined format.
한글물자를 구성하는 표음 기호 단위(表音記號單位)는 자소(字素)라 불리우며, 1문자는 자음 모음등의 자소의 복수의 조합으로 구성된다.The phonetic symbol unit that composes the Hangul material is called a phoneme, and one character consists of a plurality of combinations of phonemes, such as consonant vowels.
통상적으로는 1자소 1코드(1바이트 : byte)가 할당되어 한글 1무자는 2자소내지 4자소로 구성되는 것이 일반적이다. 한글문자 이외의 예컨데 영(英)숫자등의 출력은 1문자 대응(對應)의 출력코드 1개(1바이트)에 1항(桁)의 출력항수(桁數)가 주어지는 것이 일반적이다.In general, one letter one code (1 byte: byte) is assigned, and one letter of Korean alphabet is generally composed of two letters to four letters. Non-Hangul characters, for example, alphanumeric characters, are usually given with one output code (1 byte) per one-character output code (1 byte).
따라서, 특정한 포매트(format) 형식으로 출력하는 경우에 포매트기호의 위치정렬(整列)을 하기 위해 각 행(行)마다 일정한 위치에 출력하는 포매트기호가 있어도, 매행(每行)의 데이터중의 포매트코드, 예컨데「 : 」의 코드를 메모리상의 일정한 바이트위치에 위치를 정렬하여 배치하고, 바이트위치대응에 출력하면 좋다.Therefore, even if there is a format symbol that is output at a certain position for each line in order to perform the format alignment of the format symbol when outputting in a specific format format, the data of each line is used. The format code in this example, for example, a ":" code, may be arranged in alignment with a predetermined byte position in the memory, and output in correspondence with the byte position.
그러나 한글문자의 출력에 있어서는 1문자를 구성하는 자소수(字素藪)가 가변적이기 때문에 코드수가 가변적으로 되고 한글문자를 포함하는 데이터에 있어서는 매행의 데이터중의 일정한 바이트위치에 있는 포매트기호가 반드시 바이트대응의 출력위치에 출력된다고는 할 수 없다.However, in the output of Hangul characters, the number of codes constituting one character is variable, so the number of codes is variable, and in the case of data containing Hangul characters, the format symbol at a certain byte position in every line of data is used. It is not necessarily output to the byte-compatible output location.
상기의 이유에 의해 매행마다 일정한 위치에 출력할 필요가 있는 포매트기호가 설정될 경우에는 출력코드수는 아니고 실제의 출력행수를 계산하여, 스페이스코드를 메모리에 삽입한다든가 매행마다 포매트기호, 데이터의 위치설정을 할 필요가 있다.If the format code that needs to be output at a certain position for each line is set for the above reason, the actual number of output lines is calculated instead of the number of output codes, and a space code is inserted into the memory, or a format code for each line. You need to position the data.
그 결과 매행의 데이터길이가 부정(不定)길이로 되고 마는 결점이 있다.As a result, there is a drawback that the data length of each line becomes indeterminate length.
본 발명의 목적은 상기와 같은 종래의 문제점을 제거하는 것이며, 한글문자를 포함한 데이터를 소정의 포매트형식으로 출력하는 경우에도 한글문자의 출력항수를 의식하지 않고, 또 1행의 데이터길이도 고정적으로 취급할 수 있는 한글출력장치를 제공함에 있다.SUMMARY OF THE INVENTION An object of the present invention is to eliminate the above-mentioned problems. Even when outputting data including Korean characters in a predetermined format, the output length of Korean characters is not conscious, and the data length of one line is fixed. It is to provide a Hangul output device that can be handled with.
이와같은 목적을 달성하기 위한 본 발명의 특징은 미리 설정된 포매트기호에 대응하는 포매트코드가 데이터내에 있는 경우에는 위치 카운터와 코드카운 터의차이 만큼 스페이스 출력을 한 후에 상기 포매트코드의 포매트기호를 출력하는 것이다.A feature of the present invention for achieving the above object is that if the format code corresponding to the preset format symbol is in the data, the format code of the format code is output after the space output by the difference between the position counter and the code counter. To print a symbol.
따라서 포매트코드의 출력위치를 맞추기 위한 스페이스코드를 메모리에 기억하지 않고 포매트코드의 위치설정이 가능하고, 스페이스 코드삼입에 의한 1행의 데이터길이의 변동을 없앨 수가 있다.Therefore, the format code position can be set without storing the space code for matching the format code output position in the memory, and the variation of the data length of one line due to the space code input can be eliminated.
다음에 본 발명의 실시예에 대하여 도면을 사용하여 상세히 설명한다.EMBODIMENT OF THE INVENTION Next, the Example of this invention is described in detail using drawing.
제1도는 본 발명의 실시예인 한글출력장치의 구성블럭도를 나타낸 것이다.1 is a block diagram of a Hangul output device according to an embodiment of the present invention.
데이터는 출력제어회로(1)에서 도트의 조합으로 이루어지는 출력문자패턴으로 변환되어 인자(印字)장치(8) 혹은 표시장치(9)로 송출된다.Data is converted into an output character pattern composed of a combination of dots in the
출력제어회로(1)는 출력용인 문자코드를 기억하는 메모리와 출력위치대응으로 읽어낸 문자코드를 문자패턴변환하는 문자패턴 발생부와 한글문자의 자소(字素)에 대응하는 문자코드가 있는 경우에 1문자분을 구성하는 자소대응의 복수의 코드를 검출하여, 이들 코드의 조합으로부터 발생하는 한글문자가 무엇인가를 판정하는 판정부와, 이 판정결과에 따라서 한글문자패턴을 발생하는 한글문자패턴발생부를 갖고 있다.The
또한 한글문자의 자소대응코드는 일반문자 코드와는 다른 비트(bit)조건으로 되어 있다.In addition, the phoneme correspondence code of Hangul characters has a bit condition different from that of general character codes.
한글문자패턴은 어느정도 복잡한 선을 갖고 있기 때문에 인자를 할 때에는 한자(漢字)와 마찬가지로 인자패턴의 도트수는 많이 필요해지기 때문에 2항(桁)분을 한글문자 1문자분의 출력으로 하여 1항째에서 좌반(左半) 몫, 다수의 1항째에서 우반(右半) 몫의 문자패턴을 인자하는 경우도 있다.Since the Hangul character pattern has a somewhat complicated line, the number of dots of the print pattern is needed as in the case of Hanja (漢字). The character pattern of the left half quotient and the right half quotient in many first terms may be printed.
이것은 표시의 경우에도 마찬가지이다.This also applies to the display.
여기서는 이하의 설명상, 인자 헤드의 소자수(표시도트수)가 많고 한글 1문자가 영(英)숫가 1항분과 같은 경우를 전제로 하여 설명하고, 특히 한글문자의 인자 제어(표시제어)부분에 대해서는 일반의 출력제어와 같아지기 때문에 할애한다. 제1도에 있어서, 출력제어회로(1)는 일반의 문자, 한글문자에 관계없이 1문자 몫의 출력신호를 발생시켜, 인자장치(8)(혹은 표시장치 9)에 인자(표시)가 행하여지면 1문자 몫종료의 신호를 발생한다.In the following description, the description is based on the premise that the number of elements (display dots) of the print head is large and that one Korean character is equal to one English number. Particularly, the printing control part of the Korean character is shown. This is the same as normal output control. In FIG. 1, the
이 종료 출력신호는 위치 카운터(계수기)(2)의 카운트업단자 CU에 송출되어 카운트업신호가 된다.This end output signal is sent to the count-up terminal CU of the position counter (counter) 2 and becomes a count-up signal.
포매트기호는 일반적으로 상표가든가 품명이라든가 그 내용과의 항목분류등에 사용되는 표시기호, 선, 테두리등이고, 각 항목부분으로 표시되는 말가운데 가장 긴바이트수를 보유하는 말보다 뒤가 되도록 미리 설정되어 이 설정된 바이트위치대응의 메모리상에 기억된다.The format symbol is generally a mark symbol, a line, a border, etc., which is used to classify items such as a trademark or a product name, and the contents thereof, and is set in advance so as to be later than the word having the longest byte in the word displayed by each item part. It is stored in the memory corresponding to the set byte position.
출력제어회로(1)는 출력위치가 1항 나아갈때마다 위치 카운터(2)에 대하여 카운트업(Count up)신호를 보내고, 위치 카운터(2)는 실제의 인자항 위치를 기억한다. 또한, 출력제어회로(1)는 메모리로부터 1코드를 읽어낼때마다 출력코드수 카운터(3)의 카운트업단자 CU에 대하여 카운트업신호를 보내고, 출력코드수 카운터에 출력코드수를 기억시킨다.The
위치 카운터(2)와 출력코드수 카운터(3)는 포매트기호를 출력한 시점에서 판정부(7)로부터의 신호와 AND의 조건으로 출력제어회로(1)에서 리세트단자 R로 신호가 나와 리세트된다.The position counter 2 and the output code number counter 3 output a signal to the reset terminal R from the
포매트코드 레지스터(6)는 중앙처리장치등의 상위(上位)장치에 의해 지정된 포매트기호를 기억하는 것이고, 코드판정부(7)는 메모리로부터 읽어낸 코드와 포매트코드 레지스터(6)의 내용을 비교판정하여 일치된 경우에는 스페이스 출력회로(5)를 제어하여 위치정합(整合)을 위한 스페이스출력을 발생시킨다.The
위치 카운터(2)와 바이트 카운터(3)의 출력은 감산(減算)회로(4)의 입력이고, 감산회로(4)는 이 압력의 차(差)를 스페이스 출력회로(5)에 넘겨준다.The output of the
스페이스 출력회로(5)는 감산회로(4)에서 넘겨주는 항수(桁藪)만큼 스페이스 출력신호를 발생하고, 출력제어회로(1)를 통하여 인자(표시)의 스페이스 제어를 한다. 여기서 한글문자인 경우는 코드수와 인자(표시)항수에 차가 생기기 때문에 감산회로(4)는 일정한 수치를 기억하게 되나, 일반문자인 경우에는 코드수=인자(표시)항수로 되기 때문에 감산회로(4)의 값은 "0"이 되어 그 결과 스페이스신호는 발생하지 않게 된다.The
상기한 스페이스 출력회로(5)의 구성 및 그 작용에 관하여 좀 더 상세하게 설명하면 다음과 같다. 스페이스 출력회로(5)는 간단한 플립플롭에 의해 구성할 수 있는 것이다.The configuration and operation of the
즉, 판정부(7)에 있어서 메모리로부터 독출된 코드데이터와, 코드레지스터(6)의 내용 요컨대, 지정된 포매트코드데이터가 일치하는 지의 여부가 판정된다.That is, it is determined whether or not the code data read out from the memory by the
이 판정의 결과 소정(지정된)의 포매트코드인 것이 판정되면, 이 판정부(7)로부터 신호가 출력되고, 이 신호는 스페이스 출력회로로 이루어지는 플립플롭의 의세트단자에 입력된다.As a result of this determination, when it is determined that it is a predetermined (specified) format code, a signal is output from this
이에 의해 플립플롭에서는 소정의 타이밍으로 스페이스 출력을 행하기 위한 신호가 출력된다.As a result, the flip-flop outputs a signal for performing a space output at a predetermined timing.
그리고 이 타이밍은 감산회로(4)에 있어서의 감산타이밍과 동기되어 있다.This timing is synchronized with the subtraction timing in the
한편, 감산회로(4)에서는 위치카운터(2)와 출력코드수 카운터(3)와의 내용이 비교되어 있으며 양자가 일치할 때까지 즉, 양자의 차가 "0"이 될때까지 플립플롭에서는 스페이스신호가 나와 있다. 그래서 이 양자가 일치하면 회로(4)에서 플립플롭의 리세트단자에 신호가 입력되고 플립플롭은 리세트된다. 이로써 플립플롭은 양카운터(2), (3)의 값이 일치할때까지 세트되어 있으므로 결과적으로 양카운터가 나타내는 차의수 만큼의 스페이스신호가 출력되는 셈이다.On the other hand, in the
다음은 이 회로의 동작에 대하여 설명할 것이다.Next, the operation of this circuit will be described.
제2도는 제1도에 나타내는 실시예의 동작예의 데이터처리 상태도이다.FIG. 2 is a data processing state diagram of an operation example of the embodiment shown in FIG.
1로 나타낸 스텝(1)에서 스텝(4)으로 한글문자의 자소코드수가 즉 「ㄱ」「2」「ㅏ」「ㄴ」의 4바이트가 입력되면 출력제어회로(1)에서 4바이트가 1문자의 한글 문자임을 검출하여 대응하는 문자패턴「관」을 발생하며, 1항내에 한글 1문자를 출력하고 동시에 출력코드수 카운터(3)에 각 스텝에 따른 수만큼 카운트업신호를 송출한다.When the phoneme code number of the Hangul characters, that is, four characters of "a", "2", "", "b" and "b" is input from step (1) to step (4) indicated by 1, four bytes are output by one character in the output control circuit (1). A character pattern "tube" is generated by detecting the character of Hangul, and one character of Hangul is outputted within one term, and at the same time, a count-up signal is sent to the output
본예의 경우 스텝수가 「4」이므로 카운트업신호를 4회송출한다. 그 결과, 출력코드수 카운터(3)의 내용은 스텝(4)에서는 「4」가 된다.In this example, since the number of steps is "4", the count-up signal is sent four times. As a result, the content of the output
또한 실제의 인자위치를 나타내는 위치 카운터(2)에는 카운터업신호가 1번만 송출되어 위치 카운터(2)의 내용은 스텝(4)에서는 「1」이 된다.In addition, the counter-up signal is sent out only once to the
스텝(5)에서 포매트 기호 「 : 」의 코드를 읽어 내고 미리 포매트 코드레지스터(6)에 설정된 코드내용과 일치하면 코드판정부(7)로부터 출력이 발생한다.In
이 출력이 발생하면 포매트 기호「 : 」의 출력은 일시보류되어 스페이스 출력회로(5)로부터 위치정합을 위한 스페이스가 스텝(6)에서 스텝(6)으로 출력된다.When this output occurs, the output of the format symbol ":" is temporarily held so that the space for position registration from the
스페이스 출력의 회수는 감산회로(4)에서 얻어지는 위치 카운터(2)와 출력코드수 카운터(3)의 내용의 차로서 그 값은 「3」이다.The number of space outputs is the difference between the contents of the
스페이스 출력후에 스텝(9)에서 포매트 기호「 : 」가 출력되게 된다.After the space is output, the format symbol ":" is output in
여기서 출력제어회로(1)에서 위치 카운터(2)와 출력코드수 카운터(3)에 리세트신호가 송출되어 이들 카운터는 리세트된다.Here, the reset signal is sent from the
또한 포매트기호의 앞의 한글문자가 가장 긴 말의 바이트수보다 짧은 경우는 메모리상의 「 : 」기호의 바이트위치와 한글문자의 최후의 바이트위치의 뒤에 스페이스코드가 들어가기 때문에 소정의 스페이스를 인자(표시)한 뒤에 포매트코드가 독출되게 된다.If the Korean character before the format symbol is shorter than the byte length of the longest word, the space code is included after the byte position of the ":" symbol in memory and the last byte position of the Korean character. Format code is read.
이런 경우에는 스텝(4), (5)사이에 메모리에서 독출한 스페이스정보를 처리하는 스텝에 들어간다.In this case, a step for processing the space information read from the memory is entered between
스텝(10)에서는 바이트위치(6)이 기억된 코드가 일반의 문자이기 때문에 감산결과는 "0"이 되고 스페이스신호는 발생하지 않는다.In
이와같이 해서 스텝(10)이후의 문자가 출력되어 나간다. 상기와 같은 동작에 의해 제3도에 나타낸 메모리상의 데이터의 예를 출력하면 제4도와 같이 출력위치 제어문자「 : 」는 일정한 위치에 출력하게 된다.In this way, the characters after
또한 제3도, 제4도에서 「△」는 스페이스 정보로서 인자(표시)된 스페이스를, 「▲」는 스페이스 출력회로(5)에서 발생한 스페이스이다.In Fig. 3 and Fig. 4, " △ " denotes a space printed (displayed) as space information, and " " denotes a space generated by the
본 발명을 실시하지 않는 경우에 제4도와 같은 포매트에서 출력하는 경우에는 제5도에 나타내는 바와같이 메모리상에 여분의 스페이스정보를 기억할 필요가 있고 매행마다 데이터의 길이가 다르게 된다.In the case where the present invention is not implemented, in the case of outputting in the format shown in FIG. 4, it is necessary to store the extra space information on the memory as shown in FIG. 5, and the length of data is different for each row.
본 발명의 상기 실시예는 하드웨어에 의한 제어의 예를 나타냈으나 출력제어를 메모리와 연산회로를 이용, 마이크로 프로그램으로 실현하는 경우에는 상기 설명의 동작을 모두 프로그램으로 실시할 수도 있다.Although the above embodiment of the present invention has shown an example of control by hardware, when the output control is realized by a micro program using a memory and a calculation circuit, all of the operations described above may be implemented by a program.
이상 설명한 바와같은 구성이므로 본 발명에 있어서는 다음과 같은 효과를 얻을 수가 있다.Since it is the structure as demonstrated above, in this invention, the following effects can be acquired.
(1) 한글문자에 대하여 포매트기호의 위치 정합을 위한 스페이스정보를 메모리에 여분으로 기억시키지 않고 스페이스 출력회로에서 발생시키므로 메모리용량이 적어짐과 동시에 한글문자의 자소구성에 의한 출력위치의 변화를 고려할 필요가 없다.(1) Since space information for position matching of format symbols for Korean characters is generated in the space output circuit without storing extra memory in memory, memory capacity decreases and changes in output position due to the phoneme structure of Korean characters can be considered. no need.
(2) 바이트위치에 의해 출력위치가 관리되므로 데이터를 일정하게 할 수가 있다.(2) Since the output position is managed by the byte position, data can be made constant.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019800003422A KR840000051B1 (en) | 1980-08-29 | 1980-08-29 | Hangul printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019800003422A KR840000051B1 (en) | 1980-08-29 | 1980-08-29 | Hangul printer |
Publications (2)
Publication Number | Publication Date |
---|---|
KR830003769A KR830003769A (en) | 1983-06-22 |
KR840000051B1 true KR840000051B1 (en) | 1984-01-28 |
Family
ID=19217559
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019800003422A KR840000051B1 (en) | 1980-08-29 | 1980-08-29 | Hangul printer |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR840000051B1 (en) |
-
1980
- 1980-08-29 KR KR1019800003422A patent/KR840000051B1/en active
Also Published As
Publication number | Publication date |
---|---|
KR830003769A (en) | 1983-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4092729A (en) | Apparatus for automatically forming hyphenated words | |
US4773009A (en) | Method and apparatus for text analysis | |
US4783761A (en) | Spelling check dictionary with early error signal | |
US4400697A (en) | Method of line buffer loading for a symbol generator | |
US3513968A (en) | Control system for typesetting arabic | |
US3852720A (en) | Method and apparatus for automatically generating korean character fonts | |
JPS58165145A (en) | Digital controller for graphic indication of character | |
US3558820A (en) | Stenographic machine and system | |
US4181972A (en) | Means and methods for automatic hyphenating words | |
US5519824A (en) | System and method for storing and displaying font data representing fixed-width and compressed characters | |
JPS6119045B2 (en) | ||
KR840000051B1 (en) | Hangul printer | |
US4897800A (en) | Electronic graph drawing apparatus | |
JPS6126192A (en) | Method for recognizing hungul character from hungul letter string | |
KR100310832B1 (en) | Four-state three-bar code device and its control method | |
JPS58134327A (en) | Japanese word processor | |
US3953846A (en) | Encoding device | |
KR910002132B1 (en) | Compound numbers consonant and vowel character outputing apparatus | |
JPS5822767B2 (en) | Japanese typewriter | |
KR0164404B1 (en) | Key input method and apparatus using phone key-pad | |
JPS60176137A (en) | Sentence generating device | |
KR890002284B1 (en) | Hangeul character code conversion method and the apparatus | |
KR900001263B1 (en) | Character space control devices of dot printer | |
KR860000298B1 (en) | Collectablely written home language typewriter for double fold usage | |
JPS62211690A (en) | Character display system |