https://hun.proz.com/forum/memsource_support/348784-use_regular_expression_to_insert_non_breaking_space.html

Use regular expression to insert non-breaking space
Téma indítója: Dominika Lupa

Dominika Lupa  Identity Verified
Lengyelország
Local time: 14:07
angol - lengyel
+ ...
Jan 12

Hi, does any of you know how to insert non-breaking spaces in the target text in Memsource Editor in the same way as it works in Trados Studio? So far I have been doing it one-by-one, but it's time consuming...

In case of Polish single-letter words, in Studio it's possible to:

search in Regular expressions

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

In the above manner I repla
... See more
Hi, does any of you know how to insert non-breaking spaces in the target text in Memsource Editor in the same way as it works in Trados Studio? So far I have been doing it one-by-one, but it's time consuming...

In case of Polish single-letter words, in Studio it's possible to:

search in Regular expressions

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

In the above manner I replace all normal spaces after this single-letter words to non-breaking spaces at once. Is it somehow possible in Memsource?


I'd be very grateful for any advice regarding this
Collapse


 

David Turnbull
Egyesült Királyság
Local time: 13:07
olasz - angol
Regex find/replace on Memsource desktop Jan 29

Hi,

You can do a find/replace using regex on the Memsource desktop app (as far as I know, the functionality does not exist on the web platform).

As for the individual regex, you need to convert your existing expression from the "regex flavour" Net (Trados) to Posix ERE (Memsource). You can do this using Regex Buddy or by writing a new expression based on the instructions in Memsource manual.


 

Stepan Konev  Identity Verified
Oroszországi Föderáció
Local time: 16:07
angol - orosz
Hi David Jan 29

David Turnbull wrote:
You can do a find/replace using regex on the Memsource desktop app (as far as I know, the functionality does not exist on the web platform).

As for the individual regex, you need to convert your existing expression from the "regex flavour" Net (Trados) to Posix ERE (Memsource). You can do this using Regex Buddy or by writing a new expression based on the instructions in Memsource manual.

When I asked Memsource support, they said:
I am afraid it is not possible. A non-breaking space can be inserted by Ctrl+Shift+Space or by clicking on Edit - Insert symbol - Non-breaking space. However, it can be done only individually.

Can you please elaborate on this? How can I use Regex Buddy or write a new expression based on the instructions in Memsource manual (is there any link available to reach those instructions)?


 

Stepan Konev  Identity Verified
Oroszországi Föderáció
Local time: 16:07
angol - orosz
Partial solution Jan 29

@Dominika Lupa
I know how to replace single-char words provided they are not at the beginning of a sentence.
Once you are done with your translation, export it into a 2-column DOCX file and replace as follows:

Find what: ( [aiouwzr])( )
Replace with: \1_

In the 'Find what' field, there is one normal space after each opening parenthesis.
In the 'Replace with' field, the sign _ refers to a non-breaking space (Alt+0160 on numpad)

*In M
... See more
@Dominika Lupa
I know how to replace single-char words provided they are not at the beginning of a sentence.
Once you are done with your translation, export it into a 2-column DOCX file and replace as follows:

Find what: ( [aiouwzr])( )
Replace with: \1_

In the 'Find what' field, there is one normal space after each opening parenthesis.
In the 'Replace with' field, the sign _ refers to a non-breaking space (Alt+0160 on numpad)

*In Memsource and MS Word, expressions like \1, \2, \3, etc. = $1, $2, $3, etc. in Trados.

Then you can import the docx file back to Memsource and confirm all.
However I don't know how to include single-char words at the beginning of sentences. You can filter them by regex: ^(\ba\b|\bi\b|\bo\b|\bu\b|\bw\b|\bz\b|\br\b)
and then edit them manually.
Collapse


 

Dominika Lupa  Identity Verified
Lengyelország
Local time: 14:07
angol - lengyel
+ ...
TÉMAINDÍTÓ
Thank you Stepan :) Feb 1

That is very helpful, I'm grateful

 


Ehhez a fórumhoz nincs külön moderátor kijelölve.
Ha a webhely szabályainak megsértését kívánja jelenteni, vagy segítségre van szüksége, lépjen kapcsolatba a webhely munkatársaival ».


Use regular expression to insert non-breaking space

Advanced search






SDL MultiTerm 2021
One central location to store and manage multilingual terminology.

By providing access to all those involved in applying terminology (such as engineers, marketers, translators, and terminologists), our terminology management solution ensures consistent and high-quality content from source through to translation.

More info »
PerfectIt consistency checker
Faster Checking, Greater Accuracy

PerfectIt helps deliver error-free documents. It improves consistency, ensures quality and helps to enforce style guides. It’s a powerful tool for pro users, and comes with the assurance of a 30-day money back guarantee.

More info »