Follow-up Comment #14, bug #60602 (project groff):

> this GitHub project seems not to have been updated in a while (December
2019, IIRC), and Node itself has moved on.

That's not how things work in the JavaScript world. ECMAScript, unlike Python,
is designed to remain compatible with all existing and legacy codebases, as
introducing any incompatibilities would break existing websites.

What you might be seeing is an uncaught exception raised by Roff.js's attempt
at loading a tmac file that expects ms(7) to be loaded first (it appears to be
a new package, as I would've noticed `.ab` being used and fixed it a lot
earlier…).

Roff.js isn't reliant on Node, though, and though it should theoretically work
in the browser console without modification… except I only just realised how
slack I was with this project, as  running this in the online-demo
<https://rawgit.com/Alhadis/Roff.js/web-demo/index.html> shows a missing
function:


view.loadFile("https://github.com/Alhadis/Roff.js/raw/master/test/fixtures/cat/v7-ed.cat";);
ReferenceError: readFile is not defined
columnNumber: 32211
fileName: "https://rawgit.com/Alhadis/Roff.js/web-demo/min/all.js"​
lineNumber: 1
message: "readFile is not defined"


I really need to resume work on this, because it's still very much an
unfinished project. You otherwise could've pasted the raw C/A/T output into
the previewer and it would've interpreted it properly (provided it was
transmitted as binary).

I'm an idiot...

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60602>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


Reply via email to