扁桃体化脓是什么原因引起的| 孕妇为什么不能吃山楂| 456什么意思| 忍冬是什么意思| 豆角和什么不能一起吃| 什么样的轮子只转不走| 点痣后用什么修复最好| 静的部首是什么| 屌丝是什么| 正月初九是什么星座| 皮脂腺是什么| 水瓶女和什么星座最配| 谁也不知道下一秒会发生什么| 吃毛蛋有什么好处| 喝醋对身体有什么好处| 猎户座是什么星座| 哪吒为什么叫哪吒| 高密度脂蛋白低是什么原因| 沙砾是什么意思| 当兵什么时候入伍| 正畸和矫正有什么区别| 眼睛干痒用什么眼药水比较好| 女性耻骨疼是什么原因| 雾霾是什么意思| 扁桃体发炎不能吃什么东西| 月子吃什么最下奶| 覆水难收什么意思| 目鱼和墨鱼有什么区别| 人为什么会长痔疮| 如日中天的意思是什么| 孕妇吃核桃对胎儿有什么好处| 肚子胀气用什么药| 咽炎咳嗽吃什么药| 乳腺纤维瘤和乳腺结节有什么区别| 肌肉萎缩挂什么科| 眼角长脂肪粒是什么原因| hdl是什么意思| 宝宝拉肚子能吃什么| 肝部有阴影一般都是什么病| 皮肤黄是什么原因| 潮吹是什么感觉| 孙膑原名叫什么| 结晶是什么意思| 丙肝有什么症状表现| 什么是白内障症状| 什么是前列腺增生| 雷什么风什么成语| 胆囊检查做什么检查| 天冬氨酸氨基转移酶高是什么原因| 洋参片泡水喝有什么功效| 72年鼠是什么命| 梦见发大水是什么意思| 洪字五行属什么| 肾炎的饮食应注意什么| 点天灯是什么意思| 水镜先生和司马懿是什么关系| 吸氧有什么好处| 手机cpu是什么| 什么是消炎药| 空气净化器什么牌子好| 12306什么时候放票| 喝什么缓解痛经最有效| 什么叫特应性皮炎| 语文是什么意思| 打不死的小强什么意思| 染色体由什么和什么组成| 滴滴什么意思| 肠胃炎吃什么消炎药| 体重突然下降是什么原因| 今年清明节有什么讲究| 钯金是什么金| 什么东西最补心脏| 子宫切除后要注意什么| 粘膜慢性炎是什么病| 打呼噜挂什么科室| 紫癜有什么症状| 脂膜炎是什么病| 铁锭是什么意思| ala是什么氨基酸| 失调是什么意思| 黑猫进家门预示着什么| 褥疮用什么药膏| 总是放响屁是什么原因| 6月8日什么星座| 平均血红蛋白含量偏低是什么意思| 中二病是什么| 出殡是什么意思| 江诗丹顿属于什么档次| 八面玲珑是什么数字| 乙型肝炎表面抗体阳性是什么意思| 下午五点半是什么时辰| 什么不及什么| 肺部结节挂什么科室| 私奔是什么意思| 五月七号是什么星座| 红煞是什么意思| negative是什么意思| 小孩为什么吃果糖二磷酸钠| 乙酉是什么意思| 抽风是什么意思| 为什么阴道会放气| 任劳任怨是什么生肖| 睡醒咳嗽是什么原因| 黑眼圈是什么原因造成的| 什么的松脂| 半夜两点是什么时辰| 风雨交加是什么生肖| 心内科是看什么病的| 冰藤席是什么材质| 家里来狗是什么征兆| 谷氨酰基转移酶低是什么原因| 淋巴肿瘤吃什么食物好| 糖化是什么意思| 排卵期同房后要注意什么| 芈月传芈姝结局是什么| 有生之年什么意思| 息肉和痔疮有什么区别| s.m是什么意思| 大腿外侧是什么经络| 今年17岁属什么| 兔子为什么不吃窝边草| 射手座的幸运色是什么颜色| 什么叫通勤| 小孩摇头是什么原因| fan是什么意思| 25羟基维生素d是什么| 槊是什么兵器| 贞操是什么| 二甲双胍什么时候吃| 什么奶茶最好喝| 补血吃什么食物最好| 3月9日什么星座| 广西为什么简称桂| ins是什么| 每天跑步对身体有什么好处| 什么是肾阳虚| 荡是什么意思| 捡漏什么意思| 为什么会长生长纹| 排尿困难是什么原因男性| 拔牙挂什么科| 看破红尘下一句是什么| 湿热体质吃什么中成药| 王维被称为什么| 肩膀上的肌肉叫什么| 植物生长需要什么| 谷草谷丙低是什么原因| 喝莓茶对身体有什么好处| 痔疮和肛周脓肿有什么区别| 年轻人手抖是什么原因| 2月7号什么星座| 惊涛骇浪什么意思| 子女宫是什么意思| 什么是免疫治疗| 王久是什么字| 1965年什么时候退休| 非均匀性脂肪肝是什么意思| 外阴白斑是什么症状| 考试前不能吃什么| 浮躁的意思是什么| 胎盘成熟度2级是什么意思| 大象像什么| 天山翠属于什么玉| 小孩记忆力差是什么原因| 呼吸道感染用什么药| 激酶是什么| 睡眠时间短是什么原因| 性欲是什么| 晚上睡觉手发麻是什么原因| hip是什么意思| 哥弟属于什么档次| 气血两虚吃什么药| 多囊是什么意思| 骨转移用什么药| 体细胞是什么意思| 焦虑是什么| 月台是什么意思| 雌二醇低吃什么补得快| 女人梦见虫子什么预兆| 脚背浮肿是什么原因引起的| 腹部疼痛挂什么科| 故什么意思| 魔芋是什么东西| zeesea是什么牌子| 药流之后需要注意什么| 持续耳鸣是什么原因引起的| 梦见中奖了预兆什么| 肠道痉挛吃什么药| 邪火是什么意思| 除夕是什么意思| 外甥像舅舅有什么说法| 转氨酶高挂什么科| 什么伤肝| 酸笋炒什么好吃| 心电图能检查出什么| 长卿是什么意思| 翻墙是什么| 经常射精有什么危害| 媾是什么意思| 什么不足| 水晶消磁是什么意思| 城隍庙是什么神| 上炕是什么意思| 今天属什么生肖老黄历| 安道尔微信暗示什么| 寡欲是什么意思| 属兔的婚配什么属相好| 明胶是什么东西| 夏天吃姜有什么好处| 面藕是什么做的| 肾阳虚有什么症状| 八月十号是什么星座| ldh是什么| 1976年出生属什么生肖| 彬字五行属什么| 2035年属什么生肖| 母亲节说什么| 什么牌子的空调好| 该说不说的是什么意思| 小孩风热感冒吃什么药| 梦见生娃娃是什么意思| 泰山石敢当什么意思| 什么枯石烂| 蒲公英的约定表达什么| 2月是什么星座| 长春有什么大学| 聪明是什么意思| 六一送女孩子什么礼物| 一个黑一个今念什么| 乌豆是什么| 什么叫四维空间| 早搏什么症状| 天然气是什么气体| 仲夏夜是什么时候| 什么是肝阳上亢| 什么是化石| 无咎是什么意思| 治白内障用什么药最好| 受委屈是什么意思| 每天放很多屁是什么原因| 神父是什么意思| 怕热是什么体质| 多头是什么意思| 附骨疽是什么病| 9月3号是什么节日| 淋巴系统由什么组成| 出国旅游需要什么手续和证件| 什么症状要查心肌酶| 小孩咳嗽不能吃什么食物| 白兰地是什么酒| 三生石是什么意思| 国家能源局是什么级别| 验血脂挂什么科| dna是什么意思| 眼睛有眼屎是什么原因| 胎毒是什么样子的图片| 重金属中毒喝什么解毒| 良去掉一点读什么| 什么是个体工商户| 什么补血补气最好最快| 小孩老是咬手指甲是什么原因| 胃一阵一阵绞痛是什么原因| 潜血是什么意思| 火腿肠炒什么好吃| 百度

