[NTG-context] [font-chk.lua] missing glyph tracker

2013-06-20 Thread Philipp Gesang
Hi Hans,

in font-chk.lua, the function checkers.missing fails to assign
the var “lastfont”, leading to a meaningless test for equivalence
with “font”. See patch below.

Also, may I ask you to include the unicode character in the
tracker message? This would make the output more legible, imo.
Something like this (line 71):

-report_fonts("char %U in font %a with id %a: 
%s",char,tfmdata.properties.fullname,font,message)
+report_fonts("char %U (%s) in font %a with id %a: 
%s",char,utf.char(char),tfmdata.properties.fullname,font,message)

Best regards,
Philipp




--- font-chk.lua.orig   2013-06-20 13:46:56.282164831 +0200
+++ font-chk.lua2013-06-20 13:47:15.224965072 +0200
@@ -210,6 +210,7 @@
 local char = n.char
 if font ~= lastfont then
 characters = fontcharacters[font]
+lastfont = font
 end
 if not characters[char] and is_character[chardata[char].category] then
 if action == "remove" then



pgpsgST8ED3e6.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Failure building standalone

2013-06-20 Thread hwitloc


I tried building the standalone but ran into a snag.

Here is the error message display when I ran "first-setup.sh":


 sh ./first-setup.sh --modules=all --engine=luatex --context=current
receiving incremental file list
rsync: change_dir "/setup/cygwin" (in minimals) failed: No such file or 
directory (2)

sent 4 bytes  received 8 bytes  3.43 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 
23) at main.c(1508) [Receiver=3.0.7]

mtxrun  | unknown script './bin/mtx-update.lua'




I take this to mean it can't change to Context's /setup/bin

The ... setup/cygwin directories are in my local build directory is in   
/usr/local/context
and not located off of root /

Is this because the cygwin build is out-of-date or not supported anymore?

Regards



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Failure building standalone

2013-06-20 Thread Mojca Miklavec
On Thu, Jun 20, 2013 at 3:18 PM,   wrote:
>
>
> I tried building the standalone but ran into a snag.
>
> Here is the error message display when I ran "first-setup.sh":
> 
>
>  sh ./first-setup.sh --modules=all --engine=luatex --context=current
> receiving incremental file list
> rsync: change_dir "/setup/cygwin" (in minimals) failed: No such file or 
> directory (2)
>
> sent 4 bytes  received 8 bytes  3.43 bytes/sec
> total size is 0  speedup is 0.00
> rsync error: some files/attrs were not transferred (see previous errors) 
> (code 23) at main.c(1508) [Receiver=3.0.7]
>
> mtxrun  | unknown script './bin/mtx-update.lua'
>
> 
>
>
> I take this to mean it can't change to Context's /setup/bin

It can change to http://minimals.contextgarden.net/setup/cygwin (or
rather: it's rsync equivalent).

Someone started providing the binaries, but later gave up.

However, recent posts seem to suggest that normal windows binaries
should work as well.

> The ... setup/cygwin directories are in my local build directory is in   
> /usr/local/context
> and not located off of root /
>
> Is this because the cygwin build is out-of-date or not supported anymore?

It's kind of not-supported because nobody was willing to inspect how
to build the binaries, but a few days ago I got reports that it should
work.

Can you please try to fetch first-setup.sh once more and try again?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [font-chk.lua] missing glyph tracker

2013-06-20 Thread Hans Hagen

On 6/20/2013 1:59 PM, Philipp Gesang wrote:


-report_fonts("char %U in font %a with id %a: 
%s",char,tfmdata.properties.fullname,font,message)
+report_fonts("char %U (%s) in font %a with id %a: 
%s",char,utf.char(char),tfmdata.properties.fullname,font,message)


%C does that, so

report_fonts("char %C in font %a with id %a: %s", char, 
tfmdata.properties.fullname, font, message)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [font-chk.lua] missing glyph tracker

2013-06-20 Thread Philipp Gesang
·

> On 6/20/2013 1:59 PM, Philipp Gesang wrote:
> 
> >-report_fonts("char %U in font %a with id %a: 
> >%s",char,tfmdata.properties.fullname,font,message)
> >+report_fonts("char %U (%s) in font %a with id %a: 
> >%s",char,utf.char(char),tfmdata.properties.fullname,font,message)
> 
> %C does that, so

Very nice! “%C” isn’t in the list in util-str.lua. Btw. are the
formatters stable yet?

Many thanks,
Philipp



> report_fonts("char %C in font %a with id %a: %s", char, 
> tfmdata.properties.fullname, font, message)
> 
> Hans
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpu7fdLiAyFd.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Failure building standalone

2013-06-20 Thread hwitloc

Thanks  Mojca.   Re-running the command today got me a little further.  Thank 
you.

The problem encounted now is:


 sh ./first-setup.sh --modules=all --engine=luatex --context=current
receiving incremental file list

sent 64 bytes  received 322 bytes  85.78 bytes/sec
total size is 10993585  speedup is 28480.79
env: mtxrun: Permission denied



I explicity set the permissions to allow me execute access, but script fails 
toward the end.
But, it looks lke the sh script itself is chaning the perameters.  Or else my 
setup is intentionally tricking me.


Mojca Miklavec  wrote:

> On Thu, Jun 20, 2013 at 3:18 PM,   wrote:
> >
> >
> > I tried building the standalone but ran into a snag.
> >
> > Here is the error message display when I ran "first-setup.sh":
> > 
> >
> >  sh ./first-setup.sh --modules=all --engine=luatex --context=current
> > receiving incremental file list
> > rsync: change_dir "/setup/cygwin" (in minimals) failed: No such file or 
> > directory (2)
> >
> > sent 4 bytes  received 8 bytes  3.43 bytes/sec
> > total size is 0  speedup is 0.00
> > rsync error: some files/attrs were not transferred (see previous errors) 
> > (code 23) at main.c(1508) [Receiver=3.0.7]
> >
> > mtxrun  | unknown script './bin/mtx-update.lua'
> >
> > 
> >
> >
> > I take this to mean it can't change to Context's /setup/bin
> 
> It can change to http://minimals.contextgarden.net/setup/cygwin (or
> rather: it's rsync equivalent).
> 
> Someone started providing the binaries, but later gave up.
> 
> However, recent posts seem to suggest that normal windows binaries
> should work as well.
> 
> > The ... setup/cygwin directories are in my local build directory is in   
> > /usr/local/context
> > and not located off of root /
> >
> > Is this because the cygwin build is out-of-date or not supported anymore?
> 
> It's kind of not-supported because nobody was willing to inspect how
> to build the binaries, but a few days ago I got reports that it should
> work.
> 
> Can you please try to fetch first-setup.sh once more and try again?
> 
> Mojca
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [font-chk.lua] missing glyph tracker

2013-06-20 Thread Hans Hagen

On 6/20/2013 4:53 PM, Philipp Gesang wrote:

·


On 6/20/2013 1:59 PM, Philipp Gesang wrote:


-report_fonts("char %U in font %a with id %a: 
%s",char,tfmdata.properties.fullname,font,message)
+report_fonts("char %U (%s) in font %a with id %a: 
%s",char,utf.char(char),tfmdata.properties.fullname,font,message)


%C does that, so


Very nice! “%C” isn’t in the list in util-str.lua. Btw. are the
formatters stable yet?


yes

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] two questions on paragraphed linenotes

2013-06-20 Thread Hans Hagen

On 6/19/2013 9:45 PM, Pablo Rodríguez wrote:

Dear Hans,

I'd like to introduce a friend into composing critical editions using
ConTeXt. I have made some tests myself, and I'd like to know a couple
of issues about paragraphed linenotes before start explaining.

The first issue is about note split. When I started using ConTeXt, I
realized that footnotes might be placed in the next page (unless
split=verystrict is set). Fearing the same results in linenotes, I set
this, but this lead to wrong separation between body and notes (at
least on my examples). My question is: does the default split value
for paragraphed linenotes keep all notes in the same page?

The second question is on the space before linenotes that separates
from text body. With your fix from last week, things have improved a
lot. You told me is tricky. If you allow me a (naive) question:
wouldn't it be possible that ConTeXt would check whether body lines
respect the before distance of the first paragraphed linenotes and move
as many lines that don't respect this distance to the next page?

There are another issues. I'd love to use ConTeXt for critical
editions. But I need to know both issues first.


linenotes are just notes so no fundamental difference apart from tricky 
referencing


paragraph nodes are somewhat complex because we need to fake vertical 
height while adding horizontal content


the possibilities and limitations are mostly related to limitations in 
tex itself


of course i'll do my best to bypass/correct problems when possible using 
lua magic


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Documenting \startchapter etc.

2013-06-20 Thread Gareth Jones
Hi all,

I’m new to ConTeXt, having used LaTeX for the past decade (although
nothing particularly technical).  I’m quickly learning that ConTeXt
MkIV is a rapidly moving target, and the documentation has fallen a
way behind…

So, while I’m gradually learning, I’m going to make an effort to
update the Wiki.  My first real contribution is the page about the new
MkIV sectioning commands
(http://wiki.contextgarden.net/Command/startsection and
http://wiki.contextgarden.net/Titles#New_MkIV_Sectioning).

Since I’m new to this and Wiki-editing, I’d appreciate it if someone
more knowledgeable could give the pages a quick look over to make sure
I’m not misleading people with false information, and maybe add any
parameters that I’ve missed (or don’t know the meaning of like ‘label’
and ‘marking’).

Cheers, and thanks for ConTeXt – so far I like it a lot better than
LaTeX or any other system I’ve tried!

Gareth
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Documenting \startchapter etc.

2013-06-20 Thread Hans Hagen

On 6/20/2013 8:07 PM, Gareth Jones wrote:

Hi all,

I’m new to ConTeXt, having used LaTeX for the past decade (although
nothing particularly technical).  I’m quickly learning that ConTeXt
MkIV is a rapidly moving target, and the documentation has fallen a
way behind…

So, while I’m gradually learning, I’m going to make an effort to
update the Wiki.  My first real contribution is the page about the new
MkIV sectioning commands
(http://wiki.contextgarden.net/Command/startsection and
http://wiki.contextgarden.net/Titles#New_MkIV_Sectioning).

Since I’m new to this and Wiki-editing, I’d appreciate it if someone
more knowledgeable could give the pages a quick look over to make sure
I’m not misleading people with false information, and maybe add any
parameters that I’ve missed (or don’t know the meaning of like ‘label’
and ‘marking’).

Cheers, and thanks for ConTeXt – so far I like it a lot better than
LaTeX or any other system I’ve tried!



there are some examples in the test suite under sections), like


\starttext

\startstructurelevel [title=first top level]

\startstructurelevel [title=first lower level]
\startstructurelevel [title=second lower level]
\startstructurelevel [title=third lower level]
test
\stopstructurelevel
\stopstructurelevel
\stopstructurelevel

\startstructurelevel [title=first lower level]
\startstructurelevel [title=second lower level]
\startstructurelevel [title=third lower level]
test
\stopstructurelevel
\stopstructurelevel
\stopstructurelevel

\stopstructurelevel

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] slanted style in quotations: setupquotation?

2013-06-20 Thread Sander Maijers
While there is a \setupquote in a recent MkIV beta, when I try to use 
\setupquotation to set the quotation text style to slanted, this has no 
effect. Is there a neat way to do this, without redefining \quotation?

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] slanted style in quotations: setupquotation?

2013-06-20 Thread Philipp Gesang
Hi Sander,

·

> While there is a \setupquote in a recent MkIV beta, when I try to
> use \setupquotation to set the quotation text style to slanted, this
> has no effect. Is there a neat way to do this, without redefining
> \quotation?

with the default, the style and color settings apply to the
paragraph based variant only (use \startquotation|\stopquotation
to see the difference). For inline quotes you need to set the
parameter *location* to *text*, like for instance:

\definedelimitedtext [myquotes] [quotation] [
  style=slanted,
  color=red,
  location=text,
]
\starttext
  before \myquotes{lorem schmipsum} after
\stoptext

Best regards,
Philipp


pgpzQxtcD_JPI.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Documenting \startchapter etc.

2013-06-20 Thread Gareth Jones
> there are some examples in the test suite under sections)

Thanks, I’ll take a look.

Gareth
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Failure building standalone

2013-06-20 Thread Mojca Miklavec
On Thu, Jun 20, 2013 at 6:39 PM,   wrote:
>
> Thanks  Mojca.   Re-running the command today got me a little further.  Thank 
> you.
>
> The problem encounted now is:
>
> 
>  sh ./first-setup.sh --modules=all --engine=luatex --context=current
> receiving incremental file list
>
> sent 64 bytes  received 322 bytes  85.78 bytes/sec
> total size is 10993585  speedup is 28480.79
> env: mtxrun: Permission denied
>
> 
>
> I explicity set the permissions to allow me execute access, but script fails 
> toward the end.
> But, it looks lke the sh script itself is chaning the perameters.  Or else my 
> setup is intentionally tricking me.

Unless you comment out the part of first-setup.sh which syncs
./bin/mtxrun.exe, the file is going to be overwritten each time and
the file on server wasn't executable (because it usually doesn't make
any difference for windows users anyway).

I fixed the executable bits on server. Please try again.

(But please note that when we user rsync as provided by rsync in past,
binaries were broken even if the executable bit was set on the server.
We had to use "set cygwin nontsec" or something like this to overcome
the problem, or run chmod after each sync. I hope that you won't be
bitten by this, but we were.)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___