Fitting data into field on form

Label printing apparatus and wordprocessor

5448685

Abstract

A label printing apparatus includes a liquid crystal display unit for displaying an input character string and a message corresponding to each operation stage, a printing unit for printing a character string on each label, a storage unit for storing each data, and a CPU for performing each processing and control. Label information specifying sizes and the like of various types of labels, sheet numbers corresponding to the label information, character size information defining character sizes, and the like are stored in the storage unit. The CPU specifies label information corresponding to the sheet number and selects a maximum printable character size from a character size table as an initial value on the basis of a printing area. The character size is changed so that the horizontal length of an input character string falls within the printing area. The character size is further changed so that all the characters of the character string extending in all the lines fall within the printing area. An optimal character size is finally selected, and actual printing is performed on each label using this character size.


Claims

What is claimed is:

1. A label printing apparatus for inputting a desired character string with keys and printing the input character string in units of labels arranged on a label sheet, comprising

storage means and processing means,

said storage means storing

label information for specifying a size and a layout position of each of the labels arranged on the label sheet,

identification codes corresponding to various pieces of said label information, and

character size information defining a plurality of character sizes as character sizes subjected to printing, and

said processing means comprising

first processing means for specifying said label information corresponding to an input identification code,

second processing means for discriminating a printing area of the label from the specified label information, comparing a vertical length of the printing area with a horizontal length of the printing area to determine a smaller one of the vertical and horizontal lengths as a reference length, and selecting a maximum character size falling within a square area having one end as the reference length from the character size information,

third processing means for calculating a horizontal length of a generated character string when the horizontal length of the selected character size is defined as a reference and every time an input character count is increased/decreased, and

fourth processing means for always comparing the horizontal length of the generated character string with the horizontal length of the printing area of the label, selecting a character size smaller than a character size of the generated character string from the character size information when the horizontal length of the generated character string is larger than that of the printing area, and changing said selected character size into this small character size.

2. An apparatus according to claim 1, wherein

said third processing means calculates the horizontal length of the generated character string in units of lines when the number of characters input to each line is increased/decreased, and

said fourth processing means selects a character size smaller than a character size of the character string and changes the character sizes of all lines to this small character size when said fourth processing means always compares the horizontal length of the generated character string with the horizontal length of the printing area of the label in units of lines, and a line in which the horizontal length of the character string is larger than that of the printing area is present, and

said apparatus further comprises

fifth processing means for adding the vertical lengths of the character sizes determined by the fourth processing means to obtain an overall length of all the lines, comparing the overall length with the vertical length of the printing area of the label, selecting a character size smaller than the character string when the overall length is larger than the vertical length of the printing area, and changing the character sizes of all the lines to this selected small character size.

3. A label printing apparatus for inputting a desired character string with keys and printing the input character string in units of labels arranged on a label sheet, comprising

display means for displaying a message corresponding to an input character string and each operation stage;

printing means for performing printing on each label;

storage means; and

processing means,

said storage means storing label information for specifying a size and a layout position of each of the labels arranged on the label sheet, identification codes corresponding to various pieces of label information, and character size information defining a plurality of character sizes as character sizes subjected to printing, and

said processing means including

first processing means for specifying label information corresponding to an input identification code,

second processing means for discriminating a printing area of the label from the specified label information, comparing a vertical length of the printing area with a horizontal length of the printing area to determine a smaller one of the vertical and horizontal lengths as a reference length, and selecting a maximum character size falling within a square area having one end as the reference length from the character size information,

third processing means for calculating a horizontal length of a generated character string when the horizontal length of the selected character size is defined as a reference and every time an input character count is increased/decreased, and

fourth processing means for always comparing the horizontal length of the generated character string with the horizontal length of the printing area of the label, selecting a character size smaller than a character size of the character string from the character size information when the horizontal length of the character string is larger than that of the printing area, and changing all character sizes to this small character size.

4. An apparatus according to claim 3, wherein

said third processing means calculates the horizontal length of the generated character string in units of lines when the number of characters input to each line is increased/decreased, and

said fourth processing means selects a character size smaller than a character size of the character string and changes the character sizes of all lines to this small character size when said fourth processing means always compares the horizontal length of the generated character string with the horizontal length of the printing area of the label in units of lines, and a line in which the horizontal length of the character string is larger than that of the printing area is present, and

said apparatus further comprises

fifth processing means for adding the vertical lengths of the character sizes determined by the fourth processing means to obtain an overall length of all the lines, comparing the overall length with the vertical length of the printing area of the label, selecting a character size smaller than the character string when the overall length is larger than the vertical length of the printing area, and changing the character sizes of all the lines to this selected small character size.

5. An apparatus according to claim 4, wherein said processing means comprise character spacing assigning means for equally assigning spacings of the input characters,

said character spacing assigning means comprising

sixth processing means for determining the printing area of the label from the label information of the label sheet subjected to printing and calculating the horizontal length of the printing area,

seventh processing means for calculating an overall horizontal length of all characters on each line every time the number of input characters is increased/decreased or the size of the input character is changed,

eighth processing means for subtracting the overall horizontal length of the characters which is calculated in said seventh processing means from the horizontal length of the printing area which is calculated in said sixth processing means in units of lines upon reception of a key input representing an end of character editing, and calculating a length of a blank area formed in the printing area in units of lines, and

ninth processing means for equally assigning each blank area obtained by said eighth processing means to the characters input for each line on the basis of the blank area of each line which is obtained in said eight processing means and the number of characters input for each line.

6. An apparatus according to claim 5, wherein said ninth processing means for, when a remainder is formed in equal assignment of the blank area to character spacings, dividing the remainder into halves, and equally assigning the halves to the blank areas formed at frontmost and rearmost portions of the character string.

7. An apparatus according to claim 6, wherein said processing means comprise line spacing assigning means for equally assigning spacings of the input character string,

said line spacing assigning means comprising

tenth processing means for determining the printing area of the label from the label information of the label sheet subjected to printing and calculating the vertical length of the printing area,

eleventh processing means for extracting a character size having a maximum vertical length in units of lines, and calculating an overall vertical length of all extracted character sizes every time the number of input characters is increased/decreased or the size of the input character is changed,

twelfth processing means for subtracting the overall vertical length calculated in said eleventh processing means from the vertical length of the printing area which is calculated in said tenth processing means upon reception of a key input representing an end of character editing, and calculating a vertical length of a blank area formed in the printing area, and

thirteenth processing means for equally assigning the blank area obtained by the twelfth processing means to the lines input in the printing area on the basis of the blank area obtained in said twelfth processing means and the number of input lines.

8. An apparatus according to claim 7, wherein said thirteenth processing means for, when a remainder is formed in equal assignment of the blank area to line spacings, dividing the remainder into halves, and equally assigning the halves to the blank areas formed above an uppermost line and below a lowermost line.

9. An apparatus according to claim 7, wherein said processing means further comprises character string overflow determining means for determining whether a character string during editing falls within one line,

said character string overflow determining means comprising

fourteenth processing means for changing an automatically set character size present in said one line during editing into a minimum character size in the character size information,

fifteenth processing means for adding an overall horizontal length of the automatically set character size changed into the minimum character size and an overall horizontal length of character sizes arbitrarily set, and obtaining a character string length of a character string within said one line during editing, and

sixteenth processing means for always comparing the character string length with the horizontal length of the printing area, and when the character string length is larger than the horizontal length of the printing area, displaying a character overflow mark between a character string falling within the printing area and a character string overflowing from the printing area in the character string which is being edited and displayed on said display means.

10. An apparatus according to claim 9, wherein said processing means further comprises line overflow determining means for determining whether a character string which is being edited and is input extending in a plurality of lines falls within the printing area of the label,

said line overflow determining means comprising

seventeenth processing means for changing an automatically set character size present in each line during editing into a minimum character size in the character size information,

eighteenth processing means for extracting a character size having a maximum vertical length from a character string of lines including arbitrarily set character sizes and a currently edited line, and for obtaining an overall vertical length of all the lines by adding the vertical lengths of the extracted character sizes, and

nineteenth processing means for always comparing the overall vertical length of all the lines with the vertical length of the printing area, and when the overall vertical length is larger than the vertical length of the printing area, for displaying a message representing line overflow on said display means.

11. An apparatus according to claim 5, wherein said processing means comprise line spacing assigning means for equally assigning spacings of the input character string,

said line spacing assigning means comprising

tenth processing means for determining the printing area of the label from the label information of the label sheet subjected to printing and calculating the vertical length of the printing area,

eleventh processing means for extracting a character size having a maximum vertical length in units of lines, and calculating an overall vertical length of all extracted character sizes every time the number of input characters is increased/decreased or the size of the input character is changed,

twelfth processing means for subtracting the overall vertical length calculated in said eleventh processing means from the vertical length of the printing area which is calculated in said tenth processing means upon reception of a key input representing an end of character editing, and calculating a vertical length of a blank area formed in the printing area, and

thirteenth processing means for equally assigning the blank area obtained by the twelfth processing means to the lines input in the printing area on the basis of the blank area obtained in said twelfth processing means and the number of input lines.

12. An apparatus according to claim 11, wherein said thirteenth processing means for, when a remainder is formed in equal assignment of the blank area to line spacings, dividing the remainder into halves, and equally assigning the halves to the blank areas formed above an uppermost line and below a lowermost line.

13. An apparatus according to claim 11, wherein said processing means further comprises

character string overflow determining means for determining whether a character string during editing falls within one line,

said character string overflow determining means comprising

fourteenth processing means for changing an automatically set character size present in said one line during editing into a minimum character size in the character size information,

fifteenth processing means for adding an overall horizontal length of the automatically set character size changed into the minimum character size and an overall horizontal length of character sizes arbitrarily set, and obtaining a character string length of a character string within said one line during editing, and

sixteenth processing means for always comparing the character string length with the horizontal length of the printing area, and when the character string length is larger than the horizontal length of the printing area, displaying a character overflow mark between a character string falling within the printing area and a character string overflowing from the printing area in the character string which is being edited and displayed on said display means.

14. An apparatus according to claim 13, wherein said processing means further comprises line overflow determining means for determining whether a character string which is being edited and is input extending in a plurality of lines falls within the printing area of the label,

said line overflow determining means comprising

seventeenth processing means for changing an automatically set character size present in each line during editing into a minimum character size in the character size information,

eighteenth processing means for extracting a character size having a maximum vertical length from a character string of lines including arbitrarily set character sizes and a currently edited line, and for obtaining an overall vertical length of all the lines by adding the vertical lengths of the extracted character sizes, and