中国青年网:传承优秀文化 吹响进步号角

百度 原标题:河南郑州:聋哑母亲剖宫产护士全程写字沟通央视网消息:近日,郑州市妇幼保健院迎来了一位特殊的产妇,为了帮助这名聋哑产妇稳定情绪、顺利生产,麻醉科的护士全程用纸条和她沟通,最终这位产妇顺利产下了一名女婴。

PostScript (PS) is a page description language and dynamically typed, stack-based programming language. It is most commonly used in the electronic publishing and desktop publishing realm, but as a Turing complete programming language, it can be used for many other purposes as well. PostScript was created at Adobe Systems by John Warnock, Charles Geschke, Doug Brotz, Ed Taft and Bill Paxton from 1982 to 1984. The most recent version, PostScript 3, was released in 1997.

PostScript
PostScript 3 logo
ParadigmMulti-paradigm: concatenative (stack-based), procedural
Designed byJohn Warnock, Chuck Geschke, Doug Brotz, Ed Taft, Bill Paxton
DeveloperAdobe Systems
First appeared1982; 43 years ago (1982)
Stable release
PostScript 3 / 1997; 28 years ago (1997)
Typing disciplineDynamic, weak
Major implementations
Adobe PostScript, TrueImage, Ghostscript
Influenced by
Mesa,[1] Interpress, Lisp
Influenced
PDF
PostScript (file format)
Filename extension
.ps
Internet media type
application/postscript
Uniform Type Identifier (UTI)com.adobe.postscript
Magic number%!
Developed byAdobe Systems
Type of formatprinting file format
Extended toEncapsulated PostScript

