emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Introducing Master of Ceremonies, a package for presentations


From: Jean Louis
Subject: Re: Introducing Master of Ceremonies, a package for presentations
Date: Sun, 8 Dec 2024 09:29:21 +0300
User-agent: Mutt/2.2.12 (2023-09-09)

* Psionic K <psionik@positron.solutions> [2024-12-07 15:03]:
> To be clear, Jean, are you conducting this review for Non-GNU ELPA?

For my software and for your improvement.

It is presenting well, but only short words. It should at least
present well sentences and paragraphs.

> > I think that longer lines shall be wrapped, you have to include word
> > wrap, as otherwise lines will become smaller thant the original line!
> 
> Such a change is in progress.  I'm just about to stash some re-work of the
> core logic for `moc-focus' to have general support for most cases.  It's
> looking like 1k lines of rework and quite annoying.  I suspect there must
> be a better way.

- calculate how many letters can fit in single line, for the maximum 
presentable width

- I would remove any double horizontal white space from sentences or paragraphs

- I would convert it to list of words

- then make new list of concatenated chunks of words that fit in the single line

- then concatenate maybe with new lines

- then present it

> I can fit visual lines by using their horizontal and vertical height after
> breaks to calculate what will provide the best aspect ratio.  Such a
> calculation with reasonable accuracy can be done in one step without
> troubling Emacs.  With some length of selection there is never anything I
> can do to make the text big, but we can make it pretty.

I think yes with word parsing and deciding how to fit it.

-- 
Jean Louis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]