[NTG-context] new beta

2019-12-27 Thread Hans Hagen

Hi,

I uploaded an mkiv and lmtx beta (remake/cache needed).

---
1 spacekerns for own features (experimental)
---

% decouple feature from 'kern' only

\definefontfeature [TestA] [default]
\definefontfeature [TestB] [default][kern=no]
\definefontfeature [TestC] [default][kern=no,xkern=yes]

\startluacode
  fonts.handlers.otf.addfeature {
  name = "kern",
  type = "kern",
  data = {
  [" "] = { ["X"] = 4000 }
  }
  }

  fonts.handlers.otf.addfeature {
  name = "xkern",
  type = "kern",
  data = {
  [" "] = { ["X"] = 1500 }
  }
  }

\stopluacode

\starttext
\definedfont[Serif*TestA]\dorecurse{3}{#1 x x X\par}
\definedfont[Serif*TestB]\dorecurse{3}{#1 x x X\par}
\definedfont[Serif*TestC]\dorecurse{3}{#1 x x X\par}
\stoptext

---
2 hanging captions
---

% a follow up on HM request / WS discussion

\setupexternalfigures[location=default]

\setupcaption
  [figure]
  [align=tolerant]

\starttext

\startplacefigure[title={\samplefile{jojomayer}}]
  \externalfigure[hacker][width=.75\textwidth]
\stopplacefigure

\setupcaption
  [figure]
  [hang=yes]

\startplacefigure[title={\samplefile{jojomayer}}]
  \externalfigure[hacker][width=.75\textwidth]
\stopplacefigure

\stoptext

---
3 background fix in contour labels
---

% gray background was left over from testing

---
4 some stuff for offlist dev / discussion
---

% lmtx functionality related

---
5 some more documents
---

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-12-06 Thread Otared Kavian
Hi Hans,

Thanks a lot for the new beta and for having fixed the issue with luametatex 
binaries.
Everything works great with version 2019.12.06 21:40.

Best regards: OK

> On 6 Dec 2019, at 15:05, Hans Hagen  wrote:
> 
> On 12/6/2019 1:34 PM, Otared Kavian wrote:
> 
>> Is this too old? Is this file created during installation or is it contained 
>> in the zip files downloaded from Pragma's site?
> Ok, I think that there is some issue with the builder. Mojca, it looks like 
> there is no binary upload happening after a build. If needed I can revert to 
> Alan for building but maybe it's something simple.
> 
> (There are two mac variants.)
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-12-06 Thread Hans Hagen

On 12/6/2019 1:34 PM, Otared Kavian wrote:


Is this too old? Is this file created during installation or is it contained in 
the zip files downloaded from Pragma's site?
Ok, I think that there is some issue with the builder. Mojca, it looks 
like there is no binary upload happening after a build. If needed I can 
revert to Alan for building but maybe it's something simple.


(There are two mac variants.)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-12-06 Thread Otared Kavian
Hi again,

I just installed anew lmtx from Pragma website

http://lmtx.pragma-ade.nl/install-lmtx/context-osx-64.zip

and I have the same problem: the format cannot be made.
Looking at luametatex in a Terminal window, I get

-rwxr--r-- 1 kavian staff 2.7M Dec 6 13:15 
/context-osx-64/tex/texmf-osx-64/bin/luametatex*

and I cannot tell whether it is old or recent, but typing

luametatex --version 

gives among other things:

Functionality : level 20191029

Is this too old? Is this file created during installation or is it contained in 
the zip files downloaded from Pragma's site?

Thanks for any help,
Best regards: Otared K.


> 
> On 6 Dec 2019, at 06:21, Wolfgang Schuster 
>  wrote:
> 
> Otared Kavian schrieb am 06.12.2019 um 04:23:
>> Dear Hans,
>> 
>> The problem I described in my previous message comes indeed from 
>> \defineexpansion which is not defined.
>> Upon commenting out the lines 95--98 in the file « hand-ini.mkxl » that is 
>> the four lines:
>> 
>> \defineexpansion
>>   [\c!step=1,
>>\c!stretch=40,
>>\c!shrink=20]
>> 
>> I could remake the format with version 2019.12.05 18:59. Then lmtx works 
>> fine as far as my files are concerned, but I don't know if there are side 
>> effects…
>> (However, once the format is made, if I uncomment those lines then lmtx 
>> works fine, but clearly one cannot make again the format)
> 
> You Luametatex binary is too old which missed the new \adjustspacingstep 
> command shown in the error message from your previous mail.
> 
> Wolfgang
> 

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-12-06 Thread Hans Hagen

On 12/5/2019 8:28 PM, Otared Kavian wrote:

Hi Hans,

Thanks for the new features and the new release.
I could download the new installer  for MacOS which installs the latest version 
but it cannot make the formats ending with the error message which I copy below.

Best regards: OK
PS: this is the error message when installing:

tex error   > tex error on line 99 in file hand-ini.mkxl: ! Undefined 
control sequence
that means that the binary is not updated ... can this relate to the new 
osx policies?


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-12-05 Thread Wolfgang Schuster

Otared Kavian schrieb am 06.12.2019 um 04:23:

Dear Hans,

The problem I described in my previous message comes indeed from 
\defineexpansion which is not defined.
Upon commenting out the lines 95--98 in the file « hand-ini.mkxl » that is the 
four lines:

\defineexpansion
   [\c!step=1,
\c!stretch=40,
\c!shrink=20]

I could remake the format with version 2019.12.05 18:59. Then lmtx works fine 
as far as my files are concerned, but I don't know if there are side effects…
(However, once the format is made, if I uncomment those lines then lmtx works 
fine, but clearly one cannot make again the format)


You Luametatex binary is too old which missed the new \adjustspacingstep 
command shown in the error message from your previous mail.


Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-12-05 Thread Vladimir Lomov
Hello,
** Otared Kavian  [2019-12-06 04:23:28 +0100]:

> Dear Hans,
 
> The problem I described in my previous message comes indeed from
> \defineexpansion which is not defined.  Upon commenting out the lines
> 95--98 in the file « hand-ini.mkxl » that is the four lines:
 
> \defineexpansion
>   [\c!step=1,
>\c!stretch=40,
>\c!shrink=20]

That's strange. I indeed see these lines in 'hand-ini.mkxl' but I could
recreate format without problem on my Linux box (Archlinux x86_64), even
after clearing the cache and doing

  $ mtxrun --generate ; context --make

gives me working context (lmtx).

> I could remake the format with version 2019.12.05 18:59. Then lmtx
> works fine as far as my files are concerned, but I don't know if there
> are side effects… (However, once the format is made, if I uncomment
> those lines then lmtx works fine, but clearly one cannot make again
> the format)

I tried two examples with lmtx and they typeset fine.

> Best regards: OK

[...]

---
WBR, Vladimir Lomov

-- 
There is grandeur in this view of life, with its several powers, having been
originally breathed into a few forms or into one; and that, whilst this planet
has gone cycling on according to the fixed law of gravity, from so simple a
beginning endless forms most beautiful and most wonderful have been, and are
being, evolved.
-- Darwin


signature.asc
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-12-05 Thread Otared Kavian
Dear Hans,

The problem I described in my previous message comes indeed from 
\defineexpansion which is not defined.
Upon commenting out the lines 95--98 in the file « hand-ini.mkxl » that is the 
four lines:

\defineexpansion
  [\c!step=1,
   \c!stretch=40,
   \c!shrink=20]

I could remake the format with version 2019.12.05 18:59. Then lmtx works fine 
as far as my files are concerned, but I don't know if there are side effects…
(However, once the format is made, if I uncomment those lines then lmtx works 
fine, but clearly one cannot make again the format)

Best regards: OK

> On 5 Dec 2019, at 20:28, Otared Kavian  wrote:
> 
> Hi Hans,
> 
> Thanks for the new features and the new release.
> I could download the new installer  for MacOS which installs the latest 
> version but it cannot make the formats ending with the error message which I 
> copy below.
> 
> Best regards: OK
> PS: this is the error message when installing:
> 
> tex error   > tex error on line 99 in file hand-ini.mkxl: ! Undefined 
> control sequence
> 
>  ...ansion :\currentexpansion }{\adjustspacingstep 
>  \expansionparameter \c!ste...
> \define_expansion ...i \the \everydefineexpansion 
>  \let \currentexpansion \sa...
>  \syst_helpers_triple_empty_two_nop 
>\par 
> l.99 
> 
> 
> 
> 
> 
> The control sequence at the end of the top line of your error message was 
> never
> \def'ed. You can just continue as I'll forget about whatever was undefined.
> 
> 
> resolvers   | formats |
> resolvers   | formats | binary path  : 
> /context-osx-64/tex/texmf-osx-64/bin
> resolvers   | formats | format path  : 
> /context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex
> resolvers   | formats | luatex engine: luametatex
> resolvers   | formats | lua startup file : 
> /context-osx-64/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
> resolvers   | formats | context file : 
> /context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl
> resolvers   | formats | run time : 0.494 seconds
> resolvers   | formats | return value : error
> resolvers   | formats |
> system  | total runtime: 0.567 seconds of 0.623 seconds
> 
> 
>> On 5 Dec 2019, at 19:31, Hans Hagen  wrote:
>> 
>> Hi,
>> 
>> I uploaded a new lmtx beta. Hopefully the installer works ok as I redid some 
>> of the "zip" related code (simpler, smaller binary too). FWIW, the 
>> luametatex codebase is now pretty close to okay, but of course there can be 
>> bugs, but nothing thay can't be solved fast.
>> 
>> Given some earlier discussions on the list, I wonder about running context 
>> in containers and (behind the screens) web applications. Is there anything 
>> needed, mostly in the support scripts I guess, that can make that more 
>> comfortable / efficient / etc?
>> 
>> Hans
>> 
>> -
>> Hans Hagen | PRAGMA ADE
>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>  tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-12-05 Thread Otared Kavian
Hi Hans,

Thanks for the new features and the new release.
I could download the new installer  for MacOS which installs the latest version 
but it cannot make the formats ending with the error message which I copy below.

Best regards: OK
PS: this is the error message when installing:

tex error   > tex error on line 99 in file hand-ini.mkxl: ! Undefined 
control sequence

 ...ansion :\currentexpansion }{\adjustspacingstep 
  \expansionparameter \c!ste...
\define_expansion ...i \the \everydefineexpansion 
  \let \currentexpansion \sa...
 \syst_helpers_triple_empty_two_nop 
\par 
l.99 
   




The control sequence at the end of the top line of your error message was never
\def'ed. You can just continue as I'll forget about whatever was undefined.


resolvers   | formats |
resolvers   | formats | binary path  : 
/context-osx-64/tex/texmf-osx-64/bin
resolvers   | formats | format path  : 
/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex
resolvers   | formats | luatex engine: luametatex
resolvers   | formats | lua startup file : 
/context-osx-64/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
resolvers   | formats | context file : 
/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl
resolvers   | formats | run time : 0.494 seconds
resolvers   | formats | return value : error
resolvers   | formats |
system  | total runtime: 0.567 seconds of 0.623 seconds


> On 5 Dec 2019, at 19:31, Hans Hagen  wrote:
> 
> Hi,
> 
> I uploaded a new lmtx beta. Hopefully the installer works ok as I redid some 
> of the "zip" related code (simpler, smaller binary too). FWIW, the luametatex 
> codebase is now pretty close to okay, but of course there can be bugs, but 
> nothing thay can't be solved fast.
> 
> Given some earlier discussions on the list, I wonder about running context in 
> containers and (behind the screens) web applications. Is there anything 
> needed, mostly in the support scripts I guess, that can make that more 
> comfortable / efficient / etc?
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] new beta

2019-12-05 Thread Hans Hagen

Hi,

I uploaded a new lmtx beta. Hopefully the installer works ok as I redid 
some of the "zip" related code (simpler, smaller binary too). FWIW, the 
luametatex codebase is now pretty close to okay, but of course there can 
be bugs, but nothing thay can't be solved fast.


Given some earlier discussions on the list, I wonder about running 
context in containers and (behind the screens) web applications. Is 
there anything needed, mostly in the support scripts I guess, that can 
make that more comfortable / efficient / etc?


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-11-13 Thread Pablo Rodriguez
On 11/13/19 9:34 AM, Hans Hagen wrote:
> On 11/12/2019 10:20 PM, Pablo Rodriguez wrote:
>
>> LMTX has no problems with this. Could you fix this in MkIV?
>
> Can you check again?

Many thanks for your fast fix, Hans.

Everything works fine now.

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-11-13 Thread Hans Hagen

On 11/12/2019 10:20 PM, Pablo Rodriguez wrote:


LMTX has no problems with this. Could you fix this in MkIV?


Can you check again?

Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2019-11-12 Thread Pablo Rodriguez
On 11/12/19 7:50 PM, Hans Hagen wrote:
> Hi,
>
> I uploaded a new beta. Apart from some fixes, the main change in lmtx is
> that on windows most (a few exceptions) of the mechanisms that interface
> to the operating system support the internal wide character model which
> should make the lot more robust for file names, environment variables,
> command line options etc that (at the tex/lua end utf8) have characters
> other than ascii. Another improvement in lmtx is support for ancient
> type 1 fonts (like the type 1 lucidas) but that's more 'being complete'
> than a 'real need' (when such fonts are used wiping the cache is
> needed). Both these (lmtx only) patches can have unforseen (by me) side
> effects but nothing that can't be fixed fast.

Many thanks for the new beta, Hans.

I cannot find any of these documents (in MkIV, with first-setup.sh
installer):

tex/texmf-context/tex/context/interface/mkiv/i-context.pdf
tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf
tex/texmf-context/doc/context/documents/general/qrcs/setup-mapping-en.pdf

It doesn’t seem to be renamed (at least, to me).

BTW, I cannot compile this sample with MkIV :

\starttext
a
\stoptext

Here you have the error message:

tex error   > tex error on line 133 in file math-ini.mkiv:
! Undefined control sequence
l.133 \ordlimits
  \limits

LMTX has no problems with this. Could you fix this in MkIV?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] new beta

2019-11-12 Thread Hans Hagen

Hi,

I uploaded a new beta. Apart from some fixes, the main change in lmtx is 
that on windows most (a few exceptions) of the mechanisms that interface 
to the operating system support the internal wide character model which 
should make the lot more robust for file names, environment variables, 
command line options etc that (at the tex/lua end utf8) have characters 
other than ascii. Another improvement in lmtx is support for ancient 
type 1 fonts (like the type 1 lucidas) but that's more 'being complete' 
than a 'real need' (when such fonts are used wiping the cache is 
needed). Both these (lmtx only) patches can have unforseen (by me) side 
effects but nothing that can't be fixed fast.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] new beta

2019-10-11 Thread Hans Hagen

Hi,

I uploaded a new beta. Some might have noticed that stepwise some font 
support has been redone. We're talking of lmtx only here. For instance 
low level handling of color fonts as used for emoji but there are also 
other (often incomplete) fonts out there (overlay, png, svg) has become 
(on the average) a bit more efficient. It's somewhat tricky to satisfy 
viewers but at my end things work ok. It should also work in a cmyk only 
mode. As usual it's work in progress (and in this case very likely lmtx 
only).