History

edit

The concepts of the PostScript language were seeded in 1976 by John Gaffney at Evans & Sutherland,[2][3][4] a computer graphics company. At that time, Gaffney and John Warnock were developing an interpreter for a large three-dimensional graphics database of New York Harbor.

Concurrently, researchers at Xerox PARC had developed the first laser printer and had recognized the need for a standard means of defining page images. In 1975–76 Bob Sproull and William Newman developed the Press format, which was eventually used in the Xerox Star system to drive laser printers. But Press, a data format rather than a language, lacked flexibility, and PARC mounted the Interpress effort to create a successor.

In 1978, John Gaffney and Martin Newell then at Xerox PARC wrote J & M or JaM[2][5] (for "John and Martin") which was used for VLSI design and the investigation of type and graphics printing. This work later evolved and expanded into the Interpress language.

Warnock left with Chuck Geschke and founded Adobe Systems in December 1982. They, together with Doug Brotz, Ed Taft and Bill Paxton created a simpler language, similar to Interpress, called PostScript, which went on the market in 1984.

Meanwhile, in the spring of 1983, Steve Jobs came to visit Adobe and was dazzled by PostScript's potential, especially for the new Macintosh computer he was developing at Apple.[6] To John Sculley's frustration, Jobs licensed the PostScript technology from Adobe by offering a $1.5 million advance against PostScript royalties, plus $2.5 million in exchange for 20 percent of Adobe shares.[7] During a series of meetings in 1983, Jobs also repeatedly offered for Apple to buy Adobe outright, but the founders kept turning him down.[7] In December 1983, the two companies finally signed off on the PostScript licensing deal, and Adobe had to shift focus immediately from high-end, high-resolution printing devices to the consumer-oriented Apple LaserWriter laser printer.[8]

At that time, the 300-dpi Canon laser printing engine to be used in LaserWriters was seen as good enough only for proof printing (i.e., for crude rough drafts of material whose final drafts would be sent to professional high-resolution devices), but Jobs presented Adobe with the challenge of making PostScript render high-quality output to such a low-resolution device (which for most consumers would be their only printing device).[9] In response, Warnock and Brotz solved the so-called "appearance problem" of making the stem width of letters scale properly so that they look good at all resolutions.[10] Their breakthrough was so important that Adobe never patented the technology, in order to keep its details concealed as a trade secret.[10] Many years later, Warnock revealed the trade secret in a 2010 lecture, and in 2022, Adobe publicly released an early version of PostScript's original source code from February 1984.[11] Paxton worked on several other related improvements, such as font hinting.[10] This work occurred after February 1984, meaning that Paxton's improvements were not included in the source code release and are still protected as trade secrets.[11] Adobe was also responsible for porting PostScript to the Canon's Motorola 68000 chip.[10]

