Jump to content
Chinese-Forums
  • Sign Up

Does anyone know a program that could convert long texts into Pinyin...?


Recommended Posts

  • New Members
Posted

I want to convert like 10 pages of text at one sitting from simplified Chinese into Pinyin. To be more precise, I want to convert Chinese subtitles (txt docs) into pinyin, so the program needs to maintain the original layout. I already know a lot of online conversion sites, but they all seem to convert only a very limited set of characters at a time and also mess up the layout in a way that makes it unrecognizable for any video player. I just thought watching Western movies with Pinyin subs would be a great way of continuing my studies of the Chinese language.

谢谢 in advance!

Posted

Interesting task. This could be something that you could accomplish with a simple program and a character-pinyin dictionary.

If you have programming experience, I'd recommend trying to write a script in Python.

Or, if you want me to try, you can send a sample of the formatted subtitle text file and I can see what I can do with it using a Python script.

Cheers,

Chris

  • Like 1
Posted

You might as well try this site. Copy and paste the text into the box, select "Chinese>>Pinyin All" in the drop-down menu, and click "Convert". Hope it works.

Good luck!

  • Like 1
  • New Members
Posted

Thanks Kenny2006woo, you got my point. This program is very nice because it does not insert line breaks like google does and works for me except it it only converts 2000 characters at a time, so it does require a bit of copy pasting to convert a whole movie's subs. I wonder if there is a program that can convert .txt docs as such without the need to copy paste anything at all. For example Google translate can translate webpages and notepad files containing unlimited number of text, but alas it does not pinyinize it unless you copy only super short segments of it in the translation window. That messes up a simple layout like below and takes away the line breaks:

1

00:00:20,543 --> 00:00:23,011

吃啊,别愣着

2

00:00:23,879 --> 00:00:25,710

从早到现在没吃东西

3

00:00:26,115 --> 00:00:28,675

你是不是嫌钱少了

Thanks

  • New Members
Posted

Thanks, mandarinspot.com/annote was the perfect solution, thank you so much. I'm sure this will work for me, I've already learned 4 languages using a bit similar techniques!

Posted

Adsotrans: http://popupchinese.com/tool/adso

There is an offline version you can use for arbitrarily long texts, but I'm not 100% if it's free or not, or what the conditions are. The author is a poster here on the forum, but I haven't seen him recently.

  • Like 1
  • 2 weeks later...

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...