“页面描述语言”和“标记语言”
根据他们的维基网页,我只是不明白他们有什么区别。为什么需要页面描述语言的标记适配——“页面描述标记语言”?
示例: 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
根据两者的维基百科页面,页面描述语言似乎描述了文本的布局方式页面,而标记语言只是一种注释文本的方法。这确实意味着您可以使用标记语言来注释文本以描述它应如何在打印页面上呈现,这称为 页面描述标记语言。
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.
您可以将页面描述语言视为类似于 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).
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.
我将从“页面描述标记语言”开始,引用维基百科关于主题的内容:
现在,标记语言,相同的来源:
最后,页面描述语言或 PDL:
据我了解,PDL 是严格特定于域的,并且可以但不必使用标记来编码页面内容。
I'll start from a "page description markup language" by quoting what Wikipedia has to say on the subject:
Now, a markup language, same source:
Finally, a page description language or PDL:
As I understand it, PDLs are strictly domain specific and may, but don't have to use markup to encode page contents.