Giter Club home page Giter Club logo

deroff's Introduction

deroff

One of the venerable BSD document writing tools, which I am forking for my own use on MacOS, and perhaps for use in other projects.

Source

This source was gathered from NetBSD.org, src.usr.bin/deroff.

No effort is currently being make to track the original, which is decades old.

Notes

  • Rewrote the Makefile.

  • Modified the man page to reflect changed behavior.

Bug fixes

  • Handles the .ig request properly.

  • Ignores troff requests in block text. Request processing should be incorporated into the general request handling framework, but the present code lacks generality.

  • Put out macro args that follow a text string if long enough. Long macro args that follow text are probably additional text no matter if they aren't alphabetic (numbers or punctuation).

  • Process in-line equations even in .so inclusions. This seems reasonable since eqn input usually is piped from soelim, so in-line equations should get processed there by troff too.

  • Expanded the list of troff requests ignored by deroff.

    • if, ie, el (conditional)
    • sp (vertical space)
    • nr (register assign)
    • ds (string definition)
  • Did not handle EQ/EN delimited in-line equation text

    • did not turn in-line equation into "x"
    • did not output text after in-line equation properly
    • did not handle in-line equation at end of line-ending sentence

    deroff handles these omissions properly now.

  • Fix mistaken parsing of \\$n in macro definition as in-line equation.

  • Print out what is in blocks of text in the various macro packages (-me, -ms, etc.) by default. Previously, these were, oddly, left out.

deroff's People

Contributors

ghfbsd avatar

Watchers

 avatar

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.