-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1408 from lucaswerkmeister/texinfo
Add Texinfo support
- Loading branch information
Showing
8 changed files
with
496 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version='1.0'?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:exsl="http://exslt.org/common" | ||
exclude-result-prefixes="exsl" | ||
version='1.0'> | ||
|
||
<xsl:template match="para"> | ||
<xsl:apply-templates/> | ||
<xsl:text> <!-- explicit blank line --> | ||
|
||
</xsl:text> | ||
</xsl:template> | ||
|
||
<xsl:template match="itemizedlist"> | ||
@itemize @bullet | ||
<xsl:apply-templates/> | ||
@end itemize | ||
</xsl:template> | ||
|
||
<xsl:template match="listitem"> | ||
@item <xsl:apply-templates/> | ||
</xsl:template> | ||
|
||
<xsl:template match="comment"> | ||
@smallindentedblock | ||
<xsl:apply-templates/> | ||
@end smallindentedblock | ||
</xsl:template> | ||
|
||
<xsl:template match="programlisting"> | ||
@example | ||
<xsl:apply-templates/> | ||
@end example | ||
</xsl:template> | ||
|
||
<xsl:template match="screen"> | ||
@quotation | ||
<xsl:apply-templates/> | ||
@end quotation | ||
</xsl:template> | ||
|
||
<xsl:template match="synopsis"> | ||
@verbatim | ||
<xsl:value-of select="."/> | ||
@end verbatim | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version='1.0'?> | ||
|
||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:exsl="http://exslt.org/common" | ||
exclude-result-prefixes="exsl" | ||
version='1.0'> | ||
|
||
<xsl:output method="text" | ||
encoding="ISO-8859-1" | ||
indent="no"/> | ||
|
||
<xsl:include href="../VERSION"/> | ||
<xsl:include href="param.xsl"/> | ||
<xsl:include href="empty.xsl"/> | ||
<xsl:include href="text.xsl"/> | ||
<xsl:include href="inline.xsl"/> | ||
<xsl:include href="block.xsl"/> | ||
<xsl:include href="structure.xsl"/> | ||
<xsl:include href="../lib/lib.xsl"/> | ||
<xsl:include href="../common/l10n.xsl"/> | ||
<xsl:include href="../common/common.xsl"/> | ||
<xsl:include href="../common/titles.xsl"/> | ||
|
||
<xsl:param name="stylesheet.result.type" select="'texinfo'"/> | ||
|
||
<xsl:key name="id" match="*" use="@id"/> | ||
|
||
<xsl:template match="/"><xsl:apply-templates/></xsl:template> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version='1.0'?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:exsl="http://exslt.org/common" | ||
exclude-result-prefixes="exsl" | ||
version='1.0'> | ||
|
||
<xsl:template match="bookinfo"/> | ||
<xsl:template match="title"/> | ||
<xsl:template match="toc"/> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version='1.0'?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:exsl="http://exslt.org/common" | ||
exclude-result-prefixes="exsl" | ||
version='1.0'> | ||
|
||
<xsl:template match="literal">@code{<xsl:apply-templates/>}</xsl:template> | ||
<xsl:template match="emphasis">@emph{<xsl:value-of select="."/>}</xsl:template> | ||
<xsl:template match="xref">@ref{<xsl:value-of select="@linkend"/>, ,<xsl:value-of select="key('id',@linkend)[1]/title"/>}</xsl:template> | ||
<xsl:template match="filename">@file{<xsl:value-of select="."/>}</xsl:template> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- This file contains a bunch of params and templates that we don't care about, but the runtime needs. --> | ||
|
||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" exclude-result-prefixes="src" version="1.0"> | ||
|
||
<xsl:template name="is.graphic.format"><xsl:param name="format"/>0</xsl:template> | ||
<xsl:template name="is.graphic.extension"><xsl:param name="format"/>0</xsl:template> | ||
<xsl:template name="write.chunk"/> | ||
<xsl:template name="href.target"/> | ||
<xsl:template name="xref.xreflabel"/> | ||
|
||
<xsl:param name="appendix.autolabel" select="1"/> | ||
<xsl:param name="author.othername.in.middle" select="1"/> | ||
<xsl:param name="chapter.autolabel" select="1"/> | ||
<xsl:param name="collect.xref.targets" select="'no'"/> | ||
<xsl:param name="formal.procedures" select="1"/> | ||
<xsl:param name="graphic.default.extension"/> | ||
<xsl:param name="l10n.gentext.default.language" select="'en'"/> | ||
<xsl:param name="l10n.gentext.language" select="''"/> | ||
<xsl:param name="l10n.gentext.use.xref.language" select="0"/> | ||
<xsl:param name="olink.base.uri" select="''"/> | ||
<xsl:param name="part.autolabel" select="1"/> | ||
<xsl:param name="preface.autolabel" select="0"/> | ||
<xsl:param name="preferred.mediaobject.role"/> | ||
<xsl:param name="punct.honorific" select="'.'"/> | ||
<xsl:param name="qanda.defaultlabel">number</xsl:param> | ||
<xsl:param name="qanda.inherit.numeration" select="1"/> | ||
<xsl:param name="qandadiv.autolabel" select="1"/> | ||
<xsl:param name="section.autolabel" select="0"/> | ||
<xsl:param name="section.label.includes.component.label" select="0"/> | ||
<xsl:param name="targets.filename" select="'target.db'"/> | ||
<xsl:param name="tex.math.in.alt" select="''"/> | ||
<xsl:param name="use.role.for.mediaobject" select="1"/> | ||
<xsl:param name="use.svg" select="1"/> | ||
<xsl:param name="xref.with.number.and.title" select="1"/> | ||
<xsl:param name="xref.label-title.separator">: </xsl:param> | ||
<xsl:param name="xref.label-page.separator"><xsl:text> </xsl:text></xsl:param> | ||
<xsl:param name="xref.title-page.separator"><xsl:text> </xsl:text></xsl:param> | ||
<xsl:param name="insert.xref.page.number">no</xsl:param> | ||
</xsl:stylesheet> |
Oops, something went wrong.