Thanks Lex and Antonio, I've added it to the FAQ: http://www.methods.co.nz/asciidoc/faq.html#_using_roles_to_select_fonts_for_pdf
https://code.google.com/p/asciidoc/source/detail?r=17bcfd54f5a3cd5118c4dca633dafbcc6ed27619 Cheers, Stuart On 15/04/12 00:36, Lex Trotman wrote:
[...]I use command: a2x -f pdf --fop --xsl-file=my_fo.xsl top.txt The file "my_fo.xsl" is a wrapper around default /etc/.../fo.xsl: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:import href="/etc/asciidoc/docbook-xsl/fo.xsl"/> <xsl:template match="phrase[@role='zh']"> <fo:inline font-family="UMingCN"> <xsl:apply-templates/> </fo:inline> </xsl:template> </xsl:stylesheet>Thanks Antonio, doing that isn't too bad (now we know that is). @Stuart, I have attached a suggested FAQ entry to keep this info, Antonio should check it of course :) Since Gour found a workaround which meant he didn't have to persuade dblatex to do the same thing, the answer is for FOP only at the moment. Cheers LexIn my document I switch to Chinese font ("UMingCN" in this case) typing: this is English while [zh]#this is Chinese# and this is back English. The wrapper can be easily extended to support Russian and ancient Greek ;) -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
-- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