Also some first (runtime) metafun (2) font creation support has been 
added (was always possible but it's a bit more convenient now). An 
example can be found in: meta-imp-gamesymbols.mkxl (the file can be 
processed with the 'context' command and will produce an example).


As usual imagination determines the limits of what context provides, so 
feel free to suggest more (examples). Again this is lmtx specific.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] new beta

2016-10-12 Thread Hans Hagen

Hi,

I uploaded a new beta. There is a new command \setextrafontkerns which 
is described in the fonts-mkiv manual section 8.12. probably not that 
useful but kind of fun.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] New beta and definepagebreak

2015-12-18 Thread Hans Hagen

On 12/18/2015 9:38 AM, Jan U. Hasecke wrote:

Hi all,

after updating to the new beta this doesn't work anymore.


\definepagebreak
 [pagebreak:chapter]
 [yes, header, footer]

\setuphead
 [chapter,title]
 [page=pagebreak:chapter]

\starttext

\chapter{Lorem ipsum}

\input tufte

\chapter{Dolor sit}

\input tufte

\stoptext


fixed in next upload


-
  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] New beta and definepagebreak

2015-12-18 Thread Jan U. Hasecke
Hi all,

after updating to the new beta this doesn't work anymore.


\definepagebreak
[pagebreak:chapter]
[yes, header, footer]

\setuphead
[chapter,title]
[page=pagebreak:chapter]

\starttext

\chapter{Lorem ipsum}

\input tufte

\chapter{Dolor sit}

\input tufte

\stoptext


TIA
juh
___
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] New beta has issues with maths…

2015-12-18 Thread Hans Hagen

On 12/18/2015 12:53 PM, Otared Kavian wrote:

Hi Hans,

I just installed the new beta for testing purposes. In math mode the 
exponennts, indices, and punctuations do not work properly as you may see in 
the attached files.


ok, an engine bug (something goes out of range) (math mode active 
characters magic .. side effect of packing data) .. fixed in 0.87.1


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] new beta

2015-11-20 Thread Mojca Miklavec
On 19 November 2015 at 22:29, Mojca Miklavec wrote:
> On 17 November 2015 at 11:53, Hans Hagen wrote:
>> Hi,
>>
>> There is a new beta coming but it goes in sync with a new release of luatex
>> (0.85). As there have been some fundamental changes the macros and engine
>> need to be updated in sync so when something goes wrong with an update, be
>> patient and wait till binaries are in sync with macros for your platform. By
>> the end of this week the garden should be ok.
>
> Hi,
>
> I just wanted to say that apart from maybe windows (and arm & solaris)
> all other platforms already contain the latest version of LuaTeX.
> (ChangeLog on w32tex contains a reference to 0.85, but I get a version
> from two days ago for some reason, so windows users might want to wait
> a tiny bit.)
>
> Mojca
>
> PS: "current" won't work due to incompatibility with luatex version.

Windows binaries should work by now.

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] new beta

2015-11-20 Thread Hans Hagen

On 11/20/2015 8:03 AM, Schmitz Thomas A. wrote:



On 19 Nov 2015, at 22:45, Pablo Rodriguez  wrote:

I have just updated and compilation from XML sources works fine again
(at least with the file I tested ;-)).


The problem with xml entities persists. They are not processed, but printed as 
is. I sent an example on Oct. 13.


i'll have a look at it


-
  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] new beta

2015-11-19 Thread Mojca Miklavec
On 17 November 2015 at 11:53, Hans Hagen wrote:
> Hi,
>
> There is a new beta coming but it goes in sync with a new release of luatex
> (0.85). As there have been some fundamental changes the macros and engine
> need to be updated in sync so when something goes wrong with an update, be
> patient and wait till binaries are in sync with macros for your platform. By
> the end of this week the garden should be ok.

Hi,

I just wanted to say that apart from maybe windows (and arm & solaris)
all other platforms already contain the latest version of LuaTeX.
(ChangeLog on w32tex contains a reference to 0.85, but I get a version
from two days ago for some reason, so windows users might want to wait
a tiny bit.)

Mojca

PS: "current" won't work due to incompatibility with luatex version.
___
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] new beta

2015-11-19 Thread Pablo Rodriguez
On 11/19/2015 10:29 PM, Mojca Miklavec wrote:
> On 17 November 2015 at 11:53, Hans Hagen wrote:
>> Hi,
>>
>> There is a new beta coming but it goes in sync with a new release of luatex
>> (0.85). As there have been some fundamental changes the macros and engine
>> need to be updated in sync so when something goes wrong with an update, be
>> patient and wait till binaries are in sync with macros for your platform. By
>> the end of this week the garden should be ok.
> 
> Hi,
> 
> I just wanted to say that apart from maybe windows (and arm & solaris)
> all other platforms already contain the latest version of LuaTeX.
> (ChangeLog on w32tex contains a reference to 0.85, but I get a version
> from two days ago for some reason, so windows users might want to wait
> a tiny bit.)

Many thanks, Hans and Mojca, for your excellent work.

I have just updated and compilation from XML sources works fine again
(at least with the file I tested ;-)).


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2015-11-19 Thread Schmitz Thomas A.

> On 19 Nov 2015, at 22:45, Pablo Rodriguez  wrote:
> 
> I have just updated and compilation from XML sources works fine again
> (at least with the file I tested ;-)).

The problem with xml entities persists. They are not processed, but printed as 
is. I sent an example on Oct. 13.

Thomas
___
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] new beta

2015-11-17 Thread Hans Hagen

Hi,

There is a new beta coming but it goes in sync with a new release of 
luatex (0.85). As there have been some fundamental changes the macros 
and engine need to be updated in sync so when something goes wrong with 
an update, be patient and wait till binaries are in sync with macros for 
your platform. By the end of this week the garden should be ok.


The 0.85 release will be followed by a 0.90 early next year and 0.95 for 
texlive 2016. Then at the 10th context meeting we can release 1.00. 
After that the functionality of luatex is mostly stable but we can (and 
will) play with a follow up (so 2.* version will be betas again upto a 
3.* release). We've not run out of ideas yet.


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] New beta

2015-09-02 Thread Fabrice Couvreur
Hi,
If you compile the following file with new beta, the placement of the table
and the figure is incorrect.
Thank you,
Fabrice


\definefloat
   [recipe]
   [figure]

\setupfloat
   [recipe]
   [default={right,none}]

\startsetups[table:initialize]
  \setupTABLE[start][align={middle,lohi},offset=1ex]
\stopsetups

\starttext

\placerecipe{}{\externalfigure[louvre.jpg][width=5cm]}
Le tableau ci-dessous indique le nombre d'entrées (en milliers) au musée du
Louvre :
\blank
\startmidaligned
\bTABLE[setups=table:initialize]
\bTR
\bTH  Années \eTH
\bTD  2010\eTD
\bTD  2011\eTD
\bTD  2012\eTD
\bTD 2 013\eTD
\eTR
\bTR
\bTH Entrées (en milliers) \eTH
\bTD  8\,346   \eTD
\bTD  8\,841   \eTD
\bTD  9\,720   \eTD
\bTD  9\,200   \eTD
\eTR
\eTABLE
\stopmidaligned
\blank

