<div class="gmail_quote">On Mon, Mar 21, 2011 at 21:27, Caolán McNamara <span dir="ltr"><<a href="mailto:caolanm@redhat.com">caolanm@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, 2011-03-21 at 17:36 +0100, Bálint Dózsa wrote:<br>
> I will try to change this.<br>
> So we need to detect the current case of the word.<br>
><br>
> When the word is APPLE:<br>
> nF3ShiftCounter=2;<br>
> When the word is Apple:<br>
> nF3ShiftCounter=1;<br>
> And when the word is apple:<br>
> nF3ShiftCounter=0;<br>
<br>
</div>basically yeah, and pick some consistent for e.g. aAPPle</blockquote><div><br></div><div>The case of the first letter would be consistent? a for aAPPle and A for AappLE. You could also try and figure out whether more than average amount of letters is a certain case, but then what to do on a tie? </div>
</div><div><br></div><div>Going with the first letter would 'the least surprising'?</div><div><br></div><div>Regards,</div><div>Jeroen.</div><br>-- <br>That amount of awesome cannot be from concentrate.<br>