I have an XML file with some elements that should be typeset right-to-left. I use ConTeXt directives to change the typesetting direction. But our web viewer does not seem to like those injections. Is there a way to produce both a PDF and an cleaned up XML (without those injections)?

Here's an MWE with a dummy injector:

<?xml version="1.0" encoding="utf-8" ?>
<?context-directive injector foo ?>
More Text.

\startxmlsetups xml:test


% Root
\startxmlsetups xml:article

% Paragraphs
\startxmlsetups xml:p

\startsetups xml:directive:injector:foo


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.