<div dir="ltr"><div><div><div><div><div>There are more cleanups required in this area<br><br></div>1) senders of setConditionArray: will always send with #paddedSpace or nil<br>  #paddedSpace will install PaddedSpaceCondition which does stop on Space character and sends #paddedSpace to the scanner<br>
</div> nil will install NilCondition which does not stop on Space<br><br></div>We thus have SpaceCondition wich is never used, and right now, it&#39;s fortunate, because it would send #space stopCondition when encoutering Space character, but only CompositionScanner would understand that !<br>
<br></div>2) setFont does override with stopConditions := DefaultStopConditions which does not stop on Space<br>the (single) CompositionScanner performs an additional action, it set Space stopCondition -&gt; #space<br></div>
<div>Curiously, SegmentScanner forces Space stopCondition to nil (that&#39;s now un-necessary, but I&#39;m quite sure that it once was).<br><br></div><div>Since, setFont is always sent by setStopConditions (* see below), the #paddedSpace is restored if alignment is Justified, or the NilCondition overrides the DefaultCondition...<br>
* computeDefaultLineHeight also calls setFont, but only before composition takes place...<br><br></div><div>This is really a convoluted mess !<br><br></div><div>My opinion:<br></div><div>1) we should remove SpaceCondition, and NilCondition, and only have DefaultCondition stopping on Space by sending #space<br>
</div><div>2) we should restore #space message to record Space position and count.<br>3) Only in JapaneseLanguageEnvironment there should be a special JapaneseStopConditions<br></div><div><div><br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/9/26 tim Rowledge <span dir="ltr">&lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 26-09-2013, at 7:14 AM, Bob Arning &lt;<a href="mailto:arning315@comcast.net">arning315@comcast.net</a>&gt; wrote:<br>
<br>
&gt; Well, something is a little wrong<br>
<br>
</div>I rather thought so. I&#39;ll use your StringHolder to work out something. Actually I reckon a quick hack to add #space and simply use #registerBreakableIndex should be good start.<br>
<div class="im"><br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>
</div>BASIC is to computer programming as QWERTY is to typing.<br>
<br>
<br>
<br>
</blockquote></div><br></div>