“页面描述语言”和“标记语言”

发布于 2024-08-26 10:18:25 字数 458 浏览 11 评论 0原文

“页面描述语言”"标记语言"“页面描述标记语言”

根据他们的维基网页,我只是不明白他们有什么区别。为什么需要页面描述语言的标记适配——“页面描述标记语言”?

示例: PostScript 是一种页面描述语言。它是一种标记语言吗? HTML 和 Latex 都是标记语言。它们是页面描述语言吗?

What is the difference and relation between "Page description language", "markup language" and "Page description markup language"?

Based on their wiki webpages, I just don't understand what is their difference. Why needs there be a markup adaption of the Page description language - "Page description markup language"?

Examples:
PostScript is a page description language. Is it a markup language? HTML and Latex are markup language. Are they page description language?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

看海 2024-09-02 10:18:25

根据两者的维基百科页面,页面描述语言似乎描述了文本的布局方式页面,而标记语言只是一种注释文本的方法。这确实意味着您可以使用标记语言来注释文本以描述它应如何在打印页面上呈现,这称为 页面描述标记语言

Based on the Wikipedia pages for both it seems that a Page description language describes how text is laid out on a page, whereas a markup language is simply a means to annotate text. This does mean that you can use a markup language to annotate the text to describe how it should be presented on a printed page, this is called a Page description markup language.

眼波传意 2024-09-02 10:18:25

您可以将页面描述语言视为类似于 Word 文件的东西:它包含文本块以及将它们放置在何处的想法。标记语言只是提供某种类型上下文的数据列表。标记语言的一个很好的例子是 HTML:它为您放入其中的文本提供上下文,但布局在很大程度上是可变的。您基本上只是告诉 HTML 您的数据应该是什么样子;你没有将它微调到它应该看起来的样子(这就是 CSS 的用途)。

You can think of a page description language as something like a Word file: it's got blobs of text and an idea of where to put them. A markup language is just a listing of data that provides some type of context. A good example of a markup language is HTML: it gives context to the text that you put in it, but the layout is largely variable. You're basically just telling HTML what your data should look like; you're not fine-tuning it to what it should look like exactly (that's what CSS is for).

梦屿孤独相伴 2024-09-02 10:18:25

http://en.wikipedia.org/wiki/Page_description_language “描述外观的语言打印页面的“

http://en.wikipedia.org/wiki/Markup_language “a用于以在语法上与该文本可区分的方式注释文本的系统”,

其一是用于打印。

一是为人。

http://en.wikipedia.org/wiki/Page_description_language "a language that describes the appearance of a printed page"

http://en.wikipedia.org/wiki/Markup_language "a system for annotating a text in a way which is syntactically distinguishable from that text"

One is for printing.

One is for people.

暗喜 2024-09-02 10:18:25

我将从“页面描述标记语言”开始,引用维基百科关于主题的内容:

页面描述标记语言是一种用于描述打印页面外观的标记语言。它是页面描述语言(一种特定于域的编程语言)的标记改编,通常使用 XML 创建。

现在,标记语言,相同的来源

标记语言是一种以语法上可与文本区分的方式对文本进行注释的系统。

最后,页面描述语言或 PDL

页面描述语言 (PDL) 是一种比实际输出位图更高级别地描述打印页面外观的语言。

据我了解,PDL 是严格特定于域的,并且可以但不必使用标记来编码页面内容。

I'll start from a "page description markup language" by quoting what Wikipedia has to say on the subject:

A page description markup language is a type of markup language that is used to describe the appearance of a printed page. It is a markup adaption of the Page description language (which is a Domain-specific programming language), and is often created using XML.

Now, a markup language, same source:

A markup language is a system for annotating a text in a way which is syntactically distinguishable from that text.

Finally, a page description language or PDL:

A page description language (PDL) is a language that describes the appearance of a printed page in a higher level than an actual output bitmap.

As I understand it, PDLs are strictly domain specific and may, but don't have to use markup to encode page contents.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文