Last modified: 2014-02-12 23:38:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48527, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46527 - TimedText Line Breaks & Hard Spaces That Don't Collapse
TimedText Line Breaks & Hard Spaces That Don't Collapse
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
TimedMediaHandler (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Michael Dale
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-25 05:28 UTC by Ace Frahm
Modified: 2014-02-12 23:38 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ace Frahm 2013-03-25 05:28:57 UTC
It appears that there is no way to create a line break in the TimedText .srt format on wikimedia commons, and no way to make sure spaces don't collapse.

I believe the .srt format for closed captioning stuff does allow this, but the way wikimedia works isn't making it possible.  Or at least, if the lines DO break, the 2nd line gets hidden in the in-browser player so it can't be read.  

Can you fix this, and tell me how to do line breaks & hard spaces when it is possible?
Comment 1 Andre Klapper 2013-03-25 09:06:27 UTC
TimedText -> MediaWiki extensions/TimedMediaHandler.

Ace: A testcase is highly welcome, e.g. what exactly you have tried already.
<br/> does not work for you to create a line break?

If I understand "make sure spaces don't collapse" correctly, have you tried setting white-space-collapse="true" or "false"?

Also see http://www.w3.org/TR/ttaf1-dfxp/
Comment 2 Ace Frahm 2013-03-26 02:47:59 UTC
I tried <br />, I tried \n, \N, hyphens, pasting in Windows CRLF line breaks, UNIX LF line breaks, I tried | characters, I tried adding a leading space to the 2nd line, I tried extra CRLFs, I tried extra '\', and maybe some other things too, so many it is hard to recall.

I tried \h to get hard spaces, and putting the spaces in single quotes, but that didn't work either.

Perhaps the cortado player for Internet Explorer doesn't behave properly with .srt files' 2nd lines, or perhaps the wikimedia system is altering the presentation of the .srt text to the player?

How is anybody supposed to add CSS such as white-space-collapse="false" to a .srt TimedText? 

This is the .srt file I'm working on:
http://commons.wikimedia.org/wiki/TimedText:Pie_In_The_Sky.ogg.en.srt

The link you give for TimedText seems to specify completely different markup than I've ever seen anywhere else before.  Is there a way to use that with video & audio on mediawiki instead of .srt files?
Comment 3 Ace Frahm 2013-03-26 02:48:52 UTC
I tried <br />, I tried \n, \N, hyphens, pasting in Windows CRLF line breaks, UNIX LF line breaks, I tried | characters, I tried adding a leading space to the 2nd line, I tried extra CRLFs, I tried extra '\', and maybe some other things too, so many it is hard to recall.

I tried \h to get hard spaces, and putting the spaces in single quotes, but that didn't work either.

Perhaps the cortado player for Internet Explorer doesn't behave properly with .srt files' 2nd lines, or perhaps the wikimedia system is altering the presentation of the .srt text to the player?

How is anybody supposed to add CSS such as white-space-collapse="false" to a .srt TimedText? 

This is the .srt file I'm working on:
http://commons.wikimedia.org/wiki/TimedText:Pie_In_The_Sky.ogg.en.srt

The link you give for TimedText seems to specify completely different markup than I've ever seen anywhere else before.  Is there a way to use that with video & audio on mediawiki instead of .srt files?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links