[jira] [Updated] (FOP-2972) Incorrectly trim edges of svg figure when using 'auto'

2020-10-03 Thread Petter Reinholdtsen (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-2972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Petter Reinholdtsen updated FOP-2972:
-
Description: 
When using docbook to create a document with a SVG figure, the figure left and 
right edges are clipped.  The following script demonstrate the problem.  This 
problem was first reported to the docbook xslt project as issue #212.

 ```
 #!/bin/sh

cat > circles.svg <
 
 http://www.w3.org/2000/svg; width="12cm" height="12cm">
 
 
 
 
 
 
 EOF

cat > test.xml <
 http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>
 
 ...
 
 ...
 ...
 
 A set of circles, should be perfectly round
 
 
 
 
 
 With fop the left and right edges are flat
 
 
 
 
 
 EOF

xsltproc --output test.fo 
/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl test.xml
 fop -fo test.fo -pdf test.pdf
 ```
  

See the docbook bug report above for an example rendering with the flat edges 
of the circles.

The relevant FO output look like this:

 ```

  

```

  was:
When using docbook to create a document with a SVG figure, the figure left and 
right edges are clipped.  The following script demonstrate the problem.  This 
problem was first reported to the docbook xslt project as issue #212.

 ```
 #!/bin/sh

cat > circles.svg <
 
 http://www.w3.org/2000/svg; width="12cm" height="12cm">
 
 
 
 
 
 
 EOF

cat > test.xml <
 http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>
 
 ...
 
 ...
 ...
 
 A set of circles, should be perfectly round
 
 
 
 
 
 With fop the left and right edges are flat
 
 
 
 
 
 EOF

xsltproc --output test.fo 
/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl test.xml
 fop -fo test.fo -pdf test.pdf
 ```
  

See the docbook bug report above for an example rendering with the flat edges 
of the circles.


> Incorrectly trim edges of svg figure when using 'auto'
> --
>
> Key: FOP-2972
> URL: https://issues.apache.org/jira/browse/FOP-2972
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg
>Affects Versions: 2.3
> Environment: Debian Buster
>Reporter: Petter Reinholdtsen
>Priority: Major
>  Labels: Debian
>
> When using docbook to create a document with a SVG figure, the figure left 
> and right edges are clipped.  The following script demonstrate the problem.  
> This problem was first reported to the docbook xslt project as issue #212.
>  ```
>  #!/bin/sh
> cat > circles.svg <  
>  
>  http://www.w3.org/2000/svg; width="12cm" height="12cm">
>  
>transform="translate(0,50)" />
>transform="translate(70,150)" />
>transform="translate(-70,150)"/>
>  
>  
>  EOF
> cat > test.xml <  
>"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>
>  
>  ...
>  
>  ...
>  ...
>  
>  A set of circles, should be perfectly round
>  
>  
>  
>  
>  
>  With fop the left and right edges are flat
>  
>  
>  
>  
>  
>  EOF
> xsltproc --output test.fo 
> /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl test.xml
>  fop -fo test.fo -pdf test.pdf
>  ```
>   
> See the docbook bug report above for an example rendering with the flat edges 
> of the circles.
> The relevant FO output look like this:
>  ```
> 
>  width="auto" 
>   height="auto"
>   content-width="auto"
>   content-height="auto" />
> 
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FOP-2727) fo:float needs to be inside a block

2020-10-03 Thread Petter Reinholdtsen (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17206621#comment-17206621
 ] 

Petter Reinholdtsen commented on FOP-2727:
--

For the record, I tested the example in 
[https://bugs.debian.org/867538|https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867538]
 using fop 2.5, and the sidefloat was still missing in the PDF output.

> fo:float needs to be inside a block
> ---
>
> Key: FOP-2727
> URL: https://issues.apache.org/jira/browse/FOP-2727
> Project: FOP
>  Issue Type: Improvement
>  Components: fo/unqualified
>Affects Versions: 1.1, 2.0, 2.1
> Environment: Debian Jessie and Stretch.
>Reporter: Petter Reinholdtsen
>Priority: Minor
>
> Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
> the side of the text, I tried following the instructions on  http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple 
> example docbook file to test floating sidebars.  This do not work and I get a 
> message about a missing feature.  Please add support for sidebars placed at 
> the side of the text body.
> When processing my example, I get this message and the sidebar has 
> disappeared from the resulting PDF:
> {noformat}
>  % xmlto --with-fop pdf db-sidebar-test.xml
>   Making portrait pages on letter paper (215.9mmx279.4mm)
>   Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
>   Font "ZapfDingbats,normal,700" not found. Substituting with
> "ZapfDingbats,normal,400".
>   Rendered page #1.
>   Couldn't find hyphenation pattern for lang="en".
>   Rendered page #2.
>   The following feature isn't implemented by Apache FOP, yet: fo:float (on
> fo:float) (No context info available)
>   No LayoutManager maker for class class org.apache.fop.fo.flow.Float
>   Rendered page #3.
>   Rendered page #4.
>   /tmp/user/1000/xmlto.xvMMIW
>   %
> {noformat}
> I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
> sidebar.
> This is the example docbook file I use:
> {noformat}
> 
>  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>
> 
>   
> Test docbook sidebar
>   
>   
> Sidebar example
> 
>   Some text in front of the sidebar.
> 
>  
>   Sidebar example
>   
>   A sidebar
>   can be used to emphasize certain
>   content. It can intrude into
>   the body area, or it can
>   appear in side indents as 
>   a margin note.
> 
> Some text following the sidebar.
>   
> 
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FOP-1196) [PATCH] GSoC: floats implementation

2020-10-03 Thread Petter Reinholdtsen (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17206620#comment-17206620
 ] 

Petter Reinholdtsen commented on FOP-1196:
--

For the record, I tested the example in 
[https://bugs.debian.org/867538|https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867538]
 using fop 2.5, and the sidefloat was still missing in the PDF output.

> [PATCH] GSoC: floats implementation
> ---
>
> Key: FOP-1196
> URL: https://issues.apache.org/jira/browse/FOP-1196
> Project: FOP
>  Issue Type: Improvement
>  Components: layout/unqualified
>Affects Versions: 2.5
> Environment: Operating System: All
> Platform: All
>Reporter: Vincent Hennebert
>Priority: Major
>  Labels: PatchAvailable
> Attachments: patch.diff, patch2.diff, patchBeforeFloats-2.diff, 
> patchBeforeFloats.diff, patchDisabledTestcases.diff, patchTestcases.diff
>
>
> This patch isn't really meant to be applied... Rather to be reviewed by
> interested parties to check if I'm not wrong. Changelog:
> * javadocs for the Knuth line- and page-breaking algorithms. Some items are
> marked with double question marks because I haven't found out yet what is 
> their
> purpose. I will probably find eventually, but if anybody has immediate hints
> they will be welcome.
> * some methods have been marked deprecated because AFAICT they are not called
> anywhere. If this is agreed I'll remove them in my next patch
> * bugfix? In the last for loop of the method
> layoutmgr.PageBreakingAlgorithm.noBreakBetween I think the exit condition 
> should
> be a strict comparison ('<' instead of '<='). Confirmation?
> * the javadoc comments for some methods have been removed because they will
> inherit them from their super-class
> * some checkstyle fixes



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-2972) Incorrectly trim edges of svg figure when using 'auto'

2020-10-03 Thread Petter Reinholdtsen (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-2972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Petter Reinholdtsen updated FOP-2972:
-
Summary: Incorrectly trim edges of svg figure when using 'auto'  (was: Trim 
edges of svg figure when using 'auto')

> Incorrectly trim edges of svg figure when using 'auto'
> --
>
> Key: FOP-2972
> URL: https://issues.apache.org/jira/browse/FOP-2972
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg
>Affects Versions: 2.3
> Environment: Debian Buster
>Reporter: Petter Reinholdtsen
>Priority: Major
>  Labels: Debian
>
> When using docbook to create a document with a SVG figure, the figure left 
> and right edges are clipped.  The following script demonstrate the problem.  
> This problem was first reported to the docbook xslt project as issue #212.
>  ```
>  #!/bin/sh
> cat > circles.svg <  
>  
>  http://www.w3.org/2000/svg; width="12cm" height="12cm">
>  
>transform="translate(0,50)" />
>transform="translate(70,150)" />
>transform="translate(-70,150)"/>
>  
>  
>  EOF
> cat > test.xml <  
>"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>
>  
>  ...
>  
>  ...
>  ...
>  
>  A set of circles, should be perfectly round
>  
>  
>  
>  
>  
>  With fop the left and right edges are flat
>  
>  
>  
>  
>  
>  EOF
> xsltproc --output test.fo 
> /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl test.xml
>  fop -fo test.fo -pdf test.pdf
>  ```
>   
> See the docbook bug report above for an example rendering with the flat edges 
> of the circles.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (FOP-2972) Trim edges of svg figure when using 'auto'

2020-10-03 Thread Petter Reinholdtsen (Jira)
Petter Reinholdtsen created FOP-2972:


 Summary: Trim edges of svg figure when using 'auto'
 Key: FOP-2972
 URL: https://issues.apache.org/jira/browse/FOP-2972
 Project: FOP
  Issue Type: Bug
  Components: image/svg
Affects Versions: 2.3
 Environment: Debian Buster
Reporter: Petter Reinholdtsen


When using docbook to create a document with a SVG figure, the figure left and 
right edges are clipped.  The following script demonstrate the problem.  This 
problem was first reported to the docbook xslt project as issue #212.

 ```
 #!/bin/sh

cat > circles.svg <
 
 http://www.w3.org/2000/svg; width="12cm" height="12cm">
 
 
 
 
 
 
 EOF

cat > test.xml <
 http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>
 
 ...
 
 ...
 ...
 
 A set of circles, should be perfectly round
 
 
 
 
 
 With fop the left and right edges are flat
 
 
 
 
 
 EOF

xsltproc --output test.fo 
/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl test.xml
 fop -fo test.fo -pdf test.pdf
 ```
  

See the docbook bug report above for an example rendering with the flat edges 
of the circles.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FOP-2469) [PATCH] Auto table layout

2019-05-29 Thread Petter Reinholdtsen (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-2469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16850616#comment-16850616
 ] 

Petter Reinholdtsen commented on FOP-2469:
--

[~esclim]: Hi. Did you make any progress during your investigation  a year ago?

> [PATCH] Auto table layout
> -
>
> Key: FOP-2469
> URL: https://issues.apache.org/jira/browse/FOP-2469
> Project: FOP
>  Issue Type: Bug
>  Components: layout/unqualified
>Affects Versions: trunk
> Environment: Windows 7, JDK 7
>Reporter: Gregor Berg
>Assignee: Andreas L. Delmelle
>Priority: Major
> Attachments: 2015-05-13-auto-table-layout.patch, 
> 2015-05-27-LM-to-LC-refactoring.patch, 
> 2015-06-09-LM-to-LC-refactoring-update.patch, FOP-2469-2018-07-17.patch, 
> FOP-2469_20150621.patch, FOP2469-auto-table-layout.xml, 
> resize-all-but-static-spanned-columns.xml, resize-spanned-columns.xml, 
> test.fo, test2.fo, warning-only-static-columns-are-spanned.xml
>
>
> Hi,
> this is a patch which enables table-layout=auto. It is quite robust, it can 
> not only handle linebreaks and pagebreaks, but it also copes with auto tables 
> in fixed tables in auto tables.
> Essentially, it is the patch of issue FOP-2450 adapted to the trunk version 
> of FOP.
> Best regards,
> Gregor



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (FOP-2469) [PATCH] auto table layout

2018-08-23 Thread Petter Reinholdtsen (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-2469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16590336#comment-16590336
 ] 

Petter Reinholdtsen commented on FOP-2469:
--

Hi.  Did anyone have time to review the patch and consider if it is OK
to include in the default FOP distribution?

-- 
Happy hacking
Petter Reinholdtsen


> [PATCH] auto table layout
> -
>
> Key: FOP-2469
> URL: https://issues.apache.org/jira/browse/FOP-2469
> Project: FOP
>  Issue Type: Bug
>  Components: layout/unqualified
>Affects Versions: trunk
> Environment: Windows 7, JDK 7
>Reporter: Gregor Berg
>Assignee: Andreas L. Delmelle
>Priority: Major
> Attachments: 2015-05-13-auto-table-layout.patch, 
> 2015-05-27-LM-to-LC-refactoring.patch, 
> 2015-06-09-LM-to-LC-refactoring-update.patch, FOP-2469-2018-07-17.patch, 
> FOP-2469_20150621.patch, FOP2469-auto-table-layout.xml, 
> resize-all-but-static-spanned-columns.xml, resize-spanned-columns.xml, 
> warning-only-static-columns-are-spanned.xml
>
>
> Hi,
> this is a patch which enables table-layout=auto. It is quite robust, it can 
> not only handle linebreaks and pagebreaks, but it also copes with auto tables 
> in fixed tables in auto tables.
> Essentially, it is the patch of issue FOP-2450 adapted to the trunk version 
> of FOP.
> Best regards,
> Gregor



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (FOP-2469) [PATCH] auto table layout

2018-06-20 Thread Petter Reinholdtsen (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-2469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16518644#comment-16518644
 ] 

Petter Reinholdtsen commented on FOP-2469:
--

Using the document mentioned above, and running "sed -i 's/ 
colwidth="[0-9]*\*"//
' docbook/0*.xml" to get rid of all preset colwidth, I discovered what I 
suspect is a bug in the patch.

 

The table column headers seem to be ignored when deciding the width of the 
table column.  I saw several tables where the header texts where on top of each 
other, because a column did not have any data, and its width was very small, 
causing the header text to flow into the next column.  Oversight?

> [PATCH] auto table layout
> -
>
> Key: FOP-2469
> URL: https://issues.apache.org/jira/browse/FOP-2469
> Project: FOP
>  Issue Type: Bug
>  Components: layout/unqualified
>Affects Versions: trunk
> Environment: Windows 7, JDK 7
>Reporter: Gregor Berg
>Assignee: Andreas L. Delmelle
>Priority: Major
> Attachments: 2015-05-13-auto-table-layout.patch, 
> 2015-05-27-LM-to-LC-refactoring.patch, 
> 2015-06-09-LM-to-LC-refactoring-update.patch, FOP-2469_20150621.patch, 
> FOP2469-auto-table-layout.xml, resize-all-but-static-spanned-columns.xml, 
> resize-spanned-columns.xml, warning-only-static-columns-are-spanned.xml
>
>
> Hi,
> this is a patch which enables table-layout=auto. It is quite robust, it can 
> not only handle linebreaks and pagebreaks, but it also copes with auto tables 
> in fixed tables in auto tables.
> Essentially, it is the patch of issue FOP-2450 adapted to the trunk version 
> of FOP.
> Best regards,
> Gregor



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (FOP-2469) [PATCH] auto table layout

2018-06-20 Thread Petter Reinholdtsen (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-2469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16517955#comment-16517955
 ] 

Petter Reinholdtsen commented on FOP-2469:
--

I managed to build with the patch in Debian Stable (failed in Debian Unstabe), 
and am happy to  report that the patch made tables in my document a lot better. 
 I even saved 4 pages.  The document I work on is available from https://github.com/arkivverket/noark5-tjenestegrensesnitt-standard] > if you 
want to test yourself.  I still try to decide if I will use dblatex or fop to 
process it.

> [PATCH] auto table layout
> -
>
> Key: FOP-2469
> URL: https://issues.apache.org/jira/browse/FOP-2469
> Project: FOP
>  Issue Type: Bug
>  Components: layout/unqualified
>Affects Versions: trunk
> Environment: Windows 7, JDK 7
>Reporter: Gregor Berg
>Assignee: Andreas L. Delmelle
>Priority: Major
> Attachments: 2015-05-13-auto-table-layout.patch, 
> 2015-05-27-LM-to-LC-refactoring.patch, 
> 2015-06-09-LM-to-LC-refactoring-update.patch, FOP-2469_20150621.patch, 
> FOP2469-auto-table-layout.xml, resize-all-but-static-spanned-columns.xml, 
> resize-spanned-columns.xml, warning-only-static-columns-are-spanned.xml
>
>
> Hi,
> this is a patch which enables table-layout=auto. It is quite robust, it can 
> not only handle linebreaks and pagebreaks, but it also copes with auto tables 
> in fixed tables in auto tables.
> Essentially, it is the patch of issue FOP-2450 adapted to the trunk version 
> of FOP.
> Best regards,
> Gregor



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (FOP-2469) [PATCH] auto table layout

2018-06-19 Thread Petter Reinholdtsen (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-2469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16517799#comment-16517799
 ] 

Petter Reinholdtsen commented on FOP-2469:
--

For the record, I just tried to apply this patch to the latest Debian package, 
and it applied with minimal manual cleanup (had to manually apply two small 
changes two two files that had changed slightly).  The updated patch is 
available from the equivalent Debian bug, https://bugs.debian.org/847190 
>.

Unfortunately the code do not build because my compiler fail to find 
javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD and 
javax.xml.XMLConstants.ACCESS_EXTERNAL_STYLESHEET.  I have no idea why.

> [PATCH] auto table layout
> -
>
> Key: FOP-2469
> URL: https://issues.apache.org/jira/browse/FOP-2469
> Project: FOP
>  Issue Type: Bug
>  Components: layout/unqualified
>Affects Versions: trunk
> Environment: Windows 7, JDK 7
>Reporter: Gregor Berg
>Assignee: Andreas L. Delmelle
>Priority: Major
> Attachments: 2015-05-13-auto-table-layout.patch, 
> 2015-05-27-LM-to-LC-refactoring.patch, 
> 2015-06-09-LM-to-LC-refactoring-update.patch, FOP-2469_20150621.patch, 
> FOP2469-auto-table-layout.xml, resize-all-but-static-spanned-columns.xml, 
> resize-spanned-columns.xml, warning-only-static-columns-are-spanned.xml
>
>
> Hi,
> this is a patch which enables table-layout=auto. It is quite robust, it can 
> not only handle linebreaks and pagebreaks, but it also copes with auto tables 
> in fixed tables in auto tables.
> Essentially, it is the patch of issue FOP-2450 adapted to the trunk version 
> of FOP.
> Best regards,
> Gregor



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (FOP-2727) fo:float needs to be inside a block

2018-06-05 Thread Petter Reinholdtsen (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16502448#comment-16502448
 ] 

Petter Reinholdtsen commented on FOP-2727:
--

[Simon Steiner]

Does this mean the bug is in fop and not xmlto?

-- 
Happy hacking
Petter Reinholdtsen


> fo:float needs to be inside a block
> ---
>
> Key: FOP-2727
> URL: https://issues.apache.org/jira/browse/FOP-2727
> Project: FOP
>  Issue Type: Improvement
>  Components: fo/unqualified
>Affects Versions: 1.1, 2.0, 2.1
> Environment: Debian Jessie and Stretch.
>Reporter: Petter Reinholdtsen
>Priority: Minor
>
> Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
> the side of the text, I tried following the instructions on  http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple 
> example docbook file to test floating sidebars.  This do not work and I get a 
> message about a missing feature.  Please add support for sidebars placed at 
> the side of the text body.
> When processing my example, I get this message and the sidebar has 
> disappeared from the resulting PDF:
> {noformat}
>  % xmlto --with-fop pdf db-sidebar-test.xml
>   Making portrait pages on letter paper (215.9mmx279.4mm)
>   Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
>   Font "ZapfDingbats,normal,700" not found. Substituting with
> "ZapfDingbats,normal,400".
>   Rendered page #1.
>   Couldn't find hyphenation pattern for lang="en".
>   Rendered page #2.
>   The following feature isn't implemented by Apache FOP, yet: fo:float (on
> fo:float) (No context info available)
>   No LayoutManager maker for class class org.apache.fop.fo.flow.Float
>   Rendered page #3.
>   Rendered page #4.
>   /tmp/user/1000/xmlto.xvMMIW
>   %
> {noformat}
> I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
> sidebar.
> This is the example docbook file I use:
> {noformat}
> 
>  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>
> 
>   
> Test docbook sidebar
>   
>   
> Sidebar example
> 
>   Some text in front of the sidebar.
> 
>  
>   Sidebar example
>   
>   A sidebar
>   can be used to emphasize certain
>   content. It can intrude into
>   the body area, or it can
>   appear in side indents as 
>   a margin note.
> 
> Some text following the sidebar.
>   
> 
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (FOP-2727) Please implement sidebars floating at the side of the body of the text

2018-06-04 Thread Petter Reinholdtsen (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16500747#comment-16500747
 ] 

Petter Reinholdtsen commented on FOP-2727:
--

Thank you very much for looking into this.  The examples and
documentation motivated me to have a closer look at why the xmlto fop
output did not produce a float block.

I discovered that by moving the  inside a , the text
show up in the PDF.

In other words, instead of having XML like this:

  
Some text in front of the sidebar.
  
  ...

I changed it to look like this:

  
Some text in front of the sidebar.
...
  

Unfortunately, I have no idea if it is a bug in xmlto or fop.

My docbook example code is based on
http://www.sagehill.net/docbookxsl/SideFloats.html >, which claim
it is working with RenderX's XEP and Antenna House's XSL Formatter.
Perhaps Apache FOP can work with it too?

-- 
Happy hacking
Petter Reinholdtsen


> Please implement sidebars floating at the side of the body of the text
> --
>
> Key: FOP-2727
> URL: https://issues.apache.org/jira/browse/FOP-2727
> Project: FOP
>  Issue Type: Improvement
>  Components: fo/unqualified
>Affects Versions: 1.1, 2.0, 2.1
> Environment: Debian Jessie and Stretch.
>Reporter: Petter Reinholdtsen
>Priority: Minor
>
> Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
> the side of the text, I tried following the instructions on  http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple 
> example docbook file to test floating sidebars.  This do not work and I get a 
> message about a missing feature.  Please add support for sidebars placed at 
> the side of the text body.
> When processing my example, I get this message and the sidebar has 
> disappeared from the resulting PDF:
> {noformat}
>  % xmlto --with-fop pdf db-sidebar-test.xml
>   Making portrait pages on letter paper (215.9mmx279.4mm)
>   Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
>   Font "ZapfDingbats,normal,700" not found. Substituting with
> "ZapfDingbats,normal,400".
>   Rendered page #1.
>   Couldn't find hyphenation pattern for lang="en".
>   Rendered page #2.
>   The following feature isn't implemented by Apache FOP, yet: fo:float (on
> fo:float) (No context info available)
>   No LayoutManager maker for class class org.apache.fop.fo.flow.Float
>   Rendered page #3.
>   Rendered page #4.
>   /tmp/user/1000/xmlto.xvMMIW
>   %
> {noformat}
> I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
> sidebar.
> This is the example docbook file I use:
> {noformat}
> 
>  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>
> 
>   
> Test docbook sidebar
>   
>   
> Sidebar example
> 
>   Some text in front of the sidebar.
> 
>  
>   Sidebar example
>   
>   A sidebar
>   can be used to emphasize certain
>   content. It can intrude into
>   the body area, or it can
>   appear in side indents as 
>   a margin note.
> 
> Some text following the sidebar.
>   
> 
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (FOP-1196) [PATCH] GSoC: floats implementation

2018-06-04 Thread Petter Reinholdtsen (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16500718#comment-16500718
 ] 

Petter Reinholdtsen commented on FOP-1196:
--

I forgot to mention that my example document is based on the information
in http://www.sagehill.net/docbookxsl/SideFloats.html >, which
report that this use of  at least work with RenderX's XEP and
Antenna House's XSL Formatter.

Should it work with Apache FOP too?

-- 
Happy hacking
Petter Reinholdtsen


> [PATCH] GSoC: floats implementation
> ---
>
> Key: FOP-1196
> URL: https://issues.apache.org/jira/browse/FOP-1196
> Project: FOP
>  Issue Type: Improvement
>  Components: layout/unqualified
>Affects Versions: trunk
> Environment: Operating System: All
> Platform: All
>Reporter: Vincent Hennebert
>Priority: Major
>  Labels: PatchAvailable
> Attachments: patch.diff, patch2.diff, patchBeforeFloats-2.diff, 
> patchBeforeFloats.diff, patchDisabledTestcases.diff, patchTestcases.diff
>
>
> This patch isn't really meant to be applied... Rather to be reviewed by
> interested parties to check if I'm not wrong. Changelog:
> * javadocs for the Knuth line- and page-breaking algorithms. Some items are
> marked with double question marks because I haven't found out yet what is 
> their
> purpose. I will probably find eventually, but if anybody has immediate hints
> they will be welcome.
> * some methods have been marked deprecated because AFAICT they are not called
> anywhere. If this is agreed I'll remove them in my next patch
> * bugfix? In the last for loop of the method
> layoutmgr.PageBreakingAlgorithm.noBreakBetween I think the exit condition 
> should
> be a strict comparison ('<' instead of '<='). Confirmation?
> * the javadoc comments for some methods have been removed because they will
> inherit them from their super-class
> * some checkstyle fixes



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (FOP-1196) [PATCH] GSoC: floats implementation

2018-06-04 Thread Petter Reinholdtsen (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16500651#comment-16500651
 ] 

Petter Reinholdtsen commented on FOP-1196:
--

[Simon Steiner]

All I can say is that the float did not show up when I tested using the
example files available from https://bugs.debian.org/867538 >.  I
last tested using version 2.1.

The warning about not supporting flote is gone, but the text did not
show up in the PDF.  Am I doing it wrong?

I reported the issue as
https://issues.apache.org/jira/browse/FOP-2727 > which was closed
as a duplicate of this issue, so I assumed the patch mentioned here
would solve it.  Am I wrong?

-- 
Happy hacking
Petter Reinholdtsen


> [PATCH] GSoC: floats implementation
> ---
>
> Key: FOP-1196
> URL: https://issues.apache.org/jira/browse/FOP-1196
> Project: FOP
>  Issue Type: Improvement
>  Components: layout/unqualified
>Affects Versions: trunk
> Environment: Operating System: All
> Platform: All
>Reporter: Vincent Hennebert
>Priority: Major
>  Labels: PatchAvailable
> Attachments: patch.diff, patch2.diff, patchBeforeFloats-2.diff, 
> patchBeforeFloats.diff, patchDisabledTestcases.diff, patchTestcases.diff
>
>
> This patch isn't really meant to be applied... Rather to be reviewed by
> interested parties to check if I'm not wrong. Changelog:
> * javadocs for the Knuth line- and page-breaking algorithms. Some items are
> marked with double question marks because I haven't found out yet what is 
> their
> purpose. I will probably find eventually, but if anybody has immediate hints
> they will be welcome.
> * some methods have been marked deprecated because AFAICT they are not called
> anywhere. If this is agreed I'll remove them in my next patch
> * bugfix? In the last for loop of the method
> layoutmgr.PageBreakingAlgorithm.noBreakBetween I think the exit condition 
> should
> be a strict comparison ('<' instead of '<='). Confirmation?
> * the javadoc comments for some methods have been removed because they will
> inherit them from their super-class
> * some checkstyle fixes



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (FOP-1196) [PATCH] GSoC: floats implementation

2018-06-04 Thread Petter Reinholdtsen (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16500316#comment-16500316
 ] 

Petter Reinholdtsen commented on FOP-1196:
--

Hi.

Is there some reason why this patch haven't yet been integrated into
fop?  It would be great if also the free software fop formatter was
capable of handling floating sidebars. :)

-- 
Happy hacking
Petter Reinholdtsen


> [PATCH] GSoC: floats implementation
> ---
>
> Key: FOP-1196
> URL: https://issues.apache.org/jira/browse/FOP-1196
> Project: FOP
>  Issue Type: Improvement
>  Components: layout/unqualified
>Affects Versions: trunk
> Environment: Operating System: All
> Platform: All
>Reporter: Vincent Hennebert
>Priority: Major
>  Labels: PatchAvailable
> Attachments: patch.diff, patch2.diff, patchBeforeFloats-2.diff, 
> patchBeforeFloats.diff, patchDisabledTestcases.diff, patchTestcases.diff
>
>
> This patch isn't really meant to be applied... Rather to be reviewed by
> interested parties to check if I'm not wrong. Changelog:
> * javadocs for the Knuth line- and page-breaking algorithms. Some items are
> marked with double question marks because I haven't found out yet what is 
> their
> purpose. I will probably find eventually, but if anybody has immediate hints
> they will be welcome.
> * some methods have been marked deprecated because AFAICT they are not called
> anywhere. If this is agreed I'll remove them in my next patch
> * bugfix? In the last for loop of the method
> layoutmgr.PageBreakingAlgorithm.noBreakBetween I think the exit condition 
> should
> be a strict comparison ('<' instead of '<='). Confirmation?
> * the javadoc comments for some methods have been removed because they will
> inherit them from their super-class
> * some checkstyle fixes



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (FOP-2727) Please implement sidebars floating at the side of the body of the text

2017-07-13 Thread Petter Reinholdtsen (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Petter Reinholdtsen updated FOP-2727:
-
Description: 
Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
the side of the text, I tried following the instructions on http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple example 
docbook file to test floating sidebars.  This do not work and I get a message 
about a missing feature.  Please add support for sidebars placed at the side of 
the text body.

When processing my example, I get this message and the sidebar has disappeared 
from the resulting PDF:

{noformat}
 % xmlto --with-fop pdf db-sidebar-test.xml
  Making portrait pages on letter paper (215.9mmx279.4mm)
  Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
  Font "ZapfDingbats,normal,700" not found. Substituting with
"ZapfDingbats,normal,400".
  Rendered page #1.
  Couldn't find hyphenation pattern for lang="en".
  Rendered page #2.
  The following feature isn't implemented by Apache FOP, yet: fo:float (on
fo:float) (No context info available)
  No LayoutManager maker for class class org.apache.fop.fo.flow.Float
  Rendered page #3.
  Rendered page #4.
  /tmp/user/1000/xmlto.xvMMIW
  %
{noformat}

I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
sidebar.

This is the example docbook file I use:

{noformat}

http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>

  
Test docbook sidebar
  
  
Sidebar example

  Some text in front of the sidebar.

 
  Sidebar example
  
  A sidebar
  can be used to emphasize certain
  content. It can intrude into
  the body area, or it can
  appear in side indents as 
  a margin note.

Some text following the sidebar.
  

{noformat}

  was:
Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
the side of the text, I tried following the instructions on http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple example 
docbook file to test floating sidebars.  This do not work and I get a message 
about a missing feature.  Please add support for sidebars placed at the side of 
the text body.

When processing my example, I get this message and the sidebar has disappeared 
from the resulting PDF:

{noformat}
 % xmlto --with-fop pdf db-sidebar-test.xml
  Making portrait pages on letter paper (215.9mmx279.4mm)
  Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
  Font "ZapfDingbats,normal,700" not found. Substituting with
"ZapfDingbats,normal,400".
  Rendered page #1.
  Couldn't find hyphenation pattern for lang="en".
  Rendered page #2.
  The following feature isn't implemented by Apache FOP, yet: fo:float (on
fo:float) (No context info available)
  No LayoutManager maker for class class org.apache.fop.fo.flow.Float
  Rendered page #3.
  Rendered page #4.
  /tmp/user/1000/xmlto.xvMMIW
  %
{noformat}

I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
sidebar.

This is the example docbook file I use:

{

http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>

  
Test docbook sidebar
  
  
Sidebar example

  Some text in front of the sidebar.

 
  Sidebar example
  
  A sidebar
  can be used to emphasize certain
  content. It can intrude into
  the body area, or it can
  appear in side indents as 
  a margin note.

Some text following the sidebar.
  

}



> Please implement sidebars floating at the side of the body of the text
> --
>
> Key: FOP-2727
> URL: https://issues.apache.org/jira/browse/FOP-2727
> Project: FOP
>  Issue Type: Improvement
>  Components: fo/unqualified
>Affects Versions: 1.1, 2.0, 2.1
> Environment: Debian Jessie and Stretch.
>Reporter: Petter Reinholdtsen
>Priority: Minor
>
> Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
> the side of the text, I tried following the instructions on  http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple 
> example docbook file to test floating sidebars.  This do not work and I get a 
> message about a missing feature.  Please add support for sidebars placed at 
> the side of the text body.
> When processing my example, I get this message and the sidebar has 
> disappeared from the resulting PDF:
> {noformat}
>  % xmlto --with-fop pdf db-sidebar-test.xml
>   Making portrait pages on letter paper (215.9mmx279.4mm)
>   Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
>   Font "ZapfDingbats,normal,700" not found. Substituting with
> "ZapfDingbats,normal,400".
>   Rendered page #1.
>   Couldn't find hyphenation 

[jira] [Updated] (FOP-2727) Please implement sidebars floating at the side of the body of the text

2017-07-13 Thread Petter Reinholdtsen (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Petter Reinholdtsen updated FOP-2727:
-
Description: 
Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
the side of the text, I tried following the instructions on http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple example 
docbook file to test floating sidebars.  This do not work and I get a message 
about a missing feature.  Please add support for sidebars placed at the side of 
the text body.

When processing my example, I get this message and the sidebar has disappeared 
from the resulting PDF:

{noformat}
 % xmlto --with-fop pdf db-sidebar-test.xml
  Making portrait pages on letter paper (215.9mmx279.4mm)
  Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
  Font "ZapfDingbats,normal,700" not found. Substituting with
"ZapfDingbats,normal,400".
  Rendered page #1.
  Couldn't find hyphenation pattern for lang="en".
  Rendered page #2.
  The following feature isn't implemented by Apache FOP, yet: fo:float (on
fo:float) (No context info available)
  No LayoutManager maker for class class org.apache.fop.fo.flow.Float
  Rendered page #3.
  Rendered page #4.
  /tmp/user/1000/xmlto.xvMMIW
  %
{noformat}

I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
sidebar.

This is the example docbook file I use:

{

http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>

  
Test docbook sidebar
  
  
Sidebar example

  Some text in front of the sidebar.

 
  Sidebar example
  
  A sidebar
  can be used to emphasize certain
  content. It can intrude into
  the body area, or it can
  appear in side indents as 
  a margin note.

Some text following the sidebar.
  

}


  was:
Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
the side of the text, I tried following the instructions on http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple example 
docbook file to test floating sidebars.  This do not work and I get a message 
about a missing feature.  Please add support for sidebars placed at the side of 
the text body.

When processing my example, I get this message and the sidebar has disappeared 
from the resulting PDF:

{noformat}% xmlto --with-fop pdf db-sidebar-test.xml
  Making portrait pages on letter paper (215.9mmx279.4mm)
  Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
  Font "ZapfDingbats,normal,700" not found. Substituting with
"ZapfDingbats,normal,400".
  Rendered page #1.
  Couldn't find hyphenation pattern for lang="en".
  Rendered page #2.
  The following feature isn't implemented by Apache FOP, yet: fo:float (on
fo:float) (No context info available)
  No LayoutManager maker for class class org.apache.fop.fo.flow.Float
  Rendered page #3.
  Rendered page #4.
  /tmp/user/1000/xmlto.xvMMIW
  %
}

I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
sidebar.

This is the example docbook file I use:

{

http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>

  
Test docbook sidebar
  
  
Sidebar example

  Some text in front of the sidebar.

 
  Sidebar example
  
  A sidebar
  can be used to emphasize certain
  content. It can intrude into
  the body area, or it can
  appear in side indents as 
  a margin note.

Some text following the sidebar.
  

}



> Please implement sidebars floating at the side of the body of the text
> --
>
> Key: FOP-2727
> URL: https://issues.apache.org/jira/browse/FOP-2727
> Project: FOP
>  Issue Type: Improvement
>  Components: fo/unqualified
>Affects Versions: 1.1, 2.0, 2.1
> Environment: Debian Jessie and Stretch.
>Reporter: Petter Reinholdtsen
>Priority: Minor
>
> Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
> the side of the text, I tried following the instructions on  http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple 
> example docbook file to test floating sidebars.  This do not work and I get a 
> message about a missing feature.  Please add support for sidebars placed at 
> the side of the text body.
> When processing my example, I get this message and the sidebar has 
> disappeared from the resulting PDF:
> {noformat}
>  % xmlto --with-fop pdf db-sidebar-test.xml
>   Making portrait pages on letter paper (215.9mmx279.4mm)
>   Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
>   Font "ZapfDingbats,normal,700" not found. Substituting with
> "ZapfDingbats,normal,400".
>   Rendered page #1.
>   Couldn't find hyphenation pattern for lang="en".
>   

[jira] [Updated] (FOP-2727) Please implement sidebars floating at the side of the body of the text

2017-07-13 Thread Petter Reinholdtsen (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Petter Reinholdtsen updated FOP-2727:
-
Description: 
Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
the side of the text, I tried following the instructions on http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple example 
docbook file to test floating sidebars.  This do not work and I get a message 
about a missing feature.  Please add support for sidebars placed at the side of 
the text body.

When processing my example, I get this message and the sidebar has disappeared 
from the resulting PDF:

{noformat}% xmlto --with-fop pdf db-sidebar-test.xml
  Making portrait pages on letter paper (215.9mmx279.4mm)
  Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
  Font "ZapfDingbats,normal,700" not found. Substituting with
"ZapfDingbats,normal,400".
  Rendered page #1.
  Couldn't find hyphenation pattern for lang="en".
  Rendered page #2.
  The following feature isn't implemented by Apache FOP, yet: fo:float (on
fo:float) (No context info available)
  No LayoutManager maker for class class org.apache.fop.fo.flow.Float
  Rendered page #3.
  Rendered page #4.
  /tmp/user/1000/xmlto.xvMMIW
  %
}

I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
sidebar.

This is the example docbook file I use:

{

http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>

  
Test docbook sidebar
  
  
Sidebar example

  Some text in front of the sidebar.

 
  Sidebar example
  
  A sidebar
  can be used to emphasize certain
  content. It can intrude into
  the body area, or it can
  appear in side indents as 
  a margin note.

Some text following the sidebar.
  

}


  was:
Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
the side of the text, I tried following the instructions on http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple example 
docbook file to test floating sidebars.  This do not work and I get a message 
about a missing feature.  Please add support for sidebars placed at the side of 
the text body.

When processing my example, I get this message and the sidebar has disappeared 
from the resulting PDF:

{noformat}
  % xmlto --with-fop pdf db-sidebar-test.xml
  Making portrait pages on letter paper (215.9mmx279.4mm)
  Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
  Font "ZapfDingbats,normal,700" not found. Substituting with
"ZapfDingbats,normal,400".
  Rendered page #1.
  Couldn't find hyphenation pattern for lang="en".
  Rendered page #2.
  The following feature isn't implemented by Apache FOP, yet: fo:float (on
fo:float) (No context info available)
  No LayoutManager maker for class class org.apache.fop.fo.flow.Float
  Rendered page #3.
  Rendered page #4.
  /tmp/user/1000/xmlto.xvMMIW
  %
}

I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
sidebar.

This is the example docbook file I use:

{

http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>

  
Test docbook sidebar
  
  
Sidebar example

  Some text in front of the sidebar.

 
  Sidebar example
  
  A sidebar
  can be used to emphasize certain
  content. It can intrude into
  the body area, or it can
  appear in side indents as 
  a margin note.

Some text following the sidebar.
  

}



> Please implement sidebars floating at the side of the body of the text
> --
>
> Key: FOP-2727
> URL: https://issues.apache.org/jira/browse/FOP-2727
> Project: FOP
>  Issue Type: Improvement
>  Components: fo/unqualified
>Affects Versions: 1.1, 2.0, 2.1
> Environment: Debian Jessie and Stretch.
>Reporter: Petter Reinholdtsen
>Priority: Minor
>
> Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
> the side of the text, I tried following the instructions on  http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple 
> example docbook file to test floating sidebars.  This do not work and I get a 
> message about a missing feature.  Please add support for sidebars placed at 
> the side of the text body.
> When processing my example, I get this message and the sidebar has 
> disappeared from the resulting PDF:
> {noformat}% xmlto --with-fop pdf db-sidebar-test.xml
>   Making portrait pages on letter paper (215.9mmx279.4mm)
>   Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
>   Font "ZapfDingbats,normal,700" not found. Substituting with
> "ZapfDingbats,normal,400".
>   Rendered page #1.
>   Couldn't find hyphenation pattern for lang="en".
>   Rendered page 

[jira] [Updated] (FOP-2727) Please implement sidebars floating at the side of the body of the text

2017-07-13 Thread Petter Reinholdtsen (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Petter Reinholdtsen updated FOP-2727:
-
Description: 
Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
the side of the text, I tried following the instructions on http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple example 
docbook file to test floating sidebars.  This do not work and I get a message 
about a missing feature.  Please add support for sidebars placed at the side of 
the text body.

When processing my example, I get this message and the sidebar has disappeared 
from the resulting PDF:

{noformat}
  % xmlto --with-fop pdf db-sidebar-test.xml
  Making portrait pages on letter paper (215.9mmx279.4mm)
  Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
  Font "ZapfDingbats,normal,700" not found. Substituting with
"ZapfDingbats,normal,400".
  Rendered page #1.
  Couldn't find hyphenation pattern for lang="en".
  Rendered page #2.
  The following feature isn't implemented by Apache FOP, yet: fo:float (on
fo:float) (No context info available)
  No LayoutManager maker for class class org.apache.fop.fo.flow.Float
  Rendered page #3.
  Rendered page #4.
  /tmp/user/1000/xmlto.xvMMIW
  %
}

I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
sidebar.

This is the example docbook file I use:

{

http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>

  
Test docbook sidebar
  
  
Sidebar example

  Some text in front of the sidebar.

 
  Sidebar example
  
  A sidebar
  can be used to emphasize certain
  content. It can intrude into
  the body area, or it can
  appear in side indents as 
  a margin note.

Some text following the sidebar.
  

}


  was:
Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
the side of the text, I tried following the instructions on http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple example 
docbook file to test floating sidebars.  This do not work and I get a message 
about a missing feature.  Please add support for sidebars placed at the side of 
the text body.

When processing my example, I get this message and the sidebar has disappeared 
from the resulting PDF:

{
  % xmlto --with-fop pdf db-sidebar-test.xml
  Making portrait pages on letter paper (215.9mmx279.4mm)
  Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
  Font "ZapfDingbats,normal,700" not found. Substituting with
"ZapfDingbats,normal,400".
  Rendered page #1.
  Couldn't find hyphenation pattern for lang="en".
  Rendered page #2.
  The following feature isn't implemented by Apache FOP, yet: fo:float (on
fo:float) (No context info available)
  No LayoutManager maker for class class org.apache.fop.fo.flow.Float
  Rendered page #3.
  Rendered page #4.
  /tmp/user/1000/xmlto.xvMMIW
  %
}

I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
sidebar.

This is the example docbook file I use:

{

http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>

  
Test docbook sidebar
  
  
Sidebar example

  Some text in front of the sidebar.

 
  Sidebar example
  
  A sidebar
  can be used to emphasize certain
  content. It can intrude into
  the body area, or it can
  appear in side indents as 
  a margin note.

Some text following the sidebar.
  

}



> Please implement sidebars floating at the side of the body of the text
> --
>
> Key: FOP-2727
> URL: https://issues.apache.org/jira/browse/FOP-2727
> Project: FOP
>  Issue Type: Improvement
>  Components: fo/unqualified
>Affects Versions: 1.1, 2.0, 2.1
> Environment: Debian Jessie and Stretch.
>Reporter: Petter Reinholdtsen
>Priority: Minor
>
> Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
> the side of the text, I tried following the instructions on  http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple 
> example docbook file to test floating sidebars.  This do not work and I get a 
> message about a missing feature.  Please add support for sidebars placed at 
> the side of the text body.
> When processing my example, I get this message and the sidebar has 
> disappeared from the resulting PDF:
> {noformat}
>   % xmlto --with-fop pdf db-sidebar-test.xml
>   Making portrait pages on letter paper (215.9mmx279.4mm)
>   Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
>   Font "ZapfDingbats,normal,700" not found. Substituting with
> "ZapfDingbats,normal,400".
>   Rendered page #1.
>   Couldn't find hyphenation pattern for lang="en".
>   Rendered page #2.

[jira] [Created] (FOP-2727) Please implement sidebars floating at the side of the body of the text

2017-07-13 Thread Petter Reinholdtsen (JIRA)
Petter Reinholdtsen created FOP-2727:


 Summary: Please implement sidebars floating at the side of the 
body of the text
 Key: FOP-2727
 URL: https://issues.apache.org/jira/browse/FOP-2727
 Project: FOP
  Issue Type: Improvement
  Components: fo/unqualified
Affects Versions: 2.1, 2.0, 1.1
 Environment: Debian Jessie and Stretch.
Reporter: Petter Reinholdtsen
Priority: Minor


Hi.  When trying to figure out how to make sure my docbook sidebars end up on 
the side of the text, I tried following the instructions on http://www.sagehill.net/docbookxsl/SideFloats.html > and wrote a simple example 
docbook file to test floating sidebars.  This do not work and I get a message 
about a missing feature.  Please add support for sidebars placed at the side of 
the text body.

When processing my example, I get this message and the sidebar has disappeared 
from the resulting PDF:

{
  % xmlto --with-fop pdf db-sidebar-test.xml
  Making portrait pages on letter paper (215.9mmx279.4mm)
  Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
  Font "ZapfDingbats,normal,700" not found. Substituting with
"ZapfDingbats,normal,400".
  Rendered page #1.
  Couldn't find hyphenation pattern for lang="en".
  Rendered page #2.
  The following feature isn't implemented by Apache FOP, yet: fo:float (on
fo:float) (No context info available)
  No LayoutManager maker for class class org.apache.fop.fo.flow.Float
  Rendered page #3.
  Rendered page #4.
  /tmp/user/1000/xmlto.xvMMIW
  %
}

I tried using both fop 1.1 and 2.1, and both fail to create a PDF with a 
sidebar.

This is the example docbook file I use:

{

http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>

  
Test docbook sidebar
  
  
Sidebar example

  Some text in front of the sidebar.

 
  Sidebar example
  
  A sidebar
  can be used to emphasize certain
  content. It can intrude into
  the body area, or it can
  appear in side indents as 
  a margin note.

Some text following the sidebar.
  

}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)