[groff] Now online: gropdf / grops previewer

2018-04-22 Thread John Gardner
Well, here it is: https://rawgit.com/Alhadis/Roff.js/web-demo/index.html Some modifications were needed for web-delivery, and performance still isn't optimal, but it works. You'll need a relatively recent browser to use it (anything released within the last year should do). Few things to note be

Re: [groff] Now online: gropdf / grops previewer

2018-04-22 Thread G. Branden Robinson
At 2018-04-23T09:04:25+1000, John Gardner wrote: > Well, here it is: > > https://rawgit.com/Alhadis/Roff.js/web-demo/index.html > > Some modifications were needed for web-delivery, and performance still > isn't optimal, but it works. You'll need a relatively recent browser to use > it (anything r

Re: [groff] Now online: gropdf / grops previewer

2018-04-22 Thread John Gardner
Hey Branden, > I'd love to see what the source looks like, but when I alter the URL, I > get a bunch of 404s. Everything is on GitHub . The browser-friendly version is on a separate branch , as I had to do a few

Re: [groff] Now online: gropdf / grops previewer

2018-04-23 Thread Larry Kollar
John Gardner wrote: > Well, here it is: > > https://rawgit.com/Alhadis/Roff.js/web-demo/index.html > Oh, cool. It’s like a web version of xditview(1). If it can update live, I’d use it as a previewer. Larry

Re: [groff] Now online: gropdf / grops previewer

2018-04-23 Thread John Gardner
Hey Larry, > If it can update live, I’d use it as a previewer Well, it can. But I'm not expecting anybody to write and edit ditroff source by hand. The web-based viewer is really a dumbed-down version of an Atom extension I've nearly finished. The Atom editor will be able to p

Re: [groff] Now online: gropdf / grops previewer

2018-04-24 Thread Pierre-Jean Fichet
John Gardner wrote: > Well, here it is: > https://rawgit.com/Alhadis/Roff.js/web-demo/index.html It is nice to see our old troff on the web, thank you for the hard work! If I remember correctly your other posts, this previewer is only a part of the online troff editor you are working on, isn't i

Re: [groff] Now online: gropdf / grops previewer

2018-04-25 Thread John Gardner
Thanks for the kind words! =) > this previewer is only a part of the online troff > editor you are working on isn't it? Ah no, it's not an online, interactive version of Troff, if that's what you're thinking. =) It's an extension for a text editor named Atom , which is like Ema

Re: [groff] Now online: gropdf / grops previewer

2018-04-26 Thread Ralph Corderoy
Hi John, > https://rawgit.com/Alhadis/Roff.js/web-demo/index.html ... >- *Some fonts may look different.* Browsers handle font-rendering, >which means the base 35 PDF fonts won't be visible in the renderer >unless they've also been installed in your system's usual fonts >directory.

Re: [groff] Now online: gropdf / grops previewer

2018-04-26 Thread Pierre-Jean Fichet
John Gardner wrote: > It's an extension for a text editor named Atom , which is > like Emacs or Vim except graphical. Atom runs on a framework called Electron > , which uses web technologies (HTML/CSS/JS) for > creating desktop applications. This foundat

Re: [groff] Now online: gropdf / grops previewer

2018-05-04 Thread John Gardner
Hey Ralph, Sorry about the slow reply: I missed your email completely! Didn't even notice that you'd responded... > Am I right in understanding your Javascript asks the widget to > render some text in a particular font, size, and location, and what > pixels are set, e.g. for anti-aliasing, are u

Re: [groff] Now online: gropdf / grops previewer

2018-05-05 Thread Ralph Corderoy
Hi John, > > https://stackoverflow.com/questions/11332608/ may also be useful if > > you're not used to affine transformations for 2D graphics. > > Ah, that doesn't really apply here because a separate element > is used for each individual page: the viewer's layout is handled using > plain HTML/C