nineteenth processing means for always comparing the overall vertical length of all the lines with the vertical length of the printing area, and when the overall vertical length is larger than the vertical length of the printing area, displaying a message representing line overflow on said display means.

15. An apparatus according to claim 4, wherein said processing means further comprises character string overflow determining means for determining whether a character string during editing falls within one line,

said character string overflow determining means comprising

fourteenth processing means for changing an automatically set character size present in said one line during editing into a minimum character size in the character size information,

fifteenth processing means for adding an overall horizontal length of the automatically set character size changed into the minimum character size and an overall horizontal length of character sizes arbitrarily set, and for obtaining a character string length of a character string within said one line during editing, and

sixteenth processing means for always comparing the character string length with the horizontal length of the printing area, and when the character string length is larger than the horizontal length of the printing area, for displaying a character overflow mark between a character string falling within the printing area and a character string overflowing from the printing area in the character string which is being edited and displayed on said display means.

16. An apparatus according to claim 15, wherein said processing means further comprises line overflow determining means for determining whether a character string which is being edited and is input extending in a plurality of lines falls within the printing area of the label,

said line overflow determining means comprising

seventeenth processing means for changing an automatically set character size present in each line during editing into a minimum character size in the character size information,

eighteenth processing means for extracting a character size having a maximum vertical length from a character string of lines including arbitrarily set character sizes and a currently edited line, and for obtaining an overall vertical length of all the lines by adding the vertical lengths .of the extracted character sizes, and

nineteenth processing means for always comparing the overall vertical length of all the lines with the vertical length of the printing area, and when the overall vertical length is larger than the vertical length of the printing area, for displaying a message representing line overflow on said display means.

17. An apparatus according to claim 4, wherein said processing means further comprises character size display means for displaying a set character size in an actual size,

said character size display means comprising

twentieth processing means for reading out the vertical and horizontal lengths of a character size from the character size information of said storage means when a change in the character size is designated, and

twenty-first processing means for causing said display means to display a quadrangle corresponding to the readout vertical and horizontal lengths.

18. An apparatus according to claim 4, wherein the label information stored in said storage means comprises:

a list table in which the vertical and horizontal lengths of the various labels are registered, and

a reduction table for storing a plurality of predefined reference size data for determining reduction magnifications of the various labels and reduction magnification data for reducing the reference size data into sizes smaller than a longitudinal length of said display means, the plurality of predefined reference size data being set to correspond to the reduction magnification data, respectively, and

said processing means further comprise image display means including

twenty-second processing means for, when image display of a predetermined label is designated, reading out the vertical and horizontal length data of the predetermined label from said list table, and for selecting reduction magnification data corresponding to a longest size of the reference size data which is smaller than a longer one of the readout vertical and horizontal lengths, and

twenty-third processing means for reducing the vertical and horizontal lengths of the predetermined label and a character size of a character printed on the predetermined label on the basis of the reduction magnification selected by said twenty-second processing means, for displaying the reduced predetermined label in a form of a quadrangular frame on said display means, and for displaying each character to be printed on said predetermined label as a dot pattern having a reduced character size at a position corresponding to an interior of the frame.

19. An apparatus according to claim 18, wherein said image display means further comprises twenty-fourth processing means for reversing vertical and horizontal lengths of the quadrangular frame, for reversing vertical dot data and horizontal dot data of the dot pattern, and for displaying the reversed dot pattern on said display means when an image is displayed on said display means by said image display means and designation for rotating the image through 90.degree. is input.

20. An apparatus according to claim 4, wherein said label printing apparatus is an apparatus for performing printing on a label having two columns, and said processing means comprise

twenty-fifth processing means for causing said display means to display a selection screen having a plurality of choices including a choice for selecting whether each character string to be printed in each of the two columns of said label is an erecting or inverted character string and a choice for selecting whether character strings to be printed in the two columns are the same or different,

twenty-sixth processing means for displaying an input screen for prompting an input of one type of character string when a predetermined choice is made in accordance with designation on the selection screen and the character strings to be printed in the two columns are the same or an input screen for prompting an input of two types of character strings when the predetermined choice is made in accordance with the designation on the selection screen and the character strings to be printed in the two columns are different, and

twenty-seventh processing means for, when a predetermined character string is input in accordance with designation on the input screen, executing printing processing on the label in accordance with selection contents of the predetermined character string.

21. An apparatus according to claim 4, wherein said label printing apparatus is an apparatus for printing input character strings in a label having three columns, respectively, and

said processing means comprise

twenty-eighth processing means for causing said display means to display a selection screen for selecting a desired column from all the columns,

twenty-ninth processing means for causing said display means to display an input screen for prompting an input of a character string to be printed in a predetermined column when the predetermined column is selected on the selection screen, and

thirtieth processing means for executing printing processing of a plurality of character strings on the label when the plurality of character strings are input in accordance with designation on the input screen.

22. An apparatus according to claim 21, wherein said label printing apparatus is an apparatus for printing input character strings in a label having three columns, respectively, and

said processing means comprise

twenty-eighth processing means for causing said display means to display a selection screen for selecting a desired column from all the columns,

twenty-ninth processing means for causing said display means to display an input screen for prompting an input of a character string to be printed in a predetermined column when the predetermined column is selected on the selection screen, and

thirtieth processing means for executing printing processing of a plurality of character strings on the label when the plurality of character strings are input in accordance with designation on the input screen.

23. An apparatus according to claim 4, wherein said label printing apparatus further comprises feed means for feeding an inserted label sheet to a printing position in printing processing and position detecting means for detecting whether the label sheet fed by said feed means is set at a position serving as a reference for the printing processing, and

said processing means comprise feed control means for controlling feeding of the label sheet subjected to printing,

said feed control means comprising

thirty-first processing means for causing said display means to display a message for prompting a key input for a start of printing to a user after the user completes a printing setup operation,

thirty-second processing means for causing said feed means to start feeding the label sheet upon reception of the key input for the start of printing, and

thirty-third processing means for reversing a feed direction of the label sheet fed by said feed means when the label sheet is not detected by said position detecting means upon feeding of the label sheet by a predetermined distance by said feed means.

24. An apparatus according to claim 23, wherein said feed control means further comprises thirty-fourth processing means for causing said display means to display a message for prompting re-feed of the label sheet when the feed direction of the label sheet fed by said feed means is reversed.

25. An apparatus according to claim 4, wherein

the label information stored in said storage means includes position information representing layout positions of labels on the various label sheets, size information representing sizes of the labels, and position codes corresponding to the layout positions of the labels, and

said processing means further comprises

thirty-fifth processing means for specifying the position information of an unnecessary printing label of a plurality of labels arranged on the label sheet on the basis of an input position code when the position code is input to designate a layout position of the unnecessary printing label of the labels arranged on the label sheet, and

thirty-sixth processing means for sequentially executing printing processing of the input character strings on respective labels except for the unnecessary printing label on the basis of the position information specified by said thirty-fifth processing means and the position information and the size information of the label sheet which are stored in said storage means.

26. An apparatus according to claim 25, wherein

said storage means comprises a position storage unit for storing a predetermined one of the position codes, and

said processing means comprise

thirty-seventh processing means for causing said position storage unit to store the position code representing a printing start position of the label sheet subjected to printing,

thirty-eighth processing means for defining as the printing start position a layout position designated by the position code stored in said position storage unit, and for sequentially performing printing processing on the labels on the basis of the position information and the size information of the labels arranged on the label sheet,

thirty-ninth processing means for specifying the position code representing a printing start position in next printing processing on the basis of the layout position of a last printed label in the printing processing, and

fortieth processing means for updating the position code stored in said position storage unit and storing the position code specified by said thirty-ninth processing means as a new printing start position in said position storage unit.

27. An apparatus according to claim 26, wherein said thirty-seventh processing means automatically stores a predetermined specific position code in said position storage unit when an unused label sheet is subjected to printing processing.

28. An apparatus according to claim 26, wherein said thirty-seventh processing means stores a position code arbitrarily input by a user in said position storage unit.

29. An apparatus according to claim 4, wherein

the label information stored in said storage means includes position information representing layout positions of labels on the various label sheets, size information representing sizes of the labels, and position codes corresponding to the layout positions of the labels,

said storage means comprises a position storage unit for storing a predetermined one of the position codes, and

said processing means comprise

thirty-seventh processing means for causing said position storage unit to store the position code representing a printing start position of the label sheet subjected to printing,

thirty-eighth processing means for defining as the printing start position a layout position designated by the position code stored in said position storage unit, and for sequentially performing printing processing on the labels on the basis of the position information and the size information of the labels arranged on the label sheet,

thirty-ninth processing means for specifying the position code representing a printing start position in next printing processing on the basis of the layout position of a last printed label in the printing processing, and

fortieth processing means for updating the position code stored in said position storage unit and storing the position code specified by said thirty-ninth processing means as a new printing start position in said position storage unit.

30. An apparatus according to claim 29, wherein said thirty-seventh processing means automatically stores a predetermined specific position code in said position storage unit when an unused label sheet is subjected to printing processing.

31. An apparatus according to claim 29, wherein said thirty-seventh processing means stores a position code arbitrarily input by a user in said position storage unit.

32. An apparatus according to claim 4, wherein

said processing means further comprises registration processing means for registering, in said storage means, a combination of the character string information edited by said fifth processing means and the additional information including label attribute information and added in accordance with types of label sheets during character editing of the character string information,

said registration processing means comprising

individual registration processing means for combining an input one piece of the additional information and an input one piece of the character string information and registering a combination as individual registration information in said storage means,

batch registration processing means for combining a plurality of pieces of said character string information and an input one piece of said additional information and registering a combination as batch registration information in said storage means,

selection processing means for causing said display means to display a selection screen for causing to alternatively select registration of the character string information by one of said individual registration processing means and said batch registration processing means.

33. An apparatus according to claim 32, wherein

the additional information includes registration character data input to identify the character string information stored in correspondence with the additional information, and

said processing means comprise readout processing means for reading out the registration information registered in said storage means,

said readout processing means comprising

forty-first processing means for causing said display means to display a screen for prompting an input of the registration character data to be read out,

forty-second processing means for sequentially reading out the additional information from said storage means and selecting the additional information having the same label attribute data as that of a currently edited label sheet, and

forty-third processing means for selecting the additional information, having the same registration character data as that input by said forty-first processing means, from the additional information selected from the forty-second processing means.

34. An apparatus according to claim 33, wherein

the additional information includes the identification code of the label sheet which is set during character editing, and

said readout processing means further comprises

forty-fourth processing means for causing said display means to display a screen for prompting an input of an identification code of a desired label sheet subjected to printing,

forty-fifth processing means for comparing the identification code included in the additional information selected by said forty-third processing means with the identification code input by said forty-fourth processing means and determining whether the identification codes coincide with each other,

