VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Hi,

    Is there an easy automated way to remove lines that consist only of musical symbols and no other text?

    In the "Remove text for hearing impaired" options I can specify the musical symbols that I want to remove, but I can't see a way to distinguish between a line that contains just a single "♪" (which I want to remove) and a line that contains "♪ <lyrics> ♪" (which I want to keep). I would have to manually go through all the lines found and deselect the ones with lyrics.

    Or is there an option somewhere else to remove all subtitle lines that contain just one character?
    Quote Quote  
  2. remove all subtitle lines that contain just one character



    this code will remove all lines that contain the single character ♪


    Code:
    sed -e "/^\xe2\x99\xaa$/d"   subtitle.srt
    Quote Quote  
  3. Originally Posted by jack_666 View Post
    remove all subtitle lines that contain just one character



    this code will remove all lines that contain the single character ♪


    Code:
    sed -e "/^\xe2\x99\xaa$/d"   subtitle.srt

    Thanks, that'll do the job.

    And it led me to discover that Subtitle Edit's Multiple Replace function supports regular expressions. So if I search for ^.{0,1}$, I can find all empty or single-character lines and replace them with null.

    Even better, I can streamline this action this by including "multiple replace" among the Batch Convert options I have configured for Subtitle Edit.
    Quote Quote  



Similar Threads

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