所以这是文档媒体部分的定义

“%% deposermedia:

     <medianame> ::= <text> (Tag name of the media)
     <attributes> ::= <width> <height> <weight> <color> <type>
     <width> ::= <real> (Width in PostScript units)
     <height> ::= <real> (Height in PostScript units)
     <weight> ::= <real> (Weight in g/m2)
     <color> ::= <text> (Paper color)
     <type> ::= <text> (Type of pre-printed form)
.

此评论表示所有类型的纸质介质(纸张尺寸,重量, 颜色)本文档需要。如果任何属性不是 适用于特定的印刷状况,Zeroes必须是 取代数字参数和空字符串必须替换 用于文本参数。每个需要的介质应该是 以其近似下降量的近似顺序列出。“

我正在尝试在其中输出双字节字符(Unicode)。 有谁知道这些字符是否允许媒体的名称?

感谢

有帮助吗?

解决方案

'allowed' is a bit nebulous. However since the definition of text strings says that a text string is composed of 'printable characters' I think its reasonable to say no, the inital byte of a Unicode value would not be a 'printable character.

Bear in mind that DSC is a very old standard, its fairly obvious it only expects ASCII. Since PostScript does not support Unicode I would have to say that its unlikely that DSC would do so.

It isn't absolutely clear this is so, because DSC comments are comments to a PostScript interpreter, and so ignored. But that's my opinion.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top