forty-sixth processing means for setting the character string information corresponding to the additional information selected by said forty-third processing means as character string information to be printed, when said forty-fifth processing means determines that the identification codes coincide with each other, and

forty-seventh processing means for causing said second to fourth processing means to change the character string information so as to be suitable for the desired label sheet subjected to printing when said forty-fifth processing means determines that the identification codes do not coincide with each other.

35. An apparatus according to claim 34, wherein said readout processing means comprises forty-eighth means for calculating a maximum character count and a maximum line count of a character string which can be printed within the printing area determined by said second processing means using the character having the minimum character size in the character size information, and at the same time causing said display means to display a message representing that a character string selected by said forty-third processing means cannot be loaded when the number of characters of the character string selected by said forty-third processing means is larger than the calculated maximum character count or the number of lines of the character string selected by said forty-third processing means is larger than the maximum line count.

36. An apparatus according to claim 3, wherein said processing means further comprises character string overflow determining means for determining whether a character string during editing falls within one line,

said character string overflow determining means comprising

fourteenth processing means for changing an automatically set character size present in said one line during editing into a minimum character size in the character size information,

fifteenth processing means for adding an overall horizontal length of the automatically set character size changed into the minimum character size and an overall horizontal length of character sizes arbitrarily set, and obtaining a character string length of a character string within said one line during editing, and

sixteenth processing means for always comparing the character string length with the horizontal length of the printing area, and when the character string length is larger than the horizontal length of the printing area, displaying a character overflow mark between a character string falling within the printing area and a character string overflowing from the printing area in the character string which is being edited and displayed on said display means.

37. An apparatus according to claim 36, wherein said processing means further comprises line overflow determining means for determining whether a character string which is being edited and is input extending in a plurality of lines falls within the printing area of the label,

said line overflow determining means comprising

seventeenth processing means for changing an automatically set character size present in each line during editing into a minimum character size in the character size information,

eighteenth processing means for extracting a character size having a maximum vertical length from a character string of lines including arbitrarily set character sizes and a currently edited line, and for obtaining an overall vertical length of all the lines by adding the vertical lengths of the extracted character sizes, and

nineteenth processing means for always comparing the overall vertical length of all the lines with the vertical length of the printing area, and when the overall vertical length is larger than the vertical length of the printing area, for displaying a message representing line overflow on said display means.

38. An apparatus according to claim 3, wherein said processing means further comprises character size display means for displaying a set character size in an actual size,

said character size display means comprising

twentieth processing means for reading out the vertical and horizontal lengths of a character size from the character size information of said storage means when a change in the character size is designated, and

twenty-first processing means for causing said display means to display a quadrangle corresponding to the readout vertical and horizontal lengths.

39. An apparatus according to claim 3, wherein the label information stored in said storage means comprises:

a list table in which the vertical and horizontal lengths of the various labels are registered, and

a reduction table for storing a plurality of predefined reference size data for determining reduction magnifications of the various labels and reduction magnification data for reducing the reference size data into sizes smaller than a longitudinal length of said display means, the plurality of predefined reference size data being set to correspond to the reduction magnification data, respectively, and

said processing means further comprises image display means including

twenty-second processing means for, when image display of a predetermined label is designated, reading out the vertical and horizontal length data of the predetermined label from said list table, and selecting reduction magnification data corresponding to a longest size of the reference size data which is smaller than a longer one of the readout vertical and horizontal lengths, and

twenty-third processing means for reducing the vertical and horizontal lengths of the predetermined label and a character size of a character printed on the predetermined label on the basis of the reduction magnification selected by said twenty-second processing means, for displaying the reduced predetermined label in a form of a quadrangular frame on said display means, and for displaying each character to be printed on said predetermined label as a dot pattern having a reduced character size at a position corresponding to an interior of the frame.

40. An apparatus according to claim 39, wherein said image display means further comprises twenty-fourth processing means for reversing vertical and horizontal lengths of the quadrangular frame, for reversing vertical dot data and horizontal dot data of the dot pattern, and for displaying the reversed dot pattern on said display means when an image is displayed on said display means by said image display means and designation for rotating the image through 90.degree. is input.

41. An apparatus according to claim 3, wherein said label printing apparatus is an apparatus for performing printing on a label having two columns, and said processing means comprise

twenty-fifth processing means for causing said display means to display a selection screen having a plurality of choices including a choice for selecting whether each character string to be printed in each of the two columns of said label is an erecting or inverted character string and a choice for selecting whether character strings to be printed in the two columns are the same or different,

twenty-sixth processing means for displaying an input screen for prompting an input of one type of character string when a predetermined choice is made in accordance with designation on the selection screen and the character strings to be printed in the two columns are the same or an input screen for prompting an input of two types of character strings when the predetermined choice is made in accordance with the designation on the selection screen and the character strings to be printed in the two columns are different, and

twenty-seventh processing means for, when a predetermined character string is input in accordance with designation on the input screen, executing printing processing on the label in accordance with selection contents of the predetermined character string.

42. An apparatus according to claim 3, wherein said label printing apparatus is an apparatus for printing input character strings in a label having three columns, respectively, and

said processing means comprise

twenty-eighth processing means for causing said display means to display a selection screen for selecting a desired column from all the columns,

twenty-ninth processing means for causing said display means to display an input screen for prompting an input of a character string to be printed in a predetermined column when the predetermined column is selected on the selection screen, and

thirtieth processing means for executing printing processing of a plurality of character strings on the label when the plurality of character strings are input in accordance with designation on the input screen.

43. An apparatus according to claim 42, wherein said label printing apparatus is an apparatus for printing input character strings in a label having three columns, respectively, and

said processing means comprise

twenty-eighth processing means for causing said display means to display a selection screen for selecting a desired column from all the columns,

twenty-ninth processing means for causing said display means to display an input screen for prompting an input of a character string to be printed in a predetermined column when the predetermined column is selected on the selection screen, and

thirtieth processing means for executing printing processing of a plurality of character strings on the label when the plurality of character strings are input in accordance with designation on the input screen.

44. An apparatus according to claim 3, wherein said label printing apparatus further comprises feed means for feeding an inserted label sheet to a printing position in printing processing and position detecting means for detecting whether the label sheet fed by said feed means is set at a position serving as a reference for the printing processing, and

said processing means comprise feed control means for controlling feeding of the label sheet subjected to printing,

said feed control means comprising

thirty-first processing means for causing said display means to display a message for prompting a key input for a start of printing to a user after the user completes a printing setup operation,

thirty-second processing means for causing said feed means to start feeding the label sheet upon reception of the key input for the start of printing, and

thirty-third processing means for reversing a feed direction of the label sheet fed by said feed means when the label sheet is not detected by said position detecting means upon feeding of the label sheet by a predetermined distance by said feed means.

45. An apparatus according to claim 44, wherein said feed control means further comprises thirty-fourth processing means for causing said display means to display a message for prompting re-feed of the label sheet when the feed direction of the label sheet fed by said feed means is reversed.

46. An apparatus according to claim 3, wherein

the label information stored in said storage means includes position information representing layout positions of labels on the various label sheets, size information representing sizes of the labels, and position codes corresponding to the layout positions of the labels, and

said processing means further comprises

thirty-fifth processing means for specifying the position information of an unnecessary printing label of a plurality of labels arranged on the label sheet on the basis of an input position code when the position code is input to designate a layout position of the unnecessary printing label of the labels arranged on the label sheet, and

thirty-sixth processing means for sequentially executing printing processing of the input character strings on respective labels except for the unnecessary printing label on the basis of the position information specified by said thirty-fifth processing means and the position information and the size information of the label sheet which are stored in said storage means.

47. An apparatus according to claim 46, wherein

said storage means defined in claim 35 comprises a position storage unit for storing a predetermined one of the position codes, and

said processing means comprise

thirty-seventh processing means for causing said position storage unit to store the position code representing a printing start position of the label sheet subjected to printing,

thirty-eighth processing means for defining as the printing start position a layout position designated by the position code stored in said position storage unit, and for sequentially performing printing processing on the labels on the basis of the position information and the size information of the labels arranged on the label sheet,

thirty-ninth processing means for specifying the position code representing a printing start position in next printing processing on the basis of the layout position of a last printed label in the printing processing, and

fortieth processing means for updating the position code stored in said position storage unit and storing the position code specified by said thirty-ninth processing means as a new printing start position in said position storage unit.

48. An apparatus according to claim 47, wherein said thirty-seventh processing means automatically stores a predetermined specific position code in said position storage unit when an unused label sheet is subjected to printing processing.

49. An apparatus according to claim 47, wherein said thirty-seventh processing means stores a position code arbitrarily input by a user in said position storage unit.

50. An apparatus according to claim 3, wherein

the label information stored in said storage means includes position information representing layout positions of labels on the various label sheets, size information representing sizes of the labels, and position codes corresponding to the layout positions of the labels,

said storage means comprises a position storage unit for storing a predetermined one of the position codes, and

said processing means comprises

thirty-seventh processing means for causing said position storage unit to store the position code representing a printing start position of the label sheet subjected to printing,

thirty-eighth processing means for defining as the printing start position a layout position designated by the position code stored in said position storage unit, and for sequentially performing printing processing on the labels on the basis of the position information and the size information of the labels arranged on the label sheet,

thirty-ninth processing means for specifying the position code representing a printing start position in next printing processing on the basis of the layout position of a last printed label in the printing processing, and

fortieth processing means for updating the position code stored in said position storage unit and storing the position code specified by said thirty-ninth processing means as a new printing start position in said position storage unit.

51. An apparatus according to claim 50, wherein said thirty-seventh processing means automatically stores a predetermined specific position code in said position storage unit when an unused label sheet is subjected to printing processing.

52. An apparatus according to claim 50, wherein said thirty-seventh processing means stores a position code arbitrarily input by a user in said position storage unit.

53. An apparatus according to claim 3, wherein

said processing means further comprise registration processing means for registering, in said storage means, a combination of the character string information edited by said fourth processing means and the additional information including label attribute information and added in accordance with types of label sheets during character editing of the character string information,

said registration processing means comprising

individual registration processing means for combining an input one piece of the additional information and an input one piece of the character string information and registering a combination as individual registration information in said storage means,

batch registration processing means for combining a plurality of pieces of said character string information and an input one piece of said additional information and registering a combination as batch registration information in said storage means,

selection processing means for causing said display means to display a selection screen for causing to alternatively select registration of the character string information by one of said individual registration processing means and said batch registration processing means.

54. An apparatus according to claim 53, wherein

the additional information defined in claim 49 includes registration character data input to identify the character string information stored in correspondence with the additional information, and

