Offline Parsoid based offline layout
Open, Needs TriagePublic

Description

We face big challenges to create a nice - mobile friendly - offline version of our Mediawikis because of that bug and a few other ones (see related bugs). This is necessary for Kiwix using mwoffliner. We are pretty much in standby and Kiwix investment in that feature is put in danger. I would be really thankful for your expertise to help us to find a path to make offline user also enjoy a nice responsive layout.

Kelson created this task.Apr 13 2017, 6:09 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 13 2017, 6:09 AM

@ssastry @cscott @Arlolra We are pretty much stuck by using Parsoid to create a nice - mobile friendly - offline version of our Mediawikis because of that bug and a few other ones (see related bugs). @Skylsmoi is pretty much in standby and Kiwix investment in that feature is put in danger. I would be really thankful for your expertise to help us to find a path to make offline user also enjoy a nice responsive layout.

Kelson added a subscriber: Mgautierfr.
atgo added a comment.Apr 17 2017, 9:51 PM

@Kelson is this a blocker for your work on the Wikimed grant?

@atgo Thx for asking. It's not as this is not formally a part of the grant. That said it's pretty obvious that having a mobile friendly rendering for ZIM files is pretty essential to offline offering.

atgo added a subscriber: Fjalapeno.Apr 19 2017, 5:54 PM

Thanks @Kelson. I'm trying to understand more for context, I don't doubt that mobile is critical :)

I've done some digging within the Foundation and @Fjalapeno is best positioned to answer your questions/point you in the right direction. I'll keep an eye here, too.

@Kelson Hey, sorry it took so long to follow up.

I've read over the ticket, and the sub tickets. Made some comments.

The gist is that:

  1. Parsoid markup is indeed different from PHP
  2. Android is the only mobile platform using Parsoid markup
  3. The Parsoid markup used by Android is further transformed by the MCS for use on mobile
  4. The Android app has local files it uses to style the output
  5. There is an effort underway to move all platforms to Parsoid markup and consolidate and update all CSS/JS server side
  6. In the mean time, the Android app is the best example of how to fix these issues now

Is this helpful?

@Fjalapeno Thanks for assisting @Kelson with this.

Fjalapeno added subscribers: Mholloway, Dbrant.

Tagging with Android. They are also trying to figure out how to keep the CSS/JS in sync with Kiwix files

cc @Dbrant @Niedzielski @Mholloway

We have achieved thanks to various feedbacks from the WMF developers to get something similar to the WMF mobile output in ZIM files. That said, our code is full of hacks and I predict might be relatively costly to maintain over time.

Considering that Parsoid output is probably the most valuable form of Mediawiki content, this problem should be tacle somehow if we want to push content reusing.

Kiwix/openZIM will start soon to release ZIM files using this layout. We will then see how this will be welcomed and if we detect other problems Parsoid mobile output.

Arlolra moved this task from Backlog to Non-Parsoid Tasks on the Parsoid board.Jul 19 2017, 9:07 PM