请输入您要查询的百科知识:

 

词条 Pic language
释义

  1. References

  2. External links

In computing, Pic is a domain-specific programming language by Brian Kernighan for specifying diagrams in terms of objects such as boxes with arrows between them. The pic compiler translates this description into concrete drawing commands. Pic is a procedural programming language, with variable assignment, macros, conditionals, and looping. The language is an example of a little language originally intended for the comfort of non-programmers in the Unix environment (Bentley 1988).

Pic was first implemented, and is still most typically used, as a preprocessor in the troff document processing system. The pic preprocessor filters a troff document, replacing diagram descriptions by concrete drawing commands, and passing the rest of the document through without change.

A version of pic is included in groff, the GNU version of troff. GNU pic can also act as a preprocessor for TeX documents, emitting its own tpic DVI specials, which aren't as widely supported as those of other TeX drivers (like PostScript).[1] Arbitrary diagram text can be included for formatting by the word processor to which the pic output is directed, and arbitrary post-processor commands can also be included. Dwight Aplevich's implementation, DPIC, can also generate postscript or svg images by itself, as well as act as a preprocessor. The three principal sources of pic processors are GNU pic, found on many Linux systems, and dpic, both of which are free, and the original AT&T pic.

Pic has some similarity with MetaPost and the DOT language.

References

1. ^{{cite book|title=The LaTeX Graphics Companion|year=2008|publisher=Addison-Wesley|isbn=978-0-321-50892-8|author=Michel Goossens, Frank Mittelbach, Sebastian Rahtz, Denis Roegel, Herbert Voß|edition=2nd|pages=17–20}}
Notes
  • {{cite journal|last=Kernighan|first=Brian W.|year=1982|title=PIC - A Language for Typesetting Graphics|journal=Software Practice Experience|issue=12|pages=1–20}}
  • J. Bentley. More Programming Pearls, Addison-Wesley (1988).

External links

  • Making Pictures With GNU PIC
  • Troff resources (see the "pic" section)
  • {{cite web|url=http://onlamp.com/pub/a/onlamp/2007/06/21/in-praise-of-pic.html?page=1|title=In Praise of Pic|last=Janert|first=Philipp K.|date=June 21, 2007|work=ONLamp.com|publisher=O'Reilly Media|accessdate=2011-09-06}}
  • DPIC, an implementation of the PIC language by Dwight Aplevich. This implementation has a few nice extensions and outputs many different image formats.
  • [https://web.archive.org/web/20110929131155/http://figr.bzero.se/ figr], web based pic renderer.
  • {{cite techreport|author=Brian W. Kernighan|author-link=Brian Kernighan|title=PIC — A Graphics Language for Typesetting. User Manual|institution=Bell Laboratories|work=CSTR #116|edition=Revised|year=1991|url=http://plan9.bell-labs.com/10thEdMan/pic.pdf}}
  • http://yytex.googlecode.com/svn/trunk/txt/tpicspec.txt
{{compu-lang-stub}}

1 : Troff

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/30 22:21:16