Skip to content
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
18 changes: 8 additions & 10 deletions xsl/fo/callout.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -280,16 +280,14 @@
</xsl:choose>
</xsl:variable>

<xsl:choose>
<xsl:when test="$callout.unicode.font != ''">
<fo:inline font-family="{$callout.unicode.font}">
<xsl:copy-of select="$comarkup"/>
</fo:inline>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$comarkup"/>
</xsl:otherwise>
</xsl:choose>
<fo:inline xsl:use-attribute-sets="callout.unicode.properties">
<xsl:if test="$callout.unicode.font != ''">
<xsl:attribute name="font-family">
<xsl:value-of select="$callout.unicode.font"/>
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$comarkup"/>
</fo:inline>
</xsl:when>

<!-- Most safe: draw a dark gray square with a white number inside -->
Expand Down
1 change: 1 addition & 0 deletions xsl/fo/param.ent
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<!ENTITY callout.unicode SYSTEM "../params/callout.unicode.xml">
<!ENTITY callout.unicode.font SYSTEM "../params/callout.unicode.font.xml">
<!ENTITY callout.unicode.number.limit SYSTEM "../params/callout.unicode.number.limit.xml">
<!ENTITY callout.unicode.properties SYSTEM "../params/callout.unicode.properties.xml">
<!ENTITY callout.unicode.start.character SYSTEM "../params/callout.unicode.start.character.xml">
<!ENTITY callouts.extension SYSTEM "../params/callouts.extension.xml">
<!ENTITY chapter.autolabel SYSTEM "../params/chapter.autolabel.xml">
Expand Down
2 changes: 2 additions & 0 deletions xsl/fo/param.xweb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
&callout.unicode;
&callout.unicode.font;
&callout.unicode.number.limit;
&callout.unicode.properties;
&callout.unicode.start.character;
&callouts.extension;
</reference>
Expand Down Expand Up @@ -621,6 +622,7 @@ around all these parameters.</para>
<src:fragref linkend="callout.unicode.font.frag"/>
<src:fragref linkend="callout.unicode.frag"/>
<src:fragref linkend="callout.unicode.number.limit.frag"/>
<src:fragref linkend="callout.unicode.properties.frag"/>
<src:fragref linkend="callout.unicode.start.character.frag"/>
<src:fragref linkend="callouts.extension.frag"/>
<src:fragref linkend="chapter.autolabel.frag"/>
Expand Down
24 changes: 24 additions & 0 deletions xsl/params/callout.unicode.properties.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<refentry xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="5.0" xml:id="callout.unicode.properties">
<refmeta>
<refentrytitle>callout.unicode.properties</refentrytitle>
<refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo>
</refmeta>
<refnamediv>
<refname>callout.unicode.properties</refname>
<refpurpose>Properties that apply to callout labels formatted as Unicode characters.</refpurpose>
</refnamediv>

<refsynopsisdiv>
<src:fragment xml:id="callout.unicode.properties.frag"><xsl:attribute-set name="callout.unicode.properties">
</xsl:attribute-set></src:fragment>
</refsynopsisdiv>
<refsection><info><title>Description</title></info>
<para>Properties that apply to callout labels formatted as Unicode characters.
Typically used to set the color of the callout labels.</para>
</refsection>
</refentry>
32 changes: 0 additions & 32 deletions xsl/params/calloutlist.properties.xml

This file was deleted.