[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lojban] Re: jbovlaste xml to csv



An updated version:

! gema script to convert jbovlaste XML dump to a CSV file
! vers. 2.0
! 2014 Remo Dentato (rdentato@gmail.com)
! Visit http://gema.sourceforge.net to download gema for your OS

\A="type"\;"status"\;"selmaho"\;"rafsi1"\;"rafsi2"\;"rafsi3"\;"valsi"\;"definition"\;"note"\n
\<valsi<vls>=$1
?=

vls:\A=@set{w;}@set{t;}@set{d;}@set{r;}@push{r;\;}@push{r;\;}@push{r;\;}@set{n;}@set{x;"std"}@set{s;""}
vls:word\="*"=@set{w;"$1"}
vls:type\="<typ>"=@set{t;"$1"}
vls:\<rafsi\>*\<\/rafsi\>=@push{r;"$1"\;}
vls:\<definition\><nsc>\<\/definition\>=@set{d;"$1"}
vls:\<notes\><nsc>\<\/notes\>=@set{n;"$1"}
vls:\<selmaho\>*\<\/selmaho\>=@set{s;"$1"}
vls:?=
vls:\<\/valsi\>=$t\;$x\;$s\;$r@pop{r}$r@pop{r}$r$w\;$d\;$n\n@terminate

nsc:\;=,
nsc:\n\r=
nsc:"=''
nsc:\n=

typ:experimental =@set{x;"exp"}
typ:obsolete =@set{x;"obs"}
typ:cmavo cluster=cluster
typ:cmavo-compound=cluster
typ:bu-letteral=cmavo

--
You received this message because you are subscribed to the Google Groups "lojban" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lojban+unsubscribe@googlegroups.com.
To post to this group, send email to lojban@googlegroups.com.
Visit this group at http://groups.google.com/group/lojban.
For more options, visit https://groups.google.com/d/optout.