Purpose of the present invention is in the method that a kind of document No. that will have a text character is provided and have the text character file with one and pass to the method for another computer system from a computer system, and a receiving computer system can will fully be reduced by the file that transmits any language that computer system sends.And, because the present invention do not need to convert the text character of file to vision signal, thus smaller according to the storage area of the file of coding method gained of the present invention, and the delivery time is also shorter.
In order to achieve the above object, the present invention's method that will have a document No. of text character comprises the steps:
I, provide one have first the memory position and second the memory position word pattern (font) memory, this first the memory position be used for storing a plurality of elementary cell information, this second the memory position be used for storing a plurality of character informations;
One text character of II, selection this document;
III, when corresponding to the character information of earlier fixed text character be when being present in this word pattern memory, then
(1) assigns one to make sign indicating number by oneself, simultaneously this is made by oneself sign indicating number and be stored in the character information position of a word pattern document (font shelves) with corresponding to this selected text character;
(2) will be stored in the character information position of this word pattern document corresponding to the character information of this selected text character;
(3) will constitute the elementary cell information storage of this selected text character in a base unit information position of this word pattern document;
IV, to next text character of this document, repeat the step of (2) to (3), till the character information of all text characters of this document is stored in the character information position of this word pattern document.
When the character information corresponding to selected text character is not present in this word pattern memory, then assign one to make sign indicating number by oneself with corresponding to this selected text character, simultaneously this being made by oneself sign indicating number is stored in the character information position of this word pattern document, and produce one should be selected the shape data of text character, and this shape data is stored in the character information position of this word pattern document as the character information of text character that should be selected.
Certainly, when if the character information of selected text character has been stored in this word pattern document, then only needing will be just passable corresponding to making by oneself in yard character information position that is stored in this word pattern document of this selected text character, and continue to select the next text character of this document.
In order to reach another above-mentioned purpose, the present invention has the text character file with one and comprises the steps: from the method that a computer system passes to another computer system
I, with a document No., comprising:
1. provide one to have the word pattern memory that the position is remembered in the first memory position and second, this first memory position is used for storing a plurality of elementary cell information, and this second memory position is used for storing a plurality of character informations;
2. select the text character an of this document;
3. when the character information corresponding to selected text character is present in this word pattern memory, then
(1) assigns one to make sign indicating number by oneself, simultaneously this is made by oneself sign indicating number and be stored in the character information position of a word pattern document with corresponding to this selected text character;
(2) will be stored in the character information position of this word pattern document corresponding to the character information of this selected text character; And (3) will constitute an elementary cell information storage of this selected text character in the base unit information position of this word pattern document;
4. continue next text character to this document, repeat 2, the step to 3 is till the character information of all text characters of this document is stored in the character information position of this word pattern document;
II, transmits this word pattern document, and receive this word pattern document, and the step in this receiving computer system is with a receiving computer system:
The word pattern document that III, reception one are transmitted by above-mentioned transmission computer system;
IV, with the decoding of this word pattern document to reduce above-mentioned file.
This file that is reduced can be printd out or is presented in the above-mentioned receiving computer system.
The present invention is described in detail below in conjunction with drawings and Examples:
In 61-147288 number publication communique of Japan, disclose a kind of literal pattern and produce display device, be used for producing Chinese character, and it is shown on the computer screen.This literal pattern generation display device has one provides the word pattern memory of Chinese character data to central processing unit (CPU).In this communique, each Chinese character is made up of a plurality of elementary cell.Each elementary cell can a corresponding literal stroke (stroke) or one group of stroke (radicals by which characters are arranged in traditional Chinese dictionaries).Therefore, use comprises more than one elementary cell information and more than one character information at the word pattern memory that this literal pattern produces display device, each elementary cell information comprises that again the identification code and of each other elementary cell is presented at the shape data (out-line data) of elementary cell out of the ordinary in the predetermined elementary cell space (predetermined basic unitspace), in addition, each character information then comprises one group of identification code that constitutes the composition elementary cell of a character, one group of position data that is presented at the composition elementary cell in the book character space and size data etc.
In the time will being presented at a Chinese character on the computer screen, above-mentioned central processing unit will be read character information and the elementary cell information corresponding to this Chinese character from this word pattern memory, and the data of being read are delivered to one describe controller, describe to comply with in the controller character information (X of this Chinese character at this, the size of Y direction, the position, font, color) does computing with elementary cell information, describe, describe the controller computing through this, result after the description then is stored in the picture structure reservoir, and the character image that will be stored in the above-mentioned picture structure reservoir by an output processor is presented on the screen again.
And in the coding method of the present invention, this file with text character is to encode with standard code in the primitive compuer system, encodes and its charcter topology term system is similar in the above-mentioned Japanese communique employed word pattern memory by one.This paper file behind this coding is stored in the word pattern document, and via one in the past load mode (for example: E-mail conveyance) this word pattern document is sent to a receiving computer system.
As shown in Figure 1, be the process flow diagram of explanation the present invention with the method preferred embodiment of a document No., it comprises the steps:
Step I: as shown in Figure 2, this word pattern memory 10 has the second memory position 13 that first a memory position 11 and that is used for storing a plurality of elementary cell information is used for storing a plurality of character informations.Each elementary cell information comprises separately the shape data (OD) of elementary cell identification code (ID) and in predetermined elementary cell space.This shape data can be shellfish formula curve (Bezier curve) data, batten (Spline) curve data or vector data etc.Each character information comprises character standard code (SD), an identification code (ID), that constitutes the elementary cell of this character separately and is presented at position and the sizes values that constitutes this character elementary cell in the book character space, and is presented at the orientation (O) that constitutes this character elementary cell in the book character space.The above-mentioned positional value that is presented at this character elementary cell of formation in the book character space is the shift value (X with X-axis, Y direction
n, Y
n) define, be scale factor (S and be presented in the book character space sizes values that constitutes this character elementary cell with X-axis, Y direction
x, S
y) define.
Step II: select the text character of a file, and encoded.
Step II I: judge whether corresponding selected character information is present in this word pattern memory 10.In present embodiment, above-mentioned judgement action is the result who is compared with the standard code that is stored in this word pattern memory 10 (SD) by the standard code that is assigned to selected character and finishing.
Step IV: if be present in this word pattern memory 10 corresponding to the character information of selected text character, then assign a sign indicating number of making by oneself corresponding to this selected text character, simultaneously this is made by oneself sign indicating number and be stored in the character information position of yi word pattern shelves (word pattern document).As shown in Figure 3, this make by oneself the sign indicating number (UD) be stored in the character information position 23 of font shelves 20.And the character information corresponding to this selected text character is stored in this character information position 23 subsequently, and the elementary cell information that constitutes the composition of this selected text character is stored in the base unit information position 21 of above-mentioned font shelves 20.In addition, the identification code (ID) of the composition elementary cell in the character information position 23 of these font shelves 20 is used to refer to the relative address of the base unit information of this base unit information position 21.
Step V: if be not present in this word pattern memory 10 corresponding to the character information of selected text character, then assign make by oneself yard (UD) corresponding to this selected text character, simultaneously this is made by oneself sign indicating number (UD) and be stored in the character information position 23 of these font shelves 20.Simultaneously, use one profile generator (outline generator) in the past produces the shape data of this selected text character, and this shape data is stored in these font shelves 20 as the character information of this selected text character, profile generator commonly used at present is the FontoGrapher implementing procedure that ALTSYS company is developed.This shape data can directly be stored in after correspondence in these font shelves 20 character information positions 23 makes sign indicating number (UD) by oneself, or be stored in the base unit information position 21 of these font shelves 20, for the latter, store an ID sign indicating number and an appearance information (OD) in this base unit information position 21, each shape data has been assigned an ID sign indicating number respectively, and the ID sign indicating number that this is assigned directly be stored in this character information position 23 make by oneself the sign indicating number (UD) afterwards.
Step VI: continue other text characters, repeat the step of (II) to (V), till the character information of all text characters of this document is stored in these font shelves 20 to this document.
In step IV and step V,, when just text character repeats in this document, be stored in the part that repeats in these font shelves 20 before then can deducting if when the character information of selected text character has been stored in these font shelves 20.Only needing will be just passable corresponding to making by oneself in the character information position 23 that sign indicating number (UD) is stored in these font shelves 20 of this selected text character, to reach the effect that reduces required storage area.
In addition, these font shelves 20 further have a file description position 25 that is used for storing above file description data, above-mentioned file description data are that available tabulating machine PostScript as PCL/ESCP/POSTSCRIPT is described, and its file description data comprise a word pattern related data with data such as word pattern size, word pattern kenel, word pattern attribute (solid, italic etc.), word pattern positions, and a text character make sign indicating number (UD) by oneself.Therefore, these font shelves 20 that utilize coding method of the present invention to produce can be by decoding and positively reduction up hill and dale, even the text character in the source document has different sizes values and font.
Coding method of the present invention can utilize at simple text file or have figure and the file of literal.Concerning the latter's file kenel, the figure of this document can be stored in the figure position of these font shelves 20.
And these font shelves 20 that utilize coding method of the present invention to produce can be stored in the Portable data storage medium, for example flexible plastic disc.These font shelves 20 also can be sent to the receiving computer system by the e-file transmission.In above-mentioned two examples, this computer system must have this font shelves 20 decoding and reduciblely be the ability of source document.
Because these font shelves 20 do not comprise any standard code, so another computer system can be reduced into source document with the font shelves 20 of any language file.In addition, because these font shelves 20 vision signal of the text character of include file not, so it is smaller and the delivery time is also shorter to be used for storing the memory space of these font shelves 20.
Coding method of the present invention can be implemented by the operating system printed driver, and by this, the execution of this coding method can be instructed by operation one Print-to-File and be reached.In addition, according to coding method of the present invention, also can design the dedicated hardware device that produces these font shelves 20.
From the above, in order to be reduced into source document, must be with 20 decodings of font shelves in another computer system, when implementing decoding, a recovery module (figure does not show) is used for receiving the content of these font shelves 20, and this content is reduced into the text character of file.And the action of this recovery module is to carry out in the mode of the anti-order of coding method.Read the shape data of the elementary cell of forming literal according to the character information in these font shelves 20, and obtain a pattern corresponding to character.Text character verily can be reduced on computer screen according to the file description information in these font shelves 20, or print out.
As coding method of the present invention, this recovery module is to implement by the application program of an operating system or by dedicated hardware device, no matter be that a kind of implementation method, this recovery module all can be used on the computer printer, makes this source document correctly print out.
It should be noted can have encoding and decoding ability of the present invention simultaneously in the same computer system at this, in addition, the operation of this encoding and decoding also can be implemented in the computer system of separating.With the operation of decoding,, but as long as use method of the present invention also these font shelves 20 can be reduced to source document even the computer system of this separation has different operating system.
In sum, the present invention will have the document No. of text character and the method for transmission, the receiving computer system will fully be reduced by the file that transmits any language that computer system sends, and, because the present invention does not need to convert the text character of file to vision signal, so the storage area according to the file of coding method gained of the present invention is smaller, and the delivery time is also shorter.