This script will translate simple HPGL-1 (as exported via CorelDraw) into basic RS274NGC (G-Code). Only pen-up (PU) and pen-down (PD) commands with two numbers separated by a space and then a line break are translated.
For example:
PU0 0;
PD0 22;
PD-1 44;
PD-3 65; and so on.