larrykollar / unix-text-processing Goto Github PK
View Code? Open in Web Editor NEWRecreated sources for the book "UNIX Text Processing," published in 1987.
Recreated sources for the book "UNIX Text Processing," published in 1987.
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.