CN87102388A - Chinese characters converting method in the computing machine - Google Patents
Chinese characters converting method in the computing machine Download PDFInfo
- Publication number
- CN87102388A CN87102388A CN 87102388 CN87102388A CN87102388A CN 87102388 A CN87102388 A CN 87102388A CN 87102388 CN87102388 CN 87102388 CN 87102388 A CN87102388 A CN 87102388A CN 87102388 A CN87102388 A CN 87102388A
- Authority
- CN
- China
- Prior art keywords
- stroke
- chinese character
- point
- trace
- dot matrix
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The invention belongs to computer Chinese character output method, be applicable to the output device of plotting apparatus one class in the computer system.The present invention utilizes the Chinese character base of standard, Chinese character dot matrix is taken out from character library put into the buffer zone that computing machine is opened up, and Chinese character dot matrix is carried out 90 ° turn clockwise, and scans each stroke of trace then, forms the vector of each stroke, send output device output.This method processing speed is fast, and is effective, is specially adapted to use in the character lattice number system with more.
Description
The invention belongs to Chinese character processing method, method of the present invention is specially adapted to the output device of complotter one class.
Utilize computer-aided design (CAD) design drawings such as (CAD), and utilize equipment such as plotting apparatus on drawing, to export Chinese character.Existing Chinese character output method is to read Chinese character dot matrix in character library, puts into impact damper, and by positive logic, it is 1 that this point value of stroke place is arranged, and this point value of no stroke place is zero.To value be 1 each point 8 proximal direction (all directions by on the plane in 360 ° equal angles distribute) carry out trace, be 1 as contiguous point value and form a vector, as not have value be 1 point, it then is an isolated point, write down the starting point of each vector and the coordinate of terminating point (starting point of isolated point is identical with terminating point), send external unit outputs such as plotting apparatus, the shortcoming of the method is some neighbor point that should not link to each other, on the output drawing, also be associated on the line, as Fig. 1 a " " word, in its left side and the right-hand part one cast aside " Pie ", and this should not link to each other, but has joined several lines now.The method does not consider that the perpendicular stroke of Chinese Duo these characteristics than horizontal stroke and carries out the Chinese character processing in addition, and processing speed is slow, and more for a long time, the shortcoming of said method is especially outstanding for the dot matrix number of Chinese character dot matrix.
The present invention is directed to the deficiency of said method, purpose is to obtain a kind of method, makes the line that should not link to each other reduce as far as possible, considers the characteristics of Chinese character simultaneously, improves the Chinese character processing speed as far as possible, and the method that makes is standardized.
Fig. 1 a be the Chinese character output that obtains of preceding method " " word, Fig. 1 b be the Chinese character output that obtains of the inventive method " " word.
Fig. 2 is the internal memory synoptic diagram of 24 * 24 dot matrix Chinese characters.
We's ratio juris is that the dot matrix of Chinese character is read from character library in the buffering area that calculator memory opens up, perpendicular more than horizontal these characteristics according to Chinese character, and represent vertical line (biserial point or multiple row point expression a vertical line) in the Chinese character with more point in the dot matrix Chinese Character Set, and present existing Chinese character in character library all with ascending order from left to right, arrange from top to bottom Chinese character dot matrix, for improving processing speed, earlier Chinese character pattern being done clockwise 90 ° of rotations processes, the arrangement of the Chinese character dot matrix of font is with from bottom to top after the rotation, is arranged in the buffering area with ascending order from left to right.
Chinese character dot matrix is considered as a two-dimensional array matrix, press positive logic (as pressing negative logic, " 1 " is changed to " 0 " in the following narration, " 0 " is changed to " 1 " and can sets up), then in this matrix, there is the element at stroke place to have value " 1 ", all the other are " 0 ", then the Chinese character pattern with dot matrix changes the vector of representing stroke into, promptly just mean moving direction between the consecutive point element by dot matrix trace stroke, both there be not omission for guaranteeing stroke trace process, irredundant again stroke, the starting point of selecting trace is element (first row in the matrix upper left corner, first row) beginning, scanning line by line, promptly only erect the trace stroke of direction and transverse direction, the stroke of tilted direction is (as casting aside, press down) by vertical line, horizontal line or point constitute, and not in tilted direction trace stroke, can avoid unnecessary stroke vector like this, be unlikely omission again, the starting point coordinate and the terminating point coordinate of each trace record stroke vector after the stroke, erase the element of non-point of crossing for horizontal stroke, even the value of non-cross-point cell " 1 " becomes " 0 ".To guarantee to duplicate trace or disconnected pen.The phasor coordinate that obtains send external unit output.
Further illustrate this method at Fig. 2 below, with Chinese character 24 * 24 dot matrix is embodiment, opens up the buffer zone of two 72 bytes in computing machine, and dot matrix Chinese character in the Chinese character base is read a wherein block buffer, then Chinese character dot matrix is carried out 90 ° of rotations, 90 ° rotate to be the best in a clockwise direction, and the result of rotation is placed on another block buffer, and the rotation scheme is by two-dimensional lattice shown in Figure 2, the rule of rotation is: when dot matrix is N * N point, the general formula of rotation: (i, j) → (j, N+l-i).Wherein i represents line number, and j represents columns.During trace, from point (l, l) beginning, by line number from columns low to the high scanning direction of columns, by this scanning sequency, definition: follow-up unit is a unit of this back, unit, preceding continuous unit is a unit of this front, unit, and following continuous unit is with this unit same column but line number adds 1 unit.Set up two counter A and B, A record start point, B end of record point runs into the unit of value for " 1 ", judges at first whether it is perpendicular stroke, and whether promptly follow-up unit is 1, as is " 1 " then order trace, finishes until this stroke; As be " 0 ", judge then whether this stroke is horizontal stroke, promptly judge continuous unit down, as for " 1 " then this stroke be horizontal stroke, continue continuous stroke trace downwards, finish until this stroke, judge whether each point is the point of crossing in this stroke, be whether each point intersects with perpendicular stroke, as long as this judge, and whether its follow-up unit and preceding continuous unit have the unit of value for " 1 ", as the unit of promising " 1 ", it then is the point of crossing, erase the point of all non-point of crossing in this stroke,, keep the point of crossing in order to avoid repeat this stroke, in order to avoid perpendicular stroke is at the disconnected pen of this point, judge the process of point of crossing because horizontal stroke quantity is few, judge that number of times is few, so required time is few, and determine whether to be the point of crossing, only need to judge adjacent analyzing spot, speed is fast, and spended time is few; As neither perpendicular stroke, also non-horizontal stroke (promptly continuous cell value is " 0 " down), then this point must be isolated point; Write down the starting point and terminating point (starting point of isolated point is identical with terminating point) of this stroke, form strokes vector.Continue trace, before chat stroke and be perpendicular stroke or isolated point, then the follow-up unit from its terminating point continues trace, as be that horizontal stroke then continues trace from the follow-up unit of the starting point of this stroke, by this rule, the order trace scans last unit, obtains the vector of all strokes, send external unit outputs such as plotting apparatus.
The present invention can be widely used in the hanzi system, and this method processing speed is fast, and is effective, is specially adapted to use in the many systems of character lattice number.
Claims (2)
1, utilize the disposal route of external unit output Chinese characters such as plotting apparatus, for Chinese character dot matrix in the Chinese character base, adopt trace scanning to form the vector of each stroke, send external unit output, feature of the present invention is:
A, Chinese character dot matrix is carried out 90 ° rotation, trace then;
B, only perpendicular direction of trace and transverse direction stroke, the tilted direction stroke is made up of transverse direction, perpendicular direction or the upright point of arc;
Non-point of crossing in c, the horizontal stroke is all erased after trace is scanned.
2, according to claim 1 to 90 ° of rotations of Chinese character dot matrix, it is characterized in that the direction of rotating is a clockwise direction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN87102388A CN87102388B (en) | 1987-04-03 | 1987-04-03 | Chinese characters converting method in the computing machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN87102388A CN87102388B (en) | 1987-04-03 | 1987-04-03 | Chinese characters converting method in the computing machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN87102388A true CN87102388A (en) | 1988-02-10 |
CN87102388B CN87102388B (en) | 1988-03-23 |
Family
ID=4813937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN87102388A Expired CN87102388B (en) | 1987-04-03 | 1987-04-03 | Chinese characters converting method in the computing machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN87102388B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484314A (en) * | 2014-12-09 | 2015-04-01 | 朱信 | Producing method of font library special for Chinese vertical-typeset ancient books and calligraphy |
CN109597971A (en) * | 2018-12-03 | 2019-04-09 | 上海理工大学 | Generate the method for braille word and braille character library and the application method of the braille character library |
-
1987
- 1987-04-03 CN CN87102388A patent/CN87102388B/en not_active Expired
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484314A (en) * | 2014-12-09 | 2015-04-01 | 朱信 | Producing method of font library special for Chinese vertical-typeset ancient books and calligraphy |
CN109597971A (en) * | 2018-12-03 | 2019-04-09 | 上海理工大学 | Generate the method for braille word and braille character library and the application method of the braille character library |
CN109597971B (en) * | 2018-12-03 | 2022-12-20 | 上海理工大学 | Method for generating blind characters and braille character library and using method of braille character library |
Also Published As
Publication number | Publication date |
---|---|
CN87102388B (en) | 1988-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0099971B1 (en) | Retro-stroke compression and image generation of script and graphic data employing an information processing system | |
GB2027241A (en) | Mark sense reader | |
CN102063496B (en) | Spatial data simplifying method and device | |
JPS5850589A (en) | Display processor | |
CN107944451A (en) | The row cutting method and system of a kind of ancient Tibetan books document | |
SE438213B (en) | DATA PRINTER FOR WRITING DATA BY ANY NUMBER OF VERTICAL WIPES IN ACCORDANCE WITH INCOMING GROUPS OF SIGN AND CONTROL DATA | |
CN87102388A (en) | Chinese characters converting method in the computing machine | |
US4071909A (en) | Digital interface system for a printer | |
JPH0351894A (en) | Information processor equipped with character pattern generating function using vector font | |
CN1279451A (en) | Triangular vector approximating method of digitalized character contour | |
JPS6321949B2 (en) | ||
FI77180B (en) | FOERFARANDE OCH ANORDNING FOER REGISTRERING AV SKRIVTECKEN. | |
JPH0831138B2 (en) | Polygonal fill device in scanning display device | |
JPS602670B2 (en) | Display control method | |
JP2650903B2 (en) | Standard pattern storage method and device in character recognition device | |
JPS6389894A (en) | Pattern generator | |
JPS61196381A (en) | Character segmenting system | |
JPH0114608B2 (en) | ||
JPH0727566B2 (en) | Local area projection calculator | |
JPS58113981A (en) | Screen memory control system | |
JPS6011890A (en) | Image memory control system | |
JPS6262385B2 (en) | ||
JPS60120479A (en) | Device for extracting crossing and curved point | |
JPS59194269A (en) | On-line character recognition system | |
JPH0266681A (en) | Drawing processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
PB01 | Publication | ||
C06 | Publication | ||
C13 | Decision | ||
GR02 | Examined patent application | ||
CI01 | Correction of invention patent gazette |
Correction item: Agency|Agent Correct: Sanyou Patent Agency|Zhu Liguang False: Agency without agency|No agent Number: 6 Page: 45 Volume: 4 |
|
ERR | Gazette correction |
Free format text: CORRECT FROM: NO AGENT TO: SANYOU PATENT OFFICE; ZHU LIGUANG |