Regex to turn "tags" into actual Studio tags
Thread poster: Jos Vlemmix

Jos Vlemmix  Identity Verified
Local time: 04:31
English to Dutch
+ ...
Apr 19, 2016

Hi,


I'm running into some issues with files that contain the following tags in plain text. I'd like Studio to pick these up and convert them to a Studio tag so I can make sure I'm not missing anything.

After some research I came to the conclusion that a regular expression filter is my best bet.

The tags sequences in question:
Code:

<ul><li>
</li></ul>\r\n




There's text scattered throughout these that need translation so just hiding, so ideally they'd get tagged and it breaks to the next segment. Is that possible? I just can't seem to wrap my head around regex

[Edited at 2016-04-19 16:05 GMT]

[Edited at 2016-04-19 16:10 GMT]


 

Emma Goldsmith  Identity Verified
Spain
Local time: 05:31
Member (2010)
Spanish to English
Inline tags Apr 19, 2016

I think you should be able to use this:
\&lt.+?\&gt
to convert your text into placeholder inline tags in a .txt file type.

For more info, check out this thread (although it applies to excel files):
http://www.proz.com/forum/sdl_trados_support/288571-studio_2011_how_to_display_{0}_as_tag.html


 

alainabran
Local time: 20:31
Spanish to English
Is there a solution for this in Trados 2015? Apr 19, 2016

Hello all,

I am running into a similar problem as originally posted in this thread. I'm running an HTML file for translation, and some of the coding has not been picked up as such. I therefore need to convert that text to tags. I also believe that regular expressions are the solution, and I've tried including a regular expression that should cover these strings in the variable list. However upon analysis of the files, the tags remain.

Is there perhaps an app or plugin for Trados 2015 that I could use to carry out this tagging? Am I perhaps using the "variables" function incorrectly?

Any help is greatly appreciated!

Best,
Alaina


 

Jos Vlemmix  Identity Verified
Local time: 04:31
English to Dutch
+ ...
TOPIC STARTER
Partial success Apr 20, 2016

Emma Goldsmith wrote:

I think you should be able to use this:
\
to convert your text into placeholder inline tags in a .txt file type.

For more info, check out this thread (although it applies to excel files):
http://www.proz.com/forum/sdl_trados_support/288571-studio_2011_how_to_display_{0}_as_tag.html



Thanks Emma! Unfortunately Studio threw an error saying I needed to check my internal tags, so that didn't quite work for me there. Probably because not all the things I was looking to tag were in angle brackets?

However, your post did inspire me and what I ended up doing was creating a separate placeholder for each angle bracket tag. PLUS the following for any bit of code starting with a backslash: \\.+?

This ended up catching all the extraneous text so it's looking MUCH better nowicon_smile.gif

[Edited at 2016-04-20 07:47 GMT]


 

Michael Bailey  Identity Verified
Austria
Local time: 05:31
German to English
+ ...
The same with square brackets... Apr 21, 2016

I am being sent text files for Translation, that are destined for a WordPress Website

The most substantial Problem is that there are square bracketted items e.g.

[foldout title="Weiterführende Links" level="3"]

And I need to be able to translate just Weiterführende Links

Then there is a section of text and then a

[/foldout] item

Any advice gratefully appreciated.


 

Rafa Gómez  Identity Verified
Spain
Local time: 05:31
Member (2009)
English to Spanish
Try this Apr 21, 2016

Add these inline tags to the Text file type:



Quick and dirty, though it should work with your example.


 

Michael Bailey  Identity Verified
Austria
Local time: 05:31
German to English
+ ...
Great! May 13, 2016

Thanks Rafa - it does the job!

 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Regex to turn "tags" into actual Studio tags

Advanced search







SDL Trados Studio 2017 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2017 helps translators increase translation productivity whilst ensuring quality. Combining translation memory, terminology management and machine translation in one simple and easy-to-use environment.

More info »
Anycount & Translation Office 3000
Translation Office 3000

Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search