From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90214 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Asciidoc to PDF over Context Date: Fri, 13 Feb 2015 09:42:03 +0100 Message-ID: References: <54DD188F.7040805@famulla.eu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1318764298==" X-Trace: ger.gmane.org 1423816972 23079 80.91.229.3 (13 Feb 2015 08:42:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2015 08:42:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 13 09:42:42 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YMBpg-0004VN-8V for gctc-ntg-context-518@m.gmane.org; Fri, 13 Feb 2015 09:42:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9BF7C1022C for ; Fri, 13 Feb 2015 09:42:39 +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 BLtdVTZIBoOU for ; Fri, 13 Feb 2015 09:42:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B675D1023D for ; Fri, 13 Feb 2015 09:42:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5E0E9101E8 for ; Fri, 13 Feb 2015 09:42:07 +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 U0Hcg6yKVkql for ; Fri, 13 Feb 2015 09:42:05 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 7AAC1101E6 for ; Fri, 13 Feb 2015 09:42:05 +0100 (CET) Original-Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t1D8g4fJ031877 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 13 Feb 2015 09:42:04 +0100 Original-Received: by lams18 with SMTP id s18so14926435lam.11 for ; Fri, 13 Feb 2015 00:42:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=84+00T5GdDSYhn7uIcxWyewD2zMz/RpkPwkCNtwdXec=; b=pK0FoF/GdT1c4e8CYSIR9447JCLk0rOu+PpQCikV+hwlk2F6GfJHDvfDfp7PQbyS2n TTx/JonBHhlrwEoR3aYDzsfX/7pMHjd/lWt2c6leX00l2GiLbkPpRNaekdUoPeNxvj/2 DOoqbaFSbC9AeqtJQrm0XFNUgDyyT1aj99JayoTw8sQxui6InUcn2ZZbNMehzU3OP2Pu QzLDOiy1VkAcqPpFkb2NhFAktZS88m4zgC8/nzx0ja1i0Fvpa1QV3qNZ2KamVHqwdImJ J7DlrLk020q8NrZYvrksnSO+uYE+26a1GPzC3vhx86wCDhe646r1DushoT/MmGRst0Uf mwWA== X-Received: by 10.112.150.161 with SMTP id uj1mr7123434lbb.14.1423816923863; Fri, 13 Feb 2015 00:42:03 -0800 (PST) Original-Received: by 10.114.25.170 with HTTP; Fri, 13 Feb 2015 00:42:03 -0800 (PST) In-Reply-To: <54DD188F.7040805@famulla.eu> X-Bayes-Prob: 0.5 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=209.85.215.41; country=US; region=California; city=Mountain View; latitude=37.4192; longitude=-122.0574; 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: 0QNPIG444 - af91cbc05d06 - 20150213 (trained as not-spam) Received-SPF: pass (filter2-ams.mf.surf.net: domain of luigi.scarso@gmail.com designates 209.85.215.41 as permitted sender) receiver=filter2-ams.mf.surf.net; client-ip=209.85.215.41; envelope-from=; helo=mail-la0-f41.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:90214 Archived-At: --===============1318764298== Content-Type: multipart/alternative; boundary=047d7b34362af8dfe7050ef435c6 --047d7b34362af8dfe7050ef435c6 Content-Type: text/plain; charset=UTF-8 On Thu, Feb 12, 2015 at 10:18 PM, Tobias Famulla wrote: > Hello Mailing-List, > > I used Latex for a few years in university to create reports for > assignments and also to write my bachelor thesis (I would have liked to > use Context, but the right schema for citation was not available and I > had no time to create it myself). > Over the time I got a little bit frustrated with Latex, because it has > many modules and most of the time gets the job done, but writing Latex > can sometimes be quite hard sometime to me (you have to have the modules > installed, tweak around with charactersets, imagepositioning, ...). > > In between I looked at much smaller and sleaker document representations > languages (asciidoc, restructuredText, Markdown) and writing in it is a > pleasure compared to Latex (I haven't really tried out Context but > looked over the documentation and it looked more promising but shares > the same design ideas). > Asciidoc is even able to declarate source code listings and formulas. > Never the less, the output to Pdf is not always the nicest one. > > The reason why I now write to this list, is, that I imagine, that > Context could be the right processor to create beautiful PDFs out of > intermediate formats (DocBook 5 or Asciidoc). For the conversion to > Latex a module for asciidoctor (ruby implementation) is in developement. > The ideal system I imagine would be close to what is used with HTML and > CSS on the web: Having a easy to use file format to writing you > documents (Asciidoc or DocBook as intermediate format) and a system to > create the PDFs (maybe Context and a Context-Template) > > So my main questions are: > - Are there straigt forward ways to create PDFs with Context using > Docbook 5? > - Are there "not that hard" possibilites to write extentions to Context > to do exactly that (maybe using Lua)? > - Does it make more sense, when using another input format like > Asciidoc, to write a converter which directly creates a > Context-document? (although it might be more versatile to use DocBook > for other formats like Markdown or DocBook itself) > > Context alredy has a kind of xslt processor written in lpeg and embedded into the format. --- see for example http://wiki.contextgarden.net/XML The DocBook is a huge specification, so I guess that a convert for ConTeXt takes a huge amount of work if you want to map everything --- but it is feasible if you plan to start with a small subset. >From this point of view, Docbook already has a xslt to latex, so working on a xslt to context maybe makes more sense, if one accepts that context is still evolving. -- luigi --047d7b34362af8dfe7050ef435c6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, Feb 12, 2015 at 10:18 PM, Tobias Famulla <= uni@famulla.eu><= /span> wrote:
Hello Mailing-List,

