How does the "line limit" feature in the TXT filter work?
Thread poster: Samuel Murray
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 02:51
Member (2006)
English to Afrikaans
+ ...
Sep 11, 2014

Hello everyone

I notice that the current version of OmegaT (3.1.5) contains a feature in the TXT filter that limits line length in the target file. However, I've tried it and it it doesn't affect the line length in the target file at all. What are the usage instructions for this feature?

I tried "10" and "50" as values. My source text is:

The rain in Spain. The Rain in Spain.The rain in Spain. The Rain in Spain.The rain in Spain. The Rain in Spain.The rain in Spain. The Rain in Spain.

My target text is:

asdfThe rain in Spain. asdfThe Rain in Spain.The rain in Spain. asdfThe Rain in Spain.

I expected this (for 50):

asdfThe rain in Spain. asdfThe Rain in Spain.The
rain in Spain. asdfThe Rain in Spain.


Thanks
Samuel
Collapse


 
Didier Briel
Didier Briel  Identity Verified
France
Local time: 02:51
English to French
+ ...
Link to description of the feature is in changes.txt Sep 12, 2014

Samuel Murray wrote:
I notice that the current version of OmegaT (3.1.5) contains a feature in the TXT filter that limits line length in the target file.

It's there since 3.1.0.
However, I've tried it and it it doesn't affect the line length in the target file at all. What are the usage instructions for this feature?

As always, a link to the description of the feature is in changes.txt (Help > Last changes).
3.1.0 vs. 3.0.8 update 5
Limit line length of target text files
https://sourceforge.net/p/omegat/feature-requests/985/

Basically, "Line length" tells where the line could started to be cut, and "Max line length" gives the hard limit.

I tried "10" and "50" as values. My source text is:

The rain in Spain. The Rain in Spain.The rain in Spain. The Rain in Spain.

My target text is:

asdfThe rain in Spain. asdfThe Rain in Spain.The rain in Spain. asdfThe Rain in Spain.

I expected this (for 50):

asdfThe rain in Spain. asdfThe Rain in Spain.The
rain in Spain. asdfThe Rain in Spain.


It could have been
asdfThe rain
in Spain asdfThe

etc. (otherwise, use 50 and 50).

You have found a bug, which seems to be triggered by the fact that your test is only a single line. I will report the bug.
If you test with a more usual text file (containing several lines), you should see that the target file is closer to what you expect.

Didier


 
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 02:51
Member (2006)
English to Afrikaans
+ ...
TOPIC STARTER
@Didier Sep 12, 2014

Didier Briel wrote:
Samuel Murray wrote:
I notice that the current version of OmegaT (3.1.5) contains a feature in the TXT filter that limits line length in the target file.

It's there since 3.1.0.


Thanks. I haven't installed a new version for a while, so now I'm working my way through the changes.txt file to see what new features are available.

What are the usage instructions for this feature?

As always, a link to the description of the feature is in changes.txt (Help > Last changes).
3.1.0 vs. 3.0.8 update 5
Limit line length of target text files
https://sourceforge.net/p/omegat/feature-requests/985/


Thanks. I am using the changes.txt file but the actual request number isn't always included in the feature change comment (perhaps I should just have read the file further down).

You have found a bug, which seems to be triggered by the fact that your test is only a single line.


I'm a lazy tester... I often begin testing a new feature with as little effort as possible, and that usually means testing it with the shortest possible text that would theoretically trigger the feature.

==

Samuel Murray wrote:
I tried "10" and "50" as values.


I just realised that this is ambiguous. I tried 10 and 10 first, and when that didn't do anything, I tried 50 and 50, thinking that 10 may be under some kind of threshold.



[Edited at 2014-09-12 08:09 GMT]


 
Didier Briel
Didier Briel  Identity Verified
France
Local time: 02:51
English to French
+ ...
Bug is now fixed Sep 15, 2014

Didier Briel wrote:
You have found a bug, which seems to be triggered by the fact that your test is only a single line. I will report the bug.

The bug is now fixed:
Line length limit doesn't work on one line text files

The fix will appear in the next release of the Latest version.

Didier


 


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


How does the "line limit" feature in the TXT filter work?






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 »
TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »