Method and device for outputting multicolor document

Abstract: There is provided a multicolor document output device comprising: a designating circuit to designate an output position of a character; an output format setting circuit to set an output format of character information which is output to the designated position; a color setting circuit to set an output color of the character information which is output to the designated position; an input circuit to input document information to be output; and an output controller to control so as to output the document information on the basis of the set output format and the set output color. An area is designated by the number of lines and the number of columns of a character to be output. The output color can be easily matched with the input document data.

Description: The present invention relates to an apparatus and a method for producing a document with a pattern in a designated colour. In a conventional colour document output device, a single-colour output operation occupies almost all of the operations of the device. On the other hand, even in the case of outputting a document in a plurality of colours, the output colour must be set with respect to an area for a recording paper. Therefore, the above conventional technique has the following drawbacks. (1) An operation to match document data which is input with an area in which an output colour has been set is complicated. (2) The output colour is not set on the basis of output positions of characters in document data which is input. The output colour cannot be easily set in accordance with a special output position (line and column) and the number of characters. The present invention provides an apparatus for producing a document with a pattern in a designated colour, the apparatus comprising: input means for receiving pattern, position and colour data; and output means for outputting a document with the pattern at the appropriate position in the appropriate colour; characterised by: the input means being arranged to receive area information which designates one of a plurality of areas and colour information which designates one of a plurality colours; setting means for setting the area in which the pattern is to be output based on the area information received by the input means; selection means for selecting the colour designated by the colour information received by the input means; and the output means being arranged to output the document with the pattern in the area set by the setting means and in the colour selected by the selection means. The present invention also provides a corresponding method of producing a document. A specific embodiment of the present invention will now be described by way of example with reference to the accompanying drawings, in which: Fig. 1 is a block constructional diagram of a multicolor document output device according to an embodiment; Fig. 2 is a diagram showing a format of control information regarding formation of a page according to the embodiment; Figs. 3A and 3B are diagrams showing the page information formed, respectively; and Fig. 4 is a flowchart showing an operation processing procedure of a CPU 113. <Description of schematic construction (Fig. 1)> Fig. 1 is a block constructional diagram of a multicolor document output device according to the embodiment. In the diagram, A denotes a multicolor document output device comprising the following component elements. Reference numeral 102 denotes an input/output (I/O) interface for executing communication with a host computer (or external input apparatus) 101; 103 an I/O data analyzer for anlayzing document data which is input; and 104 a data storage to store a data portion (character code, image data, etc.) of the input document data. Reference numeral 105 denotes a bit map memory and memory cotroller for developing a bit image of one page when data is actually output and for controlling the development of the data into the memory; 106 an output control instruction analyzer for analyzing an output control instruction; 107 a page formation controller to execute a page information formation operation, among output control instructions, using character attributes, output position, page data modification, and the like; 108 a character/figure generator for generating a character/figure pattern or the like; and 109 an output color controller for selecting and outputting color information in the page information which was formed by the page formation controller 107 when the bit image developed in the bit map memory 105 is output. Reference numeral 110 denotes an output controller to control a document output device controller (engine section) 111; 112 a document output which is output from the document output device controller 111; and 113 a CPU to control the whole multicolor document output device A. <Description of schematic operation (Figs. 2 and 3)> The schematic operation of the multicolor document output device in the embodiment will now be described. The multicolor document output device in the embodiment uses what is called a mapping mode in which only the minimum control instructions are included in document data and information (page definition) to define an output format is input before the document data. That is, information regarding the output format is first received and the document data (character, image, etc.) which is subsequently sent is processed in accordance with the output format and output. Such a mapping mode is generally suitable to the case of outputting document data in the same output format every page like an account book. Fig. 2 shows an example of a data format according to output format. The data in the output format according to the embodiment is sent on a line unit basis. That is, an output format for at least a target line is determined by parameters which are sandwiched by a control instruction ID code 20 and a control instruction end code 32 shown in the diagram. The parameters will now be described in detail. A size (and a position) of an area which was counted by using an arrangement position of a character as a reference is (are) expressed by the number of lines 21 and the number of columns 22 shown in Fig. 2. For instance, assuming that the number of lines 21 is set to "5" and the number of columns 22 is set to "10", a rectangular area corresponding to five lines away from the target position in the vertical (line) direction and ten characters away from the target position in the lateral (column) direction is set. On the other hand, assuming that the number of lines is set to "1" and the number of columns is set to "5", a character train of five characters in the lateral direction is specified. In the opposite case, that is, assuming that the number of lines is set to "5" and the number of columns is set to "1", a character train of five characters in the vertical direction is specified. Namely, the target position is set to the character position at the left upper corner of the rectangular area which is designated. Therefore, when explaining the parameters shown in Fig. 2 as an example, since the number of lines 21 and the number of columns 22 are arranged just after the control instruction ID code, the target position in the area shown by the number of lines 21 and the number of columns 22 corresponds to the head position of the line. Further, in the case where the control instruction ID code 20 relates to the beginning of one page, the target position in the area designated at that time is set to the first character of the head line of one page. The setting of the parameters of each desired area is performed in the following manner. That is, the target position is used as a reference and the parameters are set with respect to an area where the target position exists in the line in accordance with the order from the position of the first line and the first column. After completion of the setting of the first line, the parameters are set with regard to an area where the target position exists in accordance with the order from the position of the second line and the first column and such a setting operation is similarly subsequently executed with respect to the other areas. The contents of the parameters in Fig. 2 will now be described. A character style (Gothic type, Ming type, etc.) in the area shown by the number of lines 21 and the number of columns 22 and a point number indicative of the size of character are stored in a using character 23. Information indicative of the color of a character in the set area (a character train is used in place of the area in the case where the number of columns is set to an arbitrary value and the number of lines is set to only one) is stored in a color designation 24. On the other hand, information indicating whether each character is enlarged or not (or enlargement factor) is stored in enlargement information 25. Information indicating by which angle a character is rotated (on a 90° unit basis) is stored in rotation information 26. Information indicating whether a character is emphasized or not (whether a character is emphasized by modifying the character to a bold character or blank character or the like and printed or not, or an emphasizing method) is stored in emphasis information 27. Information indicating whether dots of "1" and "0" constructing a character pattern are inverted or not is stored in color reversal information 28. Information indicating whether an underline is added to a character or not is stored in underline information 29. Color designation information 30 is different from the foregoing color designation information 24 and is used to designate the color of ruled line in the case where an underline exists or the like. An end code 31 indicates the end of setting of the output format for a special area (area shown by the number of lines 21 and the number of columns 22). Therefore, in the case of setting an output format for characters after the character designated by the number of columns 22 of the same line, the above numeric parameters are arranged after the end code 31. It should be noted that since the output color is set for the area which is determined by characters shown by the number of lines 21 and the number of columns 22, the output color can be set for each character, each character train of a predetermined number of characters, or each area of the size existing in a plurality of lines, in the same format, by merely designating a desired area by the number of lines 21 and the number of columns 22. In a manner similar to the above, as will be understood from the format of Fig. 2, for instance, by setting the emphasis data into the emphasis information 27, the output color for the characters in the area which is specified by the number of lines 21 and the number of columns 22 is set to the color designated by the color designation information 24. In other words, the output color can be also set every attributes and modification information of a character. On the other hand, returning to Fig. 1, if the I/O data analyzer 103 determines that the data regarding the output format has been received, the data is sequentially analyzed by the output control instruction analyzer 106 and sent to the page formation controller 107. The page formation controller 107 forms the page information to determine the output format and the information to determine the output color on the basis of the received data. Figs. 3A and 3B show examples of the page information formed in the embodiment. Fig. 3A shows a layout of characters in a page excluding the output color and also shows the output format and is constructed by information indicating which character is an enlarged character or an underlined character, information indicating whether a black and white reversing process is executed or not, information indicating by which angle a character is rotated, and the like. On the other hand, Fig. 3B shows a distribution of output colors in a page and is constructed by information indicating which area is output by which color. The page information formed is stored into a memory provided in the page formation controller 107. After the page information was formed as mentioned above, the character pattern based on the document data (stored in the data storage 104) comprising received character codes and the like is developed into the bit map memory 105 in accordance with the page information which has already been formed. After the image of one page was developed into the bit map memory, the output color controller 109 sequentially reads the dots in the main scanning direction and outputs the read dots to the output controller 110 as the dots having the relevant color in accordance with the color information of the corresponding position in the page information (Fig. 3B) of the output color in the page formation controller 107. The output controller 110 receives the above data and drives and controls the output device controller 111, thereby executing a multicolor output. In the case where the output device controller (engine section) 111 can produce only a visible image of only a single color component at a certain time point, namely, in the case of a document output device in which after a visible image of a single color component was formed, a visible image of another color component is multiplexed, it is sufficient to output only the image of a color to be produced at such a time point to the output controller 110. <Description of processing procedure (Fig. 4)> Fig. 4 is a flowchart showing an outline of the processes described above. The operation will now be described hereinbelow in accordance with the flowchart. A program regarding the flowchart has been stored in a program memory in a CPU 113. First, in step S201, when data is received through the I/O interface 102, the processing routine advances to step S202 and a check is made to see if the received data is a control instruction or document data such as a character code or the like. In the embodiment, since the mapping mode has been set, that is, since the control code regarding the output format of a page is first sent, the answer in step S202 is YES. In the next step S204, a check is made to see if the received instruction relates to data regarding the page formation or not. Since the page formation information is sent in this case, step S207 follows. In step S207, the attributes (character pitch, output magnification, etc.) for each character are set. In step S208, the output color for the character train which was designated is set. In the next step S209, the output position of each character is set. In step S210, the output color of each character is also set. In step S211, data modification (whether the color reversing process is executed or not, whether a character is emphasized or not, whether a character is underlined or not, etc.) is set. In step S212, the output color for the data modified portion is set (the output color of the data modified portion is also similar to that in Fig. 3B). Each time the page formation control information is received, the processes in steps S207 to S212 are executed, thereby forming the page information as shown in Figs. 3A and 3B. After completion of the formation of the page information, document data to be actually output is then received. A few control codes to draw image data or a line segment such as a ruled line or the like are also included in the document data in addition to the character codes. Therefore, in step S202, if it is determined that the received data is character code or the like instead of a control code, step S203 follows and the received data is stored into the data storage 104. On the other hand, if it is decided that the received data is a control code, an output control instruction analyzing process is executed in step S205, a character/figure generating process is executed in step S206, and after that, a process indicated by the control code is performed. For instance, if the control code indicates command data to draw a ruled line, the ruled line is developed into the bit map memory. The above processes are repeated until it is determined in step S213 that the document data of one page has been received. If it is decided that the document data of one page has been received, the processing routine advances to step S214 and the process to develop the character pattern corresponding to the stored character code into the bit map memory is executed in accordance with the page information formed (steps S207 to S212). In step S215, while the output device is controlled, the data developed in the bit map memory is sequentially output in accordance with the output color information constructed as page information in step S216. In the embodiment, the multicolor output is executed by a certain output control instruction in the document data. However, such instruction can be also input from the outside during the output of the document data and the multicolor output can be also executed. On the other hand, the output color of the page data can be flexibly changed by changing the previously set output color or the previously defined output color by the controller of the multicolor document output device. Although the embodiment has been described with respect to the mapping mode, the invention can be also applied to an APA (All Point Addressability) mode, that is, to the case where control instructions are actively inserted into the document data and the character set, output position, line pitch, character pitch, etc. are controlled and the data is printed. As described above, according to the embodiment, by a simple data format, the output color can be also set every output color of a special line or column or every format (including both of the attributes and modification) of output character as well as every area. As described above, according to the invention, the color to output a character is set every area which uses an existing position of the character as a reference. Therefore, there is an advantage such that the operation to match the input document data with the area in which the output color has been set and to output can be easily performed. Also, there is an advantage such that the output color(s) can be easily set for one or a plurality of number of desired characters. As described above, according to the embodiment, both of the attributes of the character such as output magnification, pattern, and the like and the output color of the character can be set every area which uses an existing position of the character as a reference. Therefore, there is an advantage such that the output color can be also easily set on a character unit basis in correspondence to the attributes of the character. As described above, according to the embodiment, both of the character modification information such as underline, rotation, emphasis character, etc. and the color of the character modification can be set every area which uses an existing position of the character as a reference. Therefore, there is an advantage such that the output color can be easily set on a character unit basis in correspondence to the character modification and, further, the color of the character modification can be also easily set on a character unit basis.

