CN103522774A - Recording device, and control method for recording device - Google Patents

Recording device, and control method for recording device Download PDF

Info

Publication number
CN103522774A
CN103522774A CN201310274627.1A CN201310274627A CN103522774A CN 103522774 A CN103522774 A CN 103522774A CN 201310274627 A CN201310274627 A CN 201310274627A CN 103522774 A CN103522774 A CN 103522774A
Authority
CN
China
Prior art keywords
character
font data
data
compressed
nonvolatile memory
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.)
Granted
Application number
CN201310274627.1A
Other languages
Chinese (zh)
Other versions
CN103522774B (en
Inventor
岩佐有弥
岛田俊一
丸永一希
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Publication of CN103522774A publication Critical patent/CN103522774A/en
Application granted granted Critical
Publication of CN103522774B publication Critical patent/CN103522774B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a recording device and a control method for the recording device. In the recording device, the capacity of the memory where font data is stored is inhibited, and the delay caused by the decompression of compressed data is prevented. A printer comprises a printing unit; a ROM storing compressed font data for each character, and storing a compressed data index establishing correspondence between character codes and addresses where the compressed font data of characters corresponding to each character code are stored in the ROM; a compressed data obtaining unit which obtains the addresses where the compressed font data corresponding to the character codes of characters of a printing object are stored, and reads the compressed font data according to the obtained addresses; a decompression unit for decompressing the compressed font data in a font decompression area; and a printing control unit for controlling the printing unit to print the characters of the printing object based on the depressed data.

Description

The control method of tape deck and tape deck
Technical field
The present invention relates to the control method of tape deck and tape deck.
Background technology
In the past, be known to following tape deck, that is, will store (built-in) in storage mediums such as ROM for recording the character font data of character, and the character font data based on having stored recorded (for example,, with reference to patent documentation 1) to character.The tape deck that patent documentation 1 is recorded is handled as follows, and, in order to suppress the capacity of ROM, character font data is stored in to ROM compressively that is, when recording, from ROM, reads and decompresses.
Patent documentation 1: Japanese kokai publication hei 07-137341 communique
Yet the processing spended time that compressed character font data is decompressed, therefore postpones in the inferior generation of the situation that records continuously a plurality of characters.Therefore, for example considering has the method that reads character font data and decompress from ROM in advance, but for the character font data of a plurality of characters is pre-stored with the state having decompressed, need to fully guarantee the capacity of RAM.
Summary of the invention
The present invention completes in view of above-mentioned situation, and its object is, can in tape deck, suppress the capacity of the storage area of stored word volume data, prevents from being accompanied by the caused delay of decompression of compressed data simultaneously.
To achieve these goals, tape deck of the present invention is characterised in that to possess: recording mechanism; Nonvolatile memory, it stores compressed font data by each character; Corresponding informance storing mechanism, its to by character code with and the above-mentioned compressed font data of character corresponding to each character code storage address that is stored in above-mentioned nonvolatile memory set up corresponding corresponding informance and store; Packed data processing mechanism, it is based on above-mentioned corresponding informance, obtain the storage address of the above-mentioned compressed font data corresponding with the character code of character that records object, and according to acquired storage address, read above-mentioned compressed font data and decompress in working region; And record controls mechanism, its data based on after being decompressed by above-mentioned packed data processing mechanism, control above-mentioned recording mechanism the above-mentioned character that records object are carried out to record.
According to the present invention, for tape deck, because the character font data of compressed storage in nonvolatile memory is compressed by each character, so can read the also character font data of the character of decompressed records by each character.Therefore, because the amount with the character of needs only decompresses to data, thereby can prevent from being accompanied by the caused delay of decompression, in addition, can suppress to store the nonvolatile memory of compressed font data and the capacity that stores the working region of the character font data after decompressing.
In above-mentioned tape deck, can be configured to, in above-mentioned nonvolatile memory, with non-compressed state, store the character font data of the character different from the character of above-mentioned compressed font data, and possess: unpacked data processing mechanism, it,, on the opportunity of regulation, reads and is stored in above-mentioned working region to being stored in the above-mentioned incompressible character font data of above-mentioned nonvolatile memory, and decision mechanism, whether it is that above-mentioned compressed font data are judged to character font data corresponding to the character code with the above-mentioned character that records object, in the situation that determine the character font data corresponding with the character code of the above-mentioned character that records object by above-mentioned decision mechanism, be above-mentioned compressed font data, above-mentioned packed data processing mechanism reads above-mentioned compressed font data from above-mentioned nonvolatile memory by each character and decompresses, the character font data of above-mentioned record controls mechanism based on after being decompressed by above-mentioned packed data processing mechanism, and carry out record by the incompressible character font data that above-mentioned unpacked data processing mechanism is stored in above-mentioned working region.
According to this structure, tape deck separately uses and compresses and be stored in the character font data of nonvolatile memory and with non-compressed state, be stored in the character font data of nonvolatile memory, from nonvolatile memory, by each character, read character font data compression and carry out the decompress(ion) record that contracts, incompressible character font data is stored in working region on the opportunity of regulation, therefore can utilize the character font data of working region to carry out record.Therefore, by separately use compressed character font data and incompressible character font data according to the frequency of utilization of character font data, data volume, the capacity that can effectively suppress the storage area of stored word volume data, and, can prevent from being reliably accompanied by the decompression of data and the delay that causes.
In above-mentioned tape deck, can be configured to, in above-mentioned nonvolatile memory, store the character font data of answering from different a plurality of character code set pairs, the above-mentioned character font data of answering with the above-mentioned character code set pair of a part is above-mentioned compressed font data, the above-mentioned character font data of answering with the above-mentioned character code set pair of an other part is above-mentioned incompressible character font data, above-mentioned decision mechanism is by comprising that the character code collection of the character code of the character that records object determines, judge that the character font data corresponding with above-mentioned character code is to be stored in above-mentioned nonvolatile memory as above-mentioned compressed font data, or be stored in above-mentioned working region as above-mentioned incompressible character font data.
According to this structure, by each character code collection, by the compressed compressed font data of each character or incompressible character font data, be stored in nonvolatile memory, tape deck can separately use them, therefore such as the character of the many character code collection of the many data volumes such as character code collection of number of characters being stored as compressed font data, the character of the little character code collection of the few data volumes such as character code collection of number of characters is stored as incompressible character font data.Therefore, by according to the frequency of utilization of character font data, data volume, separately use compressed character font data and incompressible character font data, thereby the capacity that can effectively suppress the storage area of stored word volume data, and, can prevent from being reliably accompanied by the decompression of data and the delay that causes.And by determine character code collection based on character code, the character font data that can promptly judge use is compressed character font data or incompressible character font data.
In above-mentioned tape deck, can be configured to, above-mentioned corresponding informance storing mechanism is stored above-mentioned corresponding informance in a part for the storage area of above-mentioned nonvolatile memory.
According to this structure, tape deck, storing the part storage corresponding informance of the nonvolatile memory of compressed font data, therefore can easily be determined the address that stores compressed font data, thereby can promptly read.
In above-mentioned tape deck, can be configured to, possess and be independent of the memory that above-mentioned nonvolatile memory arranges, above-mentioned packed data processing mechanism decompresses the above-mentioned compressed font data Replica reading from above-mentioned nonvolatile memory in the above-mentioned working region that is formed at above-mentioned memory.
According to this structure, for tape deck, in the structure of using the memory different from nonvolatile memory as working region, can prevent from being accompanied by decompression and the delay that causes, thereby can suppress the capacity of nonvolatile memory and working region.
In addition, to achieve these goals, the invention is characterized in, to possessing recording mechanism and controlling by the tape deck that each character stores the nonvolatile memory of compressed font data, the character code of the character based on recording is set up corresponding corresponding informance with the storage address storing in the above-mentioned nonvolatile memory of above-mentioned compressed font data of the character corresponding with each character code, obtain the storage address of the above-mentioned compressed font data corresponding with the character code of character that records object, according to acquired storage address, read above-mentioned compressed font data, in working region, the above-mentioned compressed font data that read are decompressed, data based on after decompressing, above-mentioned recording mechanism is controlled to record character.
According to the present invention, the character font data that is stored in nonvolatile memory due to compression is compressed by each character, thus tape deck can by each character read record character character font data and decompress.Therefore, due to only with the amount of the character of needs to data decompression, the delay that therefore can prevent from being accompanied by decompression and cause, in addition, can suppress to store the nonvolatile memory of compressed font data and the capacity that stores the working region of the character font data after decompressing.
According to the present invention, can prevent from being accompanied by the decompression of compressed character font data and the delay that causes, in addition, can suppress to store the nonvolatile memory of compressed font data and the capacity that stores the working region of the character font data after decompressing.
Accompanying drawing explanation
Fig. 1 means the block diagram of the structure of the print system that embodiments of the present invention are related.
Fig. 2 is the figure that schematically shows the structure of ROM.
Fig. 3 means the flow chart of the action of printer.
The specific embodiment
Below, with reference to accompanying drawing, embodiments of the present invention are described.
Fig. 1 means the block diagram of the structure of having used the related print system of embodiments of the present invention 1.
Print system 1 shown in Fig. 1 is by master computer 10 and printer 20(tape deck) in the mode that can intercom mutually, be connected, and the data of exporting based on master computer 10, by the system of printer 20 output print product.
Master computer 10 is configured to possesses not shown CPU, ROM, RAM etc., and possesses control part 11, this control part 11 performing a programmes and intensively each portion of master computer 10 being controlled.Control part 11 executive operating systems 12, control each portion of master computer 10 and printer 20, and in operating system 12 executive utility 14, thereby realize the functions such as management of document creation, print data.Application program 14 generates the print out task being printed by printer 20.This print out task comprises: the data such as the character that print, image; The size of designated character, image and layout (comprising intercharacter surplus, line feed amount, line feed position etc.), be arranged at the various data of surplus etc. of the end up and down of printed product; And the data of printing etc. are carried out in indication.
Operating system 12 has the printer driver 13 that the printer to being connected with master computer 10 is controlled.Printer driver 13 is the programs that are incorporated into master computer 10, the data that the print job of application programs 14 outputs comprises are resolved, and generate various instructions that printer can explain, the print data such as the character code of the character that will print or view data, export printer to.Printer driver 13 can be also the specification of contrast printer 20 and the program prepared, also can be by the general device driver programs of the common use of various printers.
On the other hand, printer 20 is built-in with the character font data of the character printing as described later, and character font data corresponding to the character code that the print data with printer driver 13 output is comprised read, and prints.
In the present embodiment, the situation of being listed below is that example describes,, the performed application program 14 of master computer 10 can generate the print out task that is mixed with half widths alphameric (alphanumeric) and Chinese character (simplified Chinese character), and the printer driver 13 that forms a part for operating system 12 generates with ASCII character and represents half widths alphameric, with the character code of GB18030 standard, represents the print data of Chinese character.
Master computer 10 possesses the interface (I/F) 15 that connects for printer 20 external equipments such as grade, data that created by application program 14 etc. is shown in to the display control unit 16 of display frame and the input test section 17 that the operation of the input units such as the keyboard of operating personnel's operation, mouse is detected.Interface 15 possesses according to USB, RS-232C, Ethernet(registration mark) etc. various standards and the connector and the interface circuit that generate, and via equipment connections such as cable and printers 20.On the other hand, printer 20 possesses the interface (I/F) 28 being connected with master computer 10 via cable.Interface 28 is configured to be possessed according to USB, RS-232C, Ethernet(registration mark) etc. various standards and the connector and the interface circuit that generate.In addition, interface 15 and interface 28 also can be configured to the wireless communication interface with antenna, RF circuit, and in this situation, master computer 10 is connected by wireless communication line with printer 20.
In the present embodiment, though enumerate the structure that master computer 10 is connected one to one with printer 20, be that example describes, also a plurality of printers 20 can be connected with a master computer 10, a plurality of master computers 10 are connected with printer 20.
In addition, printer 20 possesses control part 21, and this control part 21 passes through the performing a programmes such as CPU or microcomputer, and intensively each portion of printer 20 is controlled.
Control part 21 is by reading and carry out the control program 32 that is stored in ROM31 described later, and conduct starts control part 22, print data obtaining section 23, data judging portion 24, packed data obtaining section 25, decompression portion 26 and print control section 27 and performance function.
Control part 21 is connected with the ROM31(nonvolatile memory with non-volatile mode store various kinds of data, program) and form the RAM37(memory for the working region of control part 21 deal with data).
In addition, printer 20 possesses the print unit 41(recording mechanism of carrying out printing by the control of control part 21).Print unit 41 possesses carrying motor 42 that the paper as recording medium, thin slice are carried, printable character or the printhead 43 of image and the cutter unit 44 that the recording medium after being printed by printhead 43 is cut off on the recording medium by 42 carryings of carrying motor.In the present embodiment, as an example, can be at inside or the outside temperature-sensitive coil paper of installing of the housing of printer 20, printhead 43 is to give heat and the thermal head that prints to temperature-sensitive coil paper.
The non-volatile memory device that ROM31 can be rewritten by EEPROM, flash rom etc. forms.ROM31 stores the performed control program 32 of control part 21.In addition, ROM31 has packed data storage area 33 and the unpacked data storage area 34 that the character font data of the character to being printed by print unit 41 stores.In packed data storage area 33, store compressed character font data, in unpacked data storage area 34, with incompressible state, store character font data.ROM31 is equivalent to stored compressed data index 35(corresponding informance) corresponding informance storing mechanism.
In addition, RAM37 consists of the semiconductor memery device that comprises DRAM, SDRAM, RDRAM, FeRAM, MRAM etc., thereby forms the working region for control part 21 deal with data.In being formed at the working region of RAM37, be provided with font decompression region 38 and the unpacked data storage area 39 for copying being stored in the incompressible character font data of unpacked data storage area 34 of for 21 pairs of compressed character font datas of control part, decompressing.
Fig. 2 is the figure that schematically represents the structure of ROM31, and Fig. 2 (A) means the schematic diagram of structure of the storage area of ROM31, and Fig. 2 (B) is the schematic diagram of packed data index 35.
As shown in Figure 2 (A) shows, in packed data storage area 33, with compressed state, store the character font data 31A of the character that printer 20 can print.These character font datas 31A is for form the data of character at coil paper for print unit 41, for example, be the data bitmap of bit-mapped font, the data of cutline font.Character font data 31A, take a character as the compressed form of unit is stored in packed data storage area 33, reads character font data 31A by each character, thereby can decompress.For example, in the present embodiment, printer 20 can print the character according to GB18030 standard, and the character of therefore can take from packed data storage area 33 is unit reads the character font data 31A of the character needing the contained a plurality of characters of GB18030.Control part 21 reads the character font data 31A of the character needing from being stored in a plurality of character font data 31A of packed data storage area 33, and in the font decompression region 38 that is arranged at RAM37, copy as shown in Figure 2 (A) shows, implement the processing of decompression and rasterizing.Thus, character font data 31A is transformed to the character font data 31B of the form that can be printed by print unit 41.
On the other hand, in unpacked data storage area 34, store incompressible state, i.e. not compressed character font data 34A.The printer 20 of present embodiment, except the character of above-mentioned GB18030 code, also can be printed the character of ASCII character.For the character font data of the character of ASCII character, no matter be bit-mapped font or cutline font, compare data volume with Chinese character all little.Therefore, in unpacked data storage area 34, the character font data 34A of the character of ASCII character is compressed and be stored with the state that can print.The character font data 34A that is stored in unpacked data storage area 34 is read by control part 21 when printer 20 starts, and is replicated in as shown in Figure 2 (A) shows the unpacked data storage area 39 that is arranged at RAM37.This character font data 34A is the form that can be printed by print unit 41.
Packed data index 35 is for compression, to be stored in the character font data 31A of each character of packed data storage area 33, and character code and 33Zhong address, packed data storage area (storage address) are set up to corresponding data.At packed data index 35, include and be illustrated in the initial address in region and the data of data size that packed data storage area 33 stores character font data 31A, be used as representing the data of address.Packed data index 35 comprises the data corresponding with the character font data 31A of alphabet that is stored in packed data storage area 33.Therefore,, for store the alphabet of character font data 31A in packed data storage area 33 for, can by each character, read according to packed data index 35 the character font data 31A of this character.
Processing while the startup control part 22(unpacked data processing mechanism that as shown in Figure 1, control part 21 possesses) carrying out each initialized a series of startups that makes printer 20 when printer 20 starts.In processing, start removing, the mechanical part of print unit 41, the initialization of various sensors etc. that control part 22 is carried out the data of RAM37 when this starts.And, start character font data 34A(Fig. 2 (A) that 22 pairs of control parts are stored in the unpacked data storage area 34 of ROM31) read, and copy in unpacked data storage area 39.Thus, the character of ASCII character becomes the state that can print.
Print data obtaining section 23 obtains via interface 28 the input data such as print command, print data and other control instruction that master computer 10 sends.
Data judging Bu24(decision mechanism) extract the contained character code of print data that print data obtaining section 23 obtains, and the character font data 34A that the character font data of the character corresponding with each character code is stored in the compressed font data of packed data storage area 33 or is stored in RAM37 judges.24 pairs of character codes that extract from print data of data judging portion are that the contained code of which character code collection is determined.In the present embodiment, 24 pairs of contained character codes of print data of data judging portion are that ASCII character or GB18030 code are determined.And, for data judging portion 24, in the situation that the character code extracting is ASCII character, being judged to be the data that printing used is the character font data 34A that are replicated in unpacked data storage area 39, in the situation that the character code extracting is GB18030 code, being judged to be in order to carry out the data of printing and using is the character font data 31A that are stored in packed data storage area 33.
For packed data obtaining section 25, in the situation that determined and used the character font data 31A that is stored in packed data storage area 33 by data judging portion 24, the character code based on determining comes with reference to packed data index 35.Packed data obtaining section 25, according to initial address and data size corresponding with character code in packed data index 35, reads the character font data 31A of corresponding character, and copies in font decompression region 38 from packed data storage area 33.
The processing that decompression portion 26 algorithm according to the rules decompresses to be replicated in the character font data 31A in font decompression region 38 by packed data obtaining section 25.
These packed data obtaining sections 25 and decompression portion 26 are equivalent to packed data processing mechanism of the present invention.
Print control section 27(record controls mechanism) print command and the print data that based on print data obtaining section 23, obtain, control print unit 41, thereby carry out, prints.Herein, print control section 27 reads in the decompressed character font data 31B in font decompression region 38 or is stored in the character font data 34A of unpacked data storage area 39, be used as the character font data of the contained character of print data, and printed by printhead 43.In addition, also can be configured to, print control section 27 forms the print image of the page that will print at the print buffer that is arranged at RAM37, and print this print image by printhead 43, in this situation, according to the character font data that print command configures from font decompression region 38 or unpacked data storage area 39 is obtained, thereby generate print image.
Fig. 3 means the flow chart of the action of printer 20.
If the power switch of enable printer 20, starts control part 22 and carries out processing (step S11) while starting, thereby each portion of printer 20 is initialized.Then, start control part 22 and the character font data 34A that is stored in ROM31 is replicated in to the unpacked data storage area 39 of RAM37, thereby store (step S12).
Then, control part 21 is waited for from the print command of master computer 10 transmissions and the input of print data, if receive print command and print data (step S13), print data obtaining section 23 obtains print command and print data, and data judging portion 24 extracts character code string (step S14) from acquired print data.Herein, the number of characters of the character code string that composition data detection unit 24 extracts from print data is restriction not, can be also a character.
Data judging portion 24 obtains the character code (step S15) of a character from the character code string having extracted, and the character code collection of acquired character code is determined to (step S15).In the example of present embodiment, 24 pairs of acquired character codes of data judging portion are that ASCII character or GB18030 code are determined.Data judging portion 24 is ASCII character or GB18030 code based on fixed character code collection, to printer 20, is that character font data 31A or character font data 34A judge (step S17) with this character code character font data corresponding and that have.
In the situation that data judging portion 24 determines the character font data that printing used, be compressed character font data 31A (the step S17 that is stored in packed data storage area 33; Be), packed data obtaining section 25 is come with reference to packed data index 35 based on character code, reads the character font data 31A of a character, and copy (step S18) in font decompression region 38 from packed data storage area 33.Next, the character font data 31A that 26 pairs, decompression portion is replicated in font decompression region 38 carries out decompress(ion) and contracts and carry out the processing of rasterizing, thereby generates character font data 31B(step S19).
Then, print control section 27 obtains the character font data 31B processing from font decompression region 38, and is stored in the print buffer of the working region that is arranged at RAM37, thereby by print unit 41, prints this character (step S21) according to print command.
For control part 21, whether 24 pairs, data judging portion processes to complete for the alphabet code the character code string extracting from print data judges (step S22), (step S22 in the situation that finishing dealing with; Be), control part 21 finishes this processing.In addition, (step S22 in the situation that there is untreated character code; No), return to step S15 and process character late code.
On the other hand, in the situation that data judging portion 24 determines the character font data that printing used is incompressible character font data 34A (the step S17 that is stored in unpacked data storage area 39; No), the character font data 34A of print control section 27 from unpacked data storage area 39 obtains the character font data (step S23) of a corresponding character, moves to step S20, and acquired character font data is stored in to print buffer.
As described above, according to having used the related printer of embodiments of the present invention 20, possess print unit 41 and have by the ROM31 of the packed data storage area 33 of each character stored word volume data 31A, at ROM31 stores compressed data index 35, this packed data index 35 by character code with and the character font data 31A of character corresponding to each character code storage address that is stored in ROM31 set up corresponding, and possess: packed data obtaining section 25, this packed data obtaining section 25 is based on this packed data index 35, obtain the storage address of the character font data 31A corresponding with the character code of the character of print object, and read character font data 31A according to acquired storage address, decompression portion 26, this decompression portion 26 decompresses at 38 pairs, the font decompression region obtained character font data 31A of packed data obtaining section 25, and print control section 27, the data of this print control section 27 based on after being decompressed by decompression portion 26, control print unit 41 and carry out record to recording the character of object.According to this printer 20, the character font data of compressed storage is compressed and be stored in ROM31 by each character, and the character font data that therefore can read the character of record by each character decompresses.Therefore, due to only with the amount of the character of needs to data decompression, the delay that therefore can prevent from being accompanied by decompression and cause, in addition, can suppress the capacity in the ROM31 of store font data 31A and the font decompression region 38 of the character font data 31B after storage decompression.
In addition, unpacked data storage area 34 at ROM31 stores the character font data 34A of the character different from the character of character font data 31A with non-compressed state, printer 20 possesses: start control part 22, this startup control part 22, and copied and is stored in font decompression region 38, read the incompressible character font data 34A that is stored in ROM31 during the startup of for example printer 20 on the opportunity of regulation, with data judging portion 24, 24 pairs of character font datas corresponding with the character code of the character of print object of this data judging portion are stored in the character font data 31A of packed data storage area 33 or judge with the character font data 34A that non-compressed state is stored in unpacked data storage area 34, in the situation that determine the character font data corresponding with the character code of the character of print object by data judging portion 24, be character font data 31A, packed data obtaining section 25 reads character font data 31A from ROM31 by each character, print control section 27 is according to the judgement of data judging portion 24, and the character font data 31B based on after decompressing, and printed by the incompressible character font data 34A that starts control part 22 and be stored in font decompression region 38.Thus, printer 20 can separately use and compresses and be stored in the character font data 31A of ROM31 and with non-compressed state, be stored in the character font data 34A of ROM31.Particularly, read character font data 31A and it is decompressed and carries out record from ROM31 by each character, incompressible character font data 34A is stored in font decompression region 38 on the opportunity of regulation and supplies to print.Therefore, according to the frequency of utilization of character font data, data volume, can suitably separately compress and be stored in ROM31 or be stored in RAM37 with non-compressed state, the capacity that can effectively suppress the ROM31 of stored word volume data and the storage area of RAM37, and, can prevent from being accompanied by the decompression of character font data and the delay that causes.
In addition, at ROM31, store the character font data of answering from different a plurality of character code set pairs, the character font data corresponding with a part of character code collection that is GB18030 code is compressed and store as character font data 31A, and the character font data corresponding with a part of character code collection that is ASCII character is stored in ROM31 as incompressible character font data 34A.And, for the character code of the character of the contained print object of print data, data judging portion 24 is by comprising that the character code collection of this character code determines, thereby is as character font data 31A, to be stored in ROM31 or as incompressible character font data 34A, being stored in font decompression region 38 judges to the character font data corresponding with this character code.Therefore, can separately use compressed character font data 31A and incompressible character font data 34A by each character code collection.For example, the character of and character code collection that data volume many many for number of characters as GB18030 code, compress and be stored in ROM31, the character of and character code collection that data volume little few for number of characters as ASCII character, as long as be stored in ROM31 as incompressible character font data 34A.Therefore, according to the frequency of utilization of character font data, data volume, separately use compression, non-compression, thereby can effectively suppress the capacity of the ROM31 of stored word volume data and the storage area of RAM37, and, can prevent from being reliably accompanied by the decompression of data and the delay that causes.And by determine character code collection based on character code, the character font data that can promptly judge use is character font data 31A or character font data 34A.
And, due to packed data index 35 is stored in to ROM31, thus can easily determine the address that stores character font data 31A by packed data obtaining section 25, and promptly read.In addition, in being formed at the font decompression region 38 of the RAM37 independently arranging with ROM31, the character font data 31A reading from packed data storage area 33 copied and decompressed, thereby can prevent from being accompanied by decompression and the delay that causes.
In addition, above-mentioned embodiment represents to have used a mode of the present invention, does not limit the present invention.For example, in above-mentioned embodiment, though enumerate, printer 20 can be printed the simplified Chinese character of GB18030 code and the alphanumeric structure of ASCII character is that example is illustrated, but also can make printer 20 and other character code set pair answer, also can compress the character font data of a plurality of character code collection, and be stored in packed data storage area 33, also the character font data of a plurality of character code collection can be stored in to unpacked data storage area 34 with incompressible state.In addition, the opportunity that the incompressible character font data 34A that is stored in unpacked data storage area 34 is replicated in to RAM37 is while being not limited to the startup of printer 20, such as also can be at printer 20 when resting state is restored, the reset instruction that sends of printer 20 and master computer 10 resets accordingly, the instruction of reading from from master computer 10 to printer 20 transmission directive volume datas and printer 20 carry out while receiving this instruction etc.
In addition, in the above-described embodiment, though enumerating the structure that possesses the print unit 41 printing at temperature-sensitive coil paper by thermal head is that example is illustrated, but the present invention is not limited to this, print unit 41 can be ink-jet printer, can be also impact printer, laser printer, other various printers.And each functional module shown in Fig. 1 can realize arbitrarily by the cooperation of hardware and software, is not designated as specific hardware configuration.And control part 11 and control part 21 also can be configured to the program that is stored in the outside storage medium connecting by execution, carry out the exercises of the action that comprises that the flow chart of Fig. 3 is related.

Claims (10)

1. a tape deck, is characterized in that, possesses:
Recording mechanism;
Nonvolatile memory, it stores compressed font data by each character;
Corresponding informance storing mechanism, it stores corresponding informance, described corresponding informance by character code with and the described compressed font data of character corresponding to each character code storage address that is stored in described nonvolatile memory set up corresponding;
Packed data processing mechanism, it is based on described corresponding informance, obtain the storage address of the described compressed font data corresponding with the character code of character that records object, and according to the storage address of obtaining, read described compressed font data and decompress in working region; And
Record controls mechanism, its data based on after being decompressed by described packed data processing mechanism, control described recording mechanism the described character that records object are carried out to record.
2. tape deck according to claim 1, is characterized in that,
In described nonvolatile memory, with non-compressed state, store the character font data of the character different from the character of described compressed font data,
Described tape deck possesses:
Unpacked data processing mechanism, it,, on the opportunity of regulation, reads and is stored in the described incompressible character font data of described nonvolatile memory and is stored in described working region; With
Decision mechanism, whether it is that described compressed font data are judged to character font data corresponding to the character code with the described character that records object,
In the situation that be judged to be the character font data corresponding with the character code of the described character that records object by described decision mechanism, be described compressed font data, described packed data processing mechanism reads described compressed font data from described nonvolatile memory by each character and decompresses
The character font data of described record controls mechanism based on after being decompressed by described packed data processing mechanism and carry out record by the incompressible character font data that described unpacked data processing mechanism is stored in described working region.
3. tape deck according to claim 2, is characterized in that,
In described nonvolatile memory, store the character font data of answering from different a plurality of character code set pairs, the described character font data of answering with the described character code set pair of a part is described compressed font data, the described character font data of answering with the described character code set pair of an other part is described incompressible character font data
Described decision mechanism, by determining the character code collection of the character code that comprises the character that records object, judges that the character font data corresponding with described character code is as described compressed font data, to be stored in described nonvolatile memory or to be stored in described working region as described incompressible character font data.
4. tape deck according to claim 1, is characterized in that,
Described corresponding informance storing mechanism is stored described corresponding informance in a part for the storage area of described nonvolatile memory.
5. tape deck according to claim 1, is characterized in that,
Possess and be independent of the memory that described nonvolatile memory arranges,
Described packed data processing mechanism decompresses the described compressed font data Replica reading from described nonvolatile memory in the described working region that is formed at described memory.
6. a control method for tape deck, is characterized in that,
To possessing recording mechanism and controlling by the tape deck that each character stores the nonvolatile memory of compressed font data,
Based on corresponding informance, obtain the storage address of the described compressed font data corresponding with the character code of character that records object, the character code of the character that described corresponding informance can record is set up corresponding with the storage address storing in the described nonvolatile memory of described compressed font data of the character corresponding with each character code
According to the storage address of obtaining, read described compressed font data,
In working region, the described compressed font data that read are decompressed,
Data based on after decompressing, control described recording mechanism and record character.
7. the control method of tape deck according to claim 6, is characterized in that,
In described nonvolatile memory, with non-compressed state, store the character font data of the character different from the character of described compressed font data,
On the opportunity of regulation, read and be stored in the described incompressible character font data of described nonvolatile memory and be stored in described working region,
Judge whether the character font data corresponding with the character code of the described character that records object is described compressed font data,
In the situation that be judged to be the character font data corresponding with the character code of the described character that records object, be described compressed font data, from described nonvolatile memory, by each character, read described compressed font data and decompress,
Character font data based on after decompressing and the incompressible character font data that is stored in described working region carry out record.
8. the control method of tape deck according to claim 7, is characterized in that,
In described nonvolatile memory, store the character font data of answering from different a plurality of character code set pairs, the described character font data of answering with the described character code set pair of a part is described compressed font data, the described character font data of answering with the described character code set pair of an other part is described incompressible character font data
By determining the character code collection of the character code that comprises the character that records object, judge that the character font data corresponding with described character code is as described compressed font data, to be stored in described nonvolatile memory or to be stored in described working region as described incompressible character font data.
9. the control method of tape deck according to claim 6, is characterized in that,
A part at the storage area of described nonvolatile memory is stored described corresponding informance.
10. the control method of tape deck according to claim 6, is characterized in that,
Described storage device possesses the memory that is independent of described nonvolatile memory setting,
The described compressed font data Replica reading from described nonvolatile memory is decompressed in the described working region that is formed at described memory.
CN201310274627.1A 2012-07-04 2013-07-02 Tape deck and the control method of tape deck Expired - Fee Related CN103522774B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2012150401A JP2014012354A (en) 2012-07-04 2012-07-04 Data processor, recorder, data processing method and program
JP2012-150401 2012-07-04

Publications (2)

Publication Number Publication Date
CN103522774A true CN103522774A (en) 2014-01-22
CN103522774B CN103522774B (en) 2016-10-05

Family

ID=49925281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310274627.1A Expired - Fee Related CN103522774B (en) 2012-07-04 2013-07-02 Tape deck and the control method of tape deck

Country Status (2)

Country Link
JP (1) JP2014012354A (en)
CN (1) CN103522774B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108248218A (en) * 2018-02-07 2018-07-06 广东正业科技股份有限公司 A kind of jet printing method of character spray printing machine, system and relevant apparatus
CN112976836A (en) * 2019-12-16 2021-06-18 精工爱普生株式会社 Printing apparatus and control method of printing apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85101889A (en) * 1985-04-01 1987-01-24 株式会社写研 Character, image, processing method of data
JPH07137341A (en) * 1993-11-18 1995-05-30 Canon Inc Recorder
CN1108399A (en) * 1993-04-15 1995-09-13 佳能株式会社 Output apparatus and method
CN1137649A (en) * 1995-02-09 1996-12-11 佳能株式会社 Printing system, printing apparatus, information processing apparatus and storage medium storing font download control program
CN1152385A (en) * 1994-07-08 1997-06-18 西门子公司 Video signal processing apparatus with teletext processor
CN1445991A (en) * 2002-03-15 2003-10-01 Lg电子株式会社 Method and device for displaying character on screen

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85101889A (en) * 1985-04-01 1987-01-24 株式会社写研 Character, image, processing method of data
CN1108399A (en) * 1993-04-15 1995-09-13 佳能株式会社 Output apparatus and method
JPH07137341A (en) * 1993-11-18 1995-05-30 Canon Inc Recorder
CN1152385A (en) * 1994-07-08 1997-06-18 西门子公司 Video signal processing apparatus with teletext processor
CN1137649A (en) * 1995-02-09 1996-12-11 佳能株式会社 Printing system, printing apparatus, information processing apparatus and storage medium storing font download control program
CN1445991A (en) * 2002-03-15 2003-10-01 Lg电子株式会社 Method and device for displaying character on screen

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108248218A (en) * 2018-02-07 2018-07-06 广东正业科技股份有限公司 A kind of jet printing method of character spray printing machine, system and relevant apparatus
CN108248218B (en) * 2018-02-07 2020-03-24 广东正业科技股份有限公司 Jet printing method, system and related device of character jet printing machine
CN112976836A (en) * 2019-12-16 2021-06-18 精工爱普生株式会社 Printing apparatus and control method of printing apparatus
CN112976836B (en) * 2019-12-16 2022-12-27 精工爱普生株式会社 Printing apparatus and control method of printing apparatus

Also Published As

Publication number Publication date
JP2014012354A (en) 2014-01-23
CN103522774B (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US6665081B1 (en) Print system printer driver and printer
US8553263B2 (en) Information processing apparatus, control method for information processing apparatus, and storage medium
JP4530012B2 (en) Image processing apparatus and program
CN101373421B (en) Terminal apparatus, image forming apparatus, and printing system and printing method thereof
JP4784361B2 (en) Printing system, information processing apparatus, and program
CN103522774A (en) Recording device, and control method for recording device
KR100657324B1 (en) Image forming method and system using xhtml-print data
US20140285844A1 (en) Print Control Method, Print Control Device, and Storage Medium
US8446611B2 (en) Image forming apparatus, computer readable recording medium, and method for improving the detection of input image data formats
US20110141514A1 (en) Image processing apparatus and control method therefor
CN103299266A (en) Printer
CN101599006B (en) Printing system and printer
US20150036183A1 (en) Printing control device, control method for printing control device, and storage medium
US8508783B2 (en) Printer that prints coded information under control of a processor
KR101613600B1 (en) Image forming apparatus and method for distinguish xps file
CN110908615B (en) Control method of printing device and printing device
US10649705B2 (en) Memory control apparatus and resource management method for memory control apparatus to process PDL data
US20110181908A1 (en) Image information processing device, computer-readable medium and image information processing method
US20100060932A1 (en) Image processing apparatus, information processing method, and computer program product
JP5455504B2 (en) Image processing apparatus, image processing apparatus control method, and computer program
US10705778B2 (en) Information processing apparatus, image forming apparatus, and computer-readable medium
JP2008269260A (en) Data processor, data processing method and program
JP5083119B2 (en) Printing apparatus and program
JP4586839B2 (en) Image processing apparatus, printing system, and program
KR100628564B1 (en) Image forming apparatus having function of converting printing data file format and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161005

Termination date: 20210702

CF01 Termination of patent right due to non-payment of annual fee