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.bugs Subject: bug#71909: 30.0.60; Date: Sun, 20 Oct 2024 20:58:00 +0300 Message-ID: <867ca2irmf.fsf@gnu.org> References: <865xtnhyn6.fsf@foxmail.com> <868qv2wwyk.fsf@gnu.org> <865xq6wwkc.fsf@gnu.org> <86wmimuz18.fsf@gnu.org> <0056b65b-5cdc-4271-b717-0acc75661c17@imayhem.com> <86o73xvkj8.fsf@gnu.org> <87ldz1h5s4.fsf@gmail.com> <86bjzxv49y.fsf@gnu.org> <877calh1fs.fsf@gmail.com> <87bjzerkeq.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39976"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, 71909@debbugs.gnu.org, visuweshm@gmail.com To: Cecilio Pardo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 20 19:59:00 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1t2aCh-000AEZ-RL for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Oct 2024 19:59:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2aCN-000317-Ta; Sun, 20 Oct 2024 13:58:39 -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 1t2aCL-00030j-EF for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 13:58:37 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2aCL-00005A-6G for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 13:58:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=y4WBePu9c84bYaYbgo4wjhG7qbwngc4/qmwVt0QMsUw=; b=lFm9kkoapBKQoY1DiU1cegpFoj/lSc1Ay49nGruxg7SHHTs2olmYQ/PWC4xinFVvtZc6t2eXAzXscN9b6uHgNgLYduiPa2ZPiggxr9EpmUH5rAWi9yZuTJDrJ/t/3eeb6SR2xu9eeh+IVkhz0TSKt5/yVSLYzj0fG6qYgKaHJdxfyPx+GIXEzDW5scYzOyfFPxeJjF6RkkfX82pXYFJpVrMellCmqR+hJ3He43fLCdHt9rCxRmQERLeGBe1/3cR4dTuTJYDCDjWO6iaa4ihjThoqJKFyBpsGmOvpZbJSPkdMhNhmcsmNY4yiqHM9XDsCLXnRikkWFgp1qilpdxyAEw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2aCk-0004c8-Hf for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 13:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Oct 2024 17:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71909 X-GNU-PR-Package: emacs Original-Received: via spool by 71909-submit@debbugs.gnu.org id=B71909.172944712017700 (code B ref 71909); Sun, 20 Oct 2024 17:59:02 +0000 Original-Received: (at 71909) by debbugs.gnu.org; 20 Oct 2024 17:58:40 +0000 Original-Received: from localhost ([127.0.0.1]:48394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2aCO-0004bQ-Du for submit@debbugs.gnu.org; Sun, 20 Oct 2024 13:58:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2aCM-0004b7-2k for 71909@debbugs.gnu.org; Sun, 20 Oct 2024 13:58:38 -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 1t2aBp-0008TJ-LD; Sun, 20 Oct 2024 13:58:05 -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=y4WBePu9c84bYaYbgo4wjhG7qbwngc4/qmwVt0QMsUw=; b=n3deMWHlyOwv Tox361xlJrGKbUb5a20hPvYPCC8RBcAg0j77zzD4F3nZrxPxfNxynhClJcTb1egAxhSBggKx+TEFD wrN7QZlqx02O1khV9CBDtD6Xe+HfET0ECNjz+h9lv6I+mJzvmgtpHid1f0aGUXiEOMiLdNO+5qjSe A+oiY0cLcm3/c+NpeaygsL0uL+ZWtCbCUIKji3knYENhDvtqkWqk9B2JnW3cwSOcDNxGk2BFyDe9M +3JLvj1ESPlqHASzMU7XIoVA1o5TTUg91dbF2PkrTIbaZiQvN2E7ZvSuKxHaFCjRGY7ZFUlhKnUqn 0gUKlztRgnqmy3Eulyls8A==; In-Reply-To: (message from Cecilio Pardo on Sun, 20 Oct 2024 19:16:03 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293993 Archived-At: > Date: Sun, 20 Oct 2024 19:16:03 +0200 > Cc: Eli Zaretskii , 71909@debbugs.gnu.org > From: Cecilio Pardo > > I had planned to try to use UnRTF for this. > > https://www.gnu.org/software/unrtf/ > > It's a GNU package, and despite being old and (I think) unmaintained, it > is used by many wrappers for different languages, so it probably works > well, though I haven't tested it myself yet. > > Has it been already tried for emacs? I don't think so. > If not, which approach (tree-sitter, unrtf) would be more promising? It depends on which one covers the RTF spec better, I think. All the rest being equal, I think tree-sitter is more promising, because it will definitely be faster. OTOH, an Emacs-specific downside of using tree-sitter is that we don't have any experience using TS structure-related information (sectioning, tables, numbered lists, etc.) in Emacs, we only use TS for faces and indentation. UnRTF converts to HTML, and we already know how to use this stuff when expressed in HTML.