💾 Archived View for bbs.geminispace.org › u › jsreed5 › 18787 captured on 2024-08-31 at 15:43:37. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-08-19)
-=-=-=-=-=-=-
Is there a tool that can take a text file, wrap it at a given maximum width, add spaces to justify the text, and hyphenate words if it has to add too many spaces, à la LaTeX? I'm sure there are tools that will wrap and even justify, but I'm not sure about hyphenation.
Jul 23 · 6 weeks ago
Yes there is "par" (in the AUR):
$ cat file | par jw60
Also works in vim:
:%!par jw<width>
Forgot to mention that to my knowledge it doesn't hyphenate words. It just adds spaces to justify.
🚀 jsreed5 [OP] · Jul 23 at 12:37:
@fab Thanks, I'll give that a try!
groff! i used it to format my .project file which you can see at `finger dozens@tilde.town`. if you just have paragraphs, you should be able to `cat file.txt | nroff -ms -Tascii`