ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* scancsv.lua
@ 2010-09-26 20:31 Daniel Grycman
  2010-09-26 20:38 ` scancsv.lua Jaroslav Hajtmar
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Grycman @ 2010-09-26 20:31 UTC (permalink / raw)
  To: ntg-context

Hi all,

I use the sancsv.lua libray by Jaroslav Hajtmar for the typesetting of a
study guide at the German Department at Ruhr-University. By reading the
data of csv-eile Textmate canceled with the following messages. The
csv-file has utf-8 encoding.

MTXrun | run 1: luatex
--fmt="/Users/grycman/Library/texlive/2010/texmf-var/luatex-cache/context/e
9159e878e989105b2ef2d27fad97515/formats/cont-en"
--lua="/Users/grycman/Library/texlive/2010/texmf-var/luatex-cache/context/e
9159e878e989105b2ef2d27fad97515/formats/cont-en.lui" --backend=pdf
"/Users/grycman/Dropbox/Uni/kvvtest.tex"
This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)
\write18 enabled.
(/Users/grycman/Dropbox/Uni/kvvtest.tex
publications    : loading formatting style from bxml-apa
(/usr/local/texlive/2010/texmf-dist/tex/context/base/bxml-apa.mkiv)

ConTeXt  ver: 2010.05.24 13:05 MKIV  fmt: 2010.9.20  int: english/english

system          : cont-new loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.mkiv))
system          : cont-fil loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-fil.tex
loading         : ConTeXt File Synonyms
)
system          : cont-sys loaded
(/usr/local/texlive/2010/texmf-config/tex/context/user/cont-sys.tex
(/usr/local/texlive/2010/texmf-dist/tex/context/base/type-def.mkiv)
(/usr/local/texlive/2010/texmf-dist/tex/context/base/type-lua.mkiv)
(/usr/local/texlive/2010/texmf-dist/tex/context/base/type-siz.mkiv)
(/usr/local/texlive/2010/texmf-dist/tex/context/base/type-otf.mkiv))
system          : kvvtest.top loaded
(kvvtest.top)
fonts           : preloading latin modern fonts
{/usr/local/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/lo
cal/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{/usr/local/texliv
e/2010/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
bodyfont        : 12pt rm is loaded
language        : language en is active
system          : module simplefonts loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/third/simplefonts/t-simplef
onts.tex
loading         : ConTeXt User Module / Simplefonts
)
system          : module r loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/base/m-r.tex)
system          : module tikz loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/pgf/frontendlayer/t-tikz.te
x (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/basiclayer/t-pgf.tex
(/usr/local/texlive/2010/texmf-dist/tex/context/pgf/basiclayer/t-pgfcor.tex
(/usr/local/texlive/2010/texmf-dist/tex/context/pgf/systemlayer/t-pgfsys.t
ex
(/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfrcs.tex
(/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfmod.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfutil-comm
on.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfutil-conte
xt.def)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.t
ex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code
.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.
tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdft
ex.def
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-comm
on-pdf.def)) (kvvtest.pgf))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftp
ath.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsysproto
col.code.tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code
.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.t
ex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.t
ex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathparser.code
.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathoperations.
code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathtrig.code.t
ex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathrnd.code.te
x))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathbase.code.t
ex)))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoint
s.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathc
onstruct.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathu
sage.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescope
s.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraph
icstate.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretrans
formations.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjec
ts.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathp
rocessing.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrow
s.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayer
s.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretrans
parency.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatte
rns.code.tex)))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.c
ode.tex))
(/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgffor.tex
(/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfrcs.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgffor.code.
tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz
.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/pgflibraryplo
thandlers.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libr
aries/tikzlibrarytopaths.code.tex)))
system          : module edtsnc loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/base/m-edtsnc.tex
editsync        : loading and enabling editor synchronization support
)
system          : module chart loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/base/m-chart.tex
(/usr/local/texlive/2010/texmf-dist/tex/context/base/m-chart.mkiv
systems         : The chart mkiv xml interface is not yet defined!
))
systems         : begin file /Users/grycman/Dropbox/Uni/kvvtest.tex at
line 26
!pages          : flushing realpage 1, userpage 1, subpage 1
!pages          : flushing realpage 2, userpage 2
structure       : title @ level 2 : 0.0 -> \headtext {content}
!pages          : flushing realpage 3, userpage 3
structure       : section @ level 3 : 0.0.1 -> Kontakt
structure       : subsection @ level 4 : 0.0.1.1 -> Organisation des
Germanistischen Instituts

Overfull \hbox (284.90858pt too wide) in paragraph at lines 64--1
[]

Underfull \hbox (badness 10000) in paragraph at lines 96--1

structure       : subsection @ level 4 : 0.0.1.2 -> Allgemeine
Studienberatung und Studienfachberatung
!pages          : flushing realpage 4, userpage 4
structure       : subsubject @ level 4 : 0.0.1.2 -> Studienfachberatung
Master of Education
structure       : subsection @ level 4 : 0.0.1.3 -> Die Lehrenden des
Germanistischen Instituts
! LuaTeX error scancsv.lua:147: table index is nil
stack traceback:
scancsv.lua:147: in function 'ReadLineFromCSV'
scancsv.lua:184: in function 'lineaction'
scancsv.lua:216: in function 'filelineaction'
<\directlua >:1: in main chunk.
<argument> ...lua {filelineaction("personen.csv")}
                  
\firstoftwoarguments #1#2->#1
                  
<to be read again>
                  
l.116 \filelineaction{personen.csv}
                  
?
! Emergency stop.
<argument> ...lua {filelineaction("personen.csv")}
                  
\firstoftwoarguments #1#2->#1
                  
<to be read again>
                  
l.116 \filelineaction{personen.csv}
                  
!  ==> Fatal error occurred, no output PDF file produced!MTXrun | fatal
error: return code: 1


Jaroslav, can you help me? Or anybody else?

Daniel




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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scancsv.lua
  2010-09-26 20:31 scancsv.lua Daniel Grycman
@ 2010-09-26 20:38 ` Jaroslav Hajtmar
  0 siblings, 0 replies; 4+ messages in thread
