Received: from mail-yk0-f187.google.com ([209.85.160.187]:42993) by stodi.digitalkingdom.org with esmtps (TLSv1:RC4-SHA:128) (Exim 4.80.1) (envelope-from ) id 1XRqUM-0005rn-Of for lojban-list-archive@lojban.org; Wed, 10 Sep 2014 15:35:47 -0700 Received: by mail-yk0-f187.google.com with SMTP id 19sf767415ykq.14 for ; Wed, 10 Sep 2014 15:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=IZkI0zzi1SkKZIsQAQKlrS5SRJUdbMTMNev3Wdb31m0=; b=ink2sgntRdj2QHvE6P7+4zHHiXEKUySVmlRT9JmSRFSj1tmYZVIet1myI2WNDWORAA CHgVXY2OrJ4ZBzBBt8dvxiD6KhRDVkEvDUGeArDkRPEApFKOmB6OVNOAUyRW0PueoFDa JiT678FuRkoCaS0BRJOJO7l5PkFBAc16tNO6FxBVMDEUWiLmq/qwgOP2RgZOT8UFlMxM bG/3zpi+QrgVlumUJeLJxfxv0gfJiNRTygNV43+vxX6BqcDuR+ZBPRQp3GEOMRJliMsJ 83qp8sMPAuIHjjwhAMRYbgM6w7JCf0MvyYzmLCJAgGEeFEy2xny4J3E+r6Y8HdF+p1Y0 UkkQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=IZkI0zzi1SkKZIsQAQKlrS5SRJUdbMTMNev3Wdb31m0=; b=Ny3Rku4wwHKPRLxwKu0LpfLm8hG3+Na++A00xqheZRXgauZc203kIeoTo0RzdxFYtx cnRWEgTaBAupU7IG/LbsfwigryXx+MCwB7UzR5JWI+bxk5UmScTf38YJVUIaZHkbU4nR TWMk48/7W4NiSJyxeR2km55UDcY8u8y0JkrnvsA87MMSvkmQ7c/ov7+lW6aIA+FOdtWt U/9kJZi1Xq5VB6uxiWKUR62PGM0Yogt6sswvYlqGn1kUgzIwo9tcyWIEuORFK8xGZqGg lAk7/CnBqow4/LxMBCVy+K2USeEd+bpW5cFudGhde8CX3w2/5YxrpBRc1gWLU55NaFsC MjVQ== X-Received: by 10.140.32.227 with SMTP id h90mr41245qgh.26.1410388540381; Wed, 10 Sep 2014 15:35:40 -0700 (PDT) X-BeenThere: lojban@googlegroups.com Received: by 10.140.92.102 with SMTP id a93ls2799712qge.15.gmail; Wed, 10 Sep 2014 15:35:39 -0700 (PDT) X-Received: by 10.140.40.85 with SMTP id w79mr105qgw.38.1410388539933; Wed, 10 Sep 2014 15:35:39 -0700 (PDT) Date: Wed, 10 Sep 2014 15:35:39 -0700 (PDT) From: TR NS To: lojban@googlegroups.com Message-Id: In-Reply-To: <20140910173804.GP30324@stodi.digitalkingdom.org> References: <20131227041501.GA21848@stodi.digitalkingdom.org> <2cee2571-a652-48cb-b581-e97177c89074@googlegroups.com> <2d8a397d-0399-4631-a0ee-b16e3c8cddad@googlegroups.com> <20140807062529.GR23392@stodi.digitalkingdom.org> <450f6fea-1384-44dd-8966-6be903090942@googlegroups.com> <20140808011937.GT23392@stodi.digitalkingdom.org> <6dba3c27-485e-4c1a-b603-4efae8eda6a1@googlegroups.com> <20140809202309.GA23392@stodi.digitalkingdom.org> <20140910173804.GP30324@stodi.digitalkingdom.org> Subject: Re: [lojban] Re: The CLL project, technical directions MIME-Version: 1.0 X-Original-Sender: transfire@gmail.com Reply-To: lojban@googlegroups.com Precedence: list Mailing-list: list lojban@googlegroups.com; contact lojban+owners@googlegroups.com List-ID: X-Google-Group-Id: 1004133512417 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary="----=_Part_852_146867865.1410388539510" X-Spam-Note: SpamAssassin invocation failed ------=_Part_852_146867865.1410388539510 Content-Type: text/plain; charset=UTF-8 On Wednesday, September 10, 2014 1:38:07 PM UTC-4, Robin Powell wrote: > > On Wed, Aug 13, 2014 at 10:32:03AM -0700, TR NS wrote: > > > > > > On Saturday, August 9, 2014 4:23:13 PM UTC-4, Robin Powell wrote: > > > > > > On Sat, Aug 09, 2014 at 05:44:17AM -0700, TR NS wrote: > > > > > > > > On Thursday, August 7, 2014 9:19:44 PM UTC-4, Robin Powell wrote: > > > > > > > > > > > > > > > So let me start off by saying that pandoc is certainly not out of > > > > > the question and you're welcome to try to do something like that. > I > > > > > played with it myself for a while. > > > > > > > > > > > > > But I would like to see how far I can get the Pandoc solution to > > > > work. > > > > > > I'm totally OK with that. > > > > > > > > Quick status update on my progress in this regard. I have gotten to the > > point where everything is looking pretty good. The problem I face at > this > > point is having to with examples, e.g. > > > > > xml:id="example-random-id-k02C"> > > > > <anchor xml:id="c2e5d5"/> > > > > > > > > mi > > tavla > > do > > zo'e > > zo'e > > > > I talk to you about something in some > language. > > > > > > > > > > To convert that into an example that could be rendered by Pandoc would > > entail removing all these custom tags, e.g. > > > > (@)c2e5d5 mi tavla do zo'e zo'e > > I talk to you about something in some language. > > > > Even though the final result looks good, loosing all this metadata seems > > like a bad idea to me. To prevent that means I need to write pandoc > > filter(s) to properly handle the custom XML. This is not out of the > > question. Unfortunately I have found that writing filters for Pandoc is > > much more difficult than one would expect. The API for doing so does not > > apper to be well documented and it doesn't help that Pandoc is written > in > > Haskell (which I find mind numbing to decipher). So now I have decide if > > wrestling with Haskell and Pandoc filters is worth the effort. Or seek > > another solution. > > That's too bad. ;( > It is. But recently I found a solution I like even better, mainly because it is a more direct solution. It's called WeasyPrint and it is an HTML to PDF converter. Because it is HTML based, it is much easier to manipulate custom markup. This can be doen via coded transforms if need be, but much of it can be done via CSS which is really nice. And since Markdown passes-thru custom markup, it can be used as the source markup. However it remains to be seen to what degree the printed output will be suitable. My preliminary tests looked good, but as always the devil is in the details. http://weasyprint.org/ -- You received this message because you are subscribed to the Google Groups "lojban" group. To unsubscribe from this group and stop receiving emails from it, send an email to lojban+unsubscribe@googlegroups.com. To post to this group, send email to lojban@googlegroups.com. Visit this group at http://groups.google.com/group/lojban. For more options, visit https://groups.google.com/d/optout. ------=_Part_852_146867865.1410388539510 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wednesday, September 10, 2014 1:38:07 PM UTC-4,= Robin Powell wrote:
On Wed, Au= g 13, 2014 at 10:32:03AM -0700, TR NS wrote:
>=20
>=20
> On Saturday, August 9, 2014 4:23:13 PM UTC-4, Robin Powell wrote:
> >
> > On Sat, Aug 09, 2014 at 05:44:17AM -0700, TR NS wrote:=20
> > >=20
> > > On Thursday, August 7, 2014 9:19:44 PM UTC-4, Robin Powe= ll wrote:=20
> > > >=20
> > > >=20
> > > > So let me start off by saying that pandoc is certai= nly not out of=20
> > > > the question and you're welcome to try to do someth= ing like that.  I=20
> > > > played with it myself for a while.=20
> > > >=20
> > >=20
> > > But I would like to see how far I can get the Pandoc sol= ution to=20
> > > work.=20
> >
> > I'm totally OK with that.=20
> >
> >
> Quick status update on my progress in this regard. I have gotten t= o the=20
> point where everything is looking pretty good. The problem I face = at this=20
> point is having to with examples, e.g.
>=20
>     <example role=3D"interlinear-gloss-example"= =20
> xml:id=3D"example-random-id-k02C">
>       <title>
>         <anchor xml:id=3D"c2e5d5"/>
>       </title>
>       <interlinear-gloss-itemized>
>         <jbo>
>           <sumti>mi</sumti>= =20
>           <selbri>tavla</selbri&= gt;=20
>           <sumti>do</sumti>= =20
>           <sumti>zo'e</sumti>= =20
>           <sumti>zo'e</sumti>
>         </jbo>
>         <natlang>I talk to you about som= ething in some language.</natlang>=20
>        
>       </interlinear-gloss-itemized>
>     </example>
>  
> To convert that into an example that could be rendered by Pandoc w= ould=20
> entail removing all these custom tags, e.g.
>=20
>     (@)c2e5d5        mi tavla do zo'= e zo'e
>                   &nb= sp;  I talk to you about something in some language.
>  
> Even though the final result looks good, loosing all this metadata= seems=20
> like a bad idea to me. To prevent that means I need to write pando= c=20
> filter(s) to properly handle the custom XML. This is not out of th= e=20
> question. Unfortunately I have found that writing filters for Pand= oc is=20
> much more difficult than one would expect. The API for doing so do= es not=20
> apper to be well documented and it doesn't help that Pandoc is wri= tten in=20
> Haskell (which I find mind numbing to decipher). So now I have dec= ide if=20
> wrestling with Haskell and Pandoc filters is worth the effort. Or = seek=20
> another solution.

That's too bad.  ;(

It is. But recently I found a solution= I like even better, mainly because it is a more direct solution. It's call= ed WeasyPrint and it is an HTML to PDF converter. Because it is HTML based,= it is much easier to manipulate custom markup. This can be doen via coded = transforms if need be, but much of it can be done via CSS which is really n= ice. And since Markdown passes-thru custom markup, it can be used as the so= urce markup. 

However it remains to be seen t= o what degree the printed output will be suitable. My preliminary tests loo= ked good, but as always the devil is in the details.

http://weasyprint.org/

--
You received this message because you are subscribed to the Google Groups &= quot;lojban" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to lojban+unsub= scribe@googlegroups.com.
To post to this group, send email to lojban@googlegroups.com.
Visit this group at http:= //groups.google.com/group/lojban.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_852_146867865.1410388539510--