Apple and Adobe announced the LaserWriter at Apple's annual stockholder meeting on January 23, 1985.[12] It was the first printer to ship with PostScript, sparking the desktop publishing (DTP) revolution in the mid-1980s.[13] The original PostScript royalty was five percent of the list price for each laser printer sold, which was $350 of the original LaserWriter list price of $6,995, and such royalties provided nearly all of Adobe's income during its early years.[14] (Apple later renegotiated the contract to pay a licensing fee based on volume of printers shipped.)[14] The combination of technical merits and widespread availability made PostScript the language of choice for graphical output for printing applications. An interpreter (sometimes referred to as a RIP for Raster Image Processor) for the PostScript language was a common component of laser printers during the 1980s and 1990s.

However, the cost of implementation was high; computers output raw PS code that would be interpreted by the printer into a raster image at the printer's natural resolution. This required high-performance microprocessors and ample memory. The LaserWriter used a 12 MHz Motorola 68000, making it faster than any of the Macintosh computers to which it was attached.[15] When the laser printer engines themselves cost over a thousand dollars, the added cost of PS was marginal. But, as printer mechanisms fell in price, the cost of implementing PS became too great a fraction of overall printer cost. In addition, with desktop computers becoming more powerful during the 1990s than their attached printers, it no longer made sense to offload the rasterization work onto the resource-constrained printer. By 2001, few low-end printer models came with onboard support for PostScript, largely due to growing competition from much cheaper non-PostScript inkjet printers, and new software-based methods to render PostScript images on computers, making them suitable for any printer. PDF, a descendant of PostScript, provides one such method, and has largely replaced PostScript as the de facto standard for electronic document distribution.

On high-end printers, PostScript processors remain common, and their use can dramatically reduce the CPU work involved in printing documents, transferring the work of rendering PostScript images from the computer to the printer.

PostScript Level 1

edit

The first version of the PostScript language was released to the market in 1984. The qualifier Level 1 was added when Level 2 was introduced.[16]

PostScript Level 2

edit

PostScript Level 2 was introduced in 1991, and included several improvements: improved speed and reliability, support for in-Raster Image Processing (RIP) separations, image decompression (for example, JPEG images could be rendered by a PostScript program), support for composite fonts, and the form mechanism for caching reusable content.[16]

PostScript 3

edit

PostScript 3 (Adobe dropped the "level" terminology in favor of simple versioning) came at the end of 1997, and along with many new dictionary-based versions of older operators, introduced better color handling and new filters (which allow in-program compression/decompression, program chunking, and advanced error handling).

PostScript 3 was significant in terms of replacing the existing proprietary color electronic prepress systems, then widely used for magazine production, through the introduction of smooth shading operations with up to 4096 shades of grey (rather than the 256 available in PostScript Level 2), as well as DeviceN, a color space that allowed the addition of additional ink colors (called spot colors) into composite color pages.[16][17]

Use in printing

edit

Before PostScript

edit

Prior to the introduction of Interpress and PostScript, printers were designed to print character output given the text—typically in ASCII—as input.[citation needed] There were a number of technologies for this task, but most shared the property that the glyphs were physically difficult to change, as they were stamped onto typewriter keys, bands of metal, or optical plates.

This changed to some degree with the increasing popularity of dot matrix printers. The characters on these systems were drawn as a series of dots, as defined by a font table inside the printer. As they grew in sophistication, dot matrix printers started including several built-in fonts from which the user could select, and some models allowed users to upload their own custom glyphs into the printer.

Dot matrix printers also introduced the ability to print raster graphics.[18] The graphics were interpreted by the computer and sent as a series of dots to the printer using a series of escape sequences. These printer control languages varied from printer to printer, requiring program authors to create numerous drivers.

Vector graphics printing was left to special-purpose devices, called plotters. Almost all plotters shared a common command language, HPGL, but were of limited use for anything other than printing graphics. In addition, they tended to be expensive and slow, and thus rare.

PostScript printing

edit

Laser printers combine the best features of both printers and plotters. Like plotters, laser printers offer high-quality line art, and like dot-matrix printers, they are able to generate pages of text and raster graphics. Unlike either printers or plotters, a laser printer makes it possible to position high-quality graphics and text on the same page. PostScript made it possible to fully exploit these characteristics by offering a single control language that could be used on any brand of printer.

