How does the "line limit" feature in the TXT filter work?
De persoon die dit onderwerp heeft geplaatst: Samuel Murray
Samuel Murray
Samuel Murray  Identity Verified
Nederland
Local time: 08:02
Lid 2006
Engels naar 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
Frankrijk
Local time: 08:02
Engels naar Frans
+ ...
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
Nederland
Local time: 08:02
Lid 2006
Engels naar Afrikaans
+ ...
ONDERWERPSTARTER
@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
Frankrijk
Local time: 08:02
Engels naar Frans
+ ...
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


 


We hebben geen speciale moderator aangesteld voor dit forum.
Wanneer u overtredingen van de sitevoorschriften wilt melden of hulp wilt hebben, neem dan contact op met ProZ.com-medewerkers »


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






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 »
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 »