发明名称 Correcting a document character size based on the average value of each character size
摘要 A document generating apparatus and a document generating method capable of easily and effectively generating a document with a supplementary explanation in which a supplementary explanation character string is given in a ruby form in a character size which conforms to a character size of a document. The document generating apparatus (and method thereof) decides, for each line, a character size for characters included in each line in each character area, and corrects information on the character size based on the calculated value of the character size.
申请公布号 US9110871(B2) 申请公布日期 2015.08.18
申请号 US201113292125 申请日期 2011.11.09
申请人 SHARP KABUSHIKI KAISHA 发明人 Sata Ichiko;Kutsumi Takeshi
分类号 G06F17/21;G06F17/24;G06F17/28 主分类号 G06F17/21
代理机构 Birch, Stewart, Kolasch & Birch, LLP 代理人 Birch, Stewart, Kolasch & Birch, LLP
主权项 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.
地址 Osaka JP