Code Monkey home page Code Monkey logo

unix-text-processing's Issues

.PE instead of .PF in chapter 10: Drawing pictures

Hello,

I noticed what I believe is a typo in chapter 10 > The pic Prepocessor > Controlling the Dimensions of a Drawing. The example used to illustrate the use of .PF does not use .PF and instead uses .PE.

This typo is also present in the original book.

chapter headers font

Hi! this is a pretty cool project. I am learning a bit of *roff so its really handy to see a full blown project's source.
Anyway, i was comparing the book with the output the source generates on my end, and noticed some slight discrepancies with the way page numbers and headers are typeset. Namely the font is Times Roman instead of Helvetica. Maybe this is a problem on my end? Anyway, my diff to make it look more like the original is:

diff --git a/src/utp.mac b/src/utp.mac
index b0b5bb2..bf64eff 100644
--- a/src/utp.mac
+++ b/src/utp.mac
@@ -643,8 +643,8 @@ Version of 16 November 2002
 .ev header_footer
 .nr PN \\n[%]
 .if !\\n[chapter_page2] \{.   \" if this page doesn't start a chapter
-.	ie o .tl ''\\*[chapter_name]'\\n[PN]'
-.	el .tl '\\n[PN]'\*[square]  Unix Text Processing  \*[square]''
+.	ie o .tl ''\\fH \\*[chapter_name]' \\n[PN]'
+.	el .tl '\\fH\\n[PN]'\*[square]  UNIX Text Processing  \*[square]''
 .\}
 .ev
 ..

Which I hope just changes the font to Helvetica and also capitalizes unix. And hopefully doesnt break everything.
cheers

Change path to groff and awk in Makefile to use env

I'd suggest changing

GROFF = /usr/bin/groff
AWK = /usr/bin/awk

to

GROFF = /usr/bin/env groff
AWK = /usr/bin/env awk

I ran into an issue on OS X where when I installed an updated groff via homebrew, because the script was hardcoded to a particular path, it didn't pick up the change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.