Patent ID: 9110871
Filing Date: 2015-08-18
Classification: G06F

Abstract:
1. A document generating apparatus for generating a document with a supplementary explanation by giving a supplementary explanation character string in a ruby form alongside a character included in the document, the document generating apparatus comprising: a storage circuit configured to store information on a character size of the character included in a character area in the document; a character size correcting circuit configured to read the information on the character size from the storage circuit and correct the read information on the character size for each character area based on the character size of each character area; a character area dividing circuit configured to divide one character area into more than one character area based on information on the character size corrected by the character size correcting circuit; a display form information generating circuit configured to generate, when information on the character size is corrected by the character size correcting circuit for characters in the character area made by division by the character area dividing circuit, information on a display form of the supplementary explanation character string in the ruby form for each character area made by division by the character area dividing circuit based on information on the corrected character size; and a document generating circuit configured to generate the document with the supplementary explanation based on information on the display form generated in the display form information generating circuit, wherein the character size correcting circuit is configured to decide, for each line, the character size for characters included in each line in each character area, calculate an average value of the decided character size for each character area, and correct information on the character size based on the calculated average value of the character size, the character size correcting circuit is configured to compare, in the case of calculating an average value of each character size decided for successive n lines including a first line of one character area and thereafter calculating an average value of the character size decided for each line from the first line to an n+1-th line, the average value of each character size decided for the successive n lines to the character size decided for the n+1-th line, when a difference between the average value of each character size decided for the successive n lines and the character size decided for the n+1-th line is determined to be greater than a predetermined condition, stops calculation of the average value of the character size decided for each line from the first line to the n+1-th line and corrects information on the character size based on the average value of each character size decided for the successive n lines, and n is greater than or equal to 1.