CLL: A princely gift; now would be a good time to help

117 views
Skip to first unread message

Robin Lee Powell

unread,
Sep 22, 2014, 5:02:20 AM9/22/14
to loj...@googlegroups.com

The PDF in http://vrici.lojban.org/~rlpowell/media/public/cll_build/
is what I did on my summer vacation (literally). IGNORE the color
of the large colored blocks; they're debugging code I haven't
removed yet.

You'll note that it's some tweaking away from publishable. Be
impressed.

The other things in there are *the same HTML* processed with a
display-style CSS; the PDF is with a paged media CSS using the free
version of http://www.princexml.com/

All of this is now in the docbook-prince branch of
https://github.com/lojban/cll

Working on the tweaking I mentioned should just be a matter of
altering either the chapters/ code or scripts/paged.css as
appropriate, and running: ./cll_build -T prince_pdf_web (although in
practice I suggest testing things on ./cll_build -c full ; see the
readme).

The required software now is just docbook itself (on my Fedora
system that's just "sudo yum install docbook5-style-xsl"), and the
free/test version of Prince, and probably the DejaVu font, so it
should be easy for people to help.

Have at.

--
http://intelligence.org/ : Our last, best hope for a fantastic future.
.i ko na cpedu lo nu stidi vau loi jbopre .i dafsku lu na go'i li'u .e
lu go'i li'u .i ji'a go'i lu na'e go'i li'u .e lu go'i na'i li'u .e
lu no'e go'i li'u .e lu to'e go'i li'u .e lu lo mamta be do cu sofybakni li'u

Gleki Arxokuna

unread,
Sep 22, 2014, 5:41:17 AM9/22/14
to loj...@googlegroups.com
'text-align: justify' is immediately what comes to mind.

--
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+un...@googlegroups.com.
To post to this group, send email to loj...@googlegroups.com.
Visit this group at http://groups.google.com/group/lojban.
For more options, visit https://groups.google.com/d/optout.

TR NS

unread,
Sep 22, 2014, 7:59:26 AM9/22/14
to loj...@googlegroups.com


On Monday, September 22, 2014 5:02:20 AM UTC-4, Robin Powell wrote:

The PDF in http://vrici.lojban.org/~rlpowell/media/public/cll_build/
is what I did on my summer vacation (literally).  IGNORE the color
of the large colored blocks; they're debugging code I haven't
removed yet.

You'll note that it's some tweaking away from publishable.  Be
impressed.

The other things in there are *the same HTML* processed with a
display-style CSS; the PDF is with a paged media CSS using the free
version of http://www.princexml.com/

All of this is now in the docbook-prince branch of
https://github.com/lojban/cll

Working on the tweaking I mentioned should just be a matter of
altering either the chapters/ code or scripts/paged.css as
appropriate, and running: ./cll_build -T prince_pdf_web (although in
practice I suggest testing things on ./cll_build -c full ; see the
readme).

The required software now is just docbook itself (on my Fedora
system that's just "sudo yum install docbook5-style-xsl"), and the
free/test version of Prince, and probably the DejaVu font, so it
should be easy for people to help.

Have at.


I am a little confused. What has changed? If docbook is still being used, how did bringing Prince into the picture help?

Robin Lee Powell

unread,
Sep 22, 2014, 1:27:13 PM9/22/14
to loj...@googlegroups.com
On Mon, Sep 22, 2014 at 04:59:26AM -0700, TR NS wrote:
>
>
> On Monday, September 22, 2014 5:02:20 AM UTC-4, Robin Powell wrote:
> >
[snip]
> > The required software now is just docbook itself (on my Fedora
> > system that's just "sudo yum install docbook5-style-xsl"), and
> > the free/test version of Prince, and probably the DejaVu font,
> > so it should be easy for people to help.
>
> I am a little confused. What has changed? If docbook is still
> being used, how did bringing Prince into the picture help?

The problem was always getting from docbook to PDF, and more
specifically getting from docbook to both PDF and HTML without
duplicating a *ton* of work. The previous method was to turn the
docbook into HTML and then do a ton of CSS customization work, *and
also* turn docbook into LaTeX via dblatex and then do a ton of LaTeX
customization work, frequently on exactly the same issues as the
CSS.

With Prince, we turn the docbook into HTML, and then use one CSS for
display and one for print. The two CSS files even share much of
their content.

(This isn't actually *quite* true; the docbook -> HTML step has
slightly different config values for the display run vs. the print
run, but the differences are so minor as to not really be worth
consideration.)

Robin Lee Powell

unread,
Sep 22, 2014, 1:29:52 PM9/22/14
to loj...@googlegroups.com
On Mon, Sep 22, 2014 at 10:27:09AM -0700, Robin Lee Powell wrote:
> On Mon, Sep 22, 2014 at 04:59:26AM -0700, TR NS wrote:
> >
> >
> > On Monday, September 22, 2014 5:02:20 AM UTC-4, Robin Powell
> > wrote:
> > >
> [snip]
> > > The required software now is just docbook itself (on my Fedora
> > > system that's just "sudo yum install docbook5-style-xsl"), and
> > > the free/test version of Prince, and probably the DejaVu font,
> > > so it should be easy for people to help.
> >
> > I am a little confused. What has changed? If docbook is still
> > being used, how did bringing Prince into the picture help?
>
> The problem was always getting from docbook to PDF, and more
> specifically getting from docbook to both PDF and HTML without
> duplicating a *ton* of work. The previous method was to turn the
> docbook into HTML and then do a ton of CSS customization work,
> *and also* turn docbook into LaTeX via dblatex and then do a ton
> of LaTeX customization work, frequently on exactly the same issues
> as the CSS.
>
> With Prince, we turn the docbook into HTML, and then use one CSS
> for display and one for print. The two CSS files even share much
> of their content.

Actually, the more important part: people who want to help now only
need to be able to work with CSS, which MANY MANY people here are
already familiar with, or the raw docbook, which is just a bunch of
tags like HTML just with different names.

So the pool of people who can potentially help out just increased
dramatically.

Robin Lee Powell

unread,
Sep 22, 2014, 1:37:34 PM9/22/14
to loj...@googlegroups.com
Thanks for your enthusiasm. -_- Done.

Remo Dentato

unread,
Sep 22, 2014, 3:31:35 PM9/22/14
to lojban
Hi Robin. Thanks for all this. Just one question: changing the page layout would just be a matter of CSS?

I mean, say one wants to have bigger margins or a different font for the headings, changing the CSS is all one has to do or there is more more work?


Robin Lee Powell

unread,
Sep 22, 2014, 3:54:24 PM9/22/14
to loj...@googlegroups.com
Just CSS. That's the awesome.

The LLG is going to have to pay $500-$1000 for this, but I consider
that well worth being able to answer your question the way I did.

la durka

unread,
Sep 24, 2014, 3:46:14 PM9/24/14
to loj...@googlegroups.com


El lunes, 22 de septiembre de 2014 05:02:20 UTC-4, Robin Powell escribió:

The PDF in http://vrici.lojban.org/~rlpowell/media/public/cll_build/
is what I did on my summer vacation (literally).  IGNORE the color
of the large colored blocks; they're debugging code I haven't
removed yet.

You'll note that it's some tweaking away from publishable.  Be
impressed.

Nice work! Thank you for doing this! I'll see if I can get docbook set up on my machine.
 

Robin Lee Powell

unread,
Sep 24, 2014, 4:17:15 PM9/24/14
to loj...@googlegroups.com
On Wed, Sep 24, 2014 at 12:46:14PM -0700, la durka wrote:
>
>
> El lunes, 22 de septiembre de 2014 05:02:20 UTC-4, Robin Powell
> escribió:
> >
> >
> > The PDF in
> > http://vrici.lojban.org/~rlpowell/media/public/cll_build/
> > <http://www.google.com/url?q=http%3A%2F%2Fvrici.lojban.org%2F~rlpowell%2Fmedia%2Fpublic%2Fcll_build%2F&sa=D&sntz=1&usg=AFQjCNF544sL1YEkL1I7JUA-lL53cdHeSw>
> > is what I did on my summer vacation (literally). IGNORE the
> > color of the large colored blocks; they're debugging code I
> > haven't removed yet.
> >
> > You'll note that it's some tweaking away from publishable. Be
> > impressed.
> >
>
> Nice work! Thank you for doing this! I'll see if I can get docbook
> set up on my machine.

Do also feel free to just work with the HTML and CSS and Prince.
You can get an updated copy of the generated HTML from me at any
time (pretty much) in IRC, and the CSS is in github.
Reply all
Reply to author
Forward
0 new messages