From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67521 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: wikimedia2context: any existing solutions? Date: Wed, 30 Mar 2011 19:32:35 +0200 Message-ID: References: <20110330151629.GA18420@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301506377 5975 80.91.229.12 (30 Mar 2011 17:32:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2011 17:32:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 30 19:32:53 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4zGG-0000ol-JM for gctc-ntg-context-518@m.gmane.org; Wed, 30 Mar 2011 19:32:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21043CAB53; Wed, 30 Mar 2011 19:32:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5Z6dPtapQsC4; Wed, 30 Mar 2011 19:32:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C9C5CAB4C; Wed, 30 Mar 2011 19:32:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5693FCAB4C for ; Wed, 30 Mar 2011 19:32:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2qJJyE0+LfXI for ; Wed, 30 Mar 2011 19:32:12 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 2A86FCAB4B for ; Wed, 30 Mar 2011 19:32:12 +0200 (CEST) Original-Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.216.176]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2UHWZv9003767 for ; Wed, 30 Mar 2011 19:32:36 +0200 Original-Received: by qyk30 with SMTP id 30so1358512qyk.14 for ; Wed, 30 Mar 2011 10:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=cwfSmjAocLeWYoy4D+noggLSyHFI43MrjwupR6PqO2I=; b=woxtQFJMxzEWgcDZquZ+YHdmGkr4IfiLJg6vrsk5xBaLYMbdDWckJB4sZQIvPDsPgm m0Axx/yQ0VwcqnADfPtf74ZbMkrePH55x5pdp1E8folF/n4O4Uj4bfqVumlg7xpAtk7h dXEZYJ+D1kD571/vtJ94huXFeOjfABreIiUoA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Sl6m98qzt2z7FWdU3W7RFImJwH70Ts2p+5Pl76dKXfbfRp7IVnxCFELjLrtQDg4A6v PkSZclN6KJjxeGEKhMrPm4UCrQtTgwvC9fanBdn1DP7CRKfhNMXjUr7xqKx24h7VnBfO /FSnPqH+YfjuV4WsgF49frR8gKum9+1lIIExw= Original-Received: by 10.224.185.17 with SMTP id cm17mr1359430qab.4.1301506355334; Wed, 30 Mar 2011 10:32:35 -0700 (PDT) Original-Received: by 10.229.89.69 with HTTP; Wed, 30 Mar 2011 10:32:35 -0700 (PDT) In-Reply-To: <20110330151629.GA18420@khaled-laptop> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.176; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bEptwABS - ce330f50bf6e - 20110330 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:67521 Archived-At: On Wed, Mar 30, 2011 at 17:16, Khaled Hosny wrote: > On Wed, Mar 30, 2011 at 04:47:07PM +0200, Mojca Miklavec wrote: > > If you are comfortable with writing PEG grammar (I'm not), writing a > mediawiki parser for luanamark[1] might be a good choice, it has a > ConTeXt writer already (and markdown parser). This seems like a very reasonable solution, however it will take too long before I understand LPEG enough to write some useful code. > I pet pandoc have mediawiki support as well, so you may try it. I started installing it, but then realized that it only supports output to mediawiki, no input. It seems like writing my own parser (a few regular expressions in language that is not lua) will probably be the fastest solution after all. Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________