\stoptext
___
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] New beta

2015-09-02 Thread Fabrice Couvreur
Hi,
If you compile the following file with new beta, the placement of the table
and the figure is incorrect.
Thank you,
Fabrice


\definefloat
   [recipe]
   [figure]

\setupfloat
   [recipe]
   [default={right,none}]

\startsetups[table:initialize]
  \setupTABLE[start][align={middle,lohi},offset=1ex]
\stopsetups

\starttext

\placerecipe{}{\externalfigure[louvre.jpg][width=5cm]}
Le tableau ci-dessous indique le nombre d'entrées (en milliers) au musée du
Louvre :
\blank
\startmidaligned
\bTABLE[setups=table:initialize]
\bTR
\bTH  Années \eTH
\bTD  2010\eTD
\bTD  2011\eTD
\bTD  2012\eTD
\bTD 2 013\eTD
\eTR
\bTR
\bTH Entrées (en milliers) \eTH
\bTD  8\,346   \eTD
\bTD  8\,841   \eTD
\bTD  9\,720   \eTD
\bTD  9\,200   \eTD
\eTR
\eTABLE
\stopmidaligned
\blank

\stoptext
___
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] new beta

2015-08-03 Thread Hans Hagen

Hi,

I uploaded a new beta. The reported bidi issue with footnotes had to do 
with some unhboxing that doesn't play well with the bidi analyzers, i.e. 
in case of


new text unhboxed done text new text

the done text is already treated. I now use a slightly different 
implementation.


I also added the arabicdecimals conversion.

There is also a new feature called profiling which is very experimental 
and falls into the 'over the top' category (it's not the fastest 
mechanism around).


\setupbodyfont[dejavu]

% methods: none strict fixed|haldfixed|quaterfixed|eightsfixed
% where fixed also adapts to grid snapping

\defineprofile
  [myprofile]
  [method=quarterfixed,
   height=\strutht,
   depth=\strutdp,
   distance=3pt]

\startbuffer
\dostepwiserecurse{1}{400}{5}{just a test #1 $\frac{x}{#1}^{#1}$ and 
}done\par

\stopbuffer

\starttext

\startTEXpage[align=normal,strut=no]
\getbuffer
\stopTEXpage

\startTEXpage[align=normal,strut=no,profile=myprofile]
\getbuffer
\stopTEXpage

\enabletrackers[profiling.show]
\startTEXpage[align=normal,strut=no,profile=myprofile]
\getbuffer
\stopTEXpage
\disabletrackers[profiling.show]

\stoptext

In everyday use this feature is not that interesting but for special 
cases it might come in handy.


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] new beta - \pushbackground broken

2015-07-12 Thread Hans Hagen

On 7/12/2015 12:22 AM, Lukáš Procházka wrote:

Hello,

\pushbackground seems to be broken in the last beta - this doesn't
compile (but it did till now):


works ok here ... also, that code hasn't changed

-
  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] new beta

2015-07-11 Thread Pablo Rodriguez
On 07/11/2015 10:53 AM, Hans Hagen wrote:
 On 7/11/2015 7:17 AM, Pablo Rodriguez wrote:
 [...]
 I’m afraid that newotf crashes with this sample:
 [...]
 define crashes ... i donwloaded the font, ran mtxrun --generate and 
 remade the font database and this works:
 
  [GFS Didot Classic]

I have this font installed too and I’m afraid it gives the same error.

The fonts I meant are these ones:
http://www.greekfontsociety.gr/GFS_DIDOT_OT.zip. (GFS Didot Classic is a
slightly different font.)

With crashing I meant no PDF generation because a not found font. The
font is there (log attached):

$ fc-list GFSDidot
/usr/share/fonts/ousia/GFSDidotBoldItalic.otf: GFS Didot:style=Bold Italic
/usr/share/fonts/ousia/GFSDidotBold.otf: GFS Didot,GFS Didot Rg:style=Bold
/usr/share/fonts/ousia/GFSDidotItalic.otf: GFS Didot:style=Italic
/usr/share/fonts/ousia/GFSDidot.otf: GFS Didot:style=Regular

And if I don’t load the newotf module, the font is loaded fine:

used file   7: filename=/usr/share/fonts/ousia/GFSDidot.otf
format=otf foundname=/usr/share/fonts/ousia/GFSDidot.otf usedmethod=direct

This is weird, since if I load a non-existent font (such as
Impossibila), compilation generates a PDF file. No glyph replacement, of
course,

Sorry, but not even adding either of this options works with newotf:

tf=file:GFSDidot.otf

tf=style:regular

What am I doing wrong?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
system   callbacks  not registering frozen 'find_format_file'

open source  1  1  /home/ousia/ctxbeta/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.07.10 00:05 MKIV beta  fmt: 2015.7.11  int: english/english

system   'cont-new.mkiv' loaded
open source  2  2  /home/ousia/ctxbeta/tex/texmf-context/tex/context/base/cont-new.mkiv
resolversmodules  'newotf' is loaded
open source  3  3  m-newotf.mkiv
fonts   
fontsreplacing font loader code by experimental code
fonts   
close source 3  3  m-newotf.mkiv
close source 2  3  /home/ousia/ctxbeta/tex/texmf-context/tex/context/base/cont-new.mkiv
system   files  jobname 'a', input './a', result 'a'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  4  /home/ousia/a.tex
fontspreloading modern-designsize (math)
fontstypescripts  unknown library 'modern-designsize'
fonts'fallback modern-designsize mm 12pt' is loaded
fontspreloading modern-designsize (mono)
fonts'fallback modern-designsize tt 12pt' is loaded
fontsdefining  source file 'GFSDidot.otf' is not found
backend  xmp  using file '/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
close source 2  4  /home/ousia/a.tex
close source 1  4  /home/ousia/ctxbeta/tex/texmf-context/tex/context/base/cont-yes.mkiv

!LuaTeX error: cannot find OpenType font file for reading ()
 == Fatal error occurred, no output PDF file produced!
___
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] new beta

2015-07-11 Thread Wolfgang Schuster

Pablo Rodriguez schrieb:

On 07/11/2015 12:57 PM, Wolfgang Schuster wrote:

[...]
The font [1,2] works for me without problems.

[1] http://www.greekfontsociety.gr/pages/en_typefaces20th.html
[2] http://www.greekfontsociety.gr/pages/en_typefaces19th.html


They all work fine for me until I load:

 \usemodule[newotf]

And I don’t know what is wrong here.

Many thanks for your help,


Do you get the same problem when you use the font as main font?

\usemodule[newotf]

\definefontfamily[mainface][rm][GFS Didot]

\setupbodyfont[mainface]

\starttext
αβγ {\bf αβγ}
\stoptext

Wolfgang
___
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] new beta

2015-07-11 Thread Pablo Rodriguez
On 07/11/2015 12:57 PM, Wolfgang Schuster wrote:
 [...]
 The font [1,2] works for me without problems.
 
 [1] http://www.greekfontsociety.gr/pages/en_typefaces20th.html
 [2] http://www.greekfontsociety.gr/pages/en_typefaces19th.html

They all work fine for me until I load:

\usemodule[newotf]

And I don’t know what is wrong here.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2015-07-11 Thread Hans Hagen

On 7/11/2015 7:17 AM, Pablo Rodriguez wrote:

On 07/11/2015 01:33 AM, Hans Hagen wrote:

On 7/10/2015 5:05 PM, Thomas A. Schmitz wrote:

[...]
resolversmodules  'newotf' is not found


i had a typo in the zip maker ... that file is missing (the rest is there)

(i've send the file send in another mail to list)


Many thanks for the module file, Hans.

I’m afraid that newotf crashes with this sample:

 \definefallbackfamily
 [mainface]
 [rm]
 [GFS Didot]
 [preset=range:greek]

 \definefontfamily
 [mainface]
 [rm]
 [TeX Gyre Pagella]

 \setupbodyfont
 [mainface]

 \starttext
 αβγ
 \stoptext



define crashes ... i donwloaded the font, ran mtxrun --generate and 
remade the font database and this works:


[GFS Didot Classic]

There can be some subtle differences in names (i checked all 2000 fonts 
on my machine) which is due to the fact that we stay a bit closer to the 
originals (in the ff approach quite some juggling with names happens, 
the same is true for glyph names). We now a bit closer to the otf spec 
(i hope).


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] new beta

2015-07-11 Thread Wolfgang Schuster

Pablo Rodriguez schrieb:

On 07/11/2015 01:33 AM, Hans Hagen wrote:

On 7/10/2015 5:05 PM, Thomas A. Schmitz wrote:

[...]
resolvers  modules  'newotf' is not found

i had a typo in the zip maker ... that file is missing (the rest is there)

(i've send the file send in another mail to list)


Many thanks for the module file, Hans.

I’m afraid that newotf crashes with this sample:

 \definefallbackfamily
 [mainface]
 [rm]
 [GFS Didot]
 [preset=range:greek]

 \definefontfamily
 [mainface]
 [rm]
 [TeX Gyre Pagella]

 \setupbodyfont
 [mainface]

 \starttext
 αβγ
 \stoptext


The font [1,2] works for me without problems.

[1] http://www.greekfontsociety.gr/pages/en_typefaces20th.html
[2] http://www.greekfontsociety.gr/pages/en_typefaces19th.html

Wolfgang
___
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] new beta

2015-07-11 Thread Pablo Rodriguez
On 07/11/2015 01:26 PM, Wolfgang Schuster wrote:
 [...]
 Do you get the same problem when you use the font as main font?
 
 \usemodule[newotf]
 
 \definefontfamily[mainface][rm][GFS Didot]
 
 \setupbodyfont[mainface]
 
 \starttext
 αβγ {\bf αβγ}
 \stoptext

Yes, I do.


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2015-07-11 Thread Thomas A. Schmitz

On 07/11/2015 02:02 PM, Pablo Rodriguez wrote:

Do you get the same problem when you use the font as main font?

\usemodule[newotf]

\definefontfamily[mainface][rm][GFS Didot]

\setupbodyfont[mainface]

\starttext
αβγ {\bf αβγ}
\stoptext

Yes, I do.


Pablo



Both Wolfgang's file and your original test file compile cleanly here, 
so it must be something on your system.


Thomas
___
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] new beta

2015-07-11 Thread Wolfgang Schuster

Pablo Rodriguez schrieb:

On 07/11/2015 02:32 PM, Wolfgang Schuster wrote:

[...]
1. Does the same happen with other fonts in this folder.

2. What happens when you put the fonts in your local TeX directory (or
texmf-fonts/fonts/opentype of your context installation).


Many thanks for your replies, Thomas and Wolfgang.

My font directory /usr/share/fonts/ousia/ is actually a symlink to
/home/ousia/Documents/ousia-fonts/.

It worked fine until newotf. I replaced the symlink. Now the font
directory points to tex/texmf-fonts.

After changing this, both the sample I provided and the one from
Wolfgang work fine.

I wonder why symlinks aren’t followed in the first case.

But I’m afraid I have a problematic font:

