Kein-Hong Man | 5 Jun 2007 03:24
Picon

List of predefined identifiers - <at> LVis and <at> Texture

Hi all,

I am updating the list of predefined identifiers for 
Scintilla/SciTE syntax highlighting and in the expert's guide 
section 2.1, the list doesn't quite match the list of  <at> -symbol 
keywords defined in externs.h.

Specifically,  <at> LVis and  <at> Texture are in section 2.1 but not in 
externs.h. Is there something that needs to be updated or am I 
missing something? I am looking at the 3.35 sources.

--

-- 
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

James, Edward Mr DTSW/TCS | 5 Jun 2007 21:27
Picon

Is there a way to force the table of contents to an even page? (UNCLASSIFIED)

Classification: UNCLASSIFIED

Caveats: NONE

Hello,
 
My document comes out:
Page i & ii are empty.
Page 3 is first data page.
...
Page 9 is last data page.
Page 10 & 11 are table of contents.
 
I need the table of contents to be first, so I move pages 10 & 11 to in place of i & ii.
However, because Page 10 is even, the "Page number" is on the left side of the page.
 
Is there a way to force the table of contents to start on an odd page number?
This would let me move it to Pages i & ii.
 
Thank you,
 
Ed

Classification: UNCLASSIFIED

Caveats: NONE

Jeff Kingston | 5 Jun 2007 22:55
Picon
Picon

Re: List of predefined identifiers - <at> LVis and <at> Texture

> I am updating the list of predefined identifiers for
> Scintilla/SciTE syntax highlighting...

> Specifically,  <at> LVis and  <at> Texture are in section 2.1 but not in
> externs.h.

These days  <at> LVis is called  <at>  <at> V, and it is defined in externs.h.
I'm not sure that it needs highlighting though, although it
might be useful for people who want to view automatically
generated database files for some reason.  I never do.

 <at> Texture is defined in one of the standard packages, it is
not a primitive.  The relevant primitive is  <at> SetTexture.

I'll keep your email as a reminder to update that list in
Section 2.1, which seems to be a bit out of date.  I
suppose it's useful to highlight exactly the symbols defined
as primitives or in the standard packages, but it must be a
terrible job, much harder than highlighting every word
beginning with  <at> .  It might be best to instrument Lout
itself to produce the list.

Jeff

Jeff Kingston | 5 Jun 2007 23:07
Picon
Picon

Re: Is there a way to force the table of contents to an even page?


It's a bit hard to see what you are getting at, particularly
by the term "data page", which I don't understand at all.
Also, I gather you are using the Book document type, since
you have pages numbered i and ii, but in that case, it's hard
to see how page i could be empty, since it's the title page.

Anyway, I think the short answer is that there is no way to
force the table of contents of a book onto an even page, but
people generally don't need such a thing anyway.  I've just
opened three books at random, and the table of contents was
on an odd-number (right, recto) page in each case.

In such cases it is usually a lot easier to get to like what
Lout provides than it is to force it to do what it has not been
set up to do.  If getting to like it is impossible for some
reason, let us know why, and that will help us to understand
your problem.

Jeff Kingston

James, Edward Mr DTSW/TCS | 6 Jun 2007 14:51
Picon

RE: Is there a way to force the table of contents to an even page? (UNCLASSIFIED)

Classification:  UNCLASSIFIED 
Caveats: NONE

Jeff,

I am using the Book document type, with page i being the title page,
that I don't need.

I was refering to the actual desired information as the "data" pages.

I want to force the table of contents to be on an ODD page, (right,
recto), as you said.

Lout is putting it out on a left page if that is what is next. My book
is pages 1 - 9, so the table of contents prints on page 10 and 11,
rather than 11 and 12.

The customer wants the TOC as pages 1 and 2.  I can move the TOC to i
and ii and change the "data" page numbers to start with 3, but the TOC
is a left/right format instead of right/left.

Is this any clearer?

Thank you,

Ed James

> -----Original Message-----
> From: lout-users-bounces <at> lists.planix.com 
> [mailto:lout-users-bounces <at> lists.planix.com] On Behalf Of 
> jeff <at> it.usyd.edu.au
> Sent: Tuesday, June 05, 2007 5:08 PM
> To: lout-users <at> lists.planix.com
> Subject: Re: Is there a way to force the table of contents to 
> an even page?
> 
> 
> It's a bit hard to see what you are getting at, particularly
> by the term "data page", which I don't understand at all.
> Also, I gather you are using the Book document type, since
> you have pages numbered i and ii, but in that case, it's hard
> to see how page i could be empty, since it's the title page.
> 
> Anyway, I think the short answer is that there is no way to
> force the table of contents of a book onto an even page, but
> people generally don't need such a thing anyway.  I've just
> opened three books at random, and the table of contents was
> on an odd-number (right, recto) page in each case.
> 
> In such cases it is usually a lot easier to get to like what
> Lout provides than it is to force it to do what it has not been
> set up to do.  If getting to like it is impossible for some
> reason, let us know why, and that will help us to understand
> your problem.
> 
> Jeff Kingston
> 
Classification:  UNCLASSIFIED 
Caveats: NONE

