On Wed, 28 Mar 2012 11:46:06 +0000 (UTC) Guenter Milde <mi...@users.sf.net> wrote:
Excuse me for late reply...I was playing a bit with AsciiDoc and had some other tasks in the meantime... > On the input side, reStructuredText allows both, direct input as > Unicode character as well as via substitution definitions like :: > > .. |copy| unicode:: 0xA9 .. copyright sign > > Copyright |copy| 2012 OK. Thank you. > This depends on your understanding of "simpler": > > PDF output requires configuring LaTeX via packages and preamble code. > The details depend ou your choice between traditional 8-bit TeX and > XeTeX or LuaTeX as back-end. I bet that using XeTex/LuaTeX is no problem...at least, XeTeX is standard part of my TexLive package. > HTML output should work out of the box with a modern browser that does > the font substitution automatically. OK, but I'm curious how to mix fonts...for instance I've special font containing glyphs for planets & other astrological symbols and it provides such mapping that in my AsciiDoc file I can define something like: :sun: a and then use it, similar to the above, like: Symbol for the Sun is +{sun}+. The trick is that the text enclosed in '+' characters (e.g. +{sun}+) are rendered in monospaced font. Moreover, I defined the following mystyle.xsl which is invoked when transforming AsciiDoc document via dblatex backend: <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:import href="/home/gour/tmp/fossil/asciidoc-8.6.7/dblatex/asciidoc-dblatex.xsl"/> <xsl:param name="xetex.font"> <xsl:text>\setmainfont{Code2000} </xsl:text> <xsl:text>\setsansfont{Liberation Sans} </xsl:text> <xsl:text>\setmonofont{MaitreyaSymbols6} </xsl:text> </xsl:param> </xsl:stylesheet> and considering that desired font is set as \setmonofont, we get required glyphs. I bet something similar should be possible with Sphinx, right? Sincerely, Gour -- Before giving up this present body, if one is able to tolerate the urges of the material senses and check the force of desire and anger, he is well situated and is happy in this world. http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
signature.asc
Description: PGP signature