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 11:38:49 -0700 Message-ID: <0982af39-b866-e16b-4af5-868d79cd74cf@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> <79dc51f6-4c7d-e660-1116-30fa92e2918e@gmail.com> <86y14ty9wa.fsf@gnu.org> 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="4845"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, acorallo@gnu.org, emacs-devel@gnu.org, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 18 20:39:44 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 1sfkoZ-00014p-Hb for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Aug 2024 20:39:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfknl-0000Iv-6w; Sun, 18 Aug 2024 14:38:53 -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 1sfknk-0000IS-Dx for emacs-devel@gnu.org; Sun, 18 Aug 2024 14:38:52 -0400 Original-Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sfkni-0003kA-NM; Sun, 18 Aug 2024 14:38:52 -0400 Original-Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-7c3ebba7fbbso2890273a12.1; Sun, 18 Aug 2024 11:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724006328; x=1724611128; 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=dqTsk3e+ogmUMJ2TXIZKsp2FnYGPsfzs3DrwjL6eArM=; b=G7f+5Zkp46SxFqHp7r513UFUbICvtxFoPMBY+8o5BPiS/JxYZXua/a3YyZzymhHRJI eEZhKpb0ItOREB9YznPFcgP42L90FcAHrW5P2FwRVrSondQ5FLOH8QG+eH8OQHocf/Fe Nipj0/cXO+kGd0wDb6F8hNv+tMlkSk1EGbgmL85Kth27mq5toGE2d+elBJqH6AfiL9LR J+g+gfPqZPeNRL0P/u1/Q8zLTWVElZpmJy+3kl1a5MHkM+mfQ5M1PGg6a3S0+FbUv6qy AWYEwzg2VYFotfcl+7LkImRUYgd5lnLjZNnVb1RxbFNWR4815Wy0iFhwWNUx0UARjVVu lxxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724006328; x=1724611128; 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=dqTsk3e+ogmUMJ2TXIZKsp2FnYGPsfzs3DrwjL6eArM=; b=CKYgE/7H1mwxWd3ji4KDRQPVYe/sMHEywk84KcJtKqe6Gv/jy3cqSY2X6NN5yqXDGA ObnoiMKfWcnVlhQI3xbQEsVXq6LA7plCX92I03uZijGc2M05F5eCF4nt48A3/ETFUrWj eV71DpfwqcSo953elzgS2jYsqOXhKYmPkddj1QVBuw83+SV34y53zteUm5gEfHgGqQJy vvYRxwuwmqNOOXJLRHNW0Rfu+315IHv99lvfwFV8Svq0fnVYYyh1ixnDHhSuzL44IZvC Q3lLtk3f6kcSCN+sCvChHcNXm87C9dIAYjNAB1zwQEm1IftRQDHKMstaa2D7o1zqOM5G 9n7w== X-Forwarded-Encrypted: i=1; AJvYcCU0/jXwNY/IPwe8dnksSkk0oci6HDpzF8DAmFUuXNLUVubcxPzXx5I4ocvvkDB4HBQdWKx+V/gMmE6TyOlgJgwtlhGzzDBIYwkcdn+D09Ueg1aKUw7W X-Gm-Message-State: AOJu0Yz5yefQXJt3yyGBRCR0pkmYKCDg7XIMZLOHk7OrtBDoqBlXeKIa Mq4Vs2cAYJJYtwRK6mYONxNONwVQmNzEugNq3mNdKzNQmR1zd7N5KUJasg== X-Google-Smtp-Source: AGHT+IEAhkGe2CKBrDqw714T0AuTbFv3LFk1oITFJDyD1gMlErtFJDMQhmQqGv/0IQO2/NDZz0OA6A== X-Received: by 2002:a17:903:228a:b0:1fd:a942:1558 with SMTP id d9443c01a7336-20203f329a2mr142838195ad.40.1724006328515; Sun, 18 Aug 2024 11:38:48 -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 d9443c01a7336-201f03a4f70sm52426365ad.291.2024.08.18.11.38.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Aug 2024 11:38:48 -0700 (PDT) Content-Language: en-US In-Reply-To: <86y14ty9wa.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=jporterbugs@gmail.com; helo=mail-pg1-x52c.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:322900 Archived-At: On 8/18/2024 11:16 AM, Eli Zaretskii wrote: >> Date: Sun, 18 Aug 2024 10:37:51 -0700 >> Cc: acorallo@gnu.org, emacs-devel@gnu.org, stefankangas@gmail.com >> From: Jim Porter >> >> 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). > > Using :align-to should allow us to align the slices horizontally (if > that is what you had in mind). My worry was that if you had this, This is some text [image slice] that goes on [image slice] multiple lines. [image slice] we'd have to be very careful. Text-scaling is probably the biggest risk. If you enlarge the text, the line-height changes, which would probably break things (though I guess we could scale the image too). In any case, we can cross this bridge when we get to it. > I say let's start from the text parts: the fonts, the faces, the > indentation, the numbered and unnumbered lists, etc. If we can pull > that out, we will already have a terrifically useful feature. I agree. SHR has already implemented these[1], so it would probably be a good source of ideas for how to render these parts. Maybe we could even pull some of the code out into a common file. [1] There's no CSS support though, so in practice, most web pages these days end up using the default font with SHR.