From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: RTF import/export emacs (was: New Emacs features via Google Summer of Code (or other similar stipend schemes)) Date: Sun, 18 Aug 2024 10:37:51 -0700 Message-ID: <79dc51f6-4c7d-e660-1116-30fa92e2918e@gmail.com> References: <87bk20yoya.fsf@dataswamp.org> <86zfpjirkg.fsf@gnu.org> <877ccnj9dp.fsf@localhost> <86bk1zhrf5.fsf@gnu.org> <874j7qkj97.fsf@localhost> <87y152x5v8.fsf@dataswamp.org> <87r0aui7ay.fsf@localhost> <8634nahu9u.fsf@gnu.org> <87bk1xima6.fsf@localhost> <87jzgeyrum.fsf@localhost> <86le0uypnp.fsf@gnu.org> <87ttfixabd.fsf@localhost> <86frr2ymos.fsf@gnu.org> <87a5hax7c1.fsf@localhost> <86a5h9zznj.fsf@gnu.org> <874j7hyk4c.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23867"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acorallo@gnu.org, emacs-devel@gnu.org, stefankangas@gmail.com To: Ihor Radchenko , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 18 19:38:58 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 1sfjrm-00066D-Hr for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Aug 2024 19:38:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfjqy-0003wx-2J; Sun, 18 Aug 2024 13:38:09 -0400 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 1sfjqm-0003wP-Ht for emacs-devel@gnu.org; Sun, 18 Aug 2024 13:37:58 -0400 Original-Received: from mail-io1-xd32.google.com ([2607:f8b0:4864:20::d32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sfjqj-0004UH-72; Sun, 18 Aug 2024 13:37:55 -0400 Original-Received: by mail-io1-xd32.google.com with SMTP id ca18e2360f4ac-81fdaccd75eso138703839f.3; Sun, 18 Aug 2024 10:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724002671; x=1724607471; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=gv+DFM9ZtXaZz5NL2gFALm5cxFMA82f+Q0HR8YKVVgE=; b=VaJH7L6msU09YCUcymUYfZvS3KzjaOHeK1nnkTmEwd8QFEb0L2eTLK2Elz3ROYpKYt D/DxzGdU/Z/hBrETjTJmQvpglWdjGFZt+ZmoGMA0K/bSreMKae80+/HAxDcs8EMwn1ff RLTDvu2XBQhEVcu6UlKtgBiIVkx3qy2O/GiZbmBRPdkC6OuTsrNHFmb3KDzE6ILd9wBR rCfs/2qc/Wul8n+vFMOkivj25SKoWr3e2CvN2aRLUsfqAEcqTTjxynN06CVeqZqWaElB 5Dyqdf0jPz6B4ms6uNHUpnFYG5GlX/1Hu/h9zbHnGHw2h0Cgp48d+0kJG8QhTT1CZKbU X1ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002671; x=1724607471; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gv+DFM9ZtXaZz5NL2gFALm5cxFMA82f+Q0HR8YKVVgE=; b=lv4ItF9kHrBnGYXXIYFifo5A5G5JTOUjeybRpRV+Ez7DpRMvDvWfXYYfMJ7wsyU6Ch JT553o/oprPYYzM21BQ0QHMEe+QxPgHX4HaJigfnKV6Xtds8tHq41RedIUDelzXl3s/V fZ84IneiKi8XO2czLlEqYb+sAuLoeKso3jZiKt+mzTzf9j7aaemqjk+4+4cCY9QKQh5P 2cJE8IN12LvJD5SDCVgjfDA+4lCJlcEdBbKQqa4Jr8RJgNwHMY72xLWOZfQLoP+WYPUs dLDHYWY1R4g8a/5R2tEhS1P+1SXhHhO+o2y84vCF2LRXDLDgUbsb6/wo/zcEBqni+uHV lDGw== X-Forwarded-Encrypted: i=1; AJvYcCUxmuIO7MqA4kMJe0u5RhMnesL/rlJ0Zf8D2kFvKGFjBeD8VrOaE/SkWbT3KZSMYQkyVyleETFy5yUDiw3VolwgpMOuq3UJTv4qm9nTTHQBX3Q= X-Gm-Message-State: AOJu0YwnaifzKYzkuN3dEPS8/bChqdq2pHO5Nj9+Pq8gH47wg8a9Jv/2 6mhox59pDbFrBT6jcnz8jXOz6CuFyggsADeHjfhcW2pE3a3YGRV3 X-Google-Smtp-Source: AGHT+IFa7y+QVhvCn30fULAtg0jIbb6l5xfz+mJ7hYH+YKtb3p4G6o2Kn8ZVYsEWo71j+pSqYpmpVg== X-Received: by 2002:a05:6602:14c6:b0:817:3a29:6306 with SMTP id ca18e2360f4ac-824f2512fcamr1006797339f.0.1724002670880; Sun, 18 Aug 2024 10:37:50 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2d3e307537csm5757685a91.24.2024.08.18.10.37.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Aug 2024 10:37:50 -0700 (PDT) Content-Language: en-US In-Reply-To: <874j7hyk4c.fsf@localhost> Received-SPF: pass client-ip=2607:f8b0:4864:20::d32; envelope-from=jporterbugs@gmail.com; helo=mail-io1-xd32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:322897 Archived-At: On 8/18/2024 7:35 AM, Ihor Radchenko wrote: >>> Some text flowing around the images >>> ... >>> Or text and image displayed on top of each other. >> >> We aren't afraid of that in EWW and shr.el, are we? We could use the >> same technique here. > > You mean slicing? This may work for flowing text around, but it will not > work for overlaying images and text. EWW/shr.el don't actually use slicing for flowing text, as far as I know. I suppose that could work, but I'd be worried about miscalculations causing the slices to be misaligned (for example if we tried to support the CSS 'float: right' property). In short, EWW/shr.el's strategy for flowing text around images is to simply ignore it (unless I'm misunderstanding part of that code). For RTF support, I don't know if Emacs needs to support all (or even most) features of RTF to still be useful. If Emacs showed images on their own line no matter what the RTF document requests, that's still a big improvement over not being able to view RTF documents at all.