8000 Fix typos by kianmeng · Pull Request #7 · transpect/epubtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix typos #7

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/create-opf/xsl/create-opf.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
<!-- accessibilityFeature -->

<!-- only relative units used in CSS. also not texts should be available as images (like tables etc.) -->
<!-- To DO: constain check on font-sizes, otherwise box borders prevent feature.
<!-- To DO: constrain check on font-sizes, otherwise box borders prevent feature.
allowing to change fonts should be checked as well -->
<xsl:variable name="accessibilityFeatures" as="element(*)*">
<xsl:if test="not(/epub-config/metadata/meta[@property = 'schema:accessibilityFeature'][normalize-space(.) = 'displayTransformability'])
Expand Down
2 changes: 1 addition & 1 deletion modules/create-ops/xpl/create-ops.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
<p:input port="source">
<p:documentation>This stylesheet overwrites certain css:expand templates or variables.
This is done because CSS3 isn't supported completely. In that stylesheet
text-decoration and other porperties can be changed to supported values. When CSS3 is
text-decoration and other properties can be changed to supported values. When CSS3 is
supported it might be necessary to use this input port dynamically.</p:documentation>
<p:document href="http://transpect.io/css-tools/xsl/css2-1-parser.xsl"/>
</p:input>
Expand Down
4 changes: 2 additions & 2 deletions modules/fontsubsetter/xpl/fontsubsetter.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<p:documentation>This pipeline creates fontsubsets. The characters used
in each font will be displayed in a character set. The subset is created
using the pyftsubset phython script from fonttools https://github.com/fonttools.
using the pyftsubset python script from fonttools https://github.com/fonttools.
</p: 10000 documentation>

<p:option name="script-path" select="'../../../scripts/pyftsubset.sh'"/>
Expand All @@ -41,7 +41,7 @@
</p:input>

<p:output port="result" primary="true" sequence="true">
<p:documentation>Ouput is a character set displaying all characters used inside a font</p:documentation>
<p:documentation>Output is a character set displaying all characters used inside a font</p:documentation>
<p:pipe port="result" step="viewport-chars-identity"/>
</p:output>
<p:serialization port="result" omit-xml-declaration="false" indent="true"/>
Expand Down
2 changes: 1 addition & 1 deletion modules/html-splitter/xpl/html-splitter.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</p:variable>

<p:identity name="strip-leading-non-elements">
<p:documentation>Strip spurious text-only document nodes that sometimes occured before the HTML
<p:documentation>Strip spurious text-only document nodes that sometimes occurred before the HTML
document.</p:documentation>
<p:input port="source" select="/html:html">
<p:pipe port="source" step="html-splitter"/>
Expand Down
2 changes: 1 addition & 1 deletion modules/html-splitter/xpl/split-css.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<p:documentation xmlns="http://www.w3.org/1999/xhtml">
This pipeline is used to split the CSS based on the submitted value of the option <code>css-handling</code>.
With the value <code>regenerated-per-split</code>, the CSS is analyzed and splitted for each HTML chunk. Commonly
With the value <code>regenerated-per-split</code>, the CSS is analyzed and split for each HTML chunk. Commonly
used CSS properties are stored to a global CSS stylesheet, whereas unused CSS properties are filtered.
With the value <code>unchanged</code> CSS and HTML remain unchanged.
Per default, a new CSS stylesheet is generated from the CSS XML representation.
Expand Down
2 changes: 1 addition & 1 deletion modules/html-splitter/xsl/html-splitter.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@
<xsl:variable name="type-index" as="xs:integer" select="tr:index-of($same-type, ../@tr-epub-type)"/>
<xsl:variable name="looked-up-name-component" select="$epub-config/types/type[@name = tr:epub-type(current()/../@tr-epub-type)]/(@file, @name)[1]" as="xs:string*"/>
<xsl:if test="count($looked-up-name-component) gt 1">
<xsl:message select="concat('[WARNING] more than one occurence of epub type ', string-join($epub-config/types/type[@name = tr:epub-type(current()/../@tr-epub-type)][1]/@name, ''), ' in config. First occurence is used for file name extraction.')"/>
<xsl:message select="concat('[WARNING] more than one occurrence of epub type ', string-join($epub-config/types/type[@name = tr:epub-type(current()/../@tr-epub-type)][1]/@name, ''), ' in config. First occurrence is used for file name extraction.')"/>
</xsl:if>
<xsl:variable name="normalized" select="if ($looked-up-name-component[1])
then $looked-up-name-component[1]
Expand Down
2 changes: 1 addition & 1 deletion modules/html-splitter/xsl/per-split-css.xsl
6DB6
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
else concat($new-base-uri, $style-dir-name, '/', current-grouping-key())"/>
<xsl:attribute name="common" select="'true'"/>
<!--<xsl:apply-templates select="current-group()/self::css:atrule[@type = 'charset']"/>-->
<!-- Everything will be serialized as UTF-8 ayway, so no need to retain the initial declaration.
<!-- Everything will be serialized as UTF-8 anyway, so no need to retain the initial declaration.
Neither do we have to declare it explicitly provided the including HTML file is also UTF-8. -->
<xsl:variable name="css:utf8-charset" as="element(css:atrule)">
<atrule xmlns="http://www.w3.org/1996/css" type="charset">
Expand Down
2 changes: 1 addition & 1 deletion schema/metadata-conf/metadata-conf.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ types =
]
}?
&
## space separated list of epub:type values that will be pulled from secton/div to surrounding body
## space separated list of epub:type values that will be pulled from section/div to surrounding body
attribute pull-up-types {
list { (landmark-types | "toc")+ }
}?),
Expand Down
2 changes: 1 addition & 1 deletion schema/metadata-conf/metadata-conf.rng
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
</optional>
<optional>
<attribute name="pull-up-types">
<a:documentation>space separated list of epub:type values that will be pulled from secton/div to surrounding body</a:documentation>
<a:documentation>space separated list of epub:type values that will be pulled from section/div to surrounding body</a:documentation>
<list>
<oneOrMore>
<choice>
Expand Down
2 changes: 1 addition & 1 deletion xpl/epub-convert.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
on Unixy systems. For bash, this is, e.g., <code>source=file:/$(cygpath -ma sample/b978-3-646-92351-3.xhtml)</code> </p>
<p>8/2023: new feature: if HTML contains a &gt;div>, &gt;section> or &gt;nav> element with <pre>@class="as-nav"</pre> and
<pre>@epub:type="loi"</pre> (or "lot") that section is removed from content and moved into the navigation page as &gt;nav> element.
This works not for EPUB2. Structure is expexted as &gt;ol>&gt;li>&gt;a href="link-to-fig">Fig 1: xyz&gt;/a>&gt;/li>&gt;/ol>.</p>
This works not for EPUB2. Structure is expected as &gt;ol>&gt;li>&gt;a href="link-to-fig">Fig 1: xyz&gt;/a>&gt;/li>&gt;/ol>.</p>
</p:documentation>

<p:serialization port="result" method="xml" encoding="UTF-8" indent="true" omit-xml-declaration="false"/>
Expand Down
0