otf reader  fatal error in file
'/home/ousia/ctxbeta/tex/texmf-fonts/ousia-fonts/Mechanica.otf':
.../ctxbeta/tex/texmf-context/tex/context/base/util-fil.lua:24: table
index is nil

I converted it from the typewritten fonts that came with txfonts.

What is wrong in the font?


It works for me when I use the Postscript files from the txfonts 
package, you need the following files:


- txbtt.afm
- txbtt.pfb
- txbttsc.afm % Only needed when you want bold smallcaps
- txbttsc.pfb % Only needed when you want bold smallcaps
- txtt.afm
- txtt.pfb
- txttsc.afm % Only needed when you want smallcaps
- txttsc.pfb % Only needed when you want smallcaps

To use them put the files in your local TeX directory
(e.g. texmf-fonts/fonts/data).

 begin example
\definefontfamily
  [txfont]
  [tt]
  [txtt]
  [bf=file:txbtt,
   it=features:{default,slanted},
   bi=features:{default,slanted}]

\setupbodyfont[txfont]

\starttext
Test {\it Text} {\bf Text} {\bi Text}
\stoptext
 end example

Wolfgang
___
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] new beta

2015-07-11 Thread Pablo Rodriguez
On 07/11/2015 05:23 PM, Wolfgang Schuster wrote:
 [...]
 It works for me when I use the Postscript files from the txfonts 
 package, you need the following files:

Many thanks for your reply, Wolfgang.

I wanted to avoid using PostScript files, but it seems that I have to
use them.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2015-07-11 Thread Pablo Rodriguez
On 07/11/2015 02:32 PM, Wolfgang Schuster wrote:
 [...]
 1. Does the same happen with other fonts in this folder.
 
 2. What happens when you put the fonts in your local TeX directory (or 
 texmf-fonts/fonts/opentype of your context installation).

Many thanks for your replies, Thomas and Wolfgang.

My font directory /usr/share/fonts/ousia/ is actually a symlink to
/home/ousia/Documents/ousia-fonts/.

It worked fine until newotf. I replaced the symlink. Now the font
directory points to tex/texmf-fonts.

After changing this, both the sample I provided and the one from
Wolfgang work fine.

I wonder why symlinks aren’t followed in the first case.

But I’m afraid I have a problematic font:

otf reader   fatal error in file
'/home/ousia/ctxbeta/tex/texmf-fonts/ousia-fonts/Mechanica.otf':
.../ctxbeta/tex/texmf-context/tex/context/base/util-fil.lua:24: table
index is nil

I converted it from the typewritten fonts that came with txfonts.

What is wrong in the font?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2015-07-11 Thread Hans Hagen

On 7/11/2015 1:15 PM, Pablo Rodriguez wrote:

On 07/11/2015 10:53 AM, Hans Hagen wrote:

On 7/11/2015 7:17 AM, Pablo Rodriguez wrote:

[...]
I’m afraid that newotf crashes with this sample:
[...]

define crashes ... i donwloaded the font, ran mtxrun --generate and
remade the font database and this works:

  [GFS Didot Classic]


I have this font installed too and I’m afraid it gives the same error.

The fonts I meant are these ones:
http://www.greekfontsociety.gr/GFS_DIDOT_OT.zip. (GFS Didot Classic is a
slightly different font.)

With crashing I meant no PDF generation because a not found font. The
font is there (log attached):

$ fc-list GFSDidot
/usr/share/fonts/ousia/GFSDidotBoldItalic.otf: GFS Didot:style=Bold Italic
/usr/share/fonts/ousia/GFSDidotBold.otf: GFS Didot,GFS Didot Rg:style=Bold
/usr/share/fonts/ousia/GFSDidotItalic.otf: GFS Didot:style=Italic
/usr/share/fonts/ousia/GFSDidot.otf: GFS Didot:style=Regular

And if I don’t load the newotf module, the font is loaded fine:

used file   7: filename=/usr/share/fonts/ousia/GFSDidot.otf
format=otf foundname=/usr/share/fonts/ousia/GFSDidot.otf usedmethod=direct

This is weird, since if I load a non-existent font (such as
Impossibila), compilation generates a PDF file. No glyph replacement, of
course,

Sorry, but not even adding either of this options works with newotf:

 tf=file:GFSDidot.otf

 tf=style:regular

What am I doing wrong?


That is a weird error as when no font is found and loaded nothing gets 
passed to the backend so this error is weird.


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] new beta

2015-07-11 Thread Hans Hagen

On 7/11/2015 4:27 PM, Pablo Rodriguez wrote:

On 07/11/2015 02:32 PM, Wolfgang Schuster wrote:

[...]
1. Does the same happen with other fonts in this folder.

2. What happens when you put the fonts in your local TeX directory (or
texmf-fonts/fonts/opentype of your context installation).


Many thanks for your replies, Thomas and Wolfgang.

My font directory /usr/share/fonts/ousia/ is actually a symlink to
/home/ousia/Documents/ousia-fonts/.

It worked fine until newotf. I replaced the symlink. Now the font
directory points to tex/texmf-fonts.

After changing this, both the sample I provided and the one from
Wolfgang work fine.

I wonder why symlinks aren’t followed in the first case.



maybe some difference in opening a file in lua or directlky in c ..

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] new beta - \pushbackground broken

2015-07-11 Thread Lukáš Procházka

Hello,

\pushbackground seems to be broken in the last beta - this doesn't compile (but 
it did till now):


\defineheadalternative
  [PartAlt]
  [renderingsetup=set:PartPage]

\startsetups[set:PartPage]
  \startmakeup[mu:PartPage]
\white
  \headnumbercontent
  \blank[2*big]
  \headtextcontent
  \stopmakeup
\stopsetups

\definemakeup
  [mu:PartPage]
  [align=middle,
   top=\vfill\vfill,
   bottom=\vfill\vfill\vfill,
  ]

\definefont[PartText][SerifBold sa 5]

% Method 1: change the values of the predefined default conversion set,
% you can use name of the sectionblock as prefix (separated by a :) to set
% the values only for a certain part (e.g. the appendix) of your document

\defineconversionset[appendix:default][A,R][n]

% Method 2: Create your own conversion set and apply it to all sections
%
% \defineconversionset[bodypart:myconversion][n,n][n]
% \defineconversionset[appendix:myconversion][A,R][n]
% \setuphead[part,chapter,section][sectionconversionset=myconversion]

\setuphead
  [part]
  [placehead=yes,
   alternative=PartAlt,
   page=right,
   header=none,
   before={\pushbackground[page]
   \setupbackgrounds[page][background=color,backgroundcolor=black]},
   after={\page\popbackground},
   bodypartlabel=MyPart:body,
   appendixlabel=MyPart:appx,
   align=middle,
   numberstyle=\bfc,
   textstyle=PartText,
  ]

\setuplabeltext[en][MyPart:body=Díl ,MyPart:appx=Dodatek ]

\starttext
  \startbodymatter
\part{My First Part}
  \input knuth
  \stopbodymatter
  \startappendices
\part{My First Appendix}
  \input tufte
  \stopappendices
\stoptext


Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Ull-Gra.test2.pdf
Description: Adobe PDF document


Ull-Gra.test22.log
Description: Binary data


Ull-Gra.test22.mkiv
Description: Binary data


Ull-Gra.test22.pdf
Description: Adobe PDF document
___
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] new beta

2015-07-10 Thread Hans Hagen

On 7/10/2015 7:13 PM, Pablo Rodriguez wrote:

On 07/10/2015 05:05 PM, Thomas A. Schmitz wrote:

On 07/09/2015 03:39 PM, Hans Hagen wrote:

Of course there will be bugs although the test suite runs without
crashing. I will use the new code on my machine but you can test it with:

\usemodule[newotf]

before \starttext (or in cont-loc.mkiv).


Hi Hans,

did the new font mechanism really make it into the beta you uploaded? I get

resolversmodules  'newotf' is not found

with

version: 2015.07.10 00:05


Hi Hans and Thomas

the module seems to be missing also in beta from 2015.07.09 15:23.

In beta from 2015.07.10 00:05 cont-loc.mkiv seems to be gone.


that one is not in the distribution ... you can create it

cont-new.mkiv : in distribution (patch file)
cont-loc.mkiv : local file (persistent, not replaced)
cont-exp.mkiv : experimental code (on my machine)

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
-
%D \module
%D   [   file=m-newotf,
%Dversion=2015.07.08,
%D  title=\CONTEXT\ Extra Modules,
%D   subtitle=Experimental OTF Loader,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA ADE \ \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D This module will go away as soon as we use the new loader code by default.
%D That will happen after extensive testing. Generic support will happen after
%D that.

\unprotect

\startluacode
local files = {
font-otr, font-cff, font-ttf, font-dsp, font-oup,
font-otl, font-ots, font-oto, font-otd, font-otc,
font-osd, font-map, font-fbk, font-gds,
}

logs.report(fonts)
if tex.modes.atpragma then
logs.report(fonts,replacing font loader code by experimental code 
(at pragma))
logs.report(fonts)
for i=1,#files do require(file.join(t:/sources,files[i])) end
else
logs.report(fonts,replacing font loader code by experimental code)
logs.report(fonts)
for i=1,#files do require(files[i]) end
end
\stopluacode

\protect \endinput
___
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] new beta

2015-07-10 Thread Hans Hagen

On 7/10/2015 5:05 PM, Thomas A. Schmitz wrote:

On 07/09/2015 03:39 PM, Hans Hagen wrote:

Of course there will be bugs although the test suite runs without
crashing. I will use the new code on my machine but you can test it with:

\usemodule[newotf]

before \starttext (or in cont-loc.mkiv).


Hi Hans,

did the new font mechanism really make it into the beta you uploaded? I get

resolversmodules  'newotf' is not found


i had a typo in the zip maker ... that file is missing (the rest is there)

(i've send the file send in another mail to list)

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] new beta

2015-07-10 Thread Pablo Rodriguez
On 07/11/2015 01:33 AM, Hans Hagen wrote:
 On 7/10/2015 5:05 PM, Thomas A. Schmitz wrote:
 [...]
 resolversmodules  'newotf' is not found
 
 i had a typo in the zip maker ... that file is missing (the rest is there)
 
 (i've send the file send in another mail to list)

Many thanks for the module file, Hans.

I’m afraid that newotf crashes with this sample:

\definefallbackfamily
[mainface]
[rm]
[GFS Didot]
[preset=range:greek]

\definefontfamily
[mainface]
[rm]
[TeX Gyre Pagella]

\setupbodyfont
[mainface]

\starttext
αβγ
\stoptext


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2015-07-10 Thread Thomas A. Schmitz

On 07/09/2015 03:39 PM, Hans Hagen wrote:

Of course there will be bugs although the test suite runs without
crashing. I will use the new code on my machine but you can test it with:

\usemodule[newotf]

before \starttext (or in cont-loc.mkiv).


Hi Hans,

did the new font mechanism really make it into the beta you uploaded? I get

resolversmodules  'newotf' is not found

with

version: 2015.07.10 00:05

Thomas
___
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] new beta

