HTML tags in TXT file.
Problem:
user has HTML tags in TXT files and would like to parse the files correctly having tags locked and not counted as translatable text.
Solution:
In this case I would recommend to to change extension of the TXT files from *.txt to *.htm and process them as HTML files using native Wordbee parser for "Web pages" and after finalization change the extension of the files back to *.txt.
Note: in case you have thousands of files to be renamed you can use ren function. Once you are in the desired folder where your files are you can just write a command ren *.txt *.htm and all extensions will be changed to *.htm.
-
solution above is easiest.
alternative would be to define regexps for the tags. That is risky, especially if number of tags and attributes grows. I did it successfully for some clients that only use <i>, <b> and some <Hx> tags in .txt files.
0 -
Really? In Plain Text parser I can only exclude the whole segment if the regex is a match.
1 -
sorry, you are right. It only works for whole segments. I remembered skipping text for .srt files (https://wordbee.zendesk.com/hc/en-us/community/posts/207476598-Support-for-srt-files?page=1#community_comment_221859507..) but there we skipped whole segments...
So back to the rename solution ;-)
funny to see a feature request for just this today:
0
Please sign in to leave a comment.
Comments
3 comments