PostScript went beyond the typical printer control language and was a complete programming language of its own. Many applications can transform a document into a PostScript program, the execution of which results in the original document. This program can be sent to an interpreter in a printer, which results in a printed document, or to one inside another application, which will display the document on-screen. Since the document-program is the same regardless of its destination, it is called device-independent.

PostScript is noteworthy for implementing on-the-fly rasterization in which everything, even text, is specified in terms of straight lines and cubic Bézier curves (previously found only in CAD applications), which allows arbitrary scaling, rotating and other transformations. When the PostScript program is interpreted, the interpreter converts these instructions into the dots needed to form the output. For this reason, PostScript interpreters are occasionally called PostScript raster image processors, or RIPs.

Font handling

edit

Almost as complex as PostScript itself is its handling of fonts. The font system uses the PS graphics primitives to draw glyphs as curves, which can then be rendered at any resolution. A number of typographic issues had to be considered with this approach.

One issue is that fonts do not scale linearly at small sizes and features of the glyphs will become proportionally too large or small and start to look displeasing. PostScript avoided this problem with the inclusion of font hinting, in which additional information is provided in horizontal or vertical bands to help identify the features in each letter that are important for the rasterizer to maintain. The result was significantly better-looking fonts even at low resolution. It had formerly been believed that hand-tuned bitmap fonts were required for this task.

At the time, the technology for including these hints in fonts was carefully guarded, and the hinted fonts were compressed and encrypted into what Adobe called a Type 1 Font (also known as PostScript Type 1 Font, PS1, T1 or Adobe Type 1). Type 1 was effectively a simplification of the PS system to store outline information only, as opposed to being a complete language (PDF is similar in this regard). Adobe would then sell licenses to the Type 1 technology to those wanting to add hints to their own fonts. Those who did not license the technology were left with the Type 3 Font (also known as PostScript Type 3 Font, PS3 or T3). Type 3 fonts allowed for all the sophistication of the PostScript language, but without the standardized approach to hinting.

The Type 2 font format was designed to be used with Compact Font Format (CFF) charstrings, and was implemented to reduce the overall font file size. The CFF/Type2 format later became the basis for handling PostScript outlines in OpenType fonts.

The CID-keyed font format was also designed, to solve the problems in the OCF/Type 0 fonts, for addressing the complex Asian-language (CJK) encoding and very large character set issues. The CID-keyed font format can be used with the Type 1 font format for standard CID-keyed fonts, or Type 2 for CID-keyed OpenType fonts.

To compete with Adobe's system, Apple designed their own system, TrueType, around 1991. Immediately following the announcement of TrueType, Adobe published the specification for the Type 1 font format. Retail tools such as Altsys Fontographer (acquired by Macromedia in January 1995, owned by FontLab since May 2005) added the ability to create Type 1 fonts. Since then, many free Type 1 fonts have been released; for instance, the fonts used with the TeX typesetting system are available in this format.

In the early 1990s, there were several other systems for storing outline-based fonts, developed by Bitstream and Metafont for instance, but none included a general-purpose printing solution and they were therefore not widely used.

In the late 1990s, Adobe joined Microsoft in developing OpenType, essentially a functional superset of the Type 1 and TrueType formats. When printed to a PostScript output device, the unneeded parts of the OpenType font are omitted, and what is sent to the device by the driver is the same as it would be for a TrueType or Type 1 font, depending on which kind of outlines were present in the OpenType font.

Adobe supported Type 1 fonts in its products until January 2023, when it fully removed support in favor of OpenType fonts.[19]

Other implementations

edit

In the 1980s, Adobe drew most of its revenue from the licensing fees for their implementation of PostScript for printers, known as a raster image processor or RIP. As a number of new RISC-based platforms became available in the mid-1980s, some found Adobe's support of the new machines to be lacking.

This and issues of cost led to third-party implementations of PostScript becoming common, particularly in low-cost printers (where the licensing fee was the sticking point) or in high-end typesetting equipment (where the quest for speed demanded support for new platforms faster than Adobe could provide). At one point, Microsoft licensed to Apple a PostScript-compatible interpreter it had bought called TrueImage, and Apple licensed to Microsoft its new font format, TrueType. Apple ended up reaching an accord with Adobe and licensed genuine PostScript for its printers, but TrueType became the standard outline font technology for both Windows and the Macintosh.

