5 class DvdStl extends CaptionFormat
\r
8 * Imports a caption string into a CaptionCollection
\r
10 * @param String $theCCString the caption file as string
\r
11 * @return CaptionCollection $myCcCollection A CaptionCollection Object
\r
13 public function importCC($theCCString)
\r
19 * Exports a CaptionCollection object into a string
\r
21 * @param CaptionCollection $theCollection A CaptionCollection Object
\r
22 * @return String $captionString The caption as a String
\r
24 public function exportCC($theCollection)
\r
29 $myCollection = $theCollection->getCollection();
\r
31 foreach ($myCollection as $captionObj)
\r
33 $fixCap = TxtFileTools::ccNewLineToBr($captionObj->getCaption(),' ');
\r
35 $ccExport .= $captionObj->getInTime().', '.$captionObj->getOutTime().", ".$fixCap."\n\n";
\r
44 * Verify if the caption file is a srt caption file
\r
46 public function checkFormat($theCCString)
\r
49 } // end checkFormat()
\r
52 * Here functions to re-define
\r
54 public function getName()
\r
56 return 'Spruce STL';
\r
59 public function getAbout()
\r
61 return 'Caption format used by DVD Studio and Avid in mac OS.
\r
63 This format can be used to create DVD captions on Mac OS';
\r
66 public function getVersion()
\r
71 public function getFileExtension()
\r
76 public function getIdPattern()
\r
78 //$idPattern = '/([0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{2})(.*)([0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{2})(.*)/';
\r
79 $idPattern = '/unknownZZZ/';
\r
80 //00:00:03:24 , 00:00:06:29 , Did you read the paper today?
\r
84 public function allowsTextStyles()
\r
89 public function template()
\r
91 $ccTemplate = '//English subtitles
\r
106 $ForceDisplay = FALSE
\r
109 $TapeOffset = FALSE
\r
111 00:00:03:24 , 00:00:06:29 , Did you read the paper today?
\r
112 00:00:10:07 , 00:00:12:21 , No, did Edwards quote me right?
\r
113 00:00:14:19 , 00:00:25:28 , Actually, ^IBrillstein^I said you were | unimaginably full of yourself
\r