Ticket #264 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

update TTexport script

Reported by: jeroen Owned by:
Priority: Milestone: Flash 4.2
Component: Keywords:
Cc: Forum thread:

Description

I think the script for Subtitle Workshop to export TimedText .xml subtitles dont't create proper files. When i tried it no subtitles showed up for me in FLV Media Player. But i found that the script creates non-valid files, and after some time of study of the TimedText specification and other TimedText .xml-files, i was able to modify the script to create valid .xml files that worked in my FLV Media Player.

The problem is that the script put the [b]beginb and [b]endb attribute in the XML-file's DIV-tag not in the P-tag. This is not valid by the TimedText specs ( http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/TimedTextTags.html). The [b]beginb and [b]endb must be in the P-tag.

Here is a modified version of the script that creates valid TT .xml files (open the *.cpf files with Notepad): [code][Information] Name=JW FLV Player Extension=*.xml Time structure=hh:mm:ss.z Time=True FPS=25 New line char=<br />

[Format text] <tt xmlns=" http://www.w3.org/2006/10/ttaf1" xmlns:tts="http://www.w3.org/2006/04/ttaf1#style"> <head></head> <body> <div> {RepeatSub} <p begin="{swStart}" end="{swEnd}">{swText}</p> {EndRepeat} </div> </body> </tt>code I also add support for linebreaks in the code above. It was not supported by the orginal script. Then i have optimized it too and removed some unnecessary tags to make the output .xml files smaller.

Maybe Jeroen will see this and update his script for Subtitle Workshop.

Change History

comment:1 Changed 5 years ago by jeroen

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.