From: Jaroslav Hajtmar @ 2010-09-26 20:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Daniel.
Send me your source code (or minimal example which has an error) and CSV 
file too (or minimal example ...if it possible)...
I try to find out where the problem is

Jaroslav





Dne 26.9.2010 22:31, Daniel Grycman napsal(a):
> Hi all,
>
> I use the sancsv.lua libray by Jaroslav Hajtmar for the typesetting of a
> study guide at the German Department at Ruhr-University. By reading the
> data of csv-eile Textmate canceled with the following messages. The
> csv-file has utf-8 encoding.
>
> MTXrun | run 1: luatex
> --fmt="/Users/grycman/Library/texlive/2010/texmf-var/luatex-cache/context/e
> 9159e878e989105b2ef2d27fad97515/formats/cont-en"
> --lua="/Users/grycman/Library/texlive/2010/texmf-var/luatex-cache/context/e
> 9159e878e989105b2ef2d27fad97515/formats/cont-en.lui" --backend=pdf
> "/Users/grycman/Dropbox/Uni/kvvtest.tex"
> This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)
> \write18 enabled.
> (/Users/grycman/Dropbox/Uni/kvvtest.tex
> publications    : loading formatting style from bxml-apa
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/bxml-apa.mkiv)
>
> ConTeXt  ver: 2010.05.24 13:05 MKIV  fmt: 2010.9.20  int: english/english
>
> system          : cont-new loaded
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.tex
> systems         : beware: some patches loaded from cont-new.tex
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.mkiv))
> system          : cont-fil loaded
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-fil.tex
> loading         : ConTeXt File Synonyms
> )
> system          : cont-sys loaded
> (/usr/local/texlive/2010/texmf-config/tex/context/user/cont-sys.tex
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-def.mkiv)
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-lua.mkiv)
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-siz.mkiv)
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/type-otf.mkiv))
> system          : kvvtest.top loaded
> (kvvtest.top)
> fonts           : preloading latin modern fonts
> {/usr/local/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/lo
> cal/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{/usr/local/texliv
> e/2010/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
> bodyfont        : 12pt rm is loaded
> language        : language en is active
> system          : module simplefonts loaded
> (/usr/local/texlive/2010/texmf-dist/tex/context/third/simplefonts/t-simplef
> onts.tex
> loading         : ConTeXt User Module / Simplefonts
> )
> system          : module r loaded
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/m-r.tex)
> system          : module tikz loaded
> (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/frontendlayer/t-tikz.te
> x (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/basiclayer/t-pgf.tex
> (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/basiclayer/t-pgfcor.tex
> (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/systemlayer/t-pgfsys.t
> ex
> (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfrcs.tex
> (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfmod.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfutil-comm
> on.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfutil-conte
> xt.def)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.t
> ex))
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code
> .tex
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.
> tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdft
> ex.def
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-comm
> on-pdf.def)) (kvvtest.pgf))
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftp
> ath.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsysproto
> col.code.tex))
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code
> .tex
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.t
> ex
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.t
> ex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathparser.code
> .tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathoperations.
> code.tex
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathtrig.code.t
> ex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathrnd.code.te
> x))
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathbase.code.t
> ex)))
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoint
> s.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathc
> onstruct.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathu
> sage.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescope
> s.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraph
> icstate.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretrans
> formations.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick
> .code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjec
> ts.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathp
> rocessing.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrow
> s.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade
> .code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage
> .code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayer
> s.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretrans
> parency.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatte
> rns.code.tex)))
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes
> .code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.c
> ode.tex))
> (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgffor.tex
> (/usr/local/texlive/2010/texmf-dist/tex/context/pgf/utilities/t-pgfrcs.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgffor.code.
> tex))
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz
> .code.tex
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/pgflibraryplo
> thandlers.code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix
> .code.tex)
> (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libr
> aries/tikzlibrarytopaths.code.tex)))
> system          : module edtsnc loaded
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/m-edtsnc.tex
> editsync        : loading and enabling editor synchronization support
> )
> system          : module chart loaded
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/m-chart.tex
> (/usr/local/texlive/2010/texmf-dist/tex/context/base/m-chart.mkiv
> systems         : The chart mkiv xml interface is not yet defined!
> ))
> systems         : begin file /Users/grycman/Dropbox/Uni/kvvtest.tex at
> line 26
> !pages          : flushing realpage 1, userpage 1, subpage 1
> !pages          : flushing realpage 2, userpage 2
> structure       : title @ level 2 : 0.0 ->  \headtext {content}
> !pages          : flushing realpage 3, userpage 3
> structure       : section @ level 3 : 0.0.1 ->  Kontakt
> structure       : subsection @ level 4 : 0.0.1.1 ->  Organisation des
> Germanistischen Instituts
>
> Overfull \hbox (284.90858pt too wide) in paragraph at lines 64--1
> []
>
> Underfull \hbox (badness 10000) in paragraph at lines 96--1
>
> structure       : subsection @ level 4 : 0.0.1.2 ->  Allgemeine
> Studienberatung und Studienfachberatung
> !pages          : flushing realpage 4, userpage 4
> structure       : subsubject @ level 4 : 0.0.1.2 ->  Studienfachberatung
> Master of Education
> structure       : subsection @ level 4 : 0.0.1.3 ->  Die Lehrenden des
> Germanistischen Instituts
> ! LuaTeX error scancsv.lua:147: table index is nil
> stack traceback:
> scancsv.lua:147: in function 'ReadLineFromCSV'
> scancsv.lua:184: in function 'lineaction'
> scancsv.lua:216: in function 'filelineaction'
> <\directlua>:1: in main chunk.
> <argument>  ...lua {filelineaction("personen.csv")}
>
> \firstoftwoarguments #1#2->#1
>
> <to be read again>
>
> l.116 \filelineaction{personen.csv}
>
> ?
> ! Emergency stop.
> <argument>  ...lua {filelineaction("personen.csv")}
>
> \firstoftwoarguments #1#2->#1
>
> <to be read again>
>
> l.116 \filelineaction{personen.csv}
>
> !  ==>  Fatal error occurred, no output PDF file produced!MTXrun | fatal
> error: return code: 1
>
>
> Jaroslav, can you help me? Or anybody else?
>
> Daniel
>
>
>
>
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scancsv.lua
  2010-09-26 22:18 ` scancsv.lua Jaroslav Hajtmar
@ 2010-09-26 23:38   ` Daniel Grycman
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Grycman @ 2010-09-26 23:38 UTC (permalink / raw)
  To: hajtmar, mailing list for ConTeXt users