Today, third-party PostScript-compatible interpreters are widely used in printers and multifunction peripherals (MFPs). For example, CSR plc's IPS PS3[20] interpreter, formerly known as PhoenixPage, is standard in many printers and MFPs, including those developed by Hewlett-Packard and sold under the LaserJet and Color LaserJet lines. Other third-party PostScript solutions used by print and MFP manufacturers include Jaws[21] and the Harlequin RIP, both by Global Graphics. A free software version, with several other applications, is Ghostscript. Several compatible interpreters are listed on the Undocumented Printing Wiki.[22]

Some basic, inexpensive laser printers do not support PostScript, instead coming with drivers that simply rasterize the platform's native graphics formats rather than converting them to PostScript first. When PostScript support is needed for such a printer, Ghostscript can be used. There are also a number of commercial PostScript interpreters, such as TeleType Co.'s T-Script or Brother's BR-Script3.

Use as a display system

edit

PostScript became commercially successful due to the introduction of the graphical user interface (GUI), allowing designers to directly lay out pages for eventual output on laser printers. However, the GUIs' own graphics systems were generally much less sophisticated than PostScript; Apple's QuickDraw, for instance, supported only basic lines and arcs, not the complex B-splines and advanced region filling options of PostScript. In order to take full advantage of PostScript printing, applications on the computers had to re-implement those features using the host platform's own graphics system. This led to numerous issues where the on-screen layout would not exactly match the printed output, due to differences in the implementation of these features.

As computer power grew, it became possible to host the PS system in the computer rather than the printer. This led to the natural evolution of PS from a printing system to one that could also be used as the host's own graphics language. There were numerous advantages to this approach; not only did it help eliminate the possibility of different output on screen and printer, but it also provided a powerful graphics system for the computer, and allowed the printers to be "dumb" at a time when the cost of the laser engines was falling. In a production setting, using PostScript as a display system meant that the host computer could render low-resolution to the screen, higher resolution to the printer, or simply send the PS code to a smart printer for offboard printing.

However, PostScript was written with printing in mind, and had numerous features that made it unsuitable for direct use in an interactive display system. In particular, PS was based on the idea of collecting up PS commands until the showpage command was seen, at which point all of the commands read up to that point were interpreted and output. In an interactive system, this was clearly not appropriate, nor did PS have any sort of interactivity built in; for example, supporting hit detection for mouse interactivity obviously did not apply when PS was being used on a printer.

When Steve Jobs left Apple and started NeXT, he pitched Adobe on the idea of using PS as the display system for his new workstation computers. The result was Display PostScript, or DPS. DPS added basic functionality to improve performance by changing many string lookups into 32 bit integers, adding support for direct output with every command, and adding functions to allow the GUI to inspect the diagram. Additionally, a set of "bindings" was provided to allow PS code to be called directly from the C programming language. NeXT used these bindings in their NeXTStep system to provide an object oriented graphics system. Although DPS was written in conjunction with NeXT, Adobe sold it commercially and it was a common feature of most Unix workstations in the 1990s.

Sun Microsystems took another approach, creating NeWS. Instead of DPS's concept of allowing PS to interact with C programs, NeWS instead extended PS into a language suitable for running the entire GUI of a computer. Sun added a number of new commands for timers, mouse control, interrupts and other systems needed for interactivity, and added data structures and language elements to allow it to be completely object oriented internally. A complete GUI, three in fact, were written in NeWS and provided for a time on their workstations. However, the ongoing efforts to standardize the X11 system led to its introduction and widespread use on Sun systems, and NeWS never became widely used.

Portable Document Format

edit

PDF and PostScript share the same imaging model, and both documents are mutually convertible to each other. Both documents produce the same result when printed. The difference between PDF and PostScript is that PDF lacks the general-purpose programming language framework of the PostScript language. A PDF document is a static data structure made for efficient access and embeds navigational information suitable for interactive viewing.[23]:?9?

The language

edit

