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

2013-06-05 Thread Jaroslav Hajtmar

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...

Thanx Jaroslav Hajtmar


Here is content of my log file ... :

C:\$~1da\SKOLA\2012-2013\pz2013context --autopdf x

mtx-context | warning: no (local) file './x', proceeding
mtx-context | run 1: luatex 
--fmt=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en 
--jobname=x 
--lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui 
--no-parse-first-line --c:autopdf --c:currentrun=1 
--c:fulljobname=./x --c:input=./x --c:kindofrun=1 
--c:maxnofruns=8 cont-yes.mkiv

This is LuaTeX, Version beta-0.77.0-2013053109 (rev 4635)
 \write18 enabled.
(C:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.06.04 21:26 MKIV beta  fmt: 2013.6.4  int: 
english/english


system   'cont-new.mkiv' loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'x', input './x', result 'x'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(C:/$~1da/SKOLA/2012-2013/pz2013/x.tex
fontstypescripts  unknown library 'loc'
fontstypescripts  unknown library 'cmr'
fontspreloading latin modern fonts (third stage)
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts'fallback modern rm 11pt' is loaded
resolversmodules  'hl2t-scancsv' is loaded
(../texlibrary//hl2t-scancsv.mkiv
loading  ConTeXt User Module / ScanCSV
! LuaTeX error [string \directlua ]:80: invalid escape sequence near '\{'.

system   tex  error on line 415 in file 
../texlibrary//hl2t-scancsv.mkiv: LuaTeX error  ...


405
406 if temptotempnumrows then tempto=tempnumrows end
407 if tempfromtempnumrows then tempfrom=1 end
408 tempfromI=tempfrom-1
409
410 
tex.sprint(tex.ctxcatcodes,'\\newcount\\tempfrom\\tempfrom='..tostring(tempfrom)) 
--
411 
tex.sprint(tex.ctxcatcodes,'\\newcount\\tempfromI\\tempfromI='..tostring(tempfromI)) 
--
412 
tex.sprint(tex.ctxcatcodes,'\\newcount\\tempto\\tempto='..tostring(tempto)) 
--

413 end -- function thirddata.scancsv.paramcontrol(from, to)
414
415   \stopluacode
416
417 %D \section{MACRO DEFINITIONS}
418
419 \def\printline{\ctxlua{thirddata.scancsv.printline()}\par}
420 \def\printall{\ctxlua{thirddata.scancsv.printall()}\par}
421
422 \def\csvreport{
423 \ctxlua{thirddata.scancsv.csvreport()}
424 }
425

inserted text ...ion thirddata.scancsv.paramcontrol(from, to)

}

\luat_start_lua_code_indeed ...nd \directlua {#1}}

l.415 \stopluacode

? ) (../texlibrary/lib-lua.tex)
! LuaTeX error [string \directlua ]:1: attempt to call field 
'opencsvfile' (a nil value).


system   tex  error on line 207 in file 
C:/$~1da/SKOLA/2012-2013/pz2013/x.tex: LuaTeX error  ...


197
198 \podpisreditele
199
200 \page
201 }
202
203 \def\lineaction{\printaction}
204
205 \starttext
206
207   \filelineaction{rozh_4lneprijat-nesplnil.csv}
208
209 \stoptext
210
211
212


\dodoopencsvfile ...ata.scancsv.opencsvfile(#1)}
   \else \ctxlua 
{thirddata

argument \opencsvfile {rozh_4lneprijat-nesplnil.csv}
   \doloopaction
\firstoftwoarguments #1#2n-#1

\doloopLineaction ...ion {\lineaction }{#2}{#3

to be read again

l.207 \filelineaction{rozh_4lneprijat-nesplnil.csv}

? ! LuaTeX error [string \directlua ]:1: attempt to call field 
'opencsvfile' (a nil value).


system   tex  error on line 207 in file 
C:/$~1da/SKOLA/2012-2013/pz2013/x.tex: LuaTeX error  ...


197
198 \podpisreditele
199
200 \page
201 }
202
203 \def\lineaction{\printaction}
204
205 \starttext
206
207   \filelineaction{rozh_4lneprijat-nesplnil.csv}
208
209 \stoptext
210
211
212


\dodoopencsvfile ...irddata.scancsv.opencsvfile()}
   \fi
to be read again
\doifsomethingelse
\doloopAction ...-\opencsvfile \doifsomethingelse

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
___