From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Introducing Master of Ceremonies, a package for presentations Date: Sun, 8 Dec 2024 09:29:21 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4207"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.12 (2023-09-09) Cc: Emacs developers To: Psionic K Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 08 07:30:15 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tKAo2-0000y9-7y for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Dec 2024 07:30:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKAnL-0002sh-5E; Sun, 08 Dec 2024 01:29:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKAnK-0002sY-0L for emacs-devel@gnu.org; Sun, 08 Dec 2024 01:29:30 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKAnI-0003Df-Gi for emacs-devel@gnu.org; Sun, 08 Dec 2024 01:29:29 -0500 Original-Received: from localhost ([::ffff:41.75.190.82]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000081FFA.0000000067553CC5.003E3AA4; Sat, 07 Dec 2024 23:29:25 -0700 Mail-Followup-To: Psionic K , Emacs developers Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326178 Archived-At: * Psionic K [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