PostScript is a Turing-complete programming language, belonging to the concatenative group of programming languages. It is an interpreted, stack-based language similar to Forth but with strong dynamic typing, data structures inspired by those found in Lisp, scoped memory and, since language level 2, garbage collection. The language syntax uses reverse Polish notation, which makes the order of operations unambiguous, but reading a program requires some practice, because one has to keep the layout of the stack in mind. Most operators (what other languages term functions) take their arguments from the stack, and place their results onto the stack. Literals (for example, numbers) have the effect of placing a copy of themselves on the stack. Sophisticated data structures can be built on the array and dictionary types, but cannot be declared to the type system, which sees them all only as arrays and dictionaries, so any further typing discipline to be applied to such user-defined "types" is left to the code that implements them.

The character "%" is used to introduce comments in PostScript programs. As a convention, every PostScript program should start with the characters "%!PS" as an interpreter directive so that all devices will properly interpret it as PostScript.

PostScript programs are typically divided into two parts, conventionally called the prolog and the script. The prolog contains procedures and is written by a programmer. The script passes data to those procedures. The script is often generated automatically, using a programming language other than PostScript.[24]

"Hello world"

edit

A Hello World program, the customary way to show a small example of a complete program in a given language, might look like this in PostScript (level 2):

 %!PS
 /Courier             % name the desired font
 20 selectfont        % choose the size in points and establish 
                      % the font as the current one
 72 500 moveto        % position the current point at 
                      % coordinates 72, 500 (the origin is at the 
                      % lower-left corner of the page)
 (Hello world!) show  % paint the text in parentheses
 showpage             % print all on the page

or if the output device has a console

 %!PS
 (Hello world!) =

Units of length

edit

PostScript uses the point as its unit of length. However, unlike some of the other versions of the point, PostScript uses exactly 72 points to the inch. Thus:

1 point = ?1/72? inch = ?25.4/72? mm = ?127/360? mm = 352.777… micrometers

For example, in order to draw a vertical line of 4 cm length, it is sufficient to type:

0 0 moveto 
0 113.385827 rlineto stroke

More readably and idiomatically, one might use the following equivalent, which demonstrates a simple procedure definition and the use of the mathematical operators mul and div:

/cm {72 mul 2.54 div} def               % 1 inch = 2.54 cm exactly
 0 0 moveto
 0 4 cm rlineto stroke

(Technically, most printers have a construction-implied unprintable margin around the physical borders of the sheet, and the 0 0 coordinates are calibrated to its corner,[23]:?section 4.3.1? so you might have to use a different starting point to actually see something.)

Most implementations of PostScript use single-precision reals[23]:?appendix B? (24-bit mantissa), so it is not meaningful to use more than 9 decimal digits to specify a real number, and performing calculations may produce unacceptable round-off errors.

Software

edit

Software which can be used to render PostScript documents:

See also

edit

References