2015-07-10 Thread Pablo Rodriguez
On 07/10/2015 05:05 PM, Thomas A. Schmitz wrote:
 On 07/09/2015 03:39 PM, Hans Hagen wrote:
 Of course there will be bugs although the test suite runs without
 crashing. I will use the new code on my machine but you can test it with:

 \usemodule[newotf]

 before \starttext (or in cont-loc.mkiv).
 
 Hi Hans,
 
 did the new font mechanism really make it into the beta you uploaded? I get
 
 resolversmodules  'newotf' is not found
 
 with
 
 version: 2015.07.10 00:05

Hi Hans and Thomas

the module seems to be missing also in beta from 2015.07.09 15:23.

In beta from 2015.07.10 00:05 cont-loc.mkiv seems to be gone.


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2015-07-10 Thread Dominik Gerstorfer
Hi Hans,

the new beta, 2015.07.10 00:05, messes up punctuation (.:,;) for some fonts
like Calluna. This happens with and without \usemodule[newotf]:

\definefontfamily  [default] [rm] [Calluna]\setupbodyfont [default]
\starttext
This is not, as it should be; Email: em...@example.net\stoptext

​

renders as:

This is not’ as it should be’ Email’ email@example’net

[image: Inline-Bild 1]

 ​
Dominik

2015-07-09 15:39 GMT+02:00 Hans Hagen pra...@wxs.nl:

 Hi,

 I uploaded a new beta. As a prelude to some updates / improvements in the
 font handling an experimental new otf fontloader/handler is present. This
 one is not used by default but will likely replace the current one (only
 when it has been tested enough). At that time also some other pending
 changes will happen (no functional differences, only improvements).

 There are a few advantages to the new approach:

 - Indentifying fonts goes a bit faster (some 20 times) but that is already
 in the core.
 - The mem footprint of initial loading a font is smaller.
 - Initial loading can a bit slower depending on the kind of font (no big
 deal as we cache files) and if really needed can be sped up a bit.
 - The cached instance is smaller.
 - Loading the cached font is faster (not that it was slow but still).
 - Some bits and pieces have been optimized (there is room for more but
 I might decide not to do that).
 - Extra substitution features like tlig and trep are now runtime and not
 cached.
 - Processing in node mode can be somewhat faster for complex fonts.
 - The generic font code will stay as it is for at least a while after the
 new code has become stable and the current method will stay around too.

 Of course there will be bugs although the test suite runs without
 crashing. I will use the new code on my machine but you can test it with:

 \usemodule[newotf]

 before \starttext (or in cont-loc.mkiv).

 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

 ___
___
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] new beta

2015-07-09 Thread Hans Hagen

Hi,

I uploaded a new beta. As a prelude to some updates / improvements in 
the font handling an experimental new otf fontloader/handler is present. 
This one is not used by default but will likely replace the current one 
(only when it has been tested enough). At that time also some other 
pending changes will happen (no functional differences, only improvements).


There are a few advantages to the new approach:

- Indentifying fonts goes a bit faster (some 20 times) but that is 
already in the core.

- The mem footprint of initial loading a font is smaller.
- Initial loading can a bit slower depending on the kind of font (no big 
deal as we cache files) and if really needed can be sped up a bit.

- The cached instance is smaller.
- Loading the cached font is faster (not that it was slow but still).
- Some bits and pieces have been optimized (there is room for more but
I might decide not to do that).
- Extra substitution features like tlig and trep are now runtime and not 
cached.

- Processing in node mode can be somewhat faster for complex fonts.
- The generic font code will stay as it is for at least a while after 
the new code has become stable and the current method will stay around too.


Of course there will be bugs although the test suite runs without 
crashing. I will use the new code on my machine but you can test it with:


\usemodule[newotf]

before \starttext (or in cont-loc.mkiv).

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] new beta

2015-06-15 Thread Alan BRASLAU
Note that the || in  tufte does not get handled transparently.

Alan


On Mon, 15 Jun 2015 00:21:56 +0200
Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

 On Sat, Jun 13, 2015 at 10:00 AM, Hans Hagen wrote:
  Hi,
 
  I uploaded a beta. The most significant (visible) change is in the
  way mp handles outlines. Here are some examples:
 
  % outlinetext   (text) transformations ;
  % outlinetext.d (text) (draw options) transformations ;
  % outlinetext.f (text) (fill options) transformations ;
  % outlinetext.b (text) (draw options) (fill options)
  transformations ; % outlinetext.r (text) (fill options) (draw
  options) transformations ;
 
  \starttext
 
  \startMPpage
 
  draw outlinetext.b
  (\framed[align=normal]{\input{tufte}})
  (withcolor .5white)
  (withcolor red withpen pencircle scaled 1/10)
  xsized 10cm ;
 
  \stopMPpage
 
  \startMPpage
 
  draw outlinetext.r
  (\framed[align=normal]{\input{tufte}})
  (withcolor red withpen pencircle scaled 1/10)
  (withcolor .5white)
  xsized 10cm ;
 
  \stopMPpage
 
  \startMPpage
 
  draw outlinetext.d
  (\framed[align=normal]{\input{tufte}})
  (withcolor .5white)
  xsized 10cm ;
 
  \stopMPpage
 
  \startMPpage
 
  picture p ; p := outlinetext.p(PX) ;
 
  for i within p :
  draw i withcolor red withpen pencircle scaled 1/10 ;
  endfor ;
 
  \stopMPpage
 
  \stoptext
 
 Amazing.
 
 This also makes it easy to drop a shadow, a simplified version being
 something like:
 
 \starttext
 
 \startbuffer
 \framed[align=normal]{\bf\input{tufte}}
 \stopbuffer
 
 \startMPpage
 
 draw outlinetext.b
 (\getbuffer)
 (withcolor .85white)
 (withcolor .85white withpen pencircle scaled 1)
 shifted (0.5,-0.5) ;
 
 draw outlinetext.f
 (\getbuffer)
 (withcolor .7white)
 shifted (0.5,-0.5) ;
 
 draw outlinetext.b
 (\getbuffer)
 (withcolor yellow)
 (withcolor black withpen pencircle scaled 1/10);
 
 \stopMPpage
 
 \stoptext
 
 ... but I believe one could now address this*** as well (with some
 extra hacking of shadings):
 http://tex.stackexchange.com/a/52823/6367
 ;) ;) ;)
 
 
 The font previews are also amazing.
 
 Mojca
 
 *** Some time ago someone made me a poster on a colourful background
 in Photoshop (background had both black and white elements). He used a
 white font with black outline and gray dropped shadow. I reproduced
 the content in ConTeXt, but I wasn't able to reproduce the nice shadow
 that made the text stand out better and thus more readable. In the
 printing house they asked me why I went from good to worse (ie. from
 PhotoShop to TeX) by decreasing the visibility of letters. I assume
 that doing smooth shadow behind the letters should finally be possible
 in ConTeXt now as well. [Alan will probably disagree.]

___
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] new beta

2015-06-15 Thread Hans Hagen

On 6/15/2015 9:22 AM, Alan BRASLAU wrote:

Note that the || in  tufte does not get handled transparently.


indeed ... not that i worry too much about those special catcodes now 
(something i'll look at when i need it)


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] new beta

2015-06-14 Thread Mojca Miklavec
On Sat, Jun 13, 2015 at 10:00 AM, Hans Hagen wrote:
 Hi,

 I uploaded a beta. The most significant (visible) change is in the way mp
 handles outlines. Here are some examples:

 % outlinetext   (text) transformations ;
 % outlinetext.d (text) (draw options) transformations ;
 % outlinetext.f (text) (fill options) transformations ;
 % outlinetext.b (text) (draw options) (fill options) transformations ;
 % outlinetext.r (text) (fill options) (draw options) transformations ;

 \starttext

 \startMPpage

 draw outlinetext.b
 (\framed[align=normal]{\input{tufte}})
 (withcolor .5white)
 (withcolor red withpen pencircle scaled 1/10)
 xsized 10cm ;

 \stopMPpage

 \startMPpage

 draw outlinetext.r
 (\framed[align=normal]{\input{tufte}})
 (withcolor red withpen pencircle scaled 1/10)
 (withcolor .5white)
 xsized 10cm ;

 \stopMPpage

 \startMPpage

 draw outlinetext.d
 (\framed[align=normal]{\input{tufte}})
 (withcolor .5white)
 xsized 10cm ;

 \stopMPpage

 \startMPpage

 picture p ; p := outlinetext.p(PX) ;

 for i within p :
 draw i withcolor red withpen pencircle scaled 1/10 ;
 endfor ;

 \stopMPpage

 \stoptext

Amazing.

This also makes it easy to drop a shadow, a simplified version being
something like:

\starttext

\startbuffer
\framed[align=normal]{\bf\input{tufte}}
\stopbuffer

\startMPpage

draw outlinetext.b
(\getbuffer)
(withcolor .85white)
(withcolor .85white withpen pencircle scaled 1)
shifted (0.5,-0.5) ;

draw outlinetext.f
(\getbuffer)
(withcolor .7white)
shifted (0.5,-0.5) ;

draw outlinetext.b
(\getbuffer)
(withcolor yellow)
(withcolor black withpen pencircle scaled 1/10);

\stopMPpage

\stoptext

... but I believe one could now address this*** as well (with some
extra hacking of shadings):
http://tex.stackexchange.com/a/52823/6367
;) ;) ;)


The font previews are also amazing.

Mojca

*** Some time ago someone made me a poster on a colourful background
in Photoshop (background had both black and white elements). He used a
white font with black outline and gray dropped shadow. I reproduced
the content in ConTeXt, but I wasn't able to reproduce the nice shadow
that made the text stand out better and thus more readable. In the
printing house they asked me why I went from good to worse (ie. from
PhotoShop to TeX) by decreasing the visibility of letters. I assume
that doing smooth shadow behind the letters should finally be possible
in ConTeXt now as well. [Alan will probably disagree.]
___
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] new beta

2015-06-13 Thread Hans Hagen

Hi,

I uploaded a beta. The most significant (visible) change is in the way 
mp handles outlines. Here are some examples:


% outlinetext   (text) transformations ;
% outlinetext.d (text) (draw options) transformations ;
% outlinetext.f (text) (fill options) transformations ;
% outlinetext.b (text) (draw options) (fill options) transformations ;
% outlinetext.r (text) (fill options) (draw options) transformations ;

\starttext

\startMPpage

draw outlinetext.b
(\framed[align=normal]{\input{tufte}})
(withcolor .5white)
(withcolor red withpen pencircle scaled 1/10)
xsized 10cm ;

\stopMPpage

\startMPpage

draw outlinetext.r
(\framed[align=normal]{\input{tufte}})
(withcolor red withpen pencircle scaled 1/10)
(withcolor .5white)
xsized 10cm ;

\stopMPpage

\startMPpage

draw outlinetext.d
(\framed[align=normal]{\input{tufte}})
(withcolor .5white)
xsized 10cm ;

\stopMPpage

\startMPpage

picture p ; p := outlinetext.p(PX) ;

for i within p :
draw i withcolor red withpen pencircle scaled 1/10 ;
endfor ;

\stopMPpage

\stoptext

If you say (will b edefault when no complaints):

