It appears I was too hasty.

I did get "wd" errors when attempting to publish but apparently most of my
attempts actually succeeded.  I see the PDFs I created last night in the
directory containing my input files.  There is a problem with one of them -
my code example seems to be missing the comments - but all were created, so
the error must be at the very end, perhaps at the point of indicating
success.

I can't tell much about the error as the debug facilities appear to be
disabled.

My code example input looks like this:

<pre>

NB.* fromToExtract: extract string between 2 character-delimiters x.
fromToExtract=: [ (]{.~]i.1{[) ]}.~[:>:]i.0{[
NB.EG 'justFlPrefix' -: ':.' fromToExtract 'File:justFlPrefix.suffix'

NB.* matiota: matrix look up first occurrence of each y in array x
matiota=: 4 : 'if. y +./ . e. ,x do. ($x)#:(,x) i. y else. $x end.'

NB.* whereDefined: where name is defined - may be "...\browser.ijs" if
session.
whereDefined=: 3 : '(4!:4{.;:y) {:: (4!:3''''),<''Source of definition not
found for '',''.'',~y'

</pre>

The output shows the lines of code but not the comments.  I can get the
comments if I put a space before the "NB." so I suspect the comment facility
is not honoring the "<pre>" tag.

The error I get with debug off is:

|domain error: wd
|       wd'winexec *',cmd

With debug on, I just get

|domain error: wd
|wd[0]

but there's no apparent stack available.  I suspect this is a locale issue
because if I change to the "ppublish" locale before setting debug on, I get
stopped (breakpoint) in "tagsplit".
Perhaps if I set debug on in one of the other locales, I could find out what
"wd" is choking on?

Anyway, I'm glad to see that I can specify PDF files in a simple text
format.


On Fri, Jan 29, 2010 at 4:56 AM, David Mitchell <[email protected]>wrote:

> I found that publish worked fine for me using the following instructions
> with
> J64-602.
>
> http://www.jsoftware.com/jwiki/Publish/Examples
>
> I set my external PDF viewer and ran this:
>
>    load 'format/publish'
>     publish jpath '~addons/format/publish/demo/master.txt'
>
> It ran and produced a well-formatted PDF file viewed in my selected PDF
> viewer.
> --
> David Mitchell
>
> On 1/28/2010 19:14, Devon McCormick wrote:
> > Bill - have you gotten "publish" to work at all?  I get an error trying
> to
> > run the demo:
> >
> >     load '~addons/publish.ijs'
> >     publish jpath '~addons/format/publish/demo/master.txt'
> > |domain error: wd
> > |       wd'winexec *',cmd
> >
> > Regards,
> >
> > Devon
> >
> > On Wed, Jan 27, 2010 at 9:59 PM, Bill Harris<
> > [email protected]>  wrote:
> >
> >> "Sherlock, Ric"<[email protected]>  writes:
> >>
> >>> Not much enlightenment here - I played with Publish a while ago but
> >>> have never used it in anger. However I noticed (and fixed) a number of
> >>> syntax errors on the wiki pages for Publish that were preventing it
> >>> from showing all the info that is there.
> >>
> >> Thanks, Ric.  I'll take a look tomorrow.
> >>
> >> Bill
> >> --
> >> Bill Harris                      http://facilitatedsystems.com/weblog/
> >> Facilitated Systems                              Everett, WA 98208 USA
> >> http://facilitatedsystems.com/                  phone: +1 425 374-1845
> >> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to