edit
  1. ^ Perry, T.S. (May 1988). "'PostScript' prints anything: a case history". IEEE Spectrum. 25 (5): 42–46. doi:10.1109/6.4550. S2CID 33376390.
  2. ^ a b Reilly, Edwin (2003). Milestones in Computer Science and Information Technology. Greenwood Publishing Group. p. 206. ISBN 9781573565219.
  3. ^ Peterson, J.K (Jun 28, 2018). Fiber Optics Illustrated Dictionary. Taylor & Francis Group. ISBN 9781138455757.
  4. ^ Nguyen, Binh (2004). Linux Dictionary (0.16 ed.). Binh Nguyen. Archived from the original on 24 February 2021. Retrieved 28 September 2019.
  5. ^ Biancuzzi, Federico; Warden, Shane (2009). "Chapter 16. PostScript". Masterminds of Programming. O'Reilly Media, Inc. ISBN 9780596515171.
  6. ^ Pfiffner, Pamela (2003). Inside the Publishing Revolution: The Adobe Story. Berkeley: Peachpit Press. p. 33. ISBN 0-321-11564-3.
  7. ^ a b Pfiffner, Pamela (2003). Inside the Publishing Revolution: The Adobe Story. Berkeley: Peachpit Press. p. 34. ISBN 0-321-11564-3.
  8. ^ Pfiffner, Pamela (2003). Inside the Publishing Revolution: The Adobe Story. Berkeley: Peachpit Press. p. 35. ISBN 0-321-11564-3.
  9. ^ Pfiffner, Pamela (2003). Inside the Publishing Revolution: The Adobe Story. Berkeley: Peachpit Press. p. 36. ISBN 0-321-11564-3.
  10. ^ a b c d Pfiffner, Pamela (2003). Inside the Publishing Revolution: The Adobe Story. Berkeley: Peachpit Press. p. 37. ISBN 0-321-11564-3.
  11. ^ a b Brock, David (December 1, 2022). "PostScript: A Digital Printing Press". CHM Blog. Computer History Museum.
  12. ^ Pfiffner, Pamela (2003). Inside the Publishing Revolution: The Adobe Story. Berkeley: Peachpit Press. p. 47. ISBN 0-321-11564-3.
  13. ^ Pfiffner, Pamela (2003). Inside the Publishing Revolution: The Adobe Story. Berkeley: Peachpit Press. p. 48. ISBN 0-321-11564-3.
  14. ^ a b Pfiffner, Pamela (2003). Inside the Publishing Revolution: The Adobe Story. Berkeley: Peachpit Press. p. 69. ISBN 0-321-11564-3.
  15. ^ Pfiffner, Pamela (2003). Inside the Publishing Revolution: The Adobe Story. Berkeley: Peachpit Press. p. 53. ISBN 0-321-11564-3.
  16. ^ a b c "Differences Between Adobe PostScript Levels 1, 2, and 3". ThoughtCo. Retrieved 2025-08-05.
  17. ^ "PostScript 3 General Information". Adobe. 2025-08-05. Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  18. ^ "Dot-Matrix Graphics". www.ibm.com. Retrieved 2025-08-05.
  19. ^ "PostScript Type 1 fonts end of support". Adobe. Retrieved 2 March 2024.
  20. ^ IPS PS3, CSR, archived from the original on 2025-08-05
  21. ^ Jaws, Global graphics, archived from the original on 2025-08-05, retrieved 2025-08-05
  22. ^ "Page description languages: Postscript", Formats, Undocumented Printing, archived from the original (wiki) on 2025-08-05, retrieved 2025-08-05
  23. ^ a b c Adobe Systems (1999). PostScript language reference (PDF) (3 ed.). Reading, Mass.: Addison-Wesley. ISBN 0-201-37922-8. OCLC 40543937. Archived (PDF) from the original on 2025-08-05. Retrieved 2025-08-05.
  24. ^ Adobe Systems Inc. PostScript Language Reference Manual , 2nd ed., Appendix G, Document Structuring Conventions-Version 3.0. Addison Wesley, 1990, p. 611.

Further reading

edit
edit
布洛芬是什么 植脂末是什么东西 性功能下降吃什么药好 补白蛋白吃什么食物最快最好 螃蟹不能和什么食物一起吃
执业药师是干什么的 洗涤剂是什么 重庆为什么叫雾都 精字五行属什么 无可厚非什么意思
蛋白粉什么时候喝最好 浅尝辄止什么意思 郭富城什么星座 排卵试纸一深一浅说明什么 1975年五行属什么
一什么之 贴切是什么意思 咳嗽吃什么菜好 肛门胀痛什么原因 手术后吃什么最好
异麦芽酮糖醇是什么1949doufunao.com 女生流白带意味着什么hcv7jop5ns1r.cn 木安读什么hcv7jop6ns9r.cn 中水是什么意思hcv8jop3ns1r.cn 12月20是什么星座hcv9jop1ns0r.cn
肛裂吃什么药hcv9jop0ns0r.cn gloomy是什么意思cj623037.com 黄瓜不能和什么一起吃hcv9jop5ns9r.cn 首级是什么意思hcv8jop8ns9r.cn 双侧骶髂关节致密性骨炎是什么病hcv8jop6ns5r.cn
吃什么指甲长得快hcv8jop8ns4r.cn 喉咙发痒吃什么药hcv9jop6ns2r.cn 什么是虎牙hcv7jop9ns6r.cn gift什么意思hcv8jop5ns2r.cn 老年人腿疼是什么原因引起的hcv9jop8ns2r.cn
男人阳气不足有什么症状hcv7jop9ns4r.cn 88年的龙是什么命bfb118.com 牙龈黑紫色是什么原因hcv9jop8ns0r.cn 痰饮是什么意思hcv7jop9ns0r.cn 陶和瓷有什么区别hcv8jop4ns0r.cn
百度