-
Exporting text from timeline to text file
Posted by Grzegorz Kwiatkowski on November 14, 2011 at 12:56 pmIs there any way to export the subtitle text created with Sony Pro Type Titler to a text file (txt or srt)?
Sometimes I have to send subtitle text via email and it costs me much time copying and pasting each fragment to a text file.
thanks!
Tyson Onaga replied 14 years, 6 months ago 2 Members · 3 Replies -
3 Replies
-
Tyson Onaga
November 14, 2011 at 8:23 pmI know of no way to easily get the text out of Sony Text objects from within Vegas. However, if you have all ProType Titler objects, you can:
1. COPY the .veg file
2. Start Word
3. File Open
4. In File of Type, scroll down and select: Recover Text from Any File
5. Select the COPY of the .veg fileWord will then extract the text. Your PTT objects should show up as XML blocks.
6. Select All
7. Edit Replace (Ctrl H)
8. Replace ^p^p with ^p (double paragraph with single paragraph)This should remove “blank lines”.
9. Select All
10. Copy
11. Run Notepad
12. PasteI see this block
twice in Notepad. You probably need only one (ie, hand-editing). 13. In Notepad, search for: <spans text="
The value(s) within the double quotes should be your text strings.
Collect them and copy to your EM. -
Tyson Onaga
November 15, 2011 at 1:52 amAs there is no API to the Sony Text objects, a “workaround” is the best you can do. I’d make a test .veg with 2 or 3 PTT objects. Run through the steps above and see if you find the 2 or 3 “span” statements with your text strings.
If so, then the next step would be to write a Word macro (in VB) that would start at step 6 and automate the rest. You would use Word to find the
<spans text=
statement, then
– copy the text string
– add it (eg) a second Word document
– find the next spans statement (or stop)When the macro is executed, you’d have a document with just the text strings … which should be your PTT text strings.
Reply to this Discussion! Login or Sign Up