Question

Il s'agit donc de la définition de la section multimédia de document

"%% 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)

Ce commentaire indique tous les types de supports papier (tailles de papier, poids, couleur) Ce document nécessite.Si l'un des attributs ne sont pas applicable à une situation d'impression particulière, les zéros doivent être substitué aux paramètres numériques et les chaînes NULL doivent être substituées pour les paramètres de texte.Chaque média différent nécessaire devrait être énumérés dans son ordre approximatif de la quantité décroissante utilisée. "

J'essaie de générer des caractères à double octet (Unicode). Est-ce que quelqu'un sait si ces personnages sont autorisés pour le nom du média?

merci

Était-ce utile?

La solution

'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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top