Jump to content
Chinese-Forums
  • Sign Up

Help with how to remove timing numbers from subtitles?


Recommended Posts

Posted (edited)

I don't remember where I saw something like how to remove numbers etc from subtitles easily by only using Word. Does anybody know anything about that?

What I am trying to say is

366

20:16,880 20:19,440

不像有些人自我感觉特别良好

367

20:19,720 20:22,029

要不就写一大堆肉麻的话

change into

不像有些人自我感觉特别良好

要不就写一大堆肉麻的话

Edited by roddy
Posted

Maybe not the most efficient way, but just do a few find and replaces

Find '1', replace with ''

...

Find '9', replace with ''

Find ':', replace with ''

Not sure if Word can handle the removal of line breaks, but something more sophisticated will be.

It can:

Find '^p^p' replace with ''

Posted

Ok, in the find and replace box, click 'more' and select 'pattern matching' (not sure exactly what these are in English, I have a Chinese version.

Then find

([0-9])

and replace with nothing

That'll do them all at once. Got this from here, you can probably figure out how to also do the punctuation and line breaks at the same time.

Posted

Now there are only extra lines that I couldn't still figure out how to eliminate. :oops:

Any ideas?

It's

现在的人都挺现实的呀

我妈我周围的朋友

I want to change it into

现在的人都挺现实的呀

我妈我周围的朋友

Posted

See my first post - isn't that working? I edited it in, you might not have seen it first time.

  • Like 1
Posted

I got it:mrgreen:

We write ^p,which means paragraph mark, in the blank of replace as many as we need than we write ^p in the 替换为 blank once, than its OK

thank God! :mrgreen:

Edit: I have just seen your edit Roddy, thanks a lot

Posted

I don't think Word is the best tool to use.

I'd recommend a strong notepad replacement (I use notepad++). Notepad++ has a find/replace function that includes something called Regex (regular expressions).

You can use regex to do lots of cool stuff. In this case you would search for lines that started with numbers like this:

"^[0-9].*" <--- this means: the first character of the line must be a number. After the first character, the following characters can be anything.

Using notepad++, you would use the find option and select "Regular Expression" search mode and copy the above part without quotes. You would replace it with a blank space.

Hope this was helpful.

Join the conversation

You can post now and select your username and password later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Click here to reply. Select text to quote.

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...