said processing means comprise readout processing means for reading out the registration information registered in said storage means,

said readout processing means comprising

forty-first processing means for causing said display means to display a screen for prompting an input of the registration character data to be read out,

forty-second processing means for sequentially reading out the additional information from said storage means and selecting the additional information having the same label attribute data as that of a currently edited label sheet, and

forty-third processing means for selecting the additional information, having the same registration character data as that input by said forty-first processing means, from the additional information selected from the forty-second processing means.

55. An apparatus according to claim 54, wherein

the additional information includes the identification code of the label sheet which is set during character editing, and

said readout processing means further comprises

forty-fourth processing means for causing said display means to display a screen for prompting an input of an identification code of a desired label sheet subjected to printing,

forty-fifth processing means for comparing the identification code included in the additional information selected by said forty-third processing means with the identification code input by said forty-fourth processing means and determining whether the identification codes coincide with each other,

forty-sixth processing means for setting the character string information corresponding to the additional information selected by said forty-third processing means as character string information to be printed, when said forty-fifth processing means determines that the identification codes coincide with each other, and

forty-seventh processing means for causing said second to fourth processing means to change the character string information so as to be suitable for the desired label sheet subjected to printing when said forty-fifth processing means determines that the identification codes do not coincide with each other.

56. An apparatus according to claim 55, wherein said readout processing means comprises forty-eighth means for calculating a maximum character count and a maximum line count of a character string which can be printed within the printing area determined by said second processing means using the character having the minimum character size in the character size information, and at the same time causing said display means to display a message representing that a character string selected by said forty-third processing means cannot be loaded when the number of characters of the character string selected by said forty-third processing means is larger than the calculated maximum character count or the number of lines of the character string selected by said forty-third processing means is larger than the maximum line count.


Description

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention mainly relates to a label printing apparatus for printing information on a label sheet on which a large number of labels having the standardized layout and shape, and the like are adhered.

2. Related Background Art

Identical index labels are often adhered to a large number of samples in, e.g., an exhibition. Strong demand has arisen for suitable filing using index labels corresponding to the kinds of information in diversification of information. In addition, the same information may be shared by a plurality of persons at a plurality of locations. Conventional labels of this type are handwritten to result in cumbersome operations and poor appearance.

In order to solve the above problems, there is provided a printing apparatus capable of efficiently printing the same contents at the upper and lower positions of a ruled label by properly selecting a printing direction (Japanese Utility Model Laid-Open No. 1-178,948).

There is also provided a label printing apparatus for setting an input character count and an input line count to fall within one label and calculating a label count as an integer on one label sheet (Japanese Patent Laid-Open No. 61-175722).

There is further provided a label printer for automatically calculating a character size to a full-height, full-width size or a full-height, half-width size, so that characters can be printed within a predetermined label width (Japanese Patent Laid-Open No. 63-189276).

There is further provided a label printer capable of inputting a printing format of a label as a single slip and printing information on labels having different sizes (Japanese Patent Laid-Open No. 62-158072).

In the device of Japanese Utility Model Laid-Open No. 1-178948, processing for properly printing information on one index label is described in detail, but no description is made for an operation for detecting the positions and sizes of a plurality of index labels and a control method of printing information on each label.

The prior arts described in Japanese Patent Laid-Open Nos. 61-175722, 63-189276, and 62-158072 are associated with the way of properly printing information on one label, but not with the way of printing information on a large number of labels arranged on a label sheet.

In a conventional label printing apparatus, information is printed on each individual label with a character size designated beforehand. However, since the kinds of labels are several hundreds, the character size must be selected in accordance with the size of each individual label. In addition, the character size must be changed in accordance with the character count and line count of characters to be printed. An operation for setting these conditions is so cumbersome as to perform printing in accordance with the desired layout of a user.

SUMMARY OF THE INVENTION

It is an object of the present invention to provide a label printing apparatus capable of printing a character string in a proper state on a large number of labels adhered on a label sheet.

It is another object of the present invention to provide a label printing apparatus capable of eliminating cumbersome character size setup required for properly performing printing on a desired label.

According to an aspect of the present invention, there is provided a label printing apparatus for inputting a desired character string with keys and printing the input character string in units of labels arranged on a label sheet, comprising a storage means and a processing means.

The storage means stores label information for specifying a size, a layout position, and the like of each of the labels arranged on the label sheet, identification codes corresponding to various pieces of label information, and character size information defining a plurality of character sizes as character sizes subjected to printing.

The processing means comprises:

a first processing means for specifying label information corresponding to an input identification code;

a second processing means for discriminating a printing area of the label from the specified label information, comparing a vertical length of the printing area with a horizontal length of the printing area to determine a smaller one of the vertical and horizontal lengths as a reference length, and selecting a maximum character size falling within a square area having one end as the reference length from the character size information;

a third processing means for calculating a horizontal length of a generated character string when the horizontal length of the selected character size is defined as a reference and every time an input character count is increased/decreased; and

a fourth processing means for always comparing the horizontal length of the generated character string with the horizontal length of the printing area of the label, selecting a character size smaller than a character size of the character string from the character size information when the horizontal length of the character string is larger than that of the printing area, and changing all character sizes to this small character size.

Of the first to fourth processing means, the third processing means calculates the horizontal length of the generated character string in units of lines when the number of characters input to each line is increased/decreased, and

the fourth processing means can select a character size smaller than a character size of the character string and change the character sizes of all lines to this small character size when the fourth processing means always compares the horizontal length of the generated character string with the horizontal length of the printing area of the label in units of lines, and a line in which the horizontal length of the character string is larger than that of the printing area is present.

When this processing is executed in the third and fourth processing means, a fifth processing means may be provided.

The fifth processing means adds the vertical lengths of the character sizes determined by the fourth processing means to obtain an overall length of all the lines, compares the overall length with the vertical length of the printing area of the label, selects a character size smaller than the character string when the overall length is larger than the vertical length of the printing area, and changes the character sizes of all the lines to this selected small character size.

The label sheet used in the label printing apparatus having the above arrangement basically has standard vertical and horizontal lengths of labels arranged on the label sheet and standard layout positions of labels on the sheet in accordance with the type of label sheet. Identification codes are assigned to the standards, respectively.

Note that the any labels can be used if they can be separated from the label sheet. For example, labels may be detachably adhered on the label sheet, may be cut from the label sheet, or the like.

According to another aspect of the present invention, there is provided a wordprocessor, comprising:

a keyboard having keys assigned with characters, symbols, and numbers, cursor shift keys, a conversion key, and a confirmation key;

a display means for displaying data input from the keyboard;

a storage means for storing a plurality of symbols or numbers in divided groups;

a forty-ninth processing means for displaying on the display means a symbol or number assigned to a depressed key as non-confirmed data when a key assigned with the symbol or number of the keyboard is depressed;

a fiftieth processing means for reading out all data of the same group as that of the non-confirmed data and displaying all the data as a selected data group upon depression of the conversion key; and

a fifty-first processing means for confirming desired data as input data replacing the desired data with the non-confirmed data, and displaying the non-confirmed data as the desired data on the display means after the cursor shift keys are operated to move a cursor to the desired data in the selected data group displayed on the display means and the confirmation key is depressed.

The present invention will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only, and thus are not to be considered as limiting the present invention.

Further scope of applicability of the present invention will become apparent from the detailed description given hereinafter. However, it should be understood that the detailed description and specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only, since various changes and modifications within the spirit and scope of the invention will become apparent to those skilled in the art form this detailed description.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a perspective view showing the outer appearance of a label printing apparatus according to the present invention;

FIG. 2 is a perspective view showing the internal mechanism of the label printing apparatus;

FIG. 3 is a perspective view showing the internal mechanism of the label printing apparatus;

FIG. 4 is a plan view showing the key layout of the label printing apparatus;

FIG. 5 is a view showing an arrangement of a sheet sensor;

FIG. 6 is a control block diagram of the label printing apparatus;

FIG. 7 is a plan view showing the positional relationship of labels on a label sheet;

FIG. 8 is a flow chart showing an operation sequence for a start screen;

FIG. 9 is a flow chart for explaining initial value setup of character sizes in automatic character size setup;

FIG. 10 is a flow chart for explaining automatic character size setup;

FIGS. 11A and 11B are views for explaining a method of setting initial values of character sizes in correspondence with label shapes;

FIG. 12 is a flow chart for explaining automatic setup of a character spacing and a line spacing;

FIG. 13 is a schematic plan view for explaining the relationship between lengths (e.g., a character spacing and a line spacing) of the respective portions of a label subjected to printing and the symbols representing these portions;

FIG. 14 is a flow chart showing processing when an input character or line count exceeds the size of the printing area;

FIG. 15 is a flow chart showing processing when an input line count exceeds the size of the printing area upon a line feed;

FIGS. 16A, 16B, and 16C are views for explaining messages displayed when line overflow occurs;

FIG. 17 is a view for explaining a state in which an overflow mark is displayed within a character string;

FIG. 18 is a flow chart showing character size change processing of a character string;

FIG. 19 is a view showing the contents of a character size setup table;

FIGS. 20A to 20F are views showing display contents in character size change processing;

FIGS. 21A to 21E are views showing display contents in character size change processing;

FIGS. 22A to 22E are views showing display contents in character size change processing;

FIG. 23 is a flow chart showing the flow of image display processing;

FIG. 24 is a flow chart showing the flow of image display processing;

FIG. 25 is a flow chart showing the flow of image display processing;

FIG. 26 is a flow chart showing the flow of image display processing;

FIGS. 27A to 27D are views showing the concept showing the contents of image display processing;

FIGS. 28A to 28C are views showing the concept showing the contents of image display processing;

FIGS. 29A to 29C are views showing the concept showing the contents of image display processing;

FIGS. 30A to 30C are views showing the concept showing the contents of image display processing;

FIGS. 31A to 31C are views showing the concept showing the contents of image display processing;

FIG. 32 is a flow chart showing input processing of a character string to be printed on a tack index label;

FIG. 33 is a flow chart showing input processing of the character string printed on the tack index label;

FIG. 34 is a view for explaining the display of a selection screen;

FIG. 35 is a flow chart showing input processing of a character string to be printed on a cassette label;

FIGS. 36A and 36B are views for explaining the display of a selection screen;

FIG. 37 is a flow chart showing label sheet feed control in printing processing;

FIG. 38 is a schematic perspective view of a sheet sensor and a paper feed roller portion as the main part in feed control;

FIG. 39 is a plan view showing the positional relationship of labels with a label sheet;

FIG. 40 is a flow chart showing printing start position setup;

FIG. 41 is a flow chart showing printing execution processing;

