cllns / semantic_linefeeds

A simple tool to convert text to semantic linefeeds
MIT License
9 stars 1 forks source link

Sensibly reduce linefeeds #2

Open xeruf opened 3 years ago

xeruf commented 3 years ago

Really like the concept, but for my taste this tool adds far too many linefeeds. For example, I would not add linebreaks after less than three words (unless there is a full stop), since these either mark an enumeration or an opening/intermittent clause, either of which have no business standing alone.

For example, this is one thing the tool produced:

Soon,
multiple purple,
slimy,
stretched bodies emerged.
As one approached her,
she saw that it had no head
and nothing.

I'd prefer

Soon, multiple purple, slimy, stretched bodies emerged.
As one approached her,
she saw that it had no head and nothing.
cllns commented 3 years ago

That's a great idea! I don't use this tool but I agree that's much better.

Will gladly merge and cut v0.3 if you want to open a PR :)

xeruf commented 3 years ago

Unfortunately I have no experience with ruby, but maybe...

Do you use any other tool or do you simply have everything formatted with semantic linefeeds already?

sisrfeng commented 1 year ago

Any update? @xeruf