💾 Archived View for bbs.geminispace.org › u › MrSVCD › 14806 captured on 2024-08-31 at 15:13:46. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-08-18)

🚧 View Differences

-=-=-=-=-=-=-

Comment by 🚂 MrSVCD

Re: "I made a tool for Linux (it'll probably work on quite a few..."

In: s/Gemini

I found this in the groff documentation

— https://www.gnu.org/software/groff/manual/groff.html.node/Using-Symbols.html

(Search for unicode)

🚂 MrSVCD

Feb 08 · 7 months ago

1 Later Comment

👤 jdcard · 2024-02-08 at 21:51:

Cool! Unicode can be difficult. I ended up running my gemtext files through a PHP script to convert to HTML and then into a browser to render the Unicode characters, then using the browser's print-to-pdf capability. The entire process is scriptable. I'll have to give this a try.

Original Post

🌒 s/Gemini

I made a tool for Linux (it'll probably work on quite a few flavors of *BSD as well and maybe macOS) that converts gemtext files to pdf using groff, aptly named "gmi2pdf". Can save as "A4", "Letter", "Tabloid", and "Legal" sized PDFs. It can take a local file or a gemtext/plaintext remote gemini resource as input. Has support for TLS client certs as well. Currently only supports ASCII characters, but can optionally convert unicode characters to squares. Some lines can look a bit weird for now...

💬 vi · 4 comments · 3 likes · Feb 08 · 7 months ago