FIG. 42 is a flow chart showing initial setup when printing is continuously performed on the printed label sheet;

FIG. 43 is a view showing the general concept of character label registration processing and character label read processing;

FIG. 44 is a flow chart showing character label registration processing;

FIG. 45 is a flow chart showing registration file formation processing;

FIG. 46 is a flow chart showing character label read processing;

FIG. 47 is a flow chart showing registration file retrieval processing;

FIG. 48 is a flow chart showing processing for comparing retrieval characters with registration characters;

FIGS. 49A and 49B are views showing the outer appearances of label shapes;

FIGS. 50A and 50B are views showing the outer appearances of label shapes;

FIGS. 51A and 51B are views showing the outer appearances of label shapes;

FIG. 52 is a flow chart showing processing for inputting a character string and registering it in a storage unit;

FIG. 53 is a flow chart showing processing for reading out the character string registered in the storage unit;

FIG. 54 is a flow chart showing processing for reading out the character string registered in the storage unit;

FIG. 55 is a block diagram showing an arrangement of a wordprocessor according to an embodiment of the present invention;

FIG. 56 is a flow chart showing the processing contents of a retrieval program;

FIG. 57 is a flow chart showing the contents of symbol retrieval processing of this embodiment;

FIGS. 58A and 58B are a perspective view showing the outer appearance of the wordprocessor and a plan view of the display unit, respectively;

FIG. 59 is a view showing group formation of a conversion table; and

FIG. 60 is a view showing group formation of the conversion table.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

First Embodiment

FIGS. 1 to 4 show the outer appearance and the internal mechanism of a label printing apparatus 1. The label printing apparatus (to be referred to as an apparatus thereinafter) 1 is an apparatus for performing printing on a large number of labels 4a regularly arranged on a label sheet 4. The apparatus 1 comprises an upper half 2 and a lower half 3. An insertion port 5 for the label sheet 4 is formed between the upper and lower halves 2 and 3.

A large number of keys 6 which can be used to input characters or the like are arranged in the upper half 2 of the apparatus 1. A liquid display unit 7 consisting of a liquid crystal panel for displaying a predetermined character count, a line count, or an input character string is arranged above the keys 6. The screen of the liquid display unit 7 is scrolled in four directions when the character and line counts exceed the size of the screen. The keys include character keys such as the alphabet, function keys such as "function" (FC in FIG. 4), "cancel" (CA/LC in FIG. 4), "conversion" (CV in FIG. 4), "execution" (EX/RT in FIG. 4), and "print" (PT in FIG. 4) keys, and cursor keys as arrow keys representing four directions. Further, as shown in FIG. 4, some of the alphabet keys respectively have special functions executed by depressing together with the depression of the function key. The functions are referred by symbols shown in on the upper right side of in the top of the key. For example "RG" shows the region determination, "SZ" shows the changing size, "CS" shows the character string, etc. The contents of the keys are marked on their key tops.

The insertion port 5 and a feed path 11 extending backward from the insertion port 5 are formed in the lower half 3. A guide roller 9 for guiding the inserted label sheet 4 is disposed on the upper surface of the feed path 11. Three paper feed rollers 8 driven and rotated by a sheet feed motor 16 are disposed behind the guide roller 9 to feed the inserted label sheet 4. A printing unit 20 is arranged behind the paper feed rollers 8.

A guide side wall 18 is formed on one side, e.g., the left side of the insertion port 5 and the feed path 11. The label sheet 4 is inserted with the left side being guided along the side wall 18. The apparatus 1 serves as a mechanism for performing printing with reference to the leading end of the left side (i.e., the front left corner portion) of the label sheet 4. The left side of the label sheet 4 abuts against the side wall 18 to position the label sheet 4.

A sheet sensor 19 of a photointerrupter or the like constituted by a pair of a light-emitting element 19a and a light-receiving element 19b on the upper and lower surfaces is arranged on the side wall 18 at the downstream position of the feed path of the feed rollers 9 so as to detect whether feeding is accurately performed, as shown in FIG. 5. That is, while the fed sheet is interposed between the light-emitting element 19a and the light-receiving element 19b and light from the light-emitting element 19a is received by the light-receiving element 19b, the sheet sensor 19 recognizes that the left side of the label sheet is in contact with the side wall 18. In this case, the sheet sensor 19 determines that an appropriate feed state is set.

The lower portion of the printing unit 20 is threadably engaged with a spiral shaft 12 extending in a direction perpendicular to the insertion direction of the label sheet 4, and rotation of a carriage motor 14 is transmitted to the spiral shaft 12 through a gear train 15. The printing unit 20 reciprocates along the rotating spiral shaft 12. A rack 13 is supported in the upper portion of the printing unit 20 so as to be parallel to the spiral shaft 12. The teeth of the rack 13 are formed at the lower portion so as to oppose the printing unit 20, so that a gear in the printing unit 20 is meshed with the rack 13. A thermal head 28 consisting of a dot array capable of printing one character extends from the lower portion of the printing unit 20. A rubber platen 17 is disposed in the lower half 3 at the lower portion of the thermal head 28. The printing unit 20 also serves as a cassette holder for mounting a ribbon cassette (not shown) of an ink ribbon. The printing unit 20 includes a take-up shaft 25 for taking up the ink ribbon.

The liquid crystal display unit 7 can display selection screens of an input character string, an edited character string, an identification code, character string information read out from a storage unit 31, and other information.

The control block diagram of the label printing apparatus will be described with reference to FIG. 6.

The apparatus 1 comprises a central processing unit (to be referred to as a CPU hereinafter) 30 for controlling the overall operation of the apparatus, and the storage unit 31 constituted by a ROM, a RAM, and the like.

The CPU 30 is connected to a head dive unit 36 for driving to bring the thermal head 28 into contact with or separate it from the label sheet and outputting a character signal, a carriage motor drive unit 37 for controlling to drive the carriage motor 14, a sheet feed motor drive unit 38 for controlling to drive the sheet feed motor 16 for synchronously driving the paper feed rollers 8 and paper discharge rollers 23, and a display drive unit 39 for driving the liquid crystal display unit 7.

The CPU 30 has an internal counter for counting the number of sheets and a timer for synchronizing sheet feeding. The CPU 30 receives input information from a key input unit 6' and a detection signal from the sheet sensor 19, outputs control signals to the corresponding circuit sections, and systematically controls a character input, character editing, selection of the type of label sheet, display operations, and printing operations (to be described later).

The CPU 30 monitors the detection signal from the sheet sensor 19. The CPU 30 determines whether insertion and feeding of the label sheet 4 are accurately performed in accordance with whether a detection signal representing the front left corner of the label sheet 4 is input. At the same time, the CPU 30 indirectly measures the position of the label sheet during feeding in accordance with rotation pulses of the sheet feed motor upon generation of the detection signal or with time management.

The storage unit 31 stores a program for controlling the overall operations (e.g., editing and printing) of the apparatus, a kana/kanji conversion dictionary memory, label information representing the layout positions of labels arranged on each type of label sheet, and the vertical and horizontal sizes of the label, a sheet number in the form of an identification code for specifying the type of label sheet, and the following character size table (Table 1):

                  TABLE 1
    ______________________________________
    (vertical .times. horizontal; unit: dot)
                         Horizontally
                                     Vertically
             Square Char-
                         Elongated   Elongated
    Size Classi-
             acter (6    Character (5
                                     Character (5
    fication Types)      Types)      Types)
    ______________________________________
    SS       16 .times. 15
                         16 .times. 30
                                     32 .times. 15
    S        22 .times. 22
                         22 .times. 44
                                     44 .times. 22
    M        32 .times. 30
                         44 .times. 66
                                     66 .times. 44
    L        44 .times. 44
                         44 .times. 88
                                     88 .times. 44
    LL       66 .times. 66
                         66 .times. 88
                                     88 .times. 66
    3L       88 .times. 88
                         --          --
    ______________________________________


Table 1 shows character sizes ranging from the SS size to the 3L size. The types of printable label sheets are of several hundreds in the label printing apparatus of this type. A large number of character sizes subjected to printing are required. The horizontally elongated characters and the vertically elongated characters can be designated in addition to the square characters. In this manner, the selection jobs can be facilitated by selecting character sizes using size classification symbols.

Various shapes of label sheets for a general quadrangular label, a ruled label, a tack index label, a box label, and a cassette label are available. In addition, there are various adhesion positions on label sheets, which are respectively standardized. Referring to FIG. 6, an external input/output device such as an extension cartridge represented as an auxiliary storage unit 40 is connected to the apparatus in FIG. 6. It is possible to register new types of label sheets and non-standard formats when the types of label sheets are to be increased, or printing is to be performed on a desired non-standard label sheet.

FIG. 7 shows a relationship between a label sheet and labels. Labels R.sub.1, R.sub.2, . . . having the same size are regularly adhered on a label sheet 4 at predetermined intervals. The label positions on the label sheet 4 are designated as 1, 2, 3, . . . in the column direction, and A, B, C, . . . in the row direction. Note that the numbers or letters representing the label positions are preferably marked on the label sheet 4.

The sheet number is selected by inputting an identification code consisting of one character or two characters (including a number), thereby facilitating the selection job. A table (not shown) in which sheet numbers are stored in this embodiment represents sheet numbers as label sizes. The table stores sizes with reference to the corner position as the leading end of the left side of the label sheet 4 which is detected by the sheet sensor 19. The sizes are determined by data required to specify label positions on a label sheet from the horizontal and vertical lengths of a label sheet, the shape of a label, the vertical and horizontal lengths of a label, vertical and horizontal intervals between the labels, and the number of labels on one label sheet. If only position data of the printing start point with reference to the front end of the left side of the label sheet is used in place of the above lengths and intervals, the memory capacity can be reduced. The sizes are designated in units of millimeters (mm). In this embodiment, the sizes are coded to reduce the memory capacity. The CPU 30 calculates a printing position, i.e., the label position on the basis of the stored size data of the designated sheet number (identification code) to be described later.

The table which stores the sheet numbers includes cut sizes. The cut sizes define blank sizes of the peripheral label portions which are not subjected to printing. First, a system for actually measuring a label position and performing printing is not employed, but a simple system for controlling all positions with reference to the corner position of the label sheet is employed. Information can be property printed within each label even if a small feed error of the sheet by the paper feed rollers 8 and the like occurs. Second, the same effect as described above can be obtained when the label size is stored in a size slightly smaller than the actual size. In this case, an image character (on the screen) does not coincide with the actually printed character, resulting in inconvenience.

Various operations for inputting characters in the apparatus 1 will be described below.

The basic sequence for a start screen will be described with reference to a flow chart in FIG. 8.

