Re: Semantic Linefeeds

2022-10-25 Thread Yuriy Skalko
So from your patch I see that we already did that for '.'? And in this case the \n counts as a space ? I thought our semantics was that \n did not count at all. Yes, it was already done for "." and semantics of \n (ignoring it) is the same here. Space after the "." is still added to the next l

Re: Semantic Linefeeds

2022-10-18 Thread Jean-Marc Lasgouttes
Le 17/10/2022 à 12:21, Yuriy Skalko a écrit : Thanks all for the feedback! Here is a patch to try. Should we also have minimal line length? So from your patch I see that we already did that for '.'? And in this case the \n counts as a space ? I thought our semantics was that \n did not count

Re: Semantic Linefeeds

2022-10-18 Thread Scott Kostyshak
On Tue, Oct 18, 2022 at 03:17:46PM +0300, Yuriy Skalko wrote: > On User Guide the difference in file size is ~2%, so yes, it can be called > negligible. And after looking through User Guide, I agree with Joel that we > can go without minimal line length. Thanks for checking! I was expecting even l

Re: Semantic Linefeeds

2022-10-18 Thread Yuriy Skalko
On User Guide the difference in file size is ~2%, so yes, it can be called negligible. And after looking through User Guide, I agree with Joel that we can go without minimal line length. Also I exported User Guide to LyX 2.3 format and then successfully opened it in LyX 2.3.6. Yuriy -- lyx-d

Re: Semantic Linefeeds

2022-10-17 Thread Joel Kulesza
On Mon, Oct 17, 2022 at 08:14 Scott Kostyshak wrote: > On Mon, Oct 17, 2022 at 01:21:40PM +0300, Yuriy Skalko wrote: > > Thanks all for the feedback! > > Thanks for working on this, Yuriy. What is the difference in file sizes? > e.g., of the User Guide? I'm guessing it's negligible, but still cur

Re: Semantic Linefeeds

2022-10-17 Thread Scott Kostyshak
On Mon, Oct 17, 2022 at 01:21:40PM +0300, Yuriy Skalko wrote: > Thanks all for the feedback! Thanks for working on this, Yuriy. What is the difference in file sizes? e.g., of the User Guide? I'm guessing it's negligible, but still curious enough to ask. > Here is a patch to try. > Should we also

Re: Semantic Linefeeds

2022-10-17 Thread Yuriy Skalko
Thanks all for the feedback! Here is a patch to try. Should we also have minimal line length? Yuriy diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 4ce94415f7..61a9e23c61 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1746,16 +1746,21 @@ void Paragraph::write(ostream & os,

Re: Semantic Linefeeds

2022-10-16 Thread Jean-Marc Lasgouttes
Le 15/10/2022 à 16:04, Joel Kulesza a écrit : There was some discussion on this in 2020 (https://www.mail-archive.com/search?l=lyx-devel%40lists.lyx.org&q=Significant+.lyx+EOL+White+Space+Inquiry&submit.x=15&submit.y=15

Re: Semantic Linefeeds

2022-10-15 Thread Scott Kostyshak
On Sat, Oct 15, 2022 at 12:17:15PM +0300, Yuriy Skalko wrote: > Hello all, > > What do you think about adapting semantic linefeeds > (https://rhodesmill.org/brandon/2012/one-sentence-per-line/) for stored > paragraph text in LyX files? Mainly to breaks lines only after the > punctuation marks. The

Re: Semantic Linefeeds

2022-10-15 Thread Joel Kulesza
On Sat, Oct 15, 2022 at 3:17 AM Yuriy Skalko wrote: > Hello all, > > What do you think about adapting semantic linefeeds > (https://rhodesmill.org/brandon/2012/one-sentence-per-line/) for stored > paragraph text in LyX files? Mainly to breaks lines only after the > punctuation marks. Then the dif