Received: from mail-ob0-f184.google.com ([209.85.214.184]:33461) by stodi.digitalkingdom.org with esmtps (TLSv1:RC4-SHA:128) (Exim 4.80.1) (envelope-from ) id 1XRxV3-0008Qt-3j for lojban-list-archive@lojban.org; Wed, 10 Sep 2014 23:04:58 -0700 Received: by mail-ob0-f184.google.com with SMTP id uz6sf3766820obc.1 for ; Wed, 10 Sep 2014 23:04:50 -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=QTLTdPOcZyJGY1hXvTdS0BUtdctfgmmih4E14OEyx2Q=; b=k5SO8oKtNJEGOIJCLOID99bvwSPq3Hyb0uakGCYaz2xcOqkMssHf0ubQMCtafsit6O ULAgPvfPp5pUF9fCwcB/3ur3Iuk5qqKH6OFbOdggHuk4zt/dOTmONwoLbUpaPk1Yb7nJ A6NoolEJUZAQQLxSE4UGCpr4BDuqH0H27reFQ+cmL6gPg2u8gEJnc+DrZVFCUJ1C7lh/ lwQ+T/9qICCLqm8RJhG3jirnI9eBcpXSQrf3C5/PYMhkp/k6GaULPEBB7hhjP5C+n7Ve 8+IRiY6qXQxjZT6vRJd3pg5FP28UpCyaNLVvFbs69vZbsdDqPUrcB2NSRSocwGIAGgsv lJQw== 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=QTLTdPOcZyJGY1hXvTdS0BUtdctfgmmih4E14OEyx2Q=; b=nDJQ1MRjz/askVTelCDouVyzpk9C9aBNGjCvIjQHqJbleFteqZYSviLWmM4OEH14G0 GtI+L+x+6dWZrGV/GSCme6DMKrILcY4Nv/Vwv3NmrrbiWYOPZjozQeBKy3DCn8PrWEfF 8LQhuCrkKzN04O99y1HE+APN6NY9LQy8RtXAMfYFTf9RnTPnwiPMNCrM++LnuGYHUytS 2B8HwE9YJrtok4g6Kf+1IbdSJ+HTzK4omnNRByofbcjAb0WZeG6zvGm9zTH7OfqO/wfL 7DPA85LpjIixPE8BRMHtyvckgXYM2H8JldKwcQgoHR4VM213QyWIl/ZYunMLm0UqHSSl Q1uw== X-Received: by 10.140.98.237 with SMTP id o100mr4890qge.17.1410415490509; Wed, 10 Sep 2014 23:04:50 -0700 (PDT) X-BeenThere: lojban@googlegroups.com Received: by 10.140.19.108 with SMTP id 99ls50415qgg.29.gmail; Wed, 10 Sep 2014 23:04:50 -0700 (PDT) X-Received: by 10.140.80.210 with SMTP id c76mr5252qgd.18.1410415490108; Wed, 10 Sep 2014 23:04:50 -0700 (PDT) Date: Wed, 10 Sep 2014 23:04:49 -0700 (PDT) From: TR NS To: lojban@googlegroups.com Message-Id: In-Reply-To: <20140911023800.GG30324@stodi.digitalkingdom.org> References: <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> <20140910233108.GD30324@stodi.digitalkingdom.org> <20140911005841.GF30324@stodi.digitalkingdom.org> <20140911023800.GG30324@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_2129_1523207878.1410415489491" X-Spam-Score: -1.9 (-) X-Spam_score: -1.9 X-Spam_score_int: -18 X-Spam_bar: - ------=_Part_2129_1523207878.1410415489491 Content-Type: text/plain; charset=UTF-8 On Wednesday, September 10, 2014 10:38:03 PM UTC-4, Robin Powell wrote: > > On Wed, Sep 10, 2014 at 05:58:41PM -0700, Robin Lee Powell wrote: > > On Wed, Sep 10, 2014 at 04:31:08PM -0700, Robin Lee Powell wrote: > > > On Wed, Sep 10, 2014 at 03:35:39PM -0700, TR NS wrote: > > > > > > > > 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/ > > > > > > I would *love* if such a thing worked, but the big thing I'm not > > > seeing in the examples is page-numbered cross-references, i.e. > > > "the armadillo (see page 22) is a blue fish". > > > > > > Can you test to see if you can generate such things, and if so > > > show me a pdf example? > > > > So, yeah, no. See https://github.com/Kozea/WeasyPrint/issues/218 > > > > The way to do this is http://www.princexml.com/purchase/ , which I > > had previously rejected because ridiculously expensive. > > > > Having said that, though, the LLG certainly *can* afford the $500 > > for a single user license, so that's certainly an option. Feel free > > to play with the free version and see what's what. > > Hmm... So far it looks like Prince may actually be quite workable > for us. Links I'm using to help with the CSS: > > http://alistapart.com/article/building-books-with-css3 > > http://alistapart.com/article/boom > > -- And it's standards-based, on the CSS Paged Media Module. So in time open source tools will eventually catch-up. That's a big plus because it means it's not a proprietary lock-in. Having said that, it's still $500 and it still remains to be seen if it is fully up to the task. I will give the free version a whirl and see how it goes. On the other hand, I have worked with the git repo enough now to think that perhaps an approach that combines (enhanced) markdown as a source format with your Ruby transforms would be a good stop-gap solution (at least until these HTML/CSS print solutions mature). The markdown can take care of basic styling needs in a format that is much easier to work with, while the xhtml it produces along with pass-thru xml can be handled via the Ruby code. -- 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_2129_1523207878.1410415489491 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wednesday, September 10, 2014 10:38:03 PM UTC-4= , Robin Powell wrote:
On Wed, S= ep 10, 2014 at 05:58:41PM -0700, Robin Lee Powell wrote:
> On Wed, Sep 10, 2014 at 04:31:08PM -0700, Robin Lee Powell wrote:
> > On Wed, Sep 10, 2014 at 03:35:39PM -0700, TR NS wrote:
> > >=20
> > > It is. But recently I found a solution I like even bette= r,
> > > mainly because it is a more direct solution. It's called
> > > WeasyPrint and it is an HTML to PDF converter. Because i= t is
> > > HTML based, it is much easier to manipulate custom marku= p. 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.=20
> > >=20
> > > 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.
> > >=20
> > > http://weasyprint.org/
> >=20
> > I would *love* if such a thing worked, but the big thing I'm = not
> > seeing in the examples is page-numbered cross-references, i.e= .
> > "the armadillo (see page 22) is a blue fish".
> >=20
> > Can you test to see if you can generate such things, and if s= o
> > show me a pdf example?
>=20
> So, yeah, no.  See https://github.com/Ko= zea/WeasyPrint/issues/218
>=20
> The way to do this is http://www.princexml.com/purchase/ , which I
> had previously rejected because ridiculously expensive.
>=20
> Having said that, though, the LLG certainly *can* afford the $500
> for a single user license, so that's certainly an option.  Fe= el free
> to play with the free version and see what's what.

Hmm...  So far it looks like Prince may actually be quite workable
for us.  Links I'm using to help with the CSS:

 http://alistapart.com/art= icle/building-books-with-css3

 http://alistapa= rt.com/article/boom=20

--

And it's standards-based, on the CS= S Paged Media Module. So in time open source tools will eventually catch-up= . That's a big plus because it means it's not a proprietary lock-in. Having= said that, it's still $500 and it still remains to be seen if it is fully = up to the task. I will give the free version a whirl and see how it goes.

On the other hand, I have worked with the git repo = enough now to think that perhaps an approach that combines (enhanced) markd= own as a source format with your Ruby transforms would be a good stop-gap s= olution (at least until these HTML/CSS print solutions mature). The markdow= n can take care of basic styling needs in a format that is much easier to w= ork with, while the xhtml it produces along with pass-thru xml can be handl= ed via the Ruby code.



--
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_2129_1523207878.1410415489491--