From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56311 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: [OT] ASCII text output Date: Tue, 16 Feb 2010 15:25:26 -0500 (EST) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1266351940 28112 80.91.229.12 (16 Feb 2010 20:25:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2010 20:25:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 16 21:25:38 2010 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 1NhTzF-0000ZR-Og for gctc-ntg-context-518@m.gmane.org; Tue, 16 Feb 2010 21:25:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F367C9CBE; Tue, 16 Feb 2010 21:25:37 +0100 (CET) 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 SoRT3rT-oR3M; Tue, 16 Feb 2010 21:25:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91712C9C4F; Tue, 16 Feb 2010 21:25:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B7B44C9C4F for ; Tue, 16 Feb 2010 21:25:31 +0100 (CET) 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 qmVv7uQFyRss for ; Tue, 16 Feb 2010 21:25:29 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by balder.ntg.nl (Postfix) with ESMTP id A06DCC9C38 for ; Tue, 16 Feb 2010 21:25:28 +0100 (CET) Original-Received: FROM dhcp128036155026.central.yale.edu (dhcp128036155026.central.yale.edu [128.36.155.26]) By tombraider.mr.itd.umich.edu ID 4B7AFF36.D518A.22817 ; Authuser adityam; 16 Feb 2010 15:25:26 EST In-Reply-To: User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) 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:56311 Archived-At: On Tue, 16 Feb 2010, Roger Mason wrote: > Hello, > > I need to convert an exam written in ConTeXt to an ascii text file like > the following: > > NewQuestion,MC, > Title,Which is gem, > QuestionText,Which one of the following is regarded as a gem? > Points,1, > Difficulty,1, > Image,, > Option,0,Feldspar,, > Option,100,Ruby,, > Option,0,Sodium chloride,, > Option,0,Quartz,, > Hint,,,, > Feedback,,,, > > Before I go to the trouble of creating a parser to read the ConTeXt > input and write the desired output I'm wondering if this can be done > with ConTeXt itself. Can you show a small example of the corresponding tex source? Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________