Automatic Non-breaking Space in Trados Studio 2011
Thread poster: LexaPetr
LexaPetr
Local time: 07:37
English to Czech
+ ...
Oct 4, 2013

When typing in Studio 2011, I need to put non-breaking space after each single-letter word in Czech language. In other words, I need to replace normal space with non-breaking space after these Czech letters: a, i, o, u, s, v, z, k.

Is it possible to setup Studio in such a way that it replaces these automatically during typing?

Or: Does there exist any free tool that can do this when the translation is finished?

Thank you very much for any help in advance.


Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 07:37
English
Not sure I completely... Oct 4, 2013

... understand the requirement, but I think it would look like this:


So I searched for this regular expression in the target in Studio:

(\s\w)(\s)

This looks for a space followed by a letter followed by a space... in fact it would have been more accurate to use this so I only got your letters:

(\s[a|i|o|u|s|v|z|k])(\s)

Then I replace with this:

$1

Unfortunately you can't see the space after the $1 but I copied the non-breaking space from the Studio editor (added with ctrl+shift+space) into the replace box after the $1. This is because I can't actually type it into here but I can copy and paste it.

You can see as I worked through the segments that each letter has been replaced with one followed by a non-breaking space up to where the search has reached so far.

Make sense?

Regards

Paul

[Edited at 2013-10-04 23:29 GMT]


Direct link Reply with quote
 
Adam Łobatiuk  Identity Verified
Poland
Local time: 07:37
Member (2009)
English to Polish
+ ...
The same thing in Polish Oct 5, 2013

Hi Paul

Thanks a lot for this explanation - we have a similar requirement in Polish, with similar single letter words. This is to ensure that they don't remain last in a line of text, but are moved to the next one instead for aesthetic reasons.


Direct link Reply with quote
 
LexaPetr
Local time: 07:37
English to Czech
+ ...
TOPIC STARTER
This Solution Really Works! Oct 5, 2013

Hi Paul,

I am happy to confirm that THIS REALLY WORKS.

At first, it did not work for me. In my Studio, in Find and Replace window,
I had to select Find Options, option Regular Expressions.

After this, all works as you describe.

Thank you very much for help!!!!

Petr


Direct link Reply with quote
 

Lucia Pucikova  Identity Verified
Italy
Local time: 07:37
English to Slovak
+ ...
It doesn't work for me. Feb 8, 2014

Hi Paul,
I have tried to follow your instructions and set up the automatic insertion of non-breaking spaces in Trados 2011 but it doesn't really work for me.
When I do that, the letters mentioned above are replaced by $1+non-breaking space (the letter is rewritten).
Am I doing something wrong?
Thank you in advance for your help!
Lucia


Direct link Reply with quote
 
Daniel García
English to Spanish
+ ...
Additional information Aug 5, 2014

Thanks for this, Paul.

I have used your information to create two new patterns that we can use for Czech, Slovak and Polish.

In case it helps for somebody else, this is what we are using:

Slovak and Czech:
Find:
(\u0020((i\ss)|([a|i|o|u|s|v|z|k])))(\u0020)
Replace
$1
(I added the possibility of fing also " i s ")

For Polish:
Find:
(\u0020((art\.)|(ust\.)|([a|i|o|u|w|z|r])))(\u0020)
Replace
$1

I hope this might helpful for other users.

Daniel

PS. Now I have to try to see if this pattern matching would also work for the QA checks.


Direct link Reply with quote
 

Pierre Fleutot
Argentina
Local time: 03:37
English to French
+ ...
auto hotkey Mar 12, 2015

With Auto Hotkey, a light, free software, you can do this automatically as you type, and much more.

Direct link Reply with quote
 

NeoAtlas
Spain
Local time: 07:37
English to Spanish
+ ...
Yep… Mar 13, 2015

Pierre Fleutot wrote:

With Auto Hotkey, a light, free software, you can do this automatically as you type, and much more.


for vowel "a", the script just would be like this:
:*: a :: a 

there is a hard space after the second "a" which can be typed as ALT+0160.

Then repeat the script for all the characters you need, like:
:*: a :: a
:*: i :: i
:*: o :: o
:*: u :: u
:*: s :: s
:*: z :: z
:*: k :: k


... Jesús Prieto ...


Direct link Reply with quote
 


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


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

Automatic Non-breaking Space in Trados Studio 2011

Advanced search







Wordfast Pro
Translation Memory Software for Any Platform

Exclusive discount for ProZ.com users! Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value

More info »
Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »



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