<div dir="ltr"><div>Folks,</div><div><br></div><div>I tried to find the rule for computing the number of characters per</div><div>line by experiment. I changed the value of the charSpace attribute of</div><div>the docGrid element using oXygen. (I did not use MS Office to change</div><div>the value of this attribute, since it also changes other values thus</div><div>hampering my intention). Then, I invoked MS Office to see how many</div><div>characters fit in a line and also to examine the page layout setting</div><div>view to see the number of characters per line setting.</div><div><br></div><div>Here is the result.</div><div><br></div><div>charSpace the number of characters</div><div> 0 18</div><div> 1502 18</div><div> 1503 17</div><div> 4121 17</div><div> 4122 16</div><div> 7065 16</div><div> 7066 15</div><div>10403 15</div><div>10404 14</div><div>14219 14</div><div><br></div><div>The description of this attribute in 29500-1 provides a rule for</div><div>computing the desired character pitch. By multiplying the</div><div>number of characters and the computed desired character pitch, I</div><div>computed twips per line.</div><div><br></div><div>twips per line</div><div>3780 </div><div>3912.011719 </div><div>3694.760742 </div><div>3912.075195 </div><div>3682.03125 </div><div>3911.953125 </div><div>3667.529297 </div><div>3911.938477 </div><div>3651.210938 </div><div>3912.001953 </div><div><br></div><div>But what is the column width? Here goes.</div><div><br></div><div>pgSz/@w (twips)<span style="white-space:pre-wrap"> </span> 11906</div><div>pgMar/@right(twips) 3997</div><div>pgMar/@left (twips) 3997<span style="white-space:pre-wrap"> </span></div><div>col width (twips) 3912 = 11906 - (3997 + 3997)</div><div><br></div><div>Twips per line computed above does not exceed the col width (twips).</div><div>Although 3912.011719, 3912.075195, and 3912.001953 are exceptions, the</div><div>difference is very small. So far so good.</div><div><br></div><div>But why can't we have just one more character per line? </div><div>In other words, does</div><div> (1 + the number of characters per line) * desired character pitch</div><div>exceed the column width?</div><div><br></div><div>Here is the computed values.</div><div><br></div><div>3990</div><div>4129.345703</div><div>3912.099609</div><div>4142.197266</div><div>3912.158203</div><div>4156.450195</div><div>3912.03125</div><div>4172.734375</div><div>3912.011719</div><div>4191.430664</div><div><br></div><div>I am afraid that 3912.099609, 3912.158203, and 3912.011719 are not so</div><div>large. They are even smaller than one of the exception values shown</div><div>above. Why can't we have one more character in line?</div><div><br></div><div>I am confused. Probably, to understand subtle deviations, we have to</div><div>read the source code.</div><div><br></div><div><br></div><div>Regards<br>Makoto</div>
</div>