Hello Jaroslav,

everything works fine :-).

Daniel

On 27.09.10 00:18, "Jaroslav Hajtmar" <hajtmar@gyza.cz> wrote:

>Hello Daniel.
>
>Malfunction your code was caused by two things:
>
>1. CSV file contains TeX problematic characters (eg underscore_ which is
>used only in math mode) - should therefore be set catcodes.
>Correction is for example here:
>
>\def\lineaction{
>\catcode`\_=12
>\catcode`\%=12
>\catcode`\&=12
>\catcode`\@=12
>% etc...
>\expanded{
>\bTD\ssxx\Name, \Vorname, \Titel, \Bezeichnung \eTD
>\bTD\ssxx\Mail \eTD
>\bTD\ssxx\Raum \eTD
>\bTD\ssxx\Telefon \eTD}
>}
>
>
>
>2. A simple parser that I wrote not process general CSV files (it not
>allow some items were in quotation marks and not others. That is, if you
>use within the field delimiter, must be ALL ITEMS quoted!) I modified
>the lines 16 and 198 your CSV table, which contained a single delimiter
>in quotes (instead of a semicolon delimiter, I used a comma)
>
>I change 16. line from:
>
>Bialluch;Kathrin;;Lehrbeauftragte;"KathrinBialluch@web.de;
>Kathrin.Bialluch@stimme-dortmund.de";;
>
>to line:
>
>Bialluch;Kathrin;;Lehrbeauftragte;KathrinBialluch@web.de,
>Kathrin.Bialluch@stimme-dortmund.de;;
>
>and on 198 line I made the same correction ... (library interpreting
>more columns ...)
>
>3. I modified the code so that the tables, the tables are split at page
>breaks.
>eg:
>\def\bfilehook{\setupTABLE[split=yes]\bTABLE}
>
>
>Will now compile properly. I hope that everything will be OK ...
>To Your address I am sending corrected files (as attachment) ..., to
>conference I am sending only plain text...
>Rejoice in my library, I hope they will serve well ...
>
>Jarda Hajtmar
>
>
>
>
>Re: [NTG-context] scancsv.lua.eml
>
>Předmět:
>Re: [NTG-context] scancsv.lua
>Od:
>"Daniel Grycman" <daniel.grycman@rub.de>
>Datum:
>26 Sep 2010 22:46:19 +0200
>
>Komu:
>hajtmar@gyza.cz
>
>
>Dne 26.9.2010 22:46, Daniel Grycman napsal(a):
>>
>> Re: [NTG-context] scancsv.lua.eml
>>
>> Předmět:
>> Re: [NTG-context] scancsv.lua
>> Od:
>> "Daniel Grycman" <daniel.grycman@rub.de>
>> Datum:
>> 26 Sep 2010 22:46:19 +0200
>>
>> Komu:
>> hajtmar@gyza.cz
>>
>>
>> Hello Jaroslav,
>>
>> the files attached. The csv lines (181-183) are commented in the source.
>>
>> Daniel
>>
>> On 26.09.10 22:38, "Jaroslav Hajtmar"<hajtmar@gyza.cz>  wrote:
>>
>>    
>>> >Hello Daniel.
>>> >Send me your source code (or minimal example which has an error) and
>>>CSV
>>> >file too (or minimal example ...if it possible)...
>>> >I try to find out where the problem is
>>> >
>>> >Jaroslav
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >Dne 26.9.2010 22:31, Daniel Grycman napsal(a):
>>>      
>>>> >>  Hi all,
>>>> >>
>>>> >>  I use the sancsv.lua libray by Jaroslav Hajtmar for the
>>>>typesetting of a
>>>> >>  study guide at the German Department at Ruhr-University. By
>>>>reading the
>>>> >>  data of csv-eile Textmate canceled with the following messages.
>>>>The
>>>> >>  csv-file has utf-8 encoding.
>>>> >>
>>>> >>  MTXrun | run 1: luatex
>>>> >>  
>
>__________________________________________________________________________
>_________
>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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scancsv.lua
       [not found] <C8C57D1A.1279%daniel.grycman@rub.de>
