Pattern output apparatus

Abstract: There is disclosed a pattern output apparatus capable of easily adapting to different code systems. For this purpose conversion tables for converting from different external code systems to the internal codes are provided as a detachable memory.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a pattern output apparatus, and more particularly to a pattern output apparatus capable of output (display or printing) of character patterns corresponding to input character codes. Related Background Art In such conventional apparatus, the input character codes are once converted into internal codes of the apparatus, and said internal codes are converted into character patterns, because this method allows easy handling of input codes of different code systems. Conventionally, the conversion to said internal codes has been conducted by a conversion program fixed in the apparatus. However, it is not easy to use the apparatus in a still different code system if said conversion program is fixed. On the other hand, in order to respond to various code systems, there is required a larger amount of conversion programs, leading to a complicated control of the apparatus and an increased cost. There is disclosed in US Patent No. 4,031,519 a printer which generates and prints characters in response to communicated digitally encoded data. In the arrangement disclosed the coded data received by the printer is first translated into corresponding graphic codes or addresses by a translate table employing a predetermined translation code, following which the addresses are used to locate sets of character image bits stored within a plurality of character generator modules. SUMMARY OF THE INVENTION According to the present invention a pattern output apparatus comprising: output means for outputting a character pattern corresponding to an input character code, connection means for detachably connecting, to said apparatus, memory means which stores a conversion table for converting input character codes into respective internal codes and stores the internal codes and character patterns corresponding to the respective internal codes; reading means for reading, from the memory means connected by said connection means, an internal code corresponding to a character code input from the outside of said apparatus by referring to the conversion table, and a character pattern corresponding to the internal code such that the read character pattern is output by said output means. How the invention may be carried out will now be described by way of example only and with reference to the accompanying drawings in which: BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram of a printing apparatus embodying the present invention; Fig. 2 is a view showing the memory structure of a font set 3n in the embodiment; Fig. 3 is a view showing the memory structure of a code conversion table TBL 4n of said embodiment; and Fig. 4 is a flow chart of a printing sequence of said embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Now the present invention will be clarified in detail by embodiments thereof shown in the attached drawings. Fig. 1 is a block diagram of a printing apparatus, constituting an embodiment of a pattern output apparatus of the present invention, wherein provided are a host computer 1 for sending print data (data of characters and symbols and control data) and command data to the printing apparatus of the present embodiment; a printing apparatus 2 constituting the present embodiment; an input buffer 21 for temporarily storing the data received from the host computer; a CPU 22 for controlling the printing apparatus 2; a ROM 23 storing a print control program, shown in Fig. 4, to be executed by the CPU 22; a RAM 24 to be used as a work area of the CPU 22; an output buffer 25 in which pattern data of a page are developed by the CPU 22; and an output unit 26 for forming a visible image of the pattern data of the output buffer 25 on a sheet. A ROM cartridge 3 is detachable provided on the printing apparatus 2. In said ROM there are provided plural font sets 3₁ - 3 n , each containing plural internal codes and font patterns corresponding to said internal codes. Also there are provided code conversion tables 4₁ - 4 n respectively for the font sets 1 - n. A font set selecting switch 5 is provided. Fig. 2 shows the memory structure of a font set 3n of the present embodiment. The structure is same for other font sets 3₁, 3₂,... A pointer 3n-0 is provided for indicating the code conversion table 4n (TBLn). Internal codes 3n-1 - 3n-m respectively indicate the start addresses of the corresponding character patterns. Fig. 3 shows the memory structure of a code conversion table TBL4n of the present embodiment. The structure is same for other tables 4₁, 4₂,... A column 4n-1 indicates all the external code systems 1 - ℓ related to the font set n. A column 4n-2 shows internal codes corresponding to an external code 20H (H standing for hexadecimal), and stores internal codes specific to the code systems 1 - ℓ (said codes may be mutually overlapped). A column 4n-3 similarly stores internal codes corresponding to an external code 21H, respectively specific to the code systems 1 - ℓ. There are further provided similar columns up to an external code 7FH. Fig. 4 is a flow chart showing the printing sequence of the present embodiment. At first a step S1 selects, for example, a font set 3n by the switch 5 whereby the code conversion table 4n is designated. The selection of the font set may also be conducted by a command (by font name or font property) from the host computer 1. A step S2 reads the column 4n-1 for code system. A step S3 then discriminates whether the font set 3n is usable with the current external code system, namely whether said external code system is registered for the font set 3n. If not usable, a step S4 executes an exceptional process. If usable, a step S5 discriminates whether the print data are present in the input buffer 21, and, if absent, the sequence is terminated. If the print data are present, a step S6 reads said data, and a step S7 discriminates whether said data are a character code. If it is a character code, a step S8 refers to the code conversion table 4n, thus reading an internal code corresponding, in said code system, to the character code (external code). Then a step S9 reads a character pattern corresponding to said internal code, and develops said character pattern in the output buffer 25. On the other hand, if the step S7 discriminates that said data are not a character code, a step S10 discriminates whether said data are a sheet discharge command. If it is a sheet discharge command, a step S11 executes sheet discharge. If not, a step S12 executes another process. In the above-explained embodiment, all the internal codes for the external character codes 20H - 7FH are stored on the code conversion tables, but the present invention is not limited to such form. For example it is also possible to store the basic code system in the ROM 23 and to store other code systems in the ROM 3. In this manner it is possible to reduce the memory capacity of the ROM 3. It is also possible to store the control program in the ROM 3 instead of the ROM 23 as in the above-explained embodiment.

Claims: A pattern output apparatus comprising: output means (25,26) for outputting a character pattern corresponding to an input character code, connection means for detachably connecting, to said apparatus, memory means (3) which stores a conversion table (4₁-4 n ) for converting input character codes into respective internal codes (3₁-3 n ) and stores the internal codes and character patterns corresponding to the respective internal codes; reading means (22) for reading, from the memory means connected by said connection means, an internal code corresponding to a character code input from the outside of said apparatus by referring to the conversion table, and a character pattern corresponding to the internal code such that the read character pattern is output by said output means. An apparatus according to Claim 1, wherein the memory means stores the internal codes for each code system. An apparatus according to Claim 1, wherein said reading means determines whether an internal code of a code system corresponding to the input character code is stored in the memory means by referring to the conversion table, and reads the internal code in response to such determination. An apparatus according to Claim 1, further comprising internal memory means (23) for storing basic one or ones of the internal codes and character patterns corresponding thereto.

Inventors: MURAKAMI YUTAKA, MURAKAMI, YUTAKA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1989
Main classification: G06K15
IPC codes: B41J2, G09G5, G06K15, G06F3, B41J5