groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Compression support for files?


From: Steffen Nurpmeso
Subject: [Groff] Compression support for files?
Date: Wed, 16 Jul 2014 18:53:14 +0200
User-agent: s-nail v14.7.4-3-g32d76ea

Hello,

inspired by a DragonFly BSD commit that i accidentally stumbled
upon (must have been near a release notice; by Matthew Dillon
(dillon AT apollo DOT backplane DOT com), [84d7c06], 2014-05-20)
i've coded something the last two days which seems to work from
the light testing i've done sofar.
It effectively adds compression support for (practically) *all*
files that groff uses during a run.  E.g., after creating an
installation i did

  $ cd $HOME/usr/share/groff/1.22.2/
  $ find . -type f -exec bzip2 '{}' ';'
  $ cd xy; mv nail.1 nail.xx; bzip2 nail.xx
  $ groff -mdoc -Tutf8 nail.xx|v

and it shows the manual as desired; it also works for PS, PDF etc.
output. The `1.22.2' directory shrunk from 5600 to 2200 KB, but
the win can be massive for large font files.
It's a draft (it simply assumes presence of zcat(1), bzcat(1) and
xzcat(1) and in the $PATH, no work on that terrible autoconf stuff
yet) but maybe someone likes it.
Applies to [master].
Ciao,

--steffen

Attachment: grff.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]