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

Blogotronic
Poland
Mar 27

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: 14:07
Member (2008)
Russian to English
+ ...
Ask on the Yahoo list Mar 28

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: 20:07
Member (2006)
English to Afrikaans
+ ...
I'm no wizard either Mar 28

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

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






CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use SDL Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

More info »
SDL Trados Business Manager Lite
Create customer quotes and invoices from within SDL Trados Studio

SDL Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.

More info »



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