Claims: An apparatus for producing a document with a pattern in a designated colour, the apparatus comprising: input means (102) for receiving pattern, position and colour data; and output means (111) for outputting a document with the pattern at the appropriate position in the appropriate colour; characterised by: the input means being arranged to receive area information (21, 22) which designates one of a plurality of areas and colour information (24) which designates one of a plurality colours; setting means (CPU 113) for setting the area in which the pattern is to be output based on the area information received by the input means; selection means (CPU 113) for selecting the colour designated by the colour information received by the input means; and the output means being arranged to output the document with the pattern in the area set by the setting means and in the colour selected by the selection means. An apparatus according to claim 1, wherein the area information designates a rectangular area. An apparatus according to claim 1, wherein the area information designates a number of lines and a number of columns. An apparatus according to any preceding claim, wherein the pattern comprises a character. An apparatus according to any of claims 1 to 3, wherein the pattern comprises a line. A method of producing a document with a pattern in a designated colour, the method comprising the steps of: inputting pattern, position and colour data; and outputting a document with the pattern at the appropriate position in the appropriate colour; characterised by: inputting area information (21, 22) which designates one of a plurality of areas and colour information (24) which designates one of a plurality of colours; setting the area in which the pattern is to be output based on the input area information; selecting the colour designated by the input colour information; and outputting the document with the pattern in the set area and in the selected colour. A method according to claim 6, wherein the area information designates a rectangular area. A method according to claim 6, wherein the area information designates a number of lines and a number of columns. A method according to any of claims 6 to 8, wherein the pattern comprises a character. A method according to any of claims 6 to 8, wherein the pattern comprises a line.

Inventors: KOGA HIROSHI, KOGA, HIROSHI
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: G06K15
IPC codes: H04N1, B41J2, B41J29, G06K15