From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuchen Pei Newsgroups: gmane.emacs.help Subject: Re: Edit Wikipedia Article directly in Emacs? Date: Fri, 30 Jun 2023 21:02:45 +1000 Message-ID: <87ttuprz56.fsf@ypei.org> References: <87jzvnheu4.fsf@jonas-damm.de> <87sfabd5nc.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24278"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: Philip Kaludercic , Jonas Damm , help-gnu-emacs@gnu.org To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 30 13:03:40 2023 Return-path: Envelope-to: geh-help-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 1qFBue-00060E-5y for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Jun 2023 13:03:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFBtz-0005uH-Qr; Fri, 30 Jun 2023 07:02:59 -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 1qFBty-0005u5-2V for help-gnu-emacs@gnu.org; Fri, 30 Jun 2023 07:02:58 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFBtv-00011o-Vf for help-gnu-emacs@gnu.org; Fri, 30 Jun 2023 07:02:57 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id BEB403200962; Fri, 30 Jun 2023 07:02:52 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 30 Jun 2023 07:02:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ypei.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1688122972; x=1688209372; bh=ua 51YxdMiCy0YcR2KOr4x6FM2TDO+GKCPzHNd+BQ6R0=; b=Z2QDlORmP9INIkhaBZ 6LwKscF9dfBdV9nMqtX1Si0ZFjCPExeU7exdjbjyhQW1AaK8xGFnJW1kUpDfqhGQ BUd27oszIQdVVCR0qlwuTgTmuWLa2jYyIjqqtAvCFJHsEc1UmdqVWhZjyZlbJwjT VEmi+iZmeSJrs61RqvDjZ6twvdHR7aKAQSi+43HHnBFpbKhwWmr93BguSv6yrvtv 9xtSuuSZCnluXQ1gYpGlPRZ/kymAgGo7eCRwMI0l7clrqnSoenG/5zhzZB7ghUgD YxaEYLmEQThNM+MbtFWja0lTlXOIaeS6/p1OdQUc6CD/qZ87kDrICNGQjmJwiCRW MOcw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1688122972; x=1688209372; bh=ua51YxdMiCy0Y cR2KOr4x6FM2TDO+GKCPzHNd+BQ6R0=; b=j8RnEe5fp/DI2D/qdbvW7lHY9SK5G otPHAvygoC5dloswZUAcz5IuUhWN2MacTHx4+fLLqw4YwB4aO+5CT2iMPZEsAcZk pGxtSnnJTUmXrniymNyN1qvtj29TtQaoDbUxa1c+xQiuHMJ+ENz1ClUdyZD7hwDL zVzJIROGvigi2GnZlrryyixvSz6y6d+lLBz2AtZibiuE+YwawHY+Vj5Zg2rSVYE4 n2T7BVqmCr7rsBvHjJE0fbPM/KLBCB1ZI9jSi6+DUHagDNsNRXwZ6sFJY3pAdMro zOJWH2giatkERIfSDo102OrOyI5ncfI0LE395KyJkUkfiIq1PZU1wQ1HQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrtdeigdefgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpegjuhgthhgv nhcurfgvihcuoehiugeshihpvghirdhorhhgqeenucggtffrrghtthgvrhhnpeeigfehte fflefgffeiheekvdekvedvkeeffeeuudegvedvieeijeevleeuhfeiudenucffohhmrghi nhepmhihfhhilhgvrdhorhhgpdihphgvihdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehiugeshihpvghirdhorhhg X-ME-Proxy: Feedback-ID: i51b146f9:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 30 Jun 2023 07:02:49 -0400 (EDT) In-Reply-To: (Yuri Khan's message of "Fri, 30 Jun 2023 15:26:37 +0700") Received-SPF: pass client-ip=64.147.123.20; envelope-from=id@ypei.org; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144065 Archived-At: On Fri 2023-06-30 15:26:37 +0700, Yuri Khan wrote: > On Fri, 30 Jun 2023 at 11:57, Jean Louis wrote: > >> * Philip Kaludercic [2023-06-28 17:28]: >> > I am not sure how good of an idea this is, to my recollection Wikipedia >> > markup is fairly specific and it is not easy to map between different >> > markup formats without loosing too much information. >> >> Just to mention that command line: >> >> pandoc -f org -t mediawiki MYFILE.org >> >> is to convert Org to Mediawiki format. > > The specifics of Mediawiki is that you can have templates that > effectively extend the markup language, and this is widely used in > Wikipedia and its sister wikis. A quick experiment shows that Pandoc > silently drops most template inclusions. Ya, pandoc is nice, but from my experience it always requires some filters to work well. And Haskell is about the furthest thing from a scripting language, it is not as nice to iterate / experiment as elisp. With tree-sitter, it would be nice if people could agree on the specs of an intermediate representation for markup languages, so that we can get a pandoc in emacs, and with the customisability in emacs would be one step closer to meet OP's requirement. Best, Yuchen -- PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0