Edward,

Thanks so much for making this change so fast!

I've been doing more thinking about this and it seems to me that it
would be way better to have sentence spacing as a setting.  The
problem is that when a paragraph contains only a few sentences, the
preferred spacing might be inferred incorrectly due to typos.

More importantly, I just realized that in the code I sent you before,
when a paragraph breaks between sentences, a trailing space is left
after the first sentence. This means that the count of single spaces
to double spaces will be wrong.

Anyway, I've come up with a version of the code that works much better
for me (it's also simpler and easier to understand), I think it would
work better for everyone too, but I can't figure out how to pull
information from @settings nodes.

If there is some reason why adding another setting would be bad, let
me know.  I can send you a copy where spacing is still inferred and
the trailing space bug is fixed.


josé



2011/5/20 José Rojas Echenique <[email protected]>:
> Hi everybody, this is my first post, but I've been reading a bunch of
> old threads.  Here I go:
>
> Apparently there are people for whom your decision to use 1 or 2
> spaces after a sentence actually matters.
>
> http://en.wikipedia.org/wiki/Sentence_spacing
>
> I've gotten used to using 2 spaces and noticed that the fill-paragraph
> command isn't wise to it.  The same command in emacs notices and
> preserves your sentence spacing.
>
> I played around with the wrap_lines function that leo uses to fill
> paragraphs and now I've got the command working the same way emacs
> does.  My hack is attached in case anyone is interested.
>
>
> josé
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Attachment: wrap_lines (newer).leo
Description: Binary data

Reply via email to