in

Quark Forums

How to handle upper-ASCII characters (entities) in XDOC

Last post 01-08-2008 11:00 AM by Thomas Neumaier (Quark). 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-12-2007 6:54 PM

    How to handle upper-ASCII characters (entities) in XDOC

    [I'm a newbie at Quark-to-XML, so all info (and references, etc.) are appreciated!]

    I've managed to create a fairly serviceable DTD, but one of the things I've not been able to do is to get the "special" characters in my documents to get translated to entities.

    Of course, the five default ones (apostrophes, ampersands, . . . ) get converted. But my documents have many more. I've tried adding declarations like the following into my DTD:

    <!ENTITY Agrave "&#192 ;" >*

    BUT, this doesn't work. (When I look at an XML I save-as-standalone using this DTD, the embedded DTD portion has further "translated" the ENTITY declarations. E.g.: <!ENTITY Agrave "&#38 ;Agrave ;"> )

    How can I get this to work?

    Many thanks,

    Dan

    *note: I couldn't figure out how to force this posting to NOT re-translate entities, so I've inserted a space before closing semicolon in each entity.
  • 01-08-2008 11:00 AM In reply to

    How to handle upper-ASCII characters (entities) in XDOC

    Hi Dan,

    QuarkXPress XML Import supports entity names with its actual decimal/hex value. That means all characters work fine if the mapping entity name with its actual decimal/hex value is removed.

    e.g. <!ENTITY Agrave "&#192 ;" >*
    In this case the mapping name of character "A with grave" is "Agrave" while its decimal value is 192. So for displaying character "A with grave" you need to replace &Agrave; with &#192 ; in the XML contents.

    Hope this helps,
    Thomas
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems