Page MenuHomePhabricator

Keep functionality for preprocessing without javascript
Open, Needs TriagePublic12 Estimated Story Points

Description

Make sure that enough functionality is kept to enable recitation without javascript. This means it should still be possible to preprocess text in onParserAfterTidy(), but some information, like utterance offsets, shouldn't be needed.

The desired output likely has significant overlaps with that we will want in the Special page for downloading all the audio of an article.

This task includes a proof of concept solution for surfacing the output to a no-js user. (Link for playing utterance next to each sentence).

Properly enabling it for no-js scenarios is a follow-up task (to be created).

Event Timeline

Lokal_Profil updated the task description. (Show Details)
Lokal_Profil moved this task from Incoming to Proposed for next sprint on the Wikispeech board.
Lokal_Profil set the point value for this task to 12.

It might also be worth taking a look at OOjs which seems to have some methods for building some of the components in php while still making them accessible from js. (I'm thinking the playback toolbar)

Are you thinking about having the same player UI when JS is disabled? I'm still not sure what (if any) of the functionality can be implemented without JS.

To set the sources for the audio elements, all the utterances will need to be requested on page load, unless there is a way to get around this using only PHP that I'm not aware of.

Since you don't want to load all the utterances if you're not interested in listening, there should be a link for "reloading with Wikispeech". This should also be accessible via URL parameter. It may be good to offer the possibility to load smaller parts of the page (e.g. one section). This would require reloading the page for each part.

This should be a separate task.

I think things have changed enough since this was created that it's better to start from scratch.