Topic on Talk:Offline content generator/Architecture

PDF creation needs to support all scripts

4
GerardM (talkcontribs)

The current version that creates PDF does not work for many scripts. Any new implementation should support all the scripts we support.

Kelson (talkcontribs)

I agree, resourceLoader should be correctly exported for offline usage.

Mwalker (WMF) (talkcontribs)

Guh wah! It is a design goal that we support all of the languages that the WMF itself runs sites for (and hopefully really any in the basic and extended multilingual planes.)

However... JavaScript is not yet on the table because at the moment we're only looking at support static content. Kelson; does Kiwix actually run JS? Does your bundler already do this?

Kelson (talkcontribs)

Kiwix is based on the Mozilla runtime and Kiwix for Android on the native Webview. Both provide a JS runtime. In the past, I used to generate ZIM files with working javascript inside. But now with the resourceloader/parsoid, this is broken. I have tried to fix this, without success until now. Adam W. from the WMF office has also investigate this for Kiwix using phantomJS, I'm sure he can deliver to you a few more useful information.

Reply to "PDF creation needs to support all scripts"