Data processing for arranging text and image data on a substrate
AssigneeBrother Kogyo Kabushiki Kaisha
InventorsChitoshi Ito, Hirokazu Kuwabara, Tatsuhiro Ikedo
Life of this patent
Estimating the term…
Abstract
In a data processing, a print area is divided into a text area for arranging text data and an image area for arranging image data. The image data is proportionally modified before arranging the data in the image area. Also, the text data is reformatted by, for example, deleting unnecessary line feed codes before arranging the data in the text area.
Claims46
A data processing device comprising:
- individual data identifying means for identifying that each piece of data in a block of data containing one or plural pieces of data is text data or image data, and providing an individual data identifying result;
- determining means for determining, based on the individual data identifying result, whether the block of data includes only the text data, only the image data or both the text data and the image data, and providing determination result;
- layout means for laying out the one or plural pieces of data according to a layout pattern that differs depending upon the determination result;
- area dividing means for dividing, when determination made by said determination means indicates that the one or plural pieces of data includes the text data and the image data, the layout area into a text area for laying out the text data and an image area for laying out the image data according to a predetermined ratio, wherein said layout means comprises image layout means for laying out one or more image data, each of the one or more image data having been enlarged or reduced by the same proportion, into the image area;
- and
- text layout means for laying out one or more text data in the text area.
A data processing device comprising:
- individual data identifying means for identifying that each piece of data in a block of data containing one or plural pieces of data is text data or image data, and providing an individual data identifying result;
- determining means for determining, based on the individual data identifying result, whether the block of data includes only the text data, only the image data or both the text data and the image data, and providing determination result;
- layout means for laying out the one or plural pieces of data according to a layout pattern that differs depending upon the determination result;
- and
- control means for controlling a printing section to print the one or plural pieces of data on an elongated, web-like substrate having a width according to the layout pattern, controlling a cutting section to cut the substrate along the width each time the substrate is printed a predetermined length, and further controlling the cutting section to cut, when printing of the one or plural pieces of data has finished, the substrate along a line between a printed region and a non-printed region of the substrate.
A data processing device comprising:
- line feed code/space character detecting means for detecting a line feed code and a space character which may exist in text data;
- prescribed code detecting means for detecting a prescribed code that may exist immediately before or after the line feed code detected by said line feed code/space character detecting means;
- line feed code deletion means for deleting, when detection made by said prescribed code detecting means indicates that the prescribed code is not detected, the line feed code detected by said line feed code detecting means;
- a space counter that is incremented by one each time when said line feed code/space character detecting means consecutively detects the space character and is initialized to zero when a code other than the space character code is detected by said line feed code/space character detecting means;
- count value determining means for determining, when the code other than the space character code is detected by said line feed code/space character detecting means, that a count value of said space counter is equal to or greater than two indicating that two or more than two space character codes consecutively exist in the text data;
- and
- space character code deleting means for deleting the two or more than two space character codes when determination made by said count value determining means indicates that the count value of the space counter is equal to or greater than two.
A data processing method comprising the steps of:
- a) identifying whether a piece of data in a block of data containing one or plural pieces of data is text data or image data;
- b) repeating step a) with respect to each piece of data contained in the block of data;
- c) determining whether the one or plural pieces of data as identified in step a) include only the text data, only the image data, or both the text data and the image data;
- d) laying out the one or plural pieces of data according to a layout pattern that differs depending upon the result of determination in step c);
- and
- s) dividing, when determination made in step c) indicates that the one or plural pieces of data includes the text data and the image data, the layout area into a text area for laying out the text data and an image area for laying out the image data according to a predetermined ratio,
- wherein said step d) comprises d1) laying out one or more image data, each of the one or more image data having been enlarged or reduced by the same proportion, into the image area;
- and d2) laying out one or more text data in the text area.
A data processing program implemented on a computer-readable recording medium, the data processing program comprising:
- an identification program for identifying whether a piece of data in a block of data containing one or plural pieces of data is text data or image data;
- a repeat program for repeatedly executing said identification program with respect to each piece of data contained in the block of data;
- a determination program for determining whether the one or plural pieces of data as identified through the execution of said repeat program include only the text data, only the image data, or both the text data and the image data, and providing a determination result;
- and
- a layout program for executing layout of the one or plural pieces of data according to a layout pattern that differs depending upon the determination result;
- an area dividing program for dividing, when determination made by said determination program indicates that the one or plural pieces of data includes the text data and the image data, the layout area into a text area for laying out the text data and an image area for laying out the image data according to a predetermined ratio, and said layout program comprises an image layout program for laying out one or more image data, each of the one or more image data having been enlarged or reduced by the same proportion, into the image area;
- and
- a text layout program for laying out one or more text data in the text area.
A data processing program implemented on a computer-readable recording medium, the data processing program comprising:
- an identification program for identifying whether a piece of data in a block of data containing one or plural pieces of data is text data or image data;
- a repeat program for repeatedly executing said identification program with respect to each piece of data contained in the block of data;
- a determination program for determining whether the one or plural pieces of data as identified through the execution of said repeat program include only the text data, only the image data, or both the text data and the image data, and providing a determination result;
- a layout program for executing layout of the one or plural pieces of data according to a layout pattern that differs depending upon the determination result;
- a print program for instructing to print the one or plural pieces of data on an elongated, web-like substrate having a width according to the layout pattern used in said layout program;
- a first cut program for instructing to cut the substrate along the width each time the substrate is printed a predetermined length;
- and
- a second cut program for instructing, when printing of the one or plural pieces of data has finished, to cut the substrate along a line between a printed region and a non-printed region of the substrate.
A computer-readable recording medium that stores a data processing program, the data processing program comprising instructions for:
- detecting a line feed code/space character that may exist in text data;
- detecting a prescribed code that may exist immediately before or after the line feed code detected by said line feed code/space character detecting step;
- deleting a line feed code, when said prescribed code detecting step indicates that the prescribed code is not detected, wherein the line feed code detected by said line feed code detecting step is deleted;
- incrementing a space counter by one each time said line feed code/space character detecting step consecutively detects the space character and initializing the space counter to zero when a code other than the space character code is detected by said line feed code/space character detecting step;
- when the code other than the space character code is detected by said line feed code/space character detecting step, determining whether a count value of said space counter is equal to or greater than two indicating that two or more than two space character codes consecutively exist in the text data;
- and
- deleting the two or more than two space character codes when said count value determining step determines that the count value of the space counter is equal to or greater than two.
Dependencies are inferred from the claim text.