On 10/6/2020 10:50 AM, denis.maier.lists@mailbox.org wrote:
Taco Hoekwater
mailto:taco@elvenkind.com> hat am 06.10.2020 09:25 geschrieben: I recall discussing this idea with Bruce D’Arcus a long time ago (somewhere in the early 00-es, maybe).
The CSL files look like XML, but really they are more like a macro processing language. Parsing and interpreting that should not be all that hard, I expect. If I had to do this, I would convert the XML <macro> tags into actual lua functions while parsing the XML. The implied processing language is quite straightforward (unlike the stack-based postfix language in bibtex bst files). I don’t have time right now, but if someone reminds me in two months or so, I might have a go at it.
that was indeed what stroke me when i saw the code: it's just some simple language wrapped in angle bracked ... straightforward conversion to lua seems not that hard (if statements mixed with some funcition calls)
That would be great. I'll remind you, be sure.
I agree the whole endeavour should be not to hard although there are some pitfalls, especially regarding disambiguation and so. Anyway, let's discuss details later, and let me know if I can be of any help, even if it's just cheerleading.
i was thinking of a mid winter cold evenings project -) (so we can pick up this thread later) 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 -----------------------------------------------------------------