I used Latex for a few years in university to create reports for
assignments and also to write my bachelor thesis (I would have liked to
use Context, but the right schema for citation was not available and I
had no time to create it myself).
Over the time I got a little bit frustrated with Latex, because it has
many modules and most of the time gets the job done, but writing Latex
can sometimes be quite hard sometime to me (you have to have the modules installed, tweak around with charactersets, imagepositioning, ...).

In between I looked at much smaller and sleaker document representations languages (asciidoc, restructuredText, Markdown) and writing in it is a
pleasure compared to Latex (I haven't really tried out Context but
looked over the documentation and it looked more promising but shares
the same design ideas).
Asciidoc is even able to declarate source code listings and formulas.
Never the less, the output to Pdf is not always the nicest one.

The reason why I now write to this list, is, that I imagine, that
Context could be the right processor to create beautiful PDFs out of
intermediate formats (DocBook 5 or Asciidoc). For the conversion to
Latex a module for asciidoctor (ruby implementation) is in developement. The ideal system I imagine would be close to what is used with HTML and
CSS on the web: Having a easy to use file format to writing you
documents (Asciidoc or DocBook as intermediate format) and a system to
create the PDFs (maybe Context and a Context-Template)

So my main questions are:
- Are there straigt forward ways to create PDFs with Context using
Docbook 5?
- Are there "not that hard" possibilites to write extentions to C= ontext
to do exactly that (maybe using Lua)?
- Does it make more sense, when using another input format like
Asciidoc, to write a converter which directly creates a
Context-document? (although it might be more versatile to use DocBook
for other formats like Markdown or DocBook itself)

Context alredy has a kind of xslt processor written i= n lpeg and embedded into the format.
--- see =C2=A0for example http://wiki.contextgarden.net/X= ML
The DocBook is a huge specific= ation, so=C2=A0
I guess that a convert for = ConTeXt takes a huge amount of work if you want to map everything --- but i= t is feasible if you plan to start with a small subset.
From this point of view, Docbook already has a xslt to latex,= =C2=A0
so =C2=A0working on a xslt to contex= t maybe makes more sense, if one accepts that context is still evolving.

--
l= uigi
--047d7b34362af8dfe7050ef435c6-- --===============1318764298== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1318764298==--