\startMPdefinitions
let graphictext = new_graphictext ;
\stopMPdefinitions

the graphictext macro will also use this method.

If you want a nice view on a font you can say:

\useMPlibrary[outlines]

\showshape[character=a,alternative=page]

\stoptext

or for a whole font:

\setupbodyfont[pagella]
\showshape[character=all,alternative=page]

or

\definedfont[almfixed]
\showshape[character=all,alternative=page]

Another change is a much faster reload of fonts database but as that 
doesn't happen often it might go unnoticed.


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] new beta

2015-05-15 Thread Hans Hagen

Hi,

I uploaded a new beta. This is the last before a current that goes on tl 
2015.


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] new beta

2015-05-15 Thread Hans Hagen

On 5/15/2015 3:58 PM, Pablo Rodriguez wrote:


Is a sample file required?

The files that trigger the bug are rather big and I don’t have the time
right now.

I hope I can elaborate a minimal file this afternoon.


ok, probably only the text around the issue is needed

-
  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] new beta

2014-12-11 Thread Hans Hagen

Hi,

I uploaded a beta ... there is a new feature (for Alan):

\starttext

\chapter{The never ending story}

\section{An ending story}

\in{chapter}[match(complex bibliographies)]
\in{chapter}[match(never ending)]
\in{chapter}[match(ending)]
\in{chapter}[match(chapter:never ending)]
\in{chapter}[match(chapter:ending)]
\in{section}[match(section:ending)]
\in{figure}[match(float:mess)]
\in{figure}[match(figure:mess)]
\in{figure (not found)}[match(section:mess)]
\in{figure (not found)}[match(section:)]
\in{figure}[match(mess)]

\placefigure{What a mess}{}

\chapter{About complex bibliographies}

\in{chapter}[match(complex bibliographies)]
\in{chapter}[match(never ending)]
\in{figure}[match(mess)]

\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] new beta

2014-12-03 Thread Hans Hagen

Hi,

I uploaded a new beta. This one has some new font code

- the generic code now uses the context code as of 2014-12-01
- that code uses a slightly faster access method
- it works in plain but for latex the wrapper might need to be adjusted 
(as the base pass is now integrated)


The context code uses a newer font handler that has

- more extensive discretionary support (esp kerning and ligatures)
- a new injector (not faster, only cleaner and suitable for the newer 
code) that i have tested for quit a while now


If there are problems they can probably be fixed fast. A side effect can 
be that the result of runs is slightly different (more kerning and so).


I have no clue about performance but it should be ok.

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] new beta

2014-09-25 Thread Hans Hagen

Hi,

the first beta after the meeting:

There are some changes to export and epub generation (will be explained 
in a manual). The most important is that there has been some 
improvements of the math export (esp fences and stackers). More will 
follow. The export now happens in a subpath. The epub generation is for 
3.0 and has more options (like --purge, --svgmath and --rename). The svg 
math works quite ok (and is needed because it looks like only firefox 
will support mathml natively).


The grid snapper has a few new methods, min, max and box that can be 
used in cases like


\snaptogrid[min]\hbox{e.g. an image}

The external figure mechanism has a new predefined conversion. One cna 
for instance say:


\setupexternalfigures
  [order={pdf,eps,png,jpg},
   conversion=cmyk.pdf,
   method=auto]

We need it for projects where printing houses use over a decade old rips.

There are probably some more things done but I already forgot about them.

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] new beta

2014-03-07 Thread Hans Hagen

Hi,

I uploaded a new beta. Apart from the usual 'improvements' and a few 
'fulfilled wishes' the main difference is in some optimized register 
generation code: in the crited project we're dealing with tens of 
thousands of different index entries and that gave problems with 
luajittex (first of all a memory issue due to limitations in luajit, 
after that a 20 fold slowdown thanks to poor hashing) but Luigi and I 
were able to sort that out.


If you use luajittex and run into memory issues (indicated by the 
inability to load the tuc file) you can say


\setupregister[index][referencemethod=forward]

given that you never place an index before the entries are defined.

If you use luajittex and it's way too slow, then wait till the updated 
binaries are released. (Or just use luatex).


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] new beta

2014-03-07 Thread Pablo Rodriguez
On 03/07/2014 12:14 PM, Hans Hagen wrote:
 Hi,
 
 I uploaded a new beta.

Many thanks for it, Hans.

The following sample worked (partially) with previous beta:

