From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 17:14:24 +0300 Message-ID: <86a5h9zznj.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4899"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acorallo@gnu.org, emacs-devel@gnu.org, stefankangas@gmail.com To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 18 16:15:40 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 1sfgh2-00015s-Jm for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Aug 2024 16:15:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfggG-0003Je-Ll; Sun, 18 Aug 2024 10:14:52 -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 1sfggF-0003JS-AI for emacs-devel@gnu.org; Sun, 18 Aug 2024 10:14:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfggE-0004vj-NC; Sun, 18 Aug 2024 10:14:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dn4/LwOnhPxWdJ/pnyEOs4yDp7W8dnFAXMzDm3OUVUw=; b=lNCdoXDGsRAm rKNobjSjAGEGD0Cgb5h6yhACb6NIjIikRF0q7vyNe5BUN23auxWMloOiwiDfdn5ChhZ9h6/mtki7G kYED64qi6D78r5lRcDu28RMLsO0DVnifZbqNMmrVN5pSFb0aSp1mOt9tLUmXw3F4hP/3UKnvI8d8T J+infutS1vgbE67BJtgkeEoDZKNbhIJj8wAjhOp+WEnLwLy5LFXqk6TvW98cXDo6KTgPi9cQYSuIA iMD6P7h3RkC2SsP4sLbzknsHSZ2bH5mh6YxvA4oswRx6iPuJpxPA5yvAQXYMCHyW9liyFTxYiTGkg QZAgdpfujfh5XsWGibRmaQ==; In-Reply-To: <87a5hax7c1.fsf@localhost> (message from Ihor Radchenko on Sun, 18 Aug 2024 13:56:46 +0000) 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:322893 Archived-At: > From: Ihor Radchenko > Cc: acorallo@gnu.org, emacs-devel@gnu.org, stefankangas@gmail.com > Date: Sun, 18 Aug 2024 13:56:46 +0000 > > Eli Zaretskii writes: > > > Determining what it means and where it ends is IMO part of the job. > > The ability to import RTF files will be a very useful feature even if > > it doesn't support images at first. > > Then, it is indeed doable. > If we limit features to current display engine capabilities, simply > something like libpandoc will be good enough for basic import/export > (not just RTF, but a plethora of other formats as well). The job, as I see it, is to decode the RTF format and convert its typeface information into Emacs faces. > > ... (And what exactly is a problem > > with supporting images, given that Emacs is already capable of > > displaying them?) > > Some text flowing around the images > .... ... with multiple lines of text > .... .... . going beside the > . . . image. > . .... . . > . .. .. . > .. ..... . > ......... ... . > .. .. > > 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.