On 03/27/2014 04:06 PM, Niels Grundtvig Nielsen wrote:
First serious use of XML Mind, after successful proof of concept
documents: I'm now using it to collect information from a team of
developers and prepare a DITA-compliant configuration document for a client.

The deliverable is going to be a .pdf file, and I've noticed just a
couple of small glitches :-{

  * when I use <menucascade> in a <step>, the arrow character between
    the <uicontrol> elements knocks the output down so it no longer
    lines up with the step number

Yes, that's right and I really don't understand why the left arrow used in <menucascade> (&#x2192;) is considered by FOP and XEP to be a ``tall character''.




  * I've selected 'black left-pointing triangle' U+25C0 from the
    Characters pallette to match another uicontrol, and while it shows
    up as expected on screen it's rendered as # in the .pdf

That's normal because font Symbol does not contain U+25C0.

Please refer to this FAQ (which also applies to your case) to quickly solve this problem:

---
When I convert documents written in Russian (or Polish or Czech or any non-western language) to PDF, almost all characters are replaced by the "#" character. Is there a workaround for this problem?
---

http://www.xmlmind.com/xmleditor/faq.html#custom_pdf_fonts




Can I resolve both these problems by specifying a particular font for
the .pdf output? I know /that's/ possible, because you already told me
once where to find it in the documentation :-}


Sure. However this is slightly more complicated than simply using a different font for all the text including the left arrow (what's explained in the above FAQ). For that, you need to customize the XSL stylesheets which generate XSL-FO out of a DITA document.

--> The relevant parameters are:

menucascade-separator

Default value: &#x2192;

--> The relevant attribute-sets are:

menucascade-separator

Default value:
---
  <xsl:attribute-set name="menucascade-separator">
    <xsl:attribute name="font-family"
                   select="if ($foProcessor eq 'XFC')
                           then $body-font-family
                           else 'Symbol'"/>
  </xsl:attribute-set>
---

You may want to change attribute "font-family" from "Symbol" to a typeface containing U+25C0.

All these changes can be done quickly and safely from within XXE by using "Options|Customize Configuration|Customize Document Conversion Stylesheets" after opening you DITA map.

Please take the time to carefully read:

http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMenu.html#editConversionStylesheetsAction

and:

http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xslcustom.Customizer.html

--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to