On 12/3/2018 2:29 PM, Taco Hoekwater wrote:
Hi,
(sorry for the delayed post)
Attached is patgen.lua, which is a lua52/luatex version of patgen, is case
someone finds it useful as yet another port of patgen. The original plan was to
extend this to do utf-8, but I lost interest (and then lost the sources also, so
this is a newly created port)
This is a literal translation of the pascal sources, so 8 bit input only. The
one
limitation I did remove is the size limit of the input buffer (which does not
really help with anything, but the pascal code was just too weird to do in lua).
On the plus side, it seems to be reasonably fast, even with all the pascal-isms
still in it.
Sander asked if I would post what I have, so here it is … I do not plan to work
on
this any further, so if someone is interested, please take (license = DWYL).
i'll have a look at it
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
-----------------------------------------------------------------