Re: [NTG-context] Last standalone version suddenly will not load user module

2013-06-05 Thread Wolfgang Schuster

Am 05.06.2013 um 20:26 schrieb Jaroslav Hajtmar hajt...@gyza.cz:

 Hello ConTeXist.
 For several years, I use very often my library for processing CSV tables. 
 Even 2 months ago worked flawlessly in both versions (standalone version and 
 ConTeXt TeXLive 2012). I am update standalone version fairly often (at least 
 one times for two months).
 Unfortunately, today I found out that my latest standalone version fails to 
 load the library and the compilation is complete with an error message.
 
 I find now that I can not detect and correct a problem in the library. Maybe 
 in it any longer unsupported commands. Can someone be read from the attached 
 log file?
 Or I'll have to conserve the previous version of the standalone for my 
 ConTeXt applications?
 
 I can, if necessary, to send my module…

Please provide also a short example for the problem.

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] Last standalone version suddenly will not load user module

2013-06-05 Thread Hans Hagen

On 6/5/2013 8:26 PM, Jaroslav Hajtmar wrote:

Hello ConTeXist.
For several years, I use very often my library for processing CSV
tables. Even 2 months ago worked flawlessly in both versions (standalone
version and ConTeXt TeXLive 2012). I am update standalone version fairly
often (at least one times for two months).
Unfortunately, today I found out that my latest standalone version fails
to load the library and the compilation is complete with an error message.


if the file is not in the local path, you need to use --global


-
  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] Last standalone version suddenly will not load user module

2013-06-05 Thread Jaroslav Hajtmar

Thanx very much Wolfgang.

Now is all OK. Unfortunately now is necessary have one version of module 
for TeXLive version of ConTeXt and second version of module for 
standalone version.

But it's not much of a problem now for me...


I am afraid, that in the future will my module problematic again and 
without help I will lose it.

Now very much thanx for your help. I will not have sleepless night...

Jaroslav Hajtmar

Dne 5.6.2013 22:47, Wolfgang Schuster napsal(a):

Am 05.06.2013 um 22:26 schrieb Jaroslav Hajtmar hajt...@gyza.cz:


Hello Wolfgang.
Thanks very much for your interest in my problem.
I am  sending a library and very simple example. When I compile example by 
ConTeXt Lexlive 2012, then is OK - flawless. When I use last standalone version 
to compile then compilation ending with error message.
I note that about two years I have successfully used the module. Just two 
months ago it managed standalone version. Standalone version don't work till in 
last version now.

If the error does not reveal, I'll probably have to use the module only in old 
versions Context. I really need it too often for my job. Processing large bulk 
data.

I do not know whether it makes sense to send this mail to the mailing list, so 
I send it to you privately.

The fixes are simple:

1. Don’t escape braces ({” and }), e.g. line 169 has to be

  
context.setvalue(hc..thirddata.scancsv.ar2colnum(i),'{\\bch'..thirddata.scancsv.gCSV[i]..'\\ech}')

and not

  
context.setvalue(hc..thirddata.scancsv.ar2colnum(i),'\{\\bch'..thirddata.scancsv.gCSV[i]..'\\ech\}')


2. There is a \ missing in line 248 for the \par command. You wrote

  infomakra=infomakra..'\par'

but it has to be

  infomakra=infomakra..'\\par'

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] Last standalone version suddenly will not load user module

2013-06-05 Thread Hans Hagen

On 6/6/2013 12:19 AM, Jaroslav Hajtmar wrote:


I am afraid, that in the future will my module problematic again and
without help I will lose it.
Now very much thanx for your help. I will not have sleepless night...


as has been mentioned a few times before: lua 5.2 is more strict in 
permitted escapes, so unless  5.2 changes that policy you're okay


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
___