-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Texinfo support #1408
Merged
Merged
Add Texinfo support #1408
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You guys are not seriously considering running
sudo
in a build file, are you? That's a big veto from me.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need root permissions to install the info file. Same as the ancient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a
MANPATH
analog, likeINFOPATH
, that can be used instead? Seems like this should go in the dist folder, along sidebin
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, do you notice how it should be the user who explicitly runs
sudo
and notmake
?Not only that, but I'd want to install to my user info path, not the system, like we do for the rest of the
publish
commands.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jvasileff yes, it’s actually called
INFOPATH
:) however, if it’s unset,info
falls back to a compile-time default (usually/usr/share/info
), which I don’t think we can determine.@FroMage Is there a user info path? I can’t find it. Of course, you can make it yourself with
INFOPATH
, but it doesn’t seem to be intended ininfo
’s design.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. For now I removed the use of
sudo
and added a check for root rights to the install taskThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucaswerkmeister best open an issue in
ceylon-dist
so we don't forget to add this to the debian/redhat packagesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ceylon/ceylon-dist#51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the end I decided to remove the install task entirely, it just has no business being there ^^