From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67523 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Re: wikimedia2context: any existing solutions? Date: Wed, 30 Mar 2011 20:44:26 +0200 Message-ID: <20110330184425.GA26862@khaled-laptop> 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 1301510696 2449 80.91.229.12 (30 Mar 2011 18:44:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2011 18:44:56 +0000 (UTC) Cc: mailing list for ConTeXt users To: Mojca Miklavec Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 30 20:44:52 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 1Q50Nt-0006MJ-QY for gctc-ntg-context-518@m.gmane.org; Wed, 30 Mar 2011 20:44:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6DAECAB60; Wed, 30 Mar 2011 20:44: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 yfodrhSJHSCL; Wed, 30 Mar 2011 20:44:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C28BCAB4C; Wed, 30 Mar 2011 20:44:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1E931CAB4B for ; Wed, 30 Mar 2011 20:44:19 +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 4KCijCwVfQzK for ; Wed, 30 Mar 2011 20:44:07 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id C792DCAB4C for ; Wed, 30 Mar 2011 20:44:07 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2UIiVS2022229 for ; Wed, 30 Mar 2011 20:44:32 +0200 Original-Received: by wyf19 with SMTP id 19so1813145wyf.14 for ; Wed, 30 Mar 2011 11:44:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=5pigABi3GqtrWSx11khFqM/ctA/3wUo76kDY3gHytrM=; b=XefHR64bdwOdwtSo8jbdkLuF+JvoMkZznHkkm/aFy2aGHKpT/GZQUfCKlAorKdjIpF chtCeCsqFHKnWYosuA17lS8r2NPORuwKf/fBq8c4oLC1w0pQmutZynaPOOC+mDI71fy+ kYl2NMiCWADz1uFU01fFGTjqAIz3v5FbTBMiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=ICoNLmxFWJRNt6elB3GWFLxxlfsbgiLKh7eip2p/vpw+vthOmGbRwSZ74d+34Esdri CDoCwrBGo1CMUTeLA90iox0ZCrnlYwJzr4lNAGTtMQuUlarH20k21xDwu4Jfs1kjiDG+ +r/MVy5SBGeqFeLgpWArMGeCGKFT2lPs4h/34= Original-Received: by 10.216.170.213 with SMTP id p63mr1107045wel.37.1301510671519; Wed, 30 Mar 2011 11:44:31 -0700 (PDT) Original-Received: from localhost ([41.176.161.17]) by mx.google.com with ESMTPS id p5sm206173wbg.62.2011.03.30.11.44.29 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Mar 2011 11:44:30 -0700 (PDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; 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: 0eEpuIvpn - 4244a26f0bfd - 20110330 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:67523 Archived-At: On Wed, Mar 30, 2011 at 07:32:35PM +0200, Mojca Miklavec wrote: > 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. There is also http://sourceforge.net/projects/wiki2tex/ but it generates LaTeX, tweaking it to generate ConTeXt should not be hard (as long as you can build it; written in C++ and requires cmake, Qt and what not, luckily it built here just fine). Regards, Khaled -- Khaled Hosny Egyptian Arab ___________________________________________________________________________________ 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 ___________________________________________________________________________________