Nathan Bell | 6 Jun 2007 17:23

Filter problem

Hello everyone,

I've been having trouble correctly implementing a filter in lout. I 
created and tested the filter manually, but when I went to integrate it 
into my existing document, the results were no longer what I expected. 
Here's a little example the shows the problem I'm having (works on *nix 
machines only, and yes I know this particular filter isn't very useful, 
but it's easier to demonstrate the problem):

def  <at> Works
right x
{
def  <at> Filter { cat  <at> FilterIn >  <at> FilterOut }
{
lines  <at> Break x
}  <at> Graphic {}
}

def  <at> Broken
named  <at> n {}
{
    <at> Works { <at> n}
}
 <at> SysInclude {doc}
 <at> Doc  <at> Text  <at> Begin

Test here: //
 <at> Works {(Test) show}
 <at> Broken {(Test) show}
// end test

 <at> End  <at> Text

I would expect to see TestTest as the output, but instead see Test(Test) 
show.

Any insight into what I'm doing wrong would be greatly appreciated.

slomium | 6 Jun 2007 19:45
Picon
Favicon

RE: Is there a way to force the table of contents to an even page? (UNCLASSIFIED)


James,

I've used the book format, using a modified include/book file, to create documents.  My intro pages (Title,
foreword, contents, list of figures, list of tables) all have Roman numerals and are at the beginning of
the document.  All of the sections in my document, whether they are intro pages (Roman Numerals) or
Chapters (Arabic Numerals), begin on odd pages.  If a section ends on an odd page, the page the follows is
*entirely* blank:  no titles, page number, etc.

Does the following line, in your book format, affect which page your contents begins on:

 <at> ChapterStartPages            { Odd           } # Any, Odd, or Even

Finally, i'll also point out that i have a custom title page and following page using:

 <at> OnTitlePage{ <at> Include{titlepage.txt} }
 <at> AfterTitlePage{ <at> NP  <at> Include{
"template/indexofpagechanges.txt"}  <at> NP}

Hopefully some of these ideas will help.

Thanks,
Dave

-------------- Original message ----------------------
From: "James, Edward Mr DTSW/TCS" <Ed.James2 <at> us.army.mil>
>
> Classification:  UNCLASSIFIED 
> Caveats: NONE
> 
> Jeff,
> 
> I am using the Book document type, with page i being the title page,
> that I don't need.
> 
> I was refering to the actual desired information as the "data" pages.
> 
> I want to force the table of contents to be on an ODD page, (right,
> recto), as you said.
> 
> Lout is putting it out on a left page if that is what is next. My book
> is pages 1 - 9, so the table of contents prints on page 10 and 11,
> rather than 11 and 12.
> 
> The customer wants the TOC as pages 1 and 2.  I can move the TOC to i
> and ii and change the "data" page numbers to start with 3, but the TOC
> is a left/right format instead of right/left.
> 
> Is this any clearer?
> 
> Thank you,
> 
> Ed James

Gabor Greif | 6 Jun 2007 20:12
Picon

Re: Filter problem

Am 06.06.2007 um 17:23 schrieb Nathan Bell:

> Hello everyone,
>
> I've been having trouble correctly implementing a filter in lout. I  
> created and tested the filter manually, but when I went to  
> integrate it into my existing document, the results were no longer  
> what I expected. Here's a little example the shows the problem I'm  
> having (works on *nix machines only, and yes I know this particular  
> filter isn't very useful, but it's easier to demonstrate the problem):
>
> def  <at> Works
> right x
> {
> def  <at> Filter { cat  <at> FilterIn >  <at> FilterOut }
> {
> lines  <at> Break x
> }  <at> Graphic {}
> }
>
> def  <at> Broken
> named  <at> n {}
> {
>    <at> Works { <at> n}
> }
>  <at> SysInclude {doc}
>  <at> Doc  <at> Text  <at> Begin
>
> Test here: //
>  <at> Works {(Test) show}
>  <at> Broken {(Test) show}

Hi Nathan,

my guess is that since you define a named
argument  <at> n, you should also provide
one in the usage:

 <at> Broken  <at> n {(Test) show}

Hope this helps.

	Gabor

