[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lojban] Re: CLLv1.1: javascript challenge, help needed



*nodnod*  It's not just you; see below.

How about an ETA for all the chapter pictures?  :D

I actually started poking at it myself, and it looks like it does
*not* expose the post-page-number-conversion data, so that the only
"supported" way to handle this problem is to use javascript to
*generate the index*.

However.

It occurs to me that this can probably be solved by walking the
index, finding the page number of all the link destinations, and
simply *deleting links that point to the same page*, before Prince's
final pass is complete; so I'm going to try that out.

On Sun, Oct 11, 2015 at 01:40:33PM -0400, Matt Arnold wrote:
> Please don't hold it up. I am flummoxed by how, if at all, Prince
> exposes index data to Javascript. The only reason I presume it
> does so, is that I know of no other purpose for Prince to use
> Javascript. I cannot estimate how long it will take me to figure
> out Prince, even to an order of magnitude.
> 
> On Sat, Oct 10, 2015 at 11:28 PM, Robin Lee Powell <
> rlpowell@digitalkingdom.org> wrote:
> 
> > Want me to extend it for a bit?
> >
> > Note that this doesn't actually happen very often; the general index
> > has 8 instances.  OTOH, the lojban words index has ... many, and the
> > examples index has a decent number as well.
> >
> > Anyways, if *you* are spending time on the CLL, I'd rather you fixed
> > all the chapter pics.  :D
> >
> > In either case, I'm willing to wait a bit, but do note that
> > currently the CLL isn't being sold by us on Amazon, so faster is
> > better.
> >
> > On Sat, Oct 10, 2015 at 09:24:01AM -0400, Matt Arnold wrote:
> > > Having investigated how to get Prince to expose its auto-generated
> > > index to Javascript, I believe the solution will not be
> > > implemented by the Monday deadline. I'll continue to learn Prince
> > > and its workflow, and apply that knowledge to CLL 1.2.
> > >
> > > -epkat
> > >
> > > On Thu, Oct 8, 2015 at 1:35 PM, Robin Lee Powell <
> > > rlpowell@digitalkingdom.org> wrote:
> > >
> > > > This problem cannot be solved at the HTML level, period.
> > > >
> > > > The problem only occurs *after* page numbers are assigned.  This
> > > > only occurs in Prince.  The HTML, by definition, has no page
> > > > numbers.
> > > >
> > > > On Thu, Oct 08, 2015 at 11:10:51AM -0400, Matt Arnold wrote:
> > > > > I am interested in the whole process of generating the book. It's
> > > > > possible that it will be easier for me to fix the generation of
> > > > > this HTML file than to fix processing the HTML into a PDF. Would
> > > > > you go ahead and set me up with an account?
> > > > >
> > > > > -epkat
> > > > >
> > > > > On Thu, Oct 8, 2015 at 4:04 AM, Robin Lee Powell <
> > > > > rlpowell@digitalkingdom.org> wrote:
> > > > >
> > > > > > vrici is my ssh server, where all the tools exist to generate the
> > > > > > intermediate stages of the CLL and so on.  I suspect you aren't
> > > > > > interested in that, but if you want to get an account there, come
> > > > > > find me on IRC.
> > > > > >
> > > > > > So, here's how you do *just* the prince step:
> > > > > >
> > > > > > Grab
> > > > > >
> > > > > >
> > > >
> > http://vrici.lojban.org/~rlpowell/media/public/cll_processed_xhtml_prince-2015-10-06.html
> > > > > > and
> > > > http://vrici.lojban.org/~rlpowell/media/public/prince_check_margins.js
> > > > > >
> > > > > > And run:
> > > > > >
> > > > > > prince -vvv --script=prince_check_margins.js
> > > > > > cll_processed_xhtml_prince-2015-10-06.html cll.pdf
> > > > > >
> > > > > > Except you'd want to modify/extend/replace prince_check_margins.js
> > > > > > with whatever you come up with.  prince_check_margins.js isn't
> > > > > > actually necessary for successful creation of the PDF anymore; I'm
> > > > > > mostly providing it as a template.
> > > > > >
> > > > > > On Wed, Oct 07, 2015 at 12:49:55PM -0700, Matt Arnold wrote:
> > > > > > > I would be happy to learn this. I downloaded and installed
> > Prince.
> > > > > > >
> > > > > > > One of the results on the second page of Google search results
> > for
> > > > > > > "lojban vrici" was vrici.lojban.org, but it's just a Fedora test
> > > > > > > page. I would like more information about what to make an account
> > > > > > > on.
> > > > > > >
> > > > > > > -epkat
> > > > > > >
> > > > > > > On Tuesday, October 6, 2015 at 4:25:00 PM UTC-4, Robin Powell
> > wrote:
> > > > > > > >
> > > > > > > > You can't actually test this without running prince; if you
> > have a
> > > > > > > > vrici account I can walk you through it.
> > > > > > > >
> > > > > > > > On Tue, Oct 06, 2015 at 07:06:32AM -0700, Matt Arnold wrote:
> > > > > > > > > I looked up the `_.uniq` function in lodash.js and I'm
> > adapting
> > > > > > > > > and simplifying it for this purpose. Who do I talk to about
> > > > > > > > > getting the data to test on it?
> > > > > > > > >
> > > > > > > > > On Saturday, September 19, 2015 at 11:15:19 PM UTC-4, Robin
> > > > Powell
> > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > On Sat, Sep 19, 2015 at 10:04:17AM -0700, TR NS wrote:
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On Friday, September 18, 2015 at 7:59:52 PM UTC-4, Robin
> > > > Powell
> > > > > > > > > > > wrote:
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >
> > http://www.princexml.com/forum/topic/3129/merge-repeated-cross-links?p=1#15171
> > > > > > > > > > > >
> > > > > > > > > > > > I probably won't take the time for this one.
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Do you just want a separate script that will go through
> > the
> > > > index
> > > > > > > > > > > and look for identical entries and eliminate all but one?
> > > > > > > > > >
> > > > > > > > > > That sounds right, yes.
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > 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.
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > 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.
> > > > > >
> > > > > > --
> > > > > > 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.
> > > > > >
> > > > >
> > > > > --
> > > > > 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.
> > > >
> > > > --
> > > > 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.
> > > >
> > >
> > > --
> > > 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.
> >
> > --
> > 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.
> >
> 
> -- 
> 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.

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