Javascript story?

28 views
Skip to first unread message

Andreas Jung

unread,
Dec 7, 2015, 1:46:36 PM12/7/15
to Vivliostyle Project
Hi there,

is there some (planned) support for Javascript in Vivliostyle?

There are various usecases where Javascript support would be very handy.

Andreas

Kawakubo Toru

unread,
Dec 11, 2015, 12:44:01 AM12/11/15
to vivli...@googlegroups.com
Hi, thank you for your feedback!

> On 2015/12/08, at 3:46, Andreas Jung <zopyx...@gmail.com> wrote:
> is there some (planned) support for Javascript in Vivliostyle?

We definitely want to support JavaScript in near future, but we haven’t determined when we will add that.
I think there are several patterns of how we want to use JavaScript with Vivliostyle:

- Pre-process the document before page layout by Vivliostyle, e.g. automatically generating some contents like table of contents, index etc.
- Controlling interaction between the user and the document on screen after page layout by Vivliostyle.js, e.g. handling mouse events etc.
- Injecting some custom procedure into middle of Vivliostyle’s layout process, i.e. a plugin for Vivliostyle

We will work on those features one by one and let you know when ready.


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

Andreas Jung

unread,
Dec 14, 2015, 2:01:56 PM12/14/15
to Vivliostyle Project


Am Freitag, 11. Dezember 2015 06:44:01 UTC+1 schrieb Kawakubo Toru:
Hi, thank you for your feedback!

> On 2015/12/08, at 3:46, Andreas Jung <zopyx...@gmail.com> wrote:
> is there some (planned) support for Javascript in Vivliostyle?

We definitely want to support JavaScript in near future, but we haven’t determined when we will add that.
I think there are several patterns of how we want to use JavaScript with Vivliostyle:

- Pre-process the document before page layout by Vivliostyle, e.g. automatically generating some contents like table of contents, index etc.

Standard support jQuery and related add-ons is likely a must.
JS templates could be used to generate TOC, listings etc.
Support for add-ons providing additional presentation elements like charts would be handy

- Controlling interaction between the user and the document on screen after page layout by Vivliostyle.js, e.g. handling mouse events etc.

I don't see much usecases for this.
 
- Injecting some custom procedure into middle of Vivliostyle’s layout process, i.e. a plugin for Vivliostyle


Hot topics are always handling of page breaks, overlong tables, oversized images. For example support for some adaptive image sizing would be very handy.

Andreas
 

Florian Rivoal

unread,
Dec 15, 2015, 12:54:21 AM12/15/15
to vivli...@googlegroups.com
On Dec 15, 2015, at 04:01, Andreas Jung <zopyx...@gmail.com> wrote:

Am Freitag, 11. Dezember 2015 06:44:01 UTC+1 schrieb Kawakubo Toru:
Hi, thank you for your feedback! 

> On 2015/12/08, at 3:46, Andreas Jung <zopyx...@gmail.com> wrote: 
> is there some (planned) support for Javascript in Vivliostyle? 

We definitely want to support JavaScript in near future, but we haven’t determined when we will add that. 
I think there are several patterns of how we want to use JavaScript with Vivliostyle: 

- Pre-process the document before page layout by Vivliostyle, e.g. automatically generating some contents like table of contents, index etc. 

Standard support jQuery and related add-ons is likely a must.
JS templates could be used to generate TOC, listings etc.
Support for add-ons providing additional presentation elements like charts would be handy

Yes. The way we're thinking about building this, anything that would work in a regular web page would work here as well.

- Controlling interaction between the user and the document on screen after page layout by Vivliostyle.js, e.g. handling mouse events etc. 

I don't see much usecases for this.

Here's just one example to get your imagination going. You could have an interactive chart in the document (see here fore examples: http://www.highcharts.com/). You don't only need to put it in the document, you also need javascript to work for the interaction.

- Injecting some custom procedure into middle of Vivliostyle’s layout process, i.e. a plugin for Vivliostyle 


Hot topics are always handling of page breaks, overlong tables, oversized images. For example support for some adaptive image sizing would be very handy.

Absolutely.

--
Florian RIVOAL
取締役、Chief Commercial Officer
Vivliostyle

Reply all
Reply to author
Forward
0 new messages