PostScript DocumentMedia 섹션에는 유니 코드 문자가 있습니다
-
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)
.
이 주석은 모든 종류의 용지 매체 (용지 크기, 무게, 색상)이 문서에는 필요합니다.속성 중 하나가 아닌 경우 특정 인쇄 상황에 적용 할 수 있으며, 0은 숫자 매개 변수와 널 문자열을 대체해야합니다. 텍스트 매개 변수의 경우.필요한 각 매체는해야합니다 사용 된 내림차순 수량의 대략적인 순서로 나열됩니다. "
이중 바이트 문자 (유니 코드)를 출력하려고합니다. 이 문자가 미디어의 이름에 허용되는지 여부를 알고 있습니까?
감사합니다
해결책
'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.