@ 2010-09-26 22:18 ` Jaroslav Hajtmar
  2010-09-26 23:38   ` scancsv.lua Daniel Grycman
  0 siblings, 1 reply; 4+ messages in thread
From: Jaroslav Hajtmar @ 2010-09-26 22:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Daniel.

Malfunction your code was caused by two things:

1. CSV file contains TeX problematic characters (eg underscore_ which is 
used only in math mode) - should therefore be set catcodes.
Correction is for example here:

\def\lineaction{
\catcode`\_=12
\catcode`\%=12
\catcode`\&=12
\catcode`\@=12
% etc...
\expanded{
\bTD\ssxx\Name, \Vorname, \Titel, \Bezeichnung \eTD
\bTD\ssxx\Mail \eTD
\bTD\ssxx\Raum \eTD
\bTD\ssxx\Telefon \eTD}
}



2. A simple parser that I wrote not process general CSV files (it not 
allow some items were in quotation marks and not others. That is, if you 
use within the field delimiter, must be ALL ITEMS quoted!) I modified 
the lines 16 and 198 your CSV table, which contained a single delimiter 
in quotes (instead of a semicolon delimiter, I used a comma)

I change 16. line from:

Bialluch;Kathrin;;Lehrbeauftragte;"KathrinBialluch@web.de; 
Kathrin.Bialluch@stimme-dortmund.de";;