\starttext
\startTEXpage[offset=1em]
``---'' `--'
\stopTEXpage
\stoptext

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2014-03-07 Thread Pablo Rodriguez
On 03/07/2014 12:14 PM, Hans Hagen wrote:
 Hi,
 
 I uploaded a new beta.

Hans,

I’m afraid I have just found another two issues in the new beta.

\setupdirections[bidi=on]
\definefontfamily[mainface][serif][FreeSerif]
\setupbodyfont[mainface]
\starttext
\dorecurse{5}{\index{one}A text in \index{one}classical Hebrew : בְּרֵאשִׁ֖ית
בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃​.
\page}
\completeindex
\stoptext

\setupdirections[bidi=on] seems not to work. Removing the command gives
the same results.

The index entries have no space after the comma that separate the pages.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2014-03-07 Thread Hans Hagen

On 3/7/2014 6:17 PM, Pablo Rodriguez wrote:

On 03/07/2014 12:14 PM, Hans Hagen wrote:

Hi,

I uploaded a new beta.


Hans,

I’m afraid I have just found another two issues in the new beta.

\setupdirections[bidi=on]
\definefontfamily[mainface][serif][FreeSerif]
\setupbodyfont[mainface]
\starttext
\dorecurse{5}{\index{one}A text in \index{one}classical Hebrew : בְּרֵאשִׁ֖ית
בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃​.
\page}
\completeindex
\stoptext


\setvalue{\??registersymbol n}%
  {\def\registerpageseparatorsymbol{,\space}}

\setvalue{\??registersymbol a}%
  {\def\registerpageseparatorsymbol{,\space}} % now done via conversion


-
  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] new beta

2014-03-07 Thread Hans Hagen

On 3/7/2014 6:17 PM, Pablo Rodriguez wrote:

\setupdirections[bidi=on] seems not to work. Removing the command gives
the same results.


indeed, already for a while i think ... buglet introduced during 
optimization a while ago (resulting in not enabling)


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] new beta luatex error

2013-07-31 Thread Marco Patzer
\starttext
foo
\stoptext

! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' 
(a nil value)
stack traceback:
[string \directlua ]:1: in main chunk.

Marco


signature.asc
Description: Digital 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] new beta luatex error

2013-07-31 Thread Hans Hagen

On 7/31/2013 10:56 PM, Marco Patzer wrote:

\starttext
foo
\stoptext

! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' 
(a nil value)
stack traceback:
[string \directlua ]:1: in main chunk.


not here ... maybe spac-ver.lua has not been updated at your end?


-
  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] new beta luatex error

2013-07-31 Thread Marco Patzer
On 2013–07–31 Hans Hagen wrote:

 On 7/31/2013 10:56 PM, Marco Patzer wrote:
 \starttext
 foo
 \stoptext
 
 ! LuaTeX error [string \directlua ]:1: attempt to call field 
 'resetprevdepth' (a nil value)
 stack traceback:
  [string \directlua ]:1: in main chunk.
 
 not here ... maybe spac-ver.lua has not been updated at your end?

No, it has not. spac-ver.mkiv:2099 calls resetprevdepth which is not
defined in spac-ver.lua. The file has not been updated in your zip
(so I assume it's not just me).

Marco


signature.asc
Description: Digital 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] new beta luatex error

2013-07-31 Thread Otared Kavian

On 31 juil. 2013, at 23:43, Marco Patzer home...@lavabit.com wrote:

 On 2013–07–31 Hans Hagen wrote:
 
 On 7/31/2013 10:56 PM, Marco Patzer wrote:
 \starttext
 foo
 \stoptext
 
 ! LuaTeX error [string \directlua ]:1: attempt to call field 
 'resetprevdepth' (a nil value)
 stack traceback:
 [string \directlua ]:1: in main chunk.
 
 not here ... maybe spac-ver.lua has not been updated at your end?
 
 No, it has not. spac-ver.mkiv:2099 calls resetprevdepth which is not
 defined in spac-ver.lua. The file has not been updated in your zip
 (so I assume it's not just me).
 
 Marco

I can confirm this: I get the same error message after updating to the new beta 
(ConTeXt  ver: 2013.07.31 20:23 MKIV beta  fmt: 2013.7.31  int: 
english/english).

Best regards: OK
___
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] new beta luatex error

2013-07-31 Thread Hans Hagen

On 7/31/2013 11:43 PM, Marco Patzer wrote:

On 2013–07–31 Hans Hagen wrote:


On 7/31/2013 10:56 PM, Marco Patzer wrote:

\starttext
foo
\stoptext

! LuaTeX error [string \directlua ]:1: attempt to call field 'resetprevdepth' 
(a nil value)
stack traceback:
[string \directlua ]:1: in main chunk.


not here ... maybe spac-ver.lua has not been updated at your end?


No, it has not. spac-ver.mkiv:2099 calls resetprevdepth which is not
defined in spac-ver.lua. The file has not been updated in your zip
(so I assume it's not just me).


Ah. I patched only the 'experimental' files on my system (these cannot 
yet be included in the distribution as a newer luatex is needed).


I uploaded a new zip.

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] new beta

2013-07-17 Thread Hans Hagen

On 7/16/2013 11:12 AM, Steffen Kram wrote:

Hi all,


ligature seems to fail also with beta from 2013.06.10.

But with the latest beta, pages start numbering from 2:

\starttext
\input knuth
\stoptext

Am I the only one hit by this?


I can confirm this, too. Anyone already tracked that down and has a working fix?


i uploaded a beta a few days ago ... so is it still an issue?

-
  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] new beta

2013-07-17 Thread Steffen Kram

Am 17.07.2013 um 12:23 schrieb Hans Hagen pra...@wxs.nl:

 On 7/16/2013 11:12 AM, Steffen Kram wrote:
 Hi all,
 
 ligature seems to fail also with beta from 2013.06.10.
 
 But with the latest beta, pages start numbering from 2:
 
   \starttext
   \input knuth
   \stoptext
 
 Am I the only one hit by this?
 
 I can confirm this, too. Anyone already tracked that down and has a working 
 fix?
 
 i uploaded a beta a few days ago ... so is it still an issue?

It's still the case with the version I downloaded yesterday. An extra-page is 
added after my title-page.

Steffen
___
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] new beta

2013-07-17 Thread Wolfgang Schuster

Am 17.07.2013 um 12:23 schrieb Hans Hagen pra...@wxs.nl:

 On 7/16/2013 11:12 AM, Steffen Kram wrote:
 Hi all,
 
 ligature seems to fail also with beta from 2013.06.10.
 
 But with the latest beta, pages start numbering from 2:
 
\starttext
\input knuth
\stoptext
 
 Am I the only one hit by this?
 
 I can confirm this, too. Anyone already tracked that down and has a working 
 fix?
 
 i uploaded a beta a few days ago ... so is it still an issue?

The beta in your server (2013.07.14 14:53) starts at page 1 but the context 
suite
uses a older beta (2013.07.12 19:10) which starts at page 2.

Wolfgang
___
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] new beta

2013-07-16 Thread Steffen Kram
Hi all,

 ligature seems to fail also with beta from 2013.06.10.
 
 But with the latest beta, pages start numbering from 2:
 
\starttext
\input knuth
\stoptext
 
 Am I the only one hit by this?

I can confirm this, too. Anyone already tracked that down and has a working fix?

Thanks,
Steffen
___
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] new beta

2013-07-14 Thread Philipp Gesang
···date: 2013-07-12, Friday···from: Hans Hagen···

 Hi,
 
 I uploaded a beta. There are not that many changes. Currently I
 develop in a separate branch but it might be that some changes are
 reflected in the betas, and hopefully not breaking anything.

There a copy’n’paste mistake in luatex-basics-nod.lua. See
attached diff.

Best,
Philipp


--- luatex-basics-nod.lua.orig	2013-07-14 10:32:16.197621614 +0200
+++ luatex-basics-nod.lua	2013-07-14 10:32:40.578311602 +0200
@@ -96,8 +96,8 @@
 
 -- experimental
 
-local getfield = node.getfield or function(n,tag)   return n[tag]  end end
-local setfield = node.setfield or function(n,tag,value) n[tag] = value end end
+local getfield = node.getfield or function(n,tag)   return n[tag]  end
+local setfield = node.setfield or function(n,tag,value) n[tag] = value end
 
 nodes.getfield = getfield
 nodes.setfield = setfield


pgp288EEq6k86.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] new beta

2013-07-14 Thread Philipp Gesang
···date: 2013-07-12, Friday···from: Hans Hagen···

  it might be that some changes are
 reflected in the betas, and hopefully not breaking anything.

Unhappily, it does. In the generic font loader the new “nuts”
table is a synonym for “nodes”, but it would appear that it is
also required to contain certain functions from the builtin
“node” namespace, e.g. node.copy(), node.tail() and the likes.

Failing example with ligatures:

\font\foo=file:Iwona-Regular.otf:mode=node;+liga
\foo
ffi
\bye

Best,
Philipp



pgpUIjlYwIo0Y.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] new beta

2013-07-14 Thread Pablo Rodríguez
On 14/07/13 10:53, Philipp Gesang wrote:
 ···date: 2013-07-12, Friday···from: Hans Hagen···
 
  it might be that some changes are
 reflected in the betas, and hopefully not breaking anything.
 [...]
 Failing example with ligatures:
 
 \font\foo=file:Iwona-Regular.otf:mode=node;+liga
 \foo
 ffi
 \bye

Hi Philipp,

ligature seems to fail also with beta from 2013.06.10.

But with the latest beta, pages start numbering from 2:

\starttext
\input knuth
\stoptext

Am I the only one hit by this?

Thanks,


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2013-07-14 Thread Philipp Gesang
···date: 2013-07-14, Sunday···from: Pablo Rodríguez···

 On 14/07/13 10:53, Philipp Gesang wrote:
  ···date: 2013-07-12, Friday···from: Hans Hagen···
  
   it might be that some changes are
  reflected in the betas, and hopefully not breaking anything.
  [...]
  Failing example with ligatures:
  
  \font\foo=file:Iwona-Regular.otf:mode=node;+liga
  \foo
  ffi
  \bye
 
 Hi Philipp,
 
 ligature seems to fail also with beta from 2013.06.10.
 
 But with the latest beta, pages start numbering from 2:
 
 \starttext
 \input knuth
 \stoptext
 
 Am I the only one hit by this?

Nope, can confirm.

Best,
Philipp

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


pgpkaPqEr8vMR.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] new beta

2013-07-14 Thread Philipp Gesang
···date: 2013-07-14, Sunday···from: Philipp Gesang···

 ···date: 2013-07-12, Friday···from: Hans Hagen···
 
   it might be that some changes are
  reflected in the betas, and hopefully not breaking anything.
 
 Unhappily, it does. In the generic font loader the new “nuts”
 table is a synonym for “nodes”, but it would appear that it is
 also required to contain certain functions from the builtin
 “node” namespace, e.g. node.copy(), node.tail() and the likes.
 
 Failing example with ligatures:
 
 \font\foo=file:Iwona-Regular.otf:mode=node;+liga
 \foo
 ffi
 \bye
 

Thanks for the fix. Have fun “going nuts”, then!

Best,
Philipp




pgpaGBTRyexoe.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] new beta

2013-07-14 Thread Hans Hagen

On 7/14/2013 10:37 AM, Philipp Gesang wrote:

···date: 2013-07-12, Friday···from: Hans Hagen···


Hi,

I uploaded a beta. There are not that many changes. Currently I
develop in a separate branch but it might be that some changes are
reflected in the betas, and hopefully not breaking anything.


There a copy’n’paste mistake in luatex-basics-nod.lua. See
attached diff.


that's one of the things i'm working on ... just don't update your latex 
derived files for a while; i'm going to add some experimental that will 
work ok, but might need more time for generic to work too (lower 
priority) ... after all, it's beta and not meant to be used in stable tl 
2013


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] new beta

2013-07-13 Thread Pablo Rodríguez
On 13/07/13 03:57, Otared Kavian wrote:
 On 12 juil. 2013, at 20:06, Aditya Mahajan adit...@umich.edu wrote:
 On Fri, 12 Jul 2013, Pablo Rodríguez wrote:
 On 12/07/13 19:21, Hans Hagen wrote:
 Hi,

 I uploaded a beta. There are not that many changes. Currently I develop
 in a separate branch but it might be that some changes are reflected in
 the betas, and hopefully not breaking anything.

 Thanks for the new beta, Hans.

 For me first-setup.sh still downloads the 2013.06.10.
 
 This is also my case: has something changed in first-setup.sh? 

I didn’t check that after downloading the new beta from yesterday.

first-setup.sh has just downloaded ConTeXt - 2013.06.10 22:51.


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2013-07-12 Thread Hans Hagen

Hi,

I uploaded a beta. There are not that many changes. Currently I develop 
in a separate branch but it might be that some changes are reflected in 
the betas, and hopefully not breaking anything.


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] new beta

2013-07-12 Thread Pablo Rodríguez
On 12/07/13 19:21, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta. There are not that many changes. Currently I develop 
 in a separate branch but it might be that some changes are reflected in 
 the betas, and hopefully not breaking anything.

Thanks for the new beta, Hans.

Could the two bugs with compressed linenotes be fixed? ()

Many thanks for your help,



Pablo
-- 
http://www.ousia.tk
___
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] new beta

2013-07-12 Thread Aditya Mahajan

On Fri, 12 Jul 2013, Pablo Rodríguez wrote:


On 12/07/13 19:21, Hans Hagen wrote:

Hi,

I uploaded a beta. There are not that many changes. Currently I develop
in a separate branch but it might be that some changes are reflected in
the betas, and hopefully not breaking anything.


Thanks for the new beta, Hans.


For me first-setup.sh still downloads the 2013.06.10.

Aditya___
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] new beta

2013-07-12 Thread Otared Kavian

On 12 juil. 2013, at 20:06, Aditya Mahajan adit...@umich.edu wrote:

 On Fri, 12 Jul 2013, Pablo Rodríguez wrote:
 
 On 12/07/13 19:21, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta. There are not that many changes. Currently I develop
 in a separate branch but it might be that some changes are reflected in
 the betas, and hopefully not breaking anything.
 
 Thanks for the new beta, Hans.
 
 For me first-setup.sh still downloads the 2013.06.10.

This is also my case: has something changed in first-setup.sh? 
___
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] new beta

2013-04-11 Thread Otared Kavian

On 10 avr. 2013, at 20:09, Hans Hagen pra...@wxs.nl wrote:

 Hi,
 
 An extra chapter in:
 
 http://www.pragma-ade.nl/general/manuals/about.pdf
 
 explaining abit the updated math fractions (and math styles mechanism).

Hi Hans,

Thanks for the explanations given in the above new manual about the new 
features with fractions and fences. 

However, on page 27, there is a sentence which I disagree with… 
You say there:
 « ConTEXt is always considered somewhat less math savvy than for instance 
LaTEX », 
but actually I cannot see any example of maths typesetting which cannot be done 
in ConTeXt. 
It is true that most mathematicians may not use ConTeXt, but this is because 
they are not aware of the package and, mainly, because maths journals do not 
accept yet papers typeset with ConTeXt. I hope this will change soon.

Best regards: OK
___
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] new beta

2013-04-11 Thread luigi scarso
On Thu, Apr 11, 2013 at 6:25 PM, Otared Kavian ota...@gmail.com wrote:
 However, on page 27, there is a sentence which I disagree with…
 You say there:
  « ConTEXt is always considered somewhat less math savvy than for instance 
 LaTEX »,
 but actually I cannot see any example of maths typesetting which cannot be 
 done in ConTeXt.
 It is true that most mathematicians may not use ConTeXt, but this is because 
 they are not aware of the package and, mainly, because maths journals do not 
 accept yet papers typeset with ConTeXt. I hope this will change soon.
It's true that  ConTEXt is always  considered less math savy than LaTeX
not that ConTEXt is  less math savy than LaTeX.

--
luigi
___
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] new beta

2013-04-11 Thread Peter Münster
On Thu, Apr 11 2013, luigi scarso wrote:

 It's true that  ConTEXt is always  considered less math savy than LaTeX
 not that ConTEXt is  less math savy than LaTeX.

Perhaps better: always - often ?

-- 
   Peter
___
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] new beta

2013-04-11 Thread Hans Hagen

On 4/11/2013 10:15 PM, Peter Münster wrote:

On Thu, Apr 11 2013, luigi scarso wrote:


It's true that  ConTEXt is always  considered less math savy than LaTeX
not that ConTEXt is  less math savy than LaTeX.


Perhaps better: always - often ?


Ok.

Concerning math ... in many aspects the functionality of mkii is 
available in mkiv, but the implementation is often completely different, 
which makes that we can go a step further in control.


Years ago, when he was involved in scientific publishing, Taco made sure 
that mkii had most of the features needed to deal with advanced math (at 
that time via a module that implemented some ams constructs). Eventually 
that code was normalized, extended and integrated into the Later Aditya 
added support for ams-like code too.


In mkiv nearly all had been or will be redone. Some of the accumulated 
implementation details are quite interesting (compared to the 
traditional approach) so I might wrap that up some day in a larger 
summary (chapter). I uploaded the latest hybrid.pdf to the website which 
has some explanations and I'll try to keep wrapping up in future 
chapters if About (and other documents).


If you feel that something fundamental is missing, don't hesitate to 
mention it. (Many math sub-mechanisms are relatively independent so 
adding code has not much change of breaking existing code.)


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] new beta

2013-04-10 Thread Hans Hagen

Hi,

An extra chapter in:

http://www.pragma-ade.nl/general/manuals/about.pdf

explaining abit the updated math fractions (and math styles mechanism).

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] new beta

2013-03-28 Thread Hans Hagen

Hi,

The uploaded beta has marco's ugs fixed (minus one) plus some (less 
important) pending issues in test files. The main change is that the 
root setup commands of enumerations, notes, formulas, floats, etc can 
now be used to set up the counters (was only possible by explicit setups 
e.g. per float).


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] new beta

2013-03-11 Thread Sietse Brouwer
Hi,

I chucked it in here, for lack of a better place.
http://wiki.contextgarden.net/String_Manipulation#String_formatter

I don't understand what they whitespace does: I tried to test it with
this code, and changing the number did nothing.

\starttext
\startluacode
x = 999
context(\\type{my%wpoints}, x)
context.par()
context(my %w points, x)
\stopluacode
\stoptext


And perhaps somebody could add two columns to the wiki with example
input and output?

Cheers,
Sietse

--
Sietse Brouwer -- sbbrou...@gmail.com -- +31 6 13.456.848
Thorbeckehof 101 -- 2343 DR Oegstgeest -- the Netherlands
MSN: sie...@gawab.com -- ICQ: 341232104


On 11 March 2013 00:46, Hans Hagen pra...@wxs.nl wrote:
 Hi,

 I uploaded a beta. The most important change is that the 'context' function
 now uses the formatters mechanism instead of Lua's format.

 This has several benefits. First of all it's in most cases faster (I
 measured upto 3 times) but it also permits us to support some more:

 integer  %...i   number
 integer  %...d   number
 unsigned %...u   number
 utf character%...c   number
 hexadecimal  %...x   number
 HEXADECIMAL  %...X   number
 octal%...o   number
 string   %...s   string number
 float%...f   number
 exponential  %...e   number
 exponential  %...E   number
 autofloat%...g   number
 autofloat%...G   number
 force tostring   %...S   any
 force tostring   %Q  any
 force tonumber   %N  number (strip leading zeros)
 signed number%I  number
 rounded number   %r  number
 0xhexadecimal%...h   character number
 0xHEXADECIMAL%...H   character number
 U+hexadecimal%...u   character number
 U+HEXADECIMAL%...U   character number
 points   %p  number (scaled points)
 basepoints   %b  number (scaled points)
 table concat %...t   table
 boolean (logic)  %l  boolean
 BOOLEAN  %L  boolean
 whitespace   %...w

 More info can be found in cld-mkiv.pdf. There I also explain how to create
 specific formatters and how to extend them. In the default formatter there
 are two extensions that can be used as:

 string.formatters[whatever %!tex! and %!xml!]($ 100,ab)

 or

 local mf = string.formatters[whatever %!tex! and %!xml!]

 ... mf($ 100,ab)

 or

 context(whatever %!tex! and %!xml!,$ 100,ab)



 (Someone should add that to the wiki I guess).

 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
 ___
___
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] new beta

2013-03-11 Thread Hans Hagen

On 3/11/2013 6:13 PM, Sietse Brouwer wrote:


I don't understand what they whitespace does: I tried to test it with
this code, and changing the number did nothing.


for i=0,10 do
print(string.formatters(%wsietse,i))
end
for i=9,0,-1 do
print(string.formatters(%wsietse,i))
end



-
  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] new beta

2013-03-10 Thread Hans Hagen

Hi,

I uploaded a beta. The most important change is that the 'context' 
function now uses the formatters mechanism instead of Lua's format.


This has several benefits. First of all it's in most cases faster (I 
measured upto 3 times) but it also permits us to support some more:


integer  %...i   number
integer  %...d   number
unsigned %...u   number
utf character%...c   number
hexadecimal  %...x   number
HEXADECIMAL  %...X   number
octal%...o   number
string   %...s   string number
float%...f   number
exponential  %...e   number
exponential  %...E   number
autofloat%...g   number
autofloat%...G   number
force tostring   %...S   any
force tostring   %Q  any
force tonumber   %N  number (strip leading zeros)
signed number%I  number
rounded number   %r  number
0xhexadecimal%...h   character number
0xHEXADECIMAL%...H   character number
U+hexadecimal%...u   character number
U+HEXADECIMAL%...U   character number
points   %p  number (scaled points)
basepoints   %b  number (scaled points)
table concat %...t   table
boolean (logic)  %l  boolean
BOOLEAN  %L  boolean
whitespace   %...w

More info can be found in cld-mkiv.pdf. There I also explain how to 
create specific formatters and how to extend them. In the default 
formatter there are two extensions that can be used as:


string.formatters[whatever %!tex! and %!xml!]($ 100,ab)

or

local mf = string.formatters[whatever %!tex! and %!xml!]

... mf($ 100,ab)

or

context(whatever %!tex! and %!xml!,$ 100,ab)



(Someone should add that to the wiki I guess).

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] new beta

2012-07-27 Thread Hans Hagen

On 27-7-2012 04:22, Li Yanrui (李延瑞) wrote:

2012/7/27 Hans Hagen pra...@wxs.nl:

The memory footprint should be somewhat smaller for non cjk usage. (format
generation as well as runtime) and the format file is some 10-15% smaller
now.


The fonts fallback can not work.

This is a minmal example:

\definefontsynonym[song][name:adobesongstd]
\definefontfallback[hereos][name:texgyreherosregular][0x-0x0400]
\definefontsynonym[fbsong][song][fallbacks=hereos]
\definefont[newsong][fbsong]
\starttext
\newsong 夹杂 English 的中文文本
\stoptext

When I compile it, i get an error:

error: ...text/tex/texmf-context/tex/context/base/font-col.lua:213:
Invalid field id font for node type hlist (3)


line 212 should be:

 for n in traverse_id(glyph_code,head) do

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] new beta

2012-07-27 Thread Hans Hagen

On 26-7-2012 20:36, Pablo Rodríguez wrote:


I'm not sure whether this is important, but
http://www.pragma-ade.com/general/qrcs/setup-en.pdf#page=3 contains the
date July z, 2012


fixed in next

-
  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] new beta

2012-07-26 Thread Hans Hagen

Hi,

I uploaded a beta. There is also an updated status-mkiv document:

files done644
files todo314
files pending  21 (some day)
obsolete2
total 981

So, I have some files to go (mostly lua files) before I pick up the 
column thread.


The memory footprint should be somewhat smaller for non cjk usage. 
(format generation as well as runtime) and the format file is some 
10-15% smaller now.


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] new beta

2012-07-26 Thread Pablo Rodríguez
On 26/07/12 20:12, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta. There is also an updated status-mkiv document:
 
 files done644
 files todo314
 files pending  21 (some day)
 obsolete2
 total 981
 
 So, I have some files to go (mostly lua files) before I pick up the 
 column thread.
 
 The memory footprint should be somewhat smaller for non cjk usage. 
 (format generation as well as runtime) and the format file is some 
 10-15% smaller now.

Many thanks for the new beta, Hans.

I'm not sure whether this is important, but
http://www.pragma-ade.com/general/qrcs/setup-en.pdf#page=3 contains the
date July z, 2012

Just in case it helps,


Pablo
-- 
http://www.ousia.tk
___
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] new beta

2012-07-26 Thread 李延瑞
2012/7/27 Hans Hagen pra...@wxs.nl:
 The memory footprint should be somewhat smaller for non cjk usage. (format
 generation as well as runtime) and the format file is some 10-15% smaller
 now.

The fonts fallback can not work.

This is a minmal example:

\definefontsynonym[song][name:adobesongstd]
\definefontfallback[hereos][name:texgyreherosregular][0x-0x0400]
\definefontsynonym[fbsong][song][fallbacks=hereos]
\definefont[newsong][fbsong]
\starttext
\newsong 夹杂 English 的中文文本
\stoptext

When I compile it, i get an error:

error: ...text/tex/texmf-context/tex/context/base/font-col.lua:213:
Invalid field id font for node type hlist (3)

-- 
Best regards,

Li Yanrui (李延瑞)
___
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] new beta

2012-07-16 Thread Hans Hagen

Hi,

I uploaded a new beta. The usual fixes. New is a first version of a new 
multi column handler. Pretty experimental but eventually it will replace 
the current multi column routine, which is fact is then an instance, 
think of


\definemixedcolumns
  [columns]

\unexpanded\def\setupcolumns
  {\setupmixedcolumns[columns]}

The simple columns routine is already replaced (by an instance) as is 
the multi column handler of itemize.


Hans

ps. Does someone know of a latin font that has different glyphs sets?

\definefontfeature
  [solution-demo]
  [goodies=demo, % needs version from latest beta
   featureset=default]

\definefont
  [SomeTestFont]
  [texgyrepagellaregular*solution-demo at 10pt]

\definefontsolution
  [solution]
  [goodies=demo,
   solution=experimental,
   method={normal,preroll},
 % method={normal,preroll,split},
   criterium=1]

\starttext

\enabletrackers
  [builders.paragraphs.solutions.splitters.colors]

\startsimplecolumns
  \showfontkerns
  \setuptolerance[verytolerant]
  \start  \SomeTestFont
\input zapf \par
  \stop
  \column
  \start  \SomeTestFont \startfontsolution[solution]
\input zapf \par
  \stopfontsolution \stop
\stopsimplecolumns

\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
___


Re: [NTG-context] new beta

2012-07-16 Thread Hans Hagen

On 16-7-2012 22:02, Hans Hagen wrote:

Hi,

I uploaded a new beta. The usual fixes. New is a first version of a new
multi column handler. Pretty experimental but eventually it will replace
the current multi column routine, which is fact is then an instance,
think of

\definemixedcolumns
   [columns]

\unexpanded\def\setupcolumns
   {\setupmixedcolumns[columns]}

The simple columns routine is already replaced (by an instance) as is
the multi column handler of itemize.


btw, the new simplecolumns in called boxedcolumns

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] new beta

2012-07-16 Thread Wolfgang Schuster

Am 16.07.2012 um 22:02 schrieb Hans Hagen:

 Hi,
 
 I uploaded a new beta. The usual fixes. New is a first version of a new multi 
 column handler. Pretty experimental but eventually it will replace the 
 current multi column routine, which is fact is then an instance, think of
 
 \definemixedcolumns
  [columns]
 
 \unexpanded\def\setupcolumns
  {\setupmixedcolumns[columns]}
 
 The simple columns routine is already replaced (by an instance) as is the 
 multi column handler of itemize.

Shouldn’t this

\unexpanded\def\strc_itemgroups_start_columns
  {\startitemgroupcolumns}

\unexpanded\def\strc_itemgroups_stop_columns
  {\stopitemgroupcolumns}

be changed to

\unexpanded\def\strc_itemgroups_start_columns
  {\startmixedcolumns[itemgroupcolumns]}

\unexpanded\def\strc_itemgroups_stop_columns
  {\stopmixedcolumns}

because “start” and “stop” are interface/language dependant strings.


Can you include a check (\ifinner … \fi) to change the columns method from 
“otr” to “box”
when the items are in a box, e.g. in a framedtext environment or a layer.

%\setupmixedcolumns[itemgroupcolumns][method=box]

\starttext

\startframedtext[width=max]
  \startitemize[columns,two]
\startitem One \stopitem
\startitem Two \stopitem
\startitem Three \stopitem
\startitem Four \stopitem
  \stopitemize
\stopframedtext

\stoptext

Wolfgang
___
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
___


  1   2   3   4   5   6   >