VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Member
    Join Date
    Nov 2008
    Location
    San Diego
    Search Comp PM
    hi, so i make myself a .txt just now to not forget how i did this, one button solution would be nice but didnt find a software capable of this, so i find a workaround, this is for people who like and JUST want to use THIS software, some manual intervention is required but not much (but if you havent seen the movie, see it first, because subtitle's lines need to be edited)

    so forgive any errors and any advise is very welcome
    if screenshots, more explanations, quality is needed will be given upon request, if this becomes old or i dont answer here please send private message (i have chose the option to alert me by mail)

    thanks

    how to convert .srt to .subtitle



    check movie framerate
    open .srt with subtitle workshop by uruworks with apropiate framerate selected

    in subtitle workshop save custom format with options:

    new line with | (will replace later in notepad or similar with \n)

    use this format hh:mm:ss,zzz

    this will be copied (is the basic template until someone comes with a better one)
    this template will write very similar .subtitle format (which authoring works is capable of read/write)

    ---as in the sub workshop save page, begin------

    ** Copyright © 2002 URUSoft
    Comments won't be saved into the subtitle file
    If you want to save these two characters into a file,
    write {asterisk} instead (this will write only ONE asterisk)
    Warning: you MUST read the help file before using this feature !*
    Subtitle Workshop - Custom format ** Placed once at the beginning of the file !*

    {RepeatSub}
    {SubCount},1,"{swStart}","{swEnd}",0,"{swText}"
    {EndRepeat} ** Ends the repeating part !*

    End of Subtitle Workshop - Custom format ** Placed once at the end of the file !*

    ---as in the sub workshop save page, end------

    simple option:

    ----begin------

    {RepeatSub}
    {SubCount},1,"{swStart}","{swEnd}",0,"{swText}"
    {EndRepeat}

    ---end-----


    now you have an exported custom format file from subtitle workshop
    open it with text editor (notepad in this case)
    add the next text, in the file's very first lines

    ---to add begin----

    [LayoutData]
    "Picture bottom",4,Tahoma,0.1,17588159451135,0,0,0,0,1,2,0,1,0.005 ,0
    "Picture top layout",4,Tahoma,0.1,17588159451135,0,0,0,0,1,0,0,1,0.005 ,0
    "Picture left layout",4,Tahoma,0.1,17588159451135,0,0,0,0,0,1,1,1,0.005 ,0
    "Picture right layout",4,Tahoma,0.1,17588159451135,0,0,0,0,2,1,1,1,0.005 ,0
    "Picture bottom-italics",0,Tahoma,0.1,17588159451135,0,1,0,0,1,2,0,1,0.005 ,0

    [LayoutDataEx]
    1,0
    1,0
    1,0
    1,1
    1,0



    [ItemData]
    1,1,"00:00:46,710","00:00:51,710",0,"""this is a double line""\nwithout the italics"
    2,1,"00:02:08,290","00:02:13,290",4,"this is a double line\nwith ""the"" italics"
    3,1,"00:03:39,930","00:03:44,930",0,"formatting ""in"" this is ""terrible"""

    .
    . etcetera
    .


    ---to add end---



    below [ItemData] are the actual subtitles so you can delete subtitles from example above


    the immediately above text portion is how authoring works exports its own subtitles

    open movie in authoring works, go to subtitle editor page

    import subtitles previously exported by subtitle workshop

    DONT GO ON YET, errors will occur... since some characters are handled differently
    by authoring works, this will cause errors

    so... check in authoring works's subtitle editor page if your subtitles are complete

    probably not, so...
    simplest tool i had was notepad with find and replace option

    auth works writes new line of text with \n so in notepad find an replace | (which was inserted by subt workshop)

    Code:
    in notepad replace  0,"  with  4,"  if using a similar template to show italics (thats why the number 4)
    double "" are written differently by auth works, problems occur if movie's subs have some text like

    LINE: so she said "i disagree" in front of "me"

    since subtitle workshop hasn't been updated, other methods exist, easier software out there etc

    if like me prefer/must use because of quality/speed ...whatever authoring works
    you must

    import subt file from subt workshop into auth works
    see if the subtitle are complete,if yes: SUCCESS
    if not check in which line were cut off
    open subt file from subt workshop in notepad, go to that line
    find problematic line of dialog and edit manually, in auth works, click edit menu and clear list of subtitles
    import the previously edited and check again

    i found problems with between dialog quote marks,like if you want italic text quoted

    Wanted LINE>>>>>>>>>>>
    Code:
    120,1,"00:08:21,6","00:08:23,4",0,""Where the hell are my shorts?""
    Should look like LINE>>>>>
    Code:
    120,1,"00:08:21,6","00:08:23,4",4,"""Where the hell are my shorts?"""
    "phrase" becomes ""phrase"" double quoted, but if the phrase is at the beginin or end three quotes """ will appear

    until some one button solution comes out, only manual fixing quoted text will do the job, and only will suck some minutes

    so:

    from | change to \n
    from 0," change to 4," (if using similar auth works template, copy example and modify if necessary)
    quoted inline text, begging or end will make auth works stop importing name.subtitle file

    hope this is helpful for people who want to use authoring works and when importing .srt subtitle files, formatting looks messed up :mad:

    UPDATE:
    html here in the forums messes my text because of the italics tag.. so i attached a .txt file
    Image Attached Files
    Last edited by shaktiIIIgta; 26th Mar 2010 at 18:11. Reason: more polished
    Quote Quote  
  2. Here is a simple Word Basic macro which converts *.SRT to TMPGEnc *.SUBTITLE:


    Sub MAIN

    StartOfDocument
    InsertPara
    EditSelectAll
    EditCut
    EditPasteSpecial .DataType = "text"
    EditSelectAll
    REM Font "Times New Roman"
    StartOfDocument

    EditReplace .Find = Chr$(34), .Replace = "^0034^0034", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 1, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 2, .FindAllWordForms = 0

    EditReplace .Find = "^p^#^p", .Replace = "^&%%%%", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 1, .FindAllWordForms = 0
    EditReplace .Find = "^p^#^#^p", .Replace = "^&%%%%", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 1, .FindAllWordForms = 0
    EditReplace .Find = "^p^#^#^#^p", .Replace = "^&%%%%", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 1, .FindAllWordForms = 0
    EditReplace .Find = "^p%%%%", .Replace = ",1, ^034", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 1, .FindAllWordForms = 0
    EditReplace .Find = " --> ", .Replace = "^034, ^034", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 1, .FindAllWordForms = 0
    EditReplace .Find = "^#^p", .Replace = "^&%%%%", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 1, .FindAllWordForms = 0
    EditReplace .Find = "^p%%%%", .Replace = "^034, 0, ^034", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 1, .FindAllWordForms = 0
    EditReplace .Find = "^p^p", .Replace = "%%%%", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 1, .FindAllWordForms = 0
    EditClear
    EditReplace .Find = "^p", .Replace = "\n", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 1, .FindAllWordForms = 0
    EditReplace .Find = "%%%%", .Replace = "^034^p", .Direction = 0, .MatchCase = 0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, .Wrap = 1, .FindAllWordForms = 0


    StartOfDocument

    Insert "[LayoutData]" + Chr$(13) + "" + Chr$(34) + "Picture bottom layout" + Chr$(34) + ",4,Tahoma,0.1,17588159451135,0,0,0,0,1,2,0,1,0.005 ,0" + Chr$(13) + "" + Chr$(34) + "Picture top layout" + Chr$(34) + ",4,Tahoma,0.1,17588159451135,0,0,0,0,1,0,0,1,0.005 ,0" + Chr$(13) + "" + Chr$(34) + "Picture left layout" + Chr$(34) + ",4,Tahoma,0.1,17588159451135,0,0,0,0,0,1,1,1,0.005 ,0" + Chr$(13) + "" + Chr$(34) + "Picture right layout" + Chr$(34) + ",4,Tahoma,0.1,17588159451135,0,0,0,0,2,1,1,1,0.005 ,0" + Chr$(13) + "" + Chr$(13) + "[LayoutDataEx]" + Chr$(13) + "1,0" + Chr$(13) + "1,0" + Chr$(13) + "1,0" + Chr$(13) + "1,1" + Chr$(13) + "" + Chr$(13) + "[ItemData]" + Chr$(13)
    End Sub
    Cann't tell it's possible don't tell anything.
    Quote Quote  
  3. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Recently they have started to actively update Subtitle Workshop, after a long period of stagnation.

    If anyone needs this format, go to http://www.urusoft.net/forum/ where you could request that they add this format.
    You'll need to supply some samples, of course.
    Last edited by AlanHK; 12th Dec 2011 at 06:59.
    Quote Quote  
  4. Member
    Join Date
    Apr 2012
    Location
    Longmont, CO USA
    Search Comp PM
    The latest Subtitle Edit (3.2.8 rev 1153) is an awesome free application with ability to saveas many different formats with different encodes. Save srt as .xsubtitle is one of the options. The new xsubtitle file incorporates the italics coding so you can import it in to TMG Authoring works. You may want to add an italics layout in TMG AW subtitle layout editor. Also make sure .srt file is UTF-8 to start off. Download Subtitle Edit at: http://www.nikse.dk/.
    Quote Quote  
  5. Could this also be used to get different alphabets into TmpgEnc DVD author?
    This is nøt å signåture.™
    Quote Quote  
  6. Thank you guys for all suggestions. But to save subs in Subtitle Edit to the format xsubtitle didn't work for me. I could save it but TMPGEncAuthoringWorks4 didn´t accept the file. The sub edit window became blank without any subs. I haven't tried the other solutions because I found another way. I found the software NCH Videopad and there I could import the subttles and it shows up correctly - italics without any tags.
    So the problem is solved.
    Thank you all again.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!