Received: from mail-oi0-f59.google.com ([209.85.218.59]:34534) by stodi.digitalkingdom.org with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZlKfk-0005LE-Mo for lojban-list-archive@lojban.org; Sun, 11 Oct 2015 10:45:34 -0700 Received: by oiao187 with SMTP id o187sf5293121oia.1 for ; Sun, 11 Oct 2015 10:44:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=ie0281vBQr/HRFyRaNM38g+rl5pL9vENu3HehGqJJCc=; b=mxaqhaAEnSyrihev9t+80HM0xJ/+r0cWjg9UJncluOxk8E9zZQbcjNzz6bx2ehiU5Z YHefN7y+vwl40l+6BgPk0oFLFcLUrFGauHl18V+TE3G0ikI/EL2wbkgw/Sohx0o1EPZt a0HPv0cpqW3Gqb4rbnQvyO5dVDzJKqGZODQGY+zCFT0SUyGG6gTTyrM+vbEYPhtm7aHT AMpR97/hGVHB/9grGpqjmjry3rOicrKLLVvjTHcLtldaJYjdCf9eNF5TbCyLCi2d0aAc +egFxeFGm3CTEYSvovSmnqvBzheI2zyU6wy4haMaFuApwKsjGFX1WBpUydequYXrq8dn 0d4g== X-Received: by 10.50.142.9 with SMTP id rs9mr95582igb.6.1444585471057; Sun, 11 Oct 2015 10:44:31 -0700 (PDT) X-BeenThere: lojban@googlegroups.com Received: by 10.50.79.169 with SMTP id k9ls973914igx.41.gmail; Sun, 11 Oct 2015 10:44:30 -0700 (PDT) X-Received: by 10.107.26.84 with SMTP id a81mr20510518ioa.6.1444585470761; Sun, 11 Oct 2015 10:44:30 -0700 (PDT) Received: from stodi.digitalkingdom.org (mail.digitalkingdom.org. [173.13.139.236]) by gmr-mx.google.com with ESMTPS id wl2si1056404pab.1.2015.10.11.10.44.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Oct 2015 10:44:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rlpowell@digitalkingdom.org designates 173.13.139.236 as permitted sender) client-ip=173.13.139.236; Received: from rlpowell by stodi.digitalkingdom.org with local (Exim 4.85) (envelope-from ) id 1ZlKfe-0005L9-34 for lojban@googlegroups.com; Sun, 11 Oct 2015 10:44:30 -0700 Date: Sun, 11 Oct 2015 10:44:30 -0700 From: Robin Lee Powell To: lojban@googlegroups.com Subject: Re: [lojban] Re: CLLv1.1: javascript challenge, help needed Message-ID: <20151011174429.GK13991@stodi.digitalkingdom.org> Mail-Followup-To: lojban@googlegroups.com References: <20150920031516.GR32521@stodi.digitalkingdom.org> <20151006202457.GV7442@stodi.digitalkingdom.org> <20151008080446.GB7442@stodi.digitalkingdom.org> <20151008173522.GB13991@stodi.digitalkingdom.org> <20151011032814.GG13991@stodi.digitalkingdom.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Original-Sender: rlpowell@digitalkingdom.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of rlpowell@digitalkingdom.org designates 173.13.139.236 as permitted sender) smtp.mailfrom=rlpowell@digitalkingdom.org Reply-To: lojban@googlegroups.com Precedence: list Mailing-list: list lojban@googlegroups.com; contact lojban+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: lojban@googlegroups.com X-Google-Group-Id: 1004133512417 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Score: -1.9 (-) X-Spam_score: -1.9 X-Spam_score_int: -18 X-Spam_bar: - *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.