I have a word files with srt subtitles. I want WORD macros to wrap every english word with this tag:
<span class='top en'></span>
Then that particular english subtitle the entire english line should be wrapped with this tag:
<span class='english'></span>
------
Then any chinese words MS Word Macros should do the same and wrap each chinese word or characters in this:
<span class='top ch'>
then that particular chinese subtitle entry the entire chinese line should be wrapped with this tag:
<span class='english'></span>
------
Then any pinyin words MS Word Macros should do the same and wrap each pinyin word or characters in this:
<span class='top pn'>
then that particular pinyin subtitle entry the entire pinyin line should be wrapped with this tag:
<span class='pinyin'></span>
-----------------
So a regular subtitle file in ms word would look like this:
1071
01:36:17,620 --> 01:36:18,540
xièxie
谢谢
Thank you.
1072
01:36:21,090 --> 01:36:22,460
nǐ kàn guò zhègè le ma
你看过这个了吗
Did you see this?
But after the WORD macros is done with it, it should look like this:
1071
01:36:17,620 --> 01:36:18,540
<span class='pinyin'><span class='top pn'>xièxie</span></span>
<span class='chinese'><span class='top ch'>谢谢</span></span>
<span class='english'><span class='top en'>Thank</span> <span class='top en'>you</span>.</span>
1072
01:36:21,090 --> 01:36:22,460
<span class='pinyin'><span class='top pn'>nǐ</span> <span class='top pn'>kàn</span> <span class='top pn'>guò</span> <span class='top pn'>zhègè</span> <span class='top pn'>le</span> <span class='top pn'>ma</span></span>
<span class='chinese'><span class='top ch'>你</span><span class='top ch'>看</span><span class='top ch'>过</span><span class='top ch'>这个</span><span class='top ch'>了</span><span class='top ch'>吗</span></span>
<span class='english'><span class='top en'>Did</span> <span class='top en'>you</span> <span class='top en'>see</span> <span class='top en'>this</span>?</span>
------------------------------------------------------------
So basically, I need a Microsoft Word Macros written that will insert my hmtl tags appropriately wrapping each word and each then each larger enclosing each subtitle line/phrase in the appropriate tags. There are 6 tags in total, 2 for english words, 2 for pinyin words, and 2 for the chinese words.
--------------------------------------------------------
If you understand this project, then it should be fairly simple, just need a script to input those tags. Thanks!
Hi!) I CAN do this work. I realy know how to identify these languages, separate words and add to them these tags. Do you need a freelancer who can fulfill all your requirements? So, hire me!)
Hi There,
Understood your job requirement. are you specific about word macros or anything apart from it is okay like excel macros?
Could you please attach subtitle complete file for testing and generating a sample file for your review
I'm available and ready to start
Imran