When a power switch 6a is turned on (#2), the RAM in the storage unit 31 is initialized, the printing unit 20 is set to the initial position, hardware is initialized, and the built-in battery is checked (#4).

The initial screen including selection menus of "label formation" and "address book" is displayed on the liquid crystal display unit 7 (#6). The cursor keys are used to shift the cursor to the position of the desired item, and the "execution" key is depressed, thereby obtaining the next work screen. The CPU 30 determines which item is selected and designated (#8). If the selection menu of "label formation" is selected, necessary initialization is executed (#12). During this operation, a message such as "Please wait" is displayed on the screen. On the other hand, the selection menu of "address book" is selected, the current screen is switched to a work screen for registering, changing, and retrieving a name, a telephone number, and an address (#10).

When the selection menu of "label formation" is selected and the above initialization is completed, selection menus of "new formation" and "continuation" are displayed on the screen (#14). The CPU 30 determines which selection menu is selected and designated (#16). If the selection menu of "continuation" is selected, the contents of the previous work are displayed on the screen (#18). If a character string has already been formed, a sheet number or the like is displayed. If a post card has already been formed, a message indicating this is displayed. When the "execution" key is depressed (#20), the previous work screen is displayed, so that the user can input a character (#22). In this manner, since the previous work contents are stored in the RAM of the storage unit 31, the interrupted work can be easily restarted.

On the other hand, when the selection menu of "new formation" is selected ("YES" in #16), the screen is switched to a screen for designating a label sheet so as to form a new character string (#24). When a desired sheet number (identification code) is input ("YES" in #26), the CPU determines whether this sheet number is present in the table in the ROM in the storage unit 31 (#28). If the designated sheet number is present, the screen is switched to a character input screen (#30). If not, a message such as "This sheet is not registered" is displayed for three seconds, and the previous designation screen (#24) is restored.

On the other hand, when the user does not know a registered sheet number, he depresses the "execution" key without entering any input ("NO" in both #26 and #32 and "YES" in #34), and the screen is switched to a file load screen (#36). At this time, when a character string to be loaded is selected, this character string information is displayed on the screen together with its sheet number.

When the selection menu of "post card" is selected on the screen in #24 ("YES" in #32), the screen is switched to a screen of "direction designation of sentence". When the user designates the direction of a sentence and depresses the "execution" key, the screen is switched to a normal character input screen (#38). Since a character input method after #22, #30, #36, and #38 is almost the same as that of a conventional wordprocessor, a detailed description thereof will be omitted.

After the initial conditions are set as described above, a desired character string is formed on the character input screen. In this apparatus 1, the character size is automatically set in accordance with the numbers of characters and lines of an input character string. Automatic setup of this character size is to automatically set the size of characters which can be properly printed within the label in accordance with the character string input on the character input screen. The character size is selected from those in Table 1.

The automatic setup processing of the character size will be described with reference to flow charts in FIGS. 9 and 10.

The initial value of the character size is set. In the initial setup described above, a label to be used is specified (#102), and a printing area in the label is determined on the basis of this label information. The vertical length of the printing area is compared with the horizontal length of the printing area (#104). By this comparison, the shorter length is selected. If the horizontal length is smaller than the vertical length, as shown in FIG. 11A, a square area S having the horizontal length l as one side is assumed (#106). However, when the vertical size is shorter than the horizontal size, as shown in FIG. 11B, a square area S having the vertical length l as one side is assumed (#108). The character size corresponding to the character size of a maximum square character falling within the square area S is selected from Table 1. The selected character size is set as the initial value (#110).

After the initial value of the character size is determined, the CPU 30 waits for a character (including a symbol and the like) input. Every time the number of input characters is increased or decreased by one, the horizontal length of the formed character string is calculated. When the character string extends in a plurality of lines, the horizontal length of each line is calculated (#202). The horizontal length of the character string is compared with the horizontal length of the set printing area in units of lines to determine whether the formed character string can be printed within the horizontal length of the set label (#204). If the horizontal length of the character string is larger than the horizontal length of the printing area, a character size smaller than the set character size by one size is selected from Table 1. The character sizes of all the lines are changed to this new character size (#206). Thereafter, the operations in #202 and #204 are repeated. In this manner, an appropriate character size is determined with reference to the horizontal length of each line of the character string and the horizontal length of the printing area.

All the vertical lengths of the lines are added on the basis of the determined character size to obtain an overall vertical length (#208). The overall vertical length is compared with the vertical length of the printing area. The CPU 30 determines whether the formed character string can be printed within the overall vertical length of the set label (#210). If the overall vertical length of the formed character string is larger than the vertical length of the label, a character size smaller than the determined character size by one size is selected from Table 1, and the character sizes of all the lines are changed to this new character size (#212). Thereafter, operations in #208 and #210 are repeated. In this manner, the maximum character size capable of printing the character string within the printing area is finally set. Note that each calculation expression is stored in the ROM of the storage unit 31 in advance, but the calculation result is utilized using a stored conversion table.

The same character size is set for all the lines within the formed character string. Inconvenience caused when different character sizes are set for all lines having different numbers of characters can be solved. When the character size is to be switched from the S size to the SS size smaller than the S size in Table 1, the character size is changed to the SS size of the horizontally elongated character without being unconditionally changed.

This automatic character size setup is always performed when the input character or line state is changed such that the character size already input is changed, that the character appearance attribute already input is changed, or that a line feed or deletion of a line feed is performed.

Each character size can be manually set to a specific size in advance or as needed. In this case, in #202, the horizontal length of the manually set character is added to the horizontal length of each automatically set character to calculate the length of the character string in units of lines. In #208, characters each having the maximum vertical size are extracted from all the lines and are added to each other.

Second Embodiment

As described above, although the character size is automatically set, a spacing between characters to be printed, i.e., a character spacing can be automatically set constant in an apparatus 1 of this embodiment (character spacing assigning means).

Automatic character spacing setup will be described with reference to a flow chart in FIG. 12. Symbols used in this flow chart are defined below with reference to FIG. 13. FIG. 13 shows one label 4a on which characters having different sizes are printed in hatched portions.

l.sub.n : a spacing between the end portion of the printing area and the most leading or trailing portion on the nth line

k.sub.n : a character spacing on the nth line

q: a spacing between the end portion of the printing area and a character having a maximum vertical length on the uppermost or lowermost line

p: a line spacing (i.e., a spacing with reference to a character having a maximum vertical length)

Referring to FIG. 12, when automatic character spacing setup is to be performed ("YES" in #302), the horizontal lengths of the input characters are added to each other to obtain an overall horizontal length of each line (#304). At this time, when the automatically set character is mixed with the manually set character, the horizontal lengths of both the automatically and manually set characters are added to obtain a sum. The operation in #304 is the same as that in #202 for automatic character size setup. For this reason, every time the number of input characters is increased or decreased by one or the character size is changed, the operation in #304 is performed.

On the other hand, the horizontal length of the printing area is already obtained in the flow (FIG. 9). The sum of the length of the characters, which is calculated in #304, is subtracted from the horizontal length of the printing area (#306). Therefore, a horizontal length A of the blank area formed in the printing area is obtained.

The value of the length A is equally assigned between the characters. In this case, the value of the length A is divided by a value obtained by adding 1 to the character count, so that the blank areas each having the same length as the character spacing are formed at the leading and trailing portions of the character string. As a result, a quotient B and a remainder C are obtained (#308), and the quotient B is obtained as a character spacing k.sub.n of the target (#310). If the remainder C is obtained, it is divided into halves which are assigned as character spacings (l.sub.n) formed at the leading and trailing portions of the character string (#312). If any other line subjected to character spacing setup is present (i.e., "NO" in #314), control is shifted to the line subjected to character spacing setup, and the operations in #304 to #312 are repeated.

As described above, the character spacings of all the lines in the horizontal direction are equally set ("YES" in #314). In the apparatus 1, if a character string extending in a plurality of lines is present within the printing area ("YES" in #316), the line spacings can also be equally assigned (line spacing assigning means).

A character size having a maximum vertical length is extracted in units of lines. The extracted vertical lengths of the character sizes are added to each other to obtain a sum of the vertical lengths of all the lines (#318). The operation in #318 is the same as that in #208 for automatic character size setup. For this reason, when the maximum character size of each line is changed, i.e., when a line feed or deletion of a line feed is performed or an input character or line state is changed, the operation in #318 is always performed.

The sum of the vertical lengths of all the lines, which is calculated in #318, is subtracted from the vertical length of the printing area. Therefore, a vertical length D of a blank area formed within the printing area is obtained (#320).

The value of the length D is equally assigned between the lines. In this case, the value of the length D is divided by a value obtained by adding 1 to the line count to obtain a blank area having the same width as that of the line spacing above the uppermost line or below the lowermost line. As a result, a quotient E and a remainder F are obtained (#322). The quotient is determined as a line spacing p (#324). If the remainder F is present, it is divided into halves which are assigned to line spacings q formed above the uppermost line and below the lowermost line (#326).

The apparatus 1 can automatically set the character and line spacings as described above. However, specific character and line spacings can be manually set by the user. In manual setup, either the character spacing or line spacing is manually set, and the remaining spacing may be automatically set. In the flow chart in FIG. 12, the operation in #328 is performed to manually set the character spacing. The operation in #330 is performed to manually set the line spacing. In this case, the blank calculation described above is not performed.

Processing for equally assigning the character spacing in #306 to #314 and processing for equally assigning the line spacing in #318 to #326 are performed every time a key input representing an end of character editing for one label is detected, i.e., every time the "print" key is depressed, every time a key for displaying an image of the layout of input characters is depressed during editing, or every time an operation for registering the formed character string is performed.

An apparatus 1 shown in this embodiment can perform printing even on a non-standardized label sheet if this sheet can be physically inserted from an insertion port 5. If label information is accurately registered, the character size can be automatically set on a free-size label sheet (printing sheet), the label information (e.g., a label sheet size) of which is set and registered by the user himself, in accordance with the flow chart.

In this embodiment, automatic character spacing setup in units of lines has been exemplified. However, as another processing method, a minimum character spacing set within the printing area can be set as the character spacing of all the lines, and only the spacing l.sub.n with the end of the printing area may be determined every line. In this case, the character spacing k.sub.n on each line is predetermined, so that the print becomes symmetrical about the central vertical line.

Note that when automatic character spacing setup is canceled and printing is performed, printing is performed at a predetermined character spacing which is arbitrarily set. In this case, the printed characters are aligned at the left margin. Similarly, when automatic line spacing setup is canceled, printing is performed at a predetermined line spacing which is arbitrarily set, and the printed characters are aligned at the upper margin.

The processing for equally assigning the character spacing and the processing for equally assigning the line spacing are executed every time a key input representing an end of character editing for one label is detected. However, the above processing is performed every time the number of input characters or lines is increased or decreased or the character size is changed as in automatic character size setup.

Third Embodiment

An apparatus 1 always calculates a printable line count on the basis of a label size and a character size. When the user inputs characters or edits a character string on lines exceeding the printable line count, a message indicating this is displayed, thereby inhibiting operations such as a character input or a line feed (line overflow determining means). In addition, in the apparatus 1, overflow characters which cannot fall within one line during current editing (input) are added to the same line after an overflow mark, so that the user can know that the characters do not fall within one line (character string overflow determining means). Therefore, the overflow characters within one line will not be automatically fed to the next line against the will of the user.

Processing performed when the number of input characters or lines exceeds the printable character count per line or the printable line count will be described with reference to a flow chart in FIG. 14.

A CPU 30 determines whether input characters can be printed within the vertical length of the printing area of a label currently designated.

Upon reception of a character input from the user, the automatically set character sizes on the line during the current input operation (editing) and the already edited line are changed to the minimum character size in Table 1 (#402). The maximum vertical character sizes of the lines except for the current line are extracted and added to obtain an overall vertical length of all the lines (#404) because characters having arbitrary character sizes may be present in the lines. The overall length obtained in #404 is added to the vertical length of the currently input character size (#406). If the currently input character is an automatically set character, it is the minimum character size. However, if the currently input character is an arbitrarily set character, the vertical length of the arbitrarily set character is added to the overall length obtained in #404. The resultant overall vertical length is compared with the vertical length of the set printing area to determine whether the input characters can be printed within the printing area (#408). If the overall vertical length is larger than the vertical length of the printing area ("NO" in #408), the CPU 30 determines that printing within the printing area is impossible, and a message representing the line overflow is displayed on a liquid crystal display unit 7 for 3 seconds (#410). The screen returns to the editing display screen (#412).

A line overflow message shown in FIG. 16A is displayed when the number of characters is larger than that of the printing area due to the large character size. A line overflow message shown in FIG. 16B is displayed when the size of the confirmed character is changed or the characters overflow the line because of the presence of a frame or underline. When a space capable of printing characters in the printing area is determined ("YES" in #408), a non-confirmed character string before conversion and confirmation is stored as character information in a storage unit 31 (#414).

Various editing operations are performed such that input characters are converted into characters having a predetermined font such as Courier, Roman, etc., and an input character is converted into a character having a predetermined size, thereby sequentially confirming the input characters. Besides, in the apparatus need in Japan, the conversion also may includes a conversion from hirakana to kanji. In this case, every time the input character is confirmed, the operations in #402 to #408 are repeated.

In this editing operation, every time the character is confirmed, it is also determined whether the confirmed character string falls within one line during editing. If the character size is of an automatically set character, since the minimum character size is set in #402, the character size is the overall horizontal length of characters each having the minimum character size. However, when a character having an arbitrarily set character size is included, the horizontal length of this character is added. This value is accumulated every time an input character is confirmed (#416). Thereafter, the accumulated character length is compared with the horizontal length of the printing area (#418). If the accumulated character string length is larger than the horizontal length of the printing area, overflow characters which cannot fall within one line are included in the character string during editing. These overflow characters are sent to an overflow memory area in the storage unit 31 one by one from the right end of the character string within the editing line, so that the overflow characters seem to be erased from the input character string (#420). This processing is repeated until "YES" is obtained in #418. If "YES" in #418, only an input enable character string is present in the input character string, and an overflow portion of the character string is separately stored in the overflow memory area.

If such an overflow character is not present, "NO" is determined in #422, and the character string during editing is displayed on the editing screen (#412).

On the other hand, when an overflow character is present, "YES" is determined in #422, the character string portion stored in the overflow memory area and the character string falling within the one line are displayed on the liquid crystal display unit 7 (#424). As shown in FIG. 17, after the character string falling within the printing area, e.g., "new-business", an overflow mark 50 is displayed in a repeated flickering state of inverse display. A non-confirmed overflow character string such as "promotion-department" as a word is displayed to the right of the overflow mark 50. That is, the confirmed printable characters are located to the left of the overflow mark 50, and the non-confirmed overflow character string to the right of the overflow mark 50 is displayed.

In this manner, the character string which is located on the right side of the overflow mark 50 and does not fall within the printing area is informed to the user. This overflow mark 50 is displayed when the input character size or character appearance attribute is changed or the horizontal length of the input character string exceeds the printing area. When this overflow mark 50 is displayed, the user changes the size of the confirmed characters or a line feed is performed to feed the character string located on the right side of the overflow mark 50 to the next line. Therefore, a desired character string which falls within the printing area is formed.

Processing performed when the character or line count exceeds the printable horizontal or vertical length has been described above. However, a flow chart for performing a line feed from the lowest line to form a new line is shown in FIG. 15.

In this case, the automatically set character size is changed to the minimum character size in Table 1 (#502), and maximum character sizes of all the lines in the vertical direction are extracted, and the extracted vertical lengths are added (#504). The vertical length of the minimum character size is added to the vertical length obtained in #504 to obtain an overall vertical length of all the lines (#506). The overall vertical length of all the lines is compared with the vertical length of the printing area (#508). If the overall vertical length is larger than the vertical length of the printing area ("NO" in #508), after a line feed disable message shown in FIG. 16C is displayed on the liquid crystal display unit 7 for 2 seconds (#510), the editing screen is displayed (#512). On this editing screen, when a character is input or deleted or the character size is changed, the character size is automatically set in accordance with the flow charts of FIGS. 9 and 10 (#514). However, when the overall vertical length is smaller than the vertical length of the printing area ("YES" in #508), the CPU 30 determines a line feed, so that the cursor is shifted to the new line (#516). Thereafter, a character size is automatically set under the condition that the new line is formed (#514).

Fourth Embodiment

An apparatus 1 can arbitrarily change the character size of a temporarily input character and displays the character size in an actual size (character size display means).

Processing for changing the character size of a character string will be described with reference to a flow chart in FIG. 18. When a predetermined key 6 is depressed by the user as designation for displaying a size setup screen (#600), the character size currently designated is read out from a storage unit 31 (#601). A character size setup table shown in FIG. 19 is stored in the storage unit 31. Character size information is held in this table. The character sizes are classified in accordance with six character sizes ranging from SS to 3L and three character shapes, i.e. , a square (square character), a flattened character (horizontally elongated character), and a condensed character (vertically elongated character).

The character size information is represented by a printing dot count at a printing unit 20 and a display dot count on a liquid crystal display unit 7. Information read out in #601 is represented by the display dot count. The dot pitch at the printing unit 20 is about 0.141 mm, and a dot pitch on the liquid display unit 7 is about 0.5 mm. Therefore, the table has the following relationship between the printing dot count and the display dot count:

(Printing Dot Count).times.0.141 mm.apprxeq.(Display Dot Count).times.0.5 mm

wherein the printing and display dot counts are predetermined integers, respectively.

A quadrangle having the readout vertical and horizontal lengths as two adjacent sides is displayed at the central right portion of the liquid crystal display unit 7 (#602). The selection screen for selecting the shape of a target character string from the square character, the flattened character, and the condensed character is displayed at the upper left portion of the liquid crystal display unit 7, and a selection screen for selecting a character size ranging from SS to 3L is displayed at the lower left portion of the liquid crystal display unit 7. The quadrangle displayed in #602 indicates the character size of a character string to be printed on a label. However, the display position may be slightly shifted from the printing position due to the difference between the dot pitches of the printing unit 20 and the liquid crystal display unit 7.

When the user designates a change in character shape of the character string upon operations of the keys 6 while observing the display contents on the liquid crystal display unit 7 (#603 and #604), the size of a new character shape is read out from the table in the storage unit 31 (#605). When the user designates to change the character size to any one of the sizes ranging from SS to 3L (#603 and #606), a new character size is read out from the table in the storage unit 31 (#607). A quadrangle formed by the readout vertical and horizontal lengths is displayed at the central right portion of the liquid crystal display unit 7 (#608). Until the character size change processing is completed, the operations in #603 to #608 are repeated (#609).

The display contents of the liquid crystal display unit 7 in the above change processing are shown in FIGS. 20A to 22E. FIGS. 20A to 20F show a change in character size when a character string to be printed is a square shape. FIG. 20A shows a case in which a character having a size of "3L" is designated. In this case, "3L" is displayed at the central right portion of the liquid crystal display unit 7, and a quadrangle representing the square frame of the character size is displayed. This quadrangle indicates the actual size when a character is printed on a label. FIG. 20B shows a case in which a character having a size of "LL" is designated. FIGS. 20C to 20F show cases in which characters having sizes of "L" to "SS" are designated, respectively.

Similarly, FIGS. 21A to 21E show a case in which the character size is changed when the character shape of a character string to be printed is of a flattened character, and FIGS. 22A to 22E show a case in which the character size is changed when the character shape of a character string to be printed is of a condensed character.

As described above, in the change in character size, the actual size is displayed, thereby facilitating smooth character editing and label formation by the user.

The quadrangle displayed on the liquid crystal display unit 7 is displayed in the form of a frame of a character to be actually printed. The user can easily grasp the actual character size by this display.

Fifth Embodiment

In a conventional label printing apparatus, an input character string is displayed on the display, so that user can confirm whether the input is correctly performed. However, the user cannot know how the input character string is printed on the label until it is actually printed. For this reason, a character string must be printed on labels several times to check whether a desired label is formed.

In a label printing apparatus according to the present invention, the image of each character to be printed on a label is displayed (image display means).

This image display processing will be described with reference to flow charts in FIGS. 23 to 26 and conceptual views of FIGS. 27A to 31C. In this processing, the user inputs a sheet number of a label sheet on which printing is to be performed (#701). In a character string input enable state or a state wherein an image is already displayed, when the user depresses keys (shift key+H key) for image display (#702), a CPU 30 determines whether the character is already input (#703). If "NO" in #703, an image cannot be displayed, and the key input operation for image display is invalidated, and the flow returns to #702. When a character is already input, the vertical and horizontal lengths of the label corresponding to the sheet number input in #701 are read out from a list table 31a of a storage unit 31 (#706; FIG. 28B). The list table 31a store the vertical and horizontal lengths of a plurality of labels in mm. Of the readout lengths, a reduction magnification corresponding to the long side is extracted from a reduction table 31b in the storage unit 31 (#707; FIGS. 28B and 28C). The reduction table 31b is a table of correspondence between a plurality of reference size data (1 mm, 64 mm, 95 mm, . . . ) and reduction magnifications (4 times, 6 times, 8 times, . . . ), and the reduction magnification corresponding to the largest reference length smaller than the long side is selected from the reference sizes. The label represented by the reduction table 31b is changed to a size displayable within the screen of a liquid crystal display unit 7. The vertical and horizontal lengths read out in #706 are reduced in accordance with the reduction magnification to obtain reduction data (#708). In this reduction processing, the unit of the vertical and horizontal lengths is changed from millimeters (mm) to a dot count (FIG. 27A). The converted values are divided by the reduction magnification, thereby obtaining the actual display size (FIG. 27B). Data obtained by extracting one dot at each corner is given as outer frame data on the basis of a quadrangular frame obtained by the reduction data (FIG. 27C). If the label is an index label (#709), a printing disable area is set at the center of the outer frame data (#710; FIG. 27D). The outer frame data thus formed is set in the work area in the storage unit 31 (#711).

Characters are extracted one by one from the input character string to obtain a basic font size (#712; FIG. 29A). The basic sizes of the character fonts are exemplified by 16 dots and 24 dots. When characters are designated to be printed downward (#713), the vertical and horizontal lengths of characters to be extracted are reversed (#714, FIG. 29B). The magnification of the vertical and horizontal lengths for the basic font is determined in accordance with the types of extracted characters (#715). The basic font size is increased using this magnification (#716; FIG. 29C). When italic characters are designated to be printed downward (#717 and #718), the size in the vertical direction is increased (#719; FIG. 30A). This increase is performed by adding {(Horizontal Length)/3-1} to the vertical length. If italic characters are designated but these characters are not designated to be printed downward (#717 and #718), the horizontal length is increased (#720). This increase is also performed by adding {(Vertical Length)/3-1} to the horizontal length. The inclination of each italic character in the above increases is one horizontal dot for three vertical dots (or three horizontal dots for one vertical dot). The range of increase varies depending on the character size of the extracted character because the characters in all character sizes are set to be inclined at the same angle.

When the printing position of the extracted character is designated to be an upper end (#721), the upper end of the extracted character is aligned with the position of the upper end of a character having the largest size within the same line, and actual dot counts between the upper end of the label and this extracted character and between the left end of the label and the extracted character are obtained (#722; FIG. 30B). When the printing position of this extracted character is designated as the lower end (#723), the lower end of the extracted character is aligned with the position of the lower end of a character having the largest size within the same line, and actual dot counts between the upper end of the label and the extracted character and between the left end of the label and the extracted character are obtained (#724; FIG. 30B). When the printing position of the extracted character is designated as an intermediate position, the center of the extracted character is aligned with the position of the center of a character having the largest size within the same line, and actual dot counts between the upper end of the label and the extracted character and between the left end of the label and the extracted character are obtained (#725; FIG. 30B).

The actual dot counts obtained as described above are divided by the reduction magnification extracted in #707 to obtain reduction distance data representing the relative positions on the outer frame data formed in #708 (#726; FIG. 30C). Similarly, the character size of the extracted character is divided by the reduction magnification to obtain a reduction character size having the same magnification as that of the outer frame data (#727; FIG. 31A). If the character code of this extracted character does not represent a space (#728), a dot pattern representing this extracted character is written in the outer frame data set in the work area of the storage unit 31 (#729; FIG. 31B). More specifically, a quadrangle designated by the reduction character size is set at the relative positions on the outer frame data represented by the reduction distance data. In addition, the interior of the quadrangle is filled with dots, thereby forming a dot pattern. Processing in #712 to #729 is performed for all input characters (#730).

When the vertical length of the label is smaller than the vertical length of the liquid crystal display unit 7 (#731), the outer frame data set in the work area in the storage unit 31 and image data consisting of dot data representing each character are read out and displayed at the central portion of the liquid crystal display unit 7 (#732; FIG. 31C). When the vertical length of the label is larger than the vertical length of the liquid crystal display unit 7 (#731), the readout image data is displayed from the upper end of the liquid crystal display unit 7 (#733). In this case, since all the image data cannot be displayed on the liquid crystal display unit 7, the display position can be changed by scrolling.

When the operations in #732 and #733 are completed, an image (erecting image), the direction of which coincides with the label insertion direction, is displayed on the liquid crystal display unit 7.

The CPU 30 determines whether designation for rotating the display direction of this erecting image is input (#734).

Rotation is designated by the keys (shift key+H key) in an apparatus 1. While the image is displayed, its rotation can be designated by these keys. A rotation designation key is not arranged to prevent an increase in the number of keys.

If rotation designation is present in #734 (YES), the CPU 30 then determines whether the image is displayed as an erecting image (#735).

If the CPU 30 determines in #735 that the image is displayed as an erecting image, the erecting image is rotated counterclockwise through 90.degree. (#736).

By this rotation, for example, in a state wherein the vertical length of the label is larger than the length of the liquid crystal display unit 7, and the erecting image is displayed, when some image data cannot be displayed without changing the display position by scrolling, all the image data along the longitudinal direction of the liquid crystal display unit 7 can be displayed.

When the erecting image is displayed in #735, an arrow indicating the insertion direction of the displayed label is displayed (#737).

On the other hand, when the displayed image is not an erecting image in #735, the displayed image is rotated clockwise through 90.degree. (#738).

The image rotated clockwise is an erecting image.

When the operation in #732 or #733 is completed, the erecting image is always displayed. By the first rotation designation ("YES" in #734), the erecting image is rotated counterclockwise through 90.degree.. By the second designation, the image rotated through 90.degree. counterclockwise is replaced with the erecting image.

When rotation designation is not input in #734 ("NO"), the CPU 30 waits for depression of an image display end key (cancel key) (#739). If the end key is depressed, the image display is completed, and the screen returns to the normal editing screen (#740).

In the label printing apparatus of this embodiment, an image of a label having any size can always be displayed as a reduced image falling within the longitudinal size of the liquid crystal display unit. For this reason, printed images of all labels can be visually grasped without actually printing information on the labels.

Sixth Embodiment

A conventional label printing apparatus can print information on a label having a plurality of input columns, such as a tack index label or cassette label. In this case, the cursor must be manually shifted to each input column on the label after the user recognizes the positions and sizes of the input columns, resulting in cumbersome operations.

To the contrary, a label printing apparatus of this embodiment can easily execute input processing on a label having a plurality of input columns, such as a tack index label or cassette label.

Input processing for character strings to be printed on a tack index label and a cassette label will be described with reference to FIG. 32 to 36B.

FIGS. 32 and 33 are flow charts showing input processing for a character string to be printed on a tack index label.

The sheet number assigned to the index sheet is input to specify all pieces of information such as the vertical and horizontal lengths and layout positions of the tack index labels (#800). A printing pattern selection screen as an input screen for the tack index label is displayed (#801). This selection screen consists of six types of label patterns 51 to 56 shown in FIG. 34. The label patterns 51 to 53 are patterns each for printing identical character strings in two printing areas (columns), while the label patterns 54 to 56 are patterns each for printing different character strings in two printing areas. When the user shifts the cursor to designate a desired label pattern (#802), the screen for designating the editing screen is displayed (#803). The editing screen includes an A-side editing screen and a B-side editing screen. The A side indicates the upper printing area of the tack index label, and the B side indicates the lower printing area of the tack index label. On this designation screen, when the user designates the A-side editing screen (#805), the A-side editing screen is displayed (#806). On the other hand, when the user designates the B-side editing screen (#805), the B-side editing screen is displayed (#807). However, when the label patterns 51 to 53 are designated on the printing pattern selection screen, the B-side editing screen cannot be designated because a character string input on the A-side editing screen is copied to the B side.

On these editing screens, editing operations for character strings to be printed on a label are performed. In the editing operations, even if a character string is to be printed upside down, the screen is displayed in an erected state. To restore the editing screen selection processing from the editing operation, the cursor is shifted upward. Upon shift of the cursor, the display is switched from the editing screen to the designation screen (#809 and #803). Thereafter, processing from #804 is continuously performed. When the cursor is further moved upward, the designation screen is switched to the printing pattern selection screen (#810 and #801). Thereafter, processing from #802 is continuously performed.

When the editing operation is ended in #806 or #807 (#808), it is checked in #802 whether the patterns 51 to 53 are designated (#811). If YES in #811, the character string input in the editing operation is copied to the B-side work area (#812). It is also checked in #813 whether the label patterns 52 and 55 are designated in #812. In this designation, since an inverted character string is printed in the A-side printing area, information for inverting the A-side input character string is set (#814). In addition, it is checked in #815 whether the label patterns 53 and 56 are designated in #802. In this designation, since an inverted character string is printed in the B-side printing area, information for inverting the B-side input character string is set (#816). Upon completion of the above processing operations, the edited character strings and various types of information are stored in a predetermined area of a storage unit 31 (#817). Since the input character strings and the selection contents are stored in the storage unit 31, even if the apparatus is powered off and then powered on, the input character strings are displayed on the liquid crystal display unit 7 in the input form. When processing in #817 is completed, the flow returns to #801, and processing continues.

FIG. 35 is a flow chart showing processing for inputting a character string to be printed on a cassette label.

When a sheet number assigned to a cassette sheet is input, all pieces of information such as the vertical and horizontal lengths and layout position of the cassette labels are designated (#820). A selection screen as a cassette label input screen is displayed (#821). This selection screen has three choices 61 to 63 (album title formation, A-side formation, and B-side formation), as shown in FIG. 35A. The choice 61 of these choices is a choice for inputting a character string to be printed in an album title column 71 of a cassette label 70 shown in FIG. 36B. Similarly, the choices 62 and 63 are choices for inputting character strings to be printed in A-side song title columns 72 and B-side song title columns 73, respectively. Of these choices, when the "album title formation" choice 61 is selected (#822), the album title editing screen is displayed (#823). When the "A-side formation" choice 62 is selected (#822), the A-side editing screen is displayed (#824). When the "B-side formation" choice 63 is selected (#822), the B-side editing screen is displayed (#825). The user edits the character strings to be printed on the label on these editing screens. To restore the selection screen from the editing operation, the cursor is shifted upward. Upon shift of the cursor, the editing screen is switched to the selection screen (#821). Thereafter, processing from #822 is continuously performed. When the editing operation in #823, #824, or #825 is completed (#826), the edited character strings are stored in a predetermined area of the storage unit 31 (#827). Thereafter, the flow returns to #821, and processing continues.

Since the character strings to be printed can be input to the corresponding columns of the label, selection errors can be minimized, and the label can be quickly formed.

Seventh Embodiment

The character strings to be printed are formed as described with reference to the above embodiments. The formed chara