From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63310 Path: news.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.comp.tex.context Subject: Purpose of backend (export=yes) Date: Mon, 8 Nov 2010 22:52:41 +0800 Message-ID: <20101108145241.GE15531@smoon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="82I3+IH0IqGh5yIs" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289228004 606 80.91.229.12 (8 Nov 2010 14:53:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Nov 2010 14:53:24 +0000 (UTC) To: General mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 08 15:53:18 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 1PFT5s-0006HS-80 for gctc-ntg-context-518@m.gmane.org; Mon, 08 Nov 2010 15:53:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3FFF6CA82F; Mon, 8 Nov 2010 15:53:10 +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 Nrpfh1sIgZlj; Mon, 8 Nov 2010 15:53:09 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AB445CA829; Mon, 8 Nov 2010 15:53:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D73A3CA829 for ; Mon, 8 Nov 2010 15:53:04 +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 tNq5iY15uaAu for ; Mon, 8 Nov 2010 15:52:52 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 7C012CA827 for ; Mon, 8 Nov 2010 15:52:52 +0100 (CET) Original-Received: from mail-ew0-f41.google.com (mail-ew0-f41.google.com [209.85.215.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oA8Eqpjf000551 for ; Mon, 8 Nov 2010 15:52:51 +0100 Original-Received: by ewy25 with SMTP id 25so2911373ewy.14 for ; Mon, 08 Nov 2010 06:52:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; bh=T7K7CeaR41qq8Pe9CV5fzNPMnJ4ZIvv30yTOVSU+AxI=; b=eMbXhNN+OtsZ6SH8Sf3gamrsIFAAJ/hOlPOnderq4j8FZF5CXOVEWFtcUX04IRjiPL efEkzDfYThYzoQa9FrGrYAsHtbOLvoPj0tmu6zH+ivHl0xDK6X6UMAADMLj184234l69 U2CbXFlnb3RMpEjUQKXFfRH1RplEXBJH9jAwg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:content-transfer-encoding :user-agent; b=oodPXWlf6Dom3pblZ3aDeuaY+JFJYsWWJxM6+mAT6iivw9tDxWYKSdGyK0wejLy/Pg kmnijeo3RTtEpXWrRedLpGWnSVOuMBxi6iLg1LUU7vH8fzbjm/hz1FHk7kYXWFjEoCMC nmpwz1er/RFScvvU3MmAgw34dSAOKspCuYnCs= Original-Received: by 10.14.126.69 with SMTP id a45mr3367478eei.15.1289227970594; Mon, 08 Nov 2010 06:52:50 -0800 (PST) Original-Received: from smoon ([188.168.157.119]) by mx.google.com with ESMTPS id x54sm4432154eeh.5.2010.11.08.06.52.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Nov 2010 06:52:46 -0800 (PST) Mail-Followup-To: Vladimir Lomov , General mailing list for ConTeXt users Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.41; 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: 08DsCQPGM - db1302f8e90e - 20101108 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:63310 Archived-At: --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi. (I'm reading this ML but rarely ask questions.) I try to understand the purpose of 'setupbackend'. Consider the following three examples: ---------------------------------------------------------------------- \setupbackend[export=yes] \starttext This is simple example. No font switching, no math. \stoptext ---------------------------------------------------------------------- \setupbackend[export=yes] \starttext This is second example. This time we try to use font switching mechanism: This is normal, but this \bold{one is bold}. Normal again. \stoptext ---------------------------------------------------------------------- \setupbackend[export=yes] \starttext This is third example with 'backend' 'export=yes'. Now we try simple math: This is inline formula $E=mc^{2}$. This is display formula \startformula E=mc^{2} \stopformula \stoptext ---------------------------------------------------------------------- I compiled them with context (mkIV, context minimal) and got ex{1,2,3}.export. I thought that I get not only the document content but also its logical structure (for example some markup for font switching). Is it true that 'backend' only output document content not its logic strcuture? Does it work with math? The third example gives for math only not letters. I attached the resulted export files. P.S. Then I saw the announce about 'backend' & 'export=yes' I thought that context would be good tool for notes. I imagine that I could wrote a text file and make from it either pdf (for printing/screening) or html (for screening) or may be convert xml (using existing tools and methods) to other formats (rtf/odt/xhtml) that would contain math, images, tables. But seems that I was wrong or this will be in future of the backend? --- WBR, Vladimir Lomov -- If you make people think they're thinking, they'll love you; but if you really make them think they'll hate you. --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ex1.export" This is simple example. No font switching, no math. --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ex2.export" This is second example. This time we try to use font switching mechanism: This is normal, but this one is bold. Normal again. --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="ex3.export" Content-Transfer-Encoding: quoted-printable This is third example with 'backend' 'export=3Dyes'. Now we try simple ma= th: This is inline formula=20 =F0=9D=90=B8 =3D =F0=9D=91=9A =F0=9D=91=90 2 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --82I3+IH0IqGh5yIs--