How to hide first X characters from every line
Thread poster: Blogotronic

Blogotronic
Poland
Mar 27, 2019

Hi,
I have encountered a problem that I can't handle on my own.
I have some big txt file to translate in which every line was created in this style, example:

8850f0a3141d8f94f8292b4e8c014a84;e3e8d91e-7956-4ce9-87b3-c77aa3870759;I was there, but didn't found anything interesting.

Using rules or other tools, it is possible to hide first 70 characters (everything up to ";")? I tried searching in user Guide, but some parts like Regular expressions are a b
... See more
Hi,
I have encountered a problem that I can't handle on my own.
I have some big txt file to translate in which every line was created in this style, example:

8850f0a3141d8f94f8292b4e8c014a84;e3e8d91e-7956-4ce9-87b3-c77aa3870759;I was there, but didn't found anything interesting.

Using rules or other tools, it is possible to hide first 70 characters (everything up to ";")? I tried searching in user Guide, but some parts like Regular expressions are a black magic for me.

Sorry for asking, but can I ask for your help?


[Edited at 2019-03-27 13:11 GMT]

[Edited at 2019-03-27 13:12 GMT]
Collapse


 

Susan Welsh  Identity Verified
United States
Local time: 10:41
Member (2008)
Russian to English
+ ...
Ask on the Yahoo list Mar 28, 2019

I don't know, but if nobody replies here, please ask on the Yahoo list, where most of the developers are to be found: https://groups.yahoo.com/neo/groups/OmegaT/conversations/messages

No need to apologize for asking a question!


[Edited at 2019-03-28 09:55 GMT]


 

Samuel Murray  Identity Verified
Netherlands
Local time: 16:41
Member (2006)
English to Afrikaans
+ ...
SITE LOCALIZER
I'm no wizard either Mar 28, 2019

Blogotronic wrote:
Using rules or other tools, it is possible to hide first 70 characters (everything up to ";")?


Regex is also wizardry to me, but I think this is the one you're looking for:
[ 0 - 9 a - f - ; ] { 7 0 } (spaces added to prevent emoticons)

70 chars omegat

If you add it as a segmentation rule, it'll put those characters in separate segments, but you'll still be able to touch them. I also experimented with using the regex string in the "Tag Processing" settings dialog, and I was able to get OmegaT to regard those 70 characters as a custom tag, which means that if you do tag checking afterwards, and you accidentally broke one, it'll show up as an error. There is an option to hide text from the translation using regex, but I don't know how it works.


 

Blogotronic
Poland
TOPIC STARTER
Thanks Mar 29, 2019

Thanks a lot,
I will try that


 


There is no moderator assigned specifically to this forum.
To report site rules violations or get help, please contact site staff »


How to hide first X characters from every line

Advanced search






Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »
SDL Trados Studio 2019 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2019 has evolved to bring translators a brand new experience. Designed with user experience at its core, Studio 2019 transforms how new users get up and running, helps experienced users make the most of the powerful features.

More info »



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