to line:

Bialluch;Kathrin;;Lehrbeauftragte;KathrinBialluch@web.de, 
Kathrin.Bialluch@stimme-dortmund.de;;

and on 198 line I made the same correction ... (library interpreting 
more columns ...)

3. I modified the code so that the tables, the tables are split at page 
breaks.
eg:
\def\bfilehook{\setupTABLE[split=yes]\bTABLE}


Will now compile properly. I hope that everything will be OK ...
To Your address I am sending corrected files (as attachment) ..., to 
conference I am sending only plain text...
Rejoice in my library, I hope they will serve well ...

Jarda Hajtmar




Re: [NTG-context] scancsv.lua.eml

Předmět:
Re: [NTG-context] scancsv.lua
Od:
"Daniel Grycman" <daniel.grycman@rub.de>
Datum:
26 Sep 2010 22:46:19 +0200

Komu:
hajtmar@gyza.cz


Dne 26.9.2010 22:46, Daniel Grycman napsal(a):
>
> Re: [NTG-context] scancsv.lua.eml
>
> Předmět:
> Re: [NTG-context] scancsv.lua
> Od:
> "Daniel Grycman" <daniel.grycman@rub.de>
> Datum:
> 26 Sep 2010 22:46:19 +0200
>
> Komu:
> hajtmar@gyza.cz
>
>
> Hello Jaroslav,
>
> the files attached. The csv lines (181-183) are commented in the source.
>
> Daniel
>
> On 26.09.10 22:38, "Jaroslav Hajtmar"<hajtmar@gyza.cz>  wrote:
>
>    
>> >Hello Daniel.
>> >Send me your source code (or minimal example which has an error) and CSV
>> >file too (or minimal example ...if it possible)...
>> >I try to find out where the problem is
>> >
>> >Jaroslav
>> >
>> >
>> >
>> >
>> >
>> >Dne 26.9.2010 22:31, Daniel Grycman napsal(a):
>>      
>>> >>  Hi all,
>>> >>
>>> >>  I use the sancsv.lua libray by Jaroslav Hajtmar for the typesetting of a
>>> >>  study guide at the German Department at Ruhr-University. By reading the
>>> >>  data of csv-eile Textmate canceled with the following messages. The
>>> >>  csv-file has utf-8 encoding.
>>> >>
>>> >>  MTXrun | run 1: luatex
>>> >>  

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-26 23:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-26 20:31 scancsv.lua Daniel Grycman
2010-09-26 20:38 ` scancsv.lua Jaroslav Hajtmar
     [not found] <C8C57D1A.1279%daniel.grycman@rub.de>
2010-09-26 22:18 ` scancsv.lua Jaroslav Hajtmar
2010-09-26 23:38   ` scancsv.lua Daniel Grycman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).