Can PostScript DocumentMedia раздел имеет Unicode Chars
-
15-11-2019 - |
Вопрос
Так что это определение раздела медиа документов
"%% documentmedia:
<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)
.
Этот комментарий указывает на все типы бумажных носителей (размеры бумаги, вес, вес, Цвет) Этот документ требует.Если какой-либо из атрибутов не применимо к определенной типичной ситуации, нули должны быть заменяет числовые параметры и нулевые струны должны быть заменены для текстовых параметров.Каждая другая среда, необходимая, должна быть перечислены в своем приближенном порядке употребления по убыванию. "
Я пытаюсь выводить двойные байтовые символы (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.