Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripting for preprocessing, also embedded scripts for live ebooks #1245

Open
hgkamath opened this issue Dec 31, 2023 · 1 comment
Open

scripting for preprocessing, also embedded scripts for live ebooks #1245

hgkamath opened this issue Dec 31, 2023 · 1 comment

Comments

@hgkamath
Copy link

hgkamath commented Dec 31, 2023

Is your feature request related to a problem? Please describe.
na, this just an inquiry, to check if possible, or even if this a direction that vivliostyle has considered.

Describe the solution you'd like
Investigating possibility of
a) programmatically through hooks, if by acting on the input-src-file, gather additional static content on local system (or by url), pre-process content for inclusion before the usual markup driven typesetting
b) embedding code(JavaScript) and data (json) into a epub/pdf to create say a live ebooks with interactive canvas (such as data visualization, running simulations with parameters, etc).

Being a javascript project, it is to be expected that if there is a scripting language it is JavaScript/wasm.

Describe alternatives you've considered
na, this isn't something traditional typesetters can do.

Additional context
na

If possible, please do include a write-up/documentation somewhere as to how something like this can be done.

Feel free to close the issue if not relevant.

@MurakamiShinyu
Copy link
Member

There have been feature requests such as:

and we implemented this feature in:

However, this implementation has limitations and may not be useful for your purpose. See issue:

Also embedded scripts for live ebooks are not possible for now.

We welcome your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants