Shapes and exclusions

20 views
Skip to first unread message

Andreas Jung

unread,
Nov 23, 2015, 8:24:56 AM11/23/15
to Vivliostyle Project
Hi there,

I am trying to get a simple example 


working with vivliostyle-formatter.

The expected result is 


Is there anything missing in order to receive the same result with Vivliostyle?

Andreas

KAWAKUBO Toru

unread,
Nov 23, 2015, 8:23:52 PM11/23/15
to vivli...@googlegroups.com
Hi,
Current implementation of Vivliostyle does not support 'shape-outside’ specified on arbitrary elements.
‘shape-outside’ has effects only when it is specified on boxes defined with EPUB Adaptive Layout rules (@-epubx-partition, @-epubx-page-master etc.).
We certainly want to support shapes and exclusions for arbitrary elements in the future, but the schedule has not been determined yet.


--
Toru Kawakubo (川久保 亮)
Vivliostyle Inc.
http://vivliostyle.com

Andreas Jung

unread,
Nov 25, 2015, 9:38:46 AM11/25/15
to Vivliostyle Project
Could you help me out with a corrected version of the styles that would work with Vivliostyle?
The lack of documentation (The "EPUB adaptive layout" spec is not a documentation and samples are too huge to learn from) or simple self-contained examples are
currently the biggest problem of the problem when it comes to wider adoption. As I wrote earlier I am happy to help out with examples and documentation but
right now I have some serious problem getting the foot on the ground.

Andreas 

Kawakubo Toru

unread,
Dec 1, 2015, 12:23:09 AM12/1/15
to vivli...@googlegroups.com
Hi, sorry for the late response.

> On 2015/11/25, at 23:38, Andreas Jung <zopyx...@gmail.com> wrote:
>
>
>
> Am Dienstag, 24. November 2015 02:23:52 UTC+1 schrieb Kawakubo Toru:
> Hi,
>
> > On 2015/11/23, at 22:24, Andreas Jung <zopyx...@gmail.com> wrote:
> >
> > I am trying to get a simple example
> >
> > https://github.com/zopyx/css-paged-media-tutorial/blob/master/vivliostyle/exclusions/test.html
> >
> > working with vivliostyle-formatter.
> >
> > The expected result is
> >
> > https://raw.githubusercontent.com/zopyx/css-paged-media-tutorial/master/vivliostyle/exclusions/expected.png
> >
> > Is there anything missing in order to receive the same result with Vivliostyle?
>
> Current implementation of Vivliostyle does not support 'shape-outside’ specified on arbitrary elements.
> ‘shape-outside’ has effects only when it is specified on boxes defined with EPUB Adaptive Layout rules (@-epubx-partition, @-epubx-page-master etc.).
> We certainly want to support shapes and exclusions for arbitrary elements in the future, but the schedule has not been determined yet.
>
>
> Could you help me out with a corrected version of the styles that would work with Vivliostyle?

I forked your repository and pushed a modified version that works with Vivliostyle.
If you want a pull request, I am happy to create one.

https://github.com/kwkbtr/css-paged-media-tutorial/commit/ee2eaca81f266a2a7a648910ff156a858efdd0fd

Please note that the EPUB Adaptive Layout spec is not on the standard track and, though it works with the current Vivliostyle,
it is possible that we drop its support at some point in the future.
Also note that the EPUB Adaptive Layout spec refers an old version of Exclusions and Shapes Module and the syntax is different from the latest Shapes spec:

http://www.idpf.org/epub/pgt/#s3.2.2

> The lack of documentation (The "EPUB adaptive layout" spec is not a documentation and samples are too huge to learn from) or simple self-contained examples are
> currently the biggest problem of the problem when it comes to wider adoption. As I wrote earlier I am happy to help out with examples and documentation but
> right now I have some serious problem getting the foot on the ground.

Sorry for your inconvenience.
We want to address the problem soon, but our resource is limited and we have a lot of work to be done.

As noted earlier, it is not certain how long we keep the support for EPUB Adaptive Layout spec.
Rather, we are going to work on adding support for W3C CSS specs like CSS Paged Media, CSS GCPM, Shapes and Exclusions etc.
It is also possible that we pick useful features in EPUB Adaptive Layout spec and propose them as new CSS features at W3C CSS Working Group.

Andreas Jung

unread,
Dec 2, 2015, 8:26:23 AM12/2/15
to Vivliostyle Project


Am Dienstag, 1. Dezember 2015 06:23:09 UTC+1 schrieb Kawakubo Toru:
Hi, sorry for the late response.

> On 2015/11/25, at 23:38, Andreas Jung <zopyx...@gmail.com> wrote:
>
>
>
> Am Dienstag, 24. November 2015 02:23:52 UTC+1 schrieb Kawakubo Toru:
> Hi,
>
> > On 2015/11/23, at 22:24, Andreas Jung <zopyx...@gmail.com> wrote:
> >
> > I am trying to get a simple example
> >
> > https://github.com/zopyx/css-paged-media-tutorial/blob/master/vivliostyle/exclusions/test.html
> >
> > working with vivliostyle-formatter.
> >
> > The expected result is
> >
> > https://raw.githubusercontent.com/zopyx/css-paged-media-tutorial/master/vivliostyle/exclusions/expected.png
> >
> > Is there anything missing in order to receive the same result with Vivliostyle?
>
> Current implementation of Vivliostyle does not support 'shape-outside’ specified on arbitrary elements.
> ‘shape-outside’ has effects only when it is specified on boxes defined with EPUB Adaptive Layout rules (@-epubx-partition, @-epubx-page-master etc.).
> We certainly want to support shapes and exclusions for arbitrary elements in the future, but the schedule has not been determined yet.
>
>
> Could you help me out with a corrected version of the styles that would work with Vivliostyle?

I forked your repository and pushed a modified version that works with Vivliostyle.
If you want a pull request, I am happy to create one.

 https://github.com/kwkbtr/css-paged-media-tutorial/commit/ee2eaca81f266a2a7a648910ff156a858efdd0fd



Thanks KAWAKUBO, this is very helpful and brings me a step forward with my experiments.
Andreas
 
Reply all
Reply to author
Forward
0 new messages