Re: bulleted numbering list
Hussein Shafie <[email protected]>
| Newsgroups | gmane.text.xml.xfc.general |
|---|---|
| Organization | XMLmind |
| Message-ID | <[email protected]> |
On 12/20/2011 06:41 PM, Frank Erlbacher wrote: > > I converted a bulleted numbering list. The font-family of the > list-item-label is "Arial". > After rendering with XSL-FO-Converter the font-family of the > list-item-label has changed to "Symbol". Furthermore the list-item-label > is a MiddleDot (\u00B7) instead of a Bullet (\u2022). > > How can I solve this problem? > First of all, we don't really see what is wrong with 1324400091930.rtf (see attached screenshot: the bulleted list items look good and behave as expected). Now if you want to control what happens with lists, you need to use the xfc:label-format extension attribute. See http://www.xmlmind.com/foconverter/_distrib/doc/user/implementation.html#xfc_label-format If you specify xfc:label-format="", it will work --more or less-- as you want, but MS-Word will not consider that your list is a proper list. See attached not-proper-list.fo If you specify xfc:label-format="•" (see attached proper-list.fo), it will *not* work as you expect it. This behavior is specific to RTF. It should work as you expect it with say, the .docx format. We do not intend to change this behavior because we suspect (frankly, we do not remember) that the current behavior is needed to maintain the compatibility with ancient versions of MS-Word. -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support
1324400091930.png
(image/png, 59.5 KB) - not displayed
not-proper-list.fo
(text/x-xslfo, 1.6 KB)
<?xml version="1.0" encoding="UTF-8" ?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xfc="http://www.xmlmind.com/foconverter/xsl/extensions">
<fo:layout-master-set>
<fo:simple-page-master margin-right="2.499431cm" page-height="29.7004cm" margin-left="2.499431cm" margin-bottom="2.00025cm" page-width="21.0009cm" margin-top="2.499431cm" master-name="spm0">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence hyphenate="false" language="de" master-reference="spm0">
<fo:flow flow-name="xsl-region-body">
<fo:list-block xfc:label-format="" provisional-distance-between-starts="0.64cm" margin-right="0cm" margin-left="0.64cm">
<fo:list-item space-after="13.8pt">
<fo:list-item-label end-indent="body-start()">
<fo:block font-size="11pt" font-family="Arial"><fo:inline>•</fo:inline></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block widows="2" orphans="2" font-size="11pt" font-family="Calibri" language="de">Bullet Arial 1</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item space-after="13.8pt">
<fo:list-item-label end-indent="body-start()">
<fo:block font-size="11pt" font-family="Arial"><fo:inline>•</fo:inline></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block widows="2" orphans="2" font-size="11pt" font-family="Calibri" language="de">Bullet Arial 2</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:flow>
</fo:page-sequence>
</fo:root>
proper-list.fo
(text/x-xslfo, 1.6 KB)
<?xml version="1.0" encoding="UTF-8" ?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xfc="http://www.xmlmind.com/foconverter/xsl/extensions">
<fo:layout-master-set>
<fo:simple-page-master margin-right="2.499431cm" page-height="29.7004cm" margin-left="2.499431cm" margin-bottom="2.00025cm" page-width="21.0009cm" margin-top="2.499431cm" master-name="spm0">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence hyphenate="false" language="de" master-reference="spm0">
<fo:flow flow-name="xsl-region-body">
<fo:list-block xfc:label-format="•" provisional-distance-between-starts="0.64cm" margin-right="0cm" margin-left="0.64cm">
<fo:list-item space-after="13.8pt">
<fo:list-item-label end-indent="body-start()">
<fo:block font-size="11pt" font-family="Arial"><fo:inline>•</fo:inline></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block widows="2" orphans="2" font-size="11pt" font-family="Calibri" language="de">Bullet Arial 1</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item space-after="13.8pt">
<fo:list-item-label end-indent="body-start()">
<fo:block font-size="11pt" font-family="Arial"><fo:inline>•</fo:inline></fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block widows="2" orphans="2" font-size="11pt" font-family="Calibri" language="de">Bullet Arial 2</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:flow>
</fo:page-sequence>
</fo:root>