home.social

#cawf — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cawf, aggregated by home.social.

  1. Hacking around with RISC OS cawf again...

    A thing about cawf that annoys me (iirc was inherited from nroff) is that it uses the TERM environment variable to select a printer specific init file, but also wants the -d device option to select the specific printer.

    This is very annoying under modern UNIX, as TERM is often rather more complex than just "ansi" or whatever.

    But RISC OS uses the hell out of environment variables! So now cawf looks for CAWF$TERM like a proper RO app!

    #cawf #RiscOS

  2. This is actually the problem that led me to porting cawf to RISC OS in the first place. I thought I could just pull file.1 from the source, run it through a local nroff, and be done

    but there doesnt seem to be a modern-ish *roff ported to 32bit RISC OS... (hence cawf)

    and file.1 has to be built anyway...

    and even after i got a file.1 cawf can't handle the newer -man or -mdoc macros it uses anyway! (i forget which its wrtiien in)

    #riscOS #cawf #file #roff

  3. Ok, I'm pretty sure cawf 4.10 is the last version of cawf. It's from 1996. The minix version I was playing with earlier is either 4.8 or 4.9.

    (groff released in '97, pretty much made cawf pointless)

    It was an easy port to RISC OS. I have a little bit of packaging to do yet but it's basically done.

    Unfortunately it still can't deal with mandoc or mdoc manpages.

    #riscos #cawf #groff #nroff #manpages #mandoc #mdoc

  4. cawf-minix fails on modern man pages. Mostly because cawf's man macros are all UPPER CASE and modern macros are Mixed Case 🤐

    I suspect porting modern C source would still be easier than hacking around in the nroff macros.

    grr i just want to look at man pages!

    #cawf #manpages #mixedCaseBlues

  5. If the newer version of cawf supports mandoc macros it might be worth porting.
    #cawf #manpages #mandoc

  6. Yay, I got an ancient MINIX version of cawf to compile!

    I'm not sure if I'll just stick with this version or attempt to compile a current version...

    (cawf is the C version of awf, Henry Spencer's nroff clone written in AWK!)

    #cawf #minix #awk #manpages