From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: "Why is emacs so square?" Date: Fri, 05 Jun 2020 23:56:16 -0400 Message-ID: References: <863691n4xl.wl-me@enzu.ru> <86blno9yle.wl-me@enzu.ru> <87d0845msg.fsf@yahoo.com> <87h7xgjasw.fsf@yahoo.com> <875zdwjais.fsf@yahoo.com> <6a198677-41b6-4dbd-39d0-2b01550d53cf@yandex.ru> <32f6a2ce-e30f-059f-dcd4-233d666a10a1@yandex.ru> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="50386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sb@dod.no, emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 06 05:56:57 2020 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 1jhPx3-000Cyf-Ea for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Jun 2020 05:56:57 +0200 Original-Received: from localhost ([::1]:52198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhPx2-0004h1-E4 for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Jun 2020 23:56:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhPwS-0004GQ-0Y for emacs-devel@gnu.org; Fri, 05 Jun 2020 23:56:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54474) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhPwP-0003XB-NK; Fri, 05 Jun 2020 23:56:17 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jhPwO-0006zF-RN; Fri, 05 Jun 2020 23:56:17 -0400 In-Reply-To: (message from Arthur Miller on Fri, 05 Jun 2020 15:01:13 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:251927 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I understand that wysiwyg is easier and I understand your concern > for delays. I believe those delays would not be noticable for a pamphlet > (A4/A5 size?) if you used html as intermediate format. Could you state your proposed solution more concretely? How would it work, which programs would it use? > * provide a database of predefined paper sizes as specified on: > https://www.papersizes.org/a-sizes-in-pixels.htm > to be used as templates for width and height (in pixels) > * advice insert funcion(s) to check for current line pixel-width and > pixel-height. If width or height exceed template width and height then > insert ^L to denote page break and move point to next line and insert > text in next line. If width is exceeded maybe it is just enough to > move point to next line, but when height for a page is exceeded one > would need a special char to visualize page break. If this works reliably, and isn't very slow, it could be good enough. For this to work reliably requires understanding the width of text as it will eventually be rendered, including different sizes and variants (italic, bold, etc). > I am not sure how efficient it would be to check for pixel-width and height > on every char insertion, maybe there is some better way? We can arrange to take note of how wide the line is, update that incrementally in a quick way, then do more processing when that seems necessary. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)