> // end test
>
>  <at> End  <at> Text
>
> I would expect to see TestTest as the output, but instead see Test 
> (Test) show.
>
> Any insight into what I'm doing wrong would be greatly appreciated.
>

Nathan Bell | 6 Jun 2007 20:54

Filter input/parsing timing

Hello again,

Sorry about the previous "Filter problem" e-mail. I didn't work out my 
test case very well. The real problem I'm having is that lout seems to 
be passing along symbols, rather than values to a filter application. 
This is demonstrated below with the sort command (only on *nix). When 
the input to both  <at> Works and  <at> Broken is the same (ie Fred, Barney, 
Wilma) the output is expected to be the same (ie Barney, Fred, Wilma). 
However, since  <at> Broken passes the names  <at> a,  <at> b,  <at> c along to the filter 
application, the output is always the same as the input (ie Fred, 
Barney, Wilma).

Is there a way to force lout to analyze the value of  <at> a,  <at> b, and  <at> c 
before it passes them along to the filter?

def  <at> Works
right x
{
def  <at> Filter { sort -i  <at> FilterIn -o  <at> FilterOut }
{
lines  <at> Break x
}
}

def  <at> Broken
named  <at> a {}
named  <at> b {}
named  <at> c {}
{
     <at> Works { <at> a
 <at> b
 <at> c}
}

 <at> SysInclude {doc}

# <at> Include {loutdef.eim}
 <at> Doc  <at> Text  <at> Begin

// Test here: //1i
 <at> Works {Fred Flintstone
Barney Rubble
Wilma Flintstone}
//.5i Test 2 here: //1i
 <at> Broken  <at> a {Fred Flintstone}  <at> b {Barney Rubble}  <at> c {Wilma Flintstone}
//.5i end test

 <at> End  <at> Text

James, Edward Mr DTSW/TCS | 6 Jun 2007 20:28
Picon

RE: Is there a way to force the table of contents to an even page (UNCLASSIFIED)

Classification:  UNCLASSIFIED 
Caveats: NONE

Dave,

Thank you very much. " <at> ChapterStartPages { Odd }" is exactly what I
needed.

Ed James

> -----Original Message-----
> From: lout-users-bounces <at> lists.planix.com 
> [mailto:lout-users-bounces <at> lists.planix.com] On Behalf Of 
> slomium <at> att.net
> Sent: Wednesday, June 06, 2007 1:45 PM
> To: lout-users <at> lists.planix.com
> Subject: RE: Is there a way to force the table of contents to 
> an even page?(UNCLASSIFIED)
> 
> 
> James,
> 
> I've used the book format, using a modified include/book 
> file, to create documents.  My intro pages (Title, foreword, 
> contents, list of figures, list of tables) all have Roman 
> numerals and are at the beginning of the document.  All of 
> the sections in my document, whether they are intro pages 
> (Roman Numerals) or Chapters (Arabic Numerals), begin on odd 
> pages.  If a section ends on an odd page, the page the 
> follows is *entirely* blank:  no titles, page number, etc.
> 
> Does the following line, in your book format, affect which 
> page your contents begins on:
> 
>  <at> ChapterStartPages            { Odd           } # Any, Odd, or Even
> 
> Finally, i'll also point out that i have a custom title page 
> and following page using:
> 
>  <at> OnTitlePage{ <at> Include{titlepage.txt} }
>  <at> AfterTitlePage{ <at> NP  <at> Include{
> "template/indexofpagechanges.txt"}  <at> NP}
> 
> Hopefully some of these ideas will help.
> 
> Thanks,
> Dave
> 
> -------------- Original message ----------------------
> From: "James, Edward Mr DTSW/TCS" <Ed.James2 <at> us.army.mil>
> >
> > Classification:  UNCLASSIFIED 
> > Caveats: NONE
> > 
> > Jeff,
> > 
> > I am using the Book document type, with page i being the title page,
> > that I don't need.
> > 
> > I was refering to the actual desired information as the 
> "data" pages.
> > 
> > I want to force the table of contents to be on an ODD page, (right,
> > recto), as you said.
> > 
> > Lout is putting it out on a left page if that is what is 
> next. My book
> > is pages 1 - 9, so the table of contents prints on page 10 and 11,
> > rather than 11 and 12.
> > 
> > The customer wants the TOC as pages 1 and 2.  I can move 
> the TOC to i
> > and ii and change the "data" page numbers to start with 3, 
> but the TOC
> > is a left/right format instead of right/left.
> > 
> > Is this any clearer?
> > 
> > Thank you,
> > 
> > Ed James
> 
Classification:  UNCLASSIFIED 
Caveats: NONE


Gmane