Conditional (non-breaking hyphens) in export from Wordpress
Thread poster: Daniel McCosh

Daniel McCosh
Germany
Local time: 13:28
German to English
Jul 2, 2014

Hi everyone,
I'm having some fun and games with some pages in our WordPress CMS (Version 3.9.1). It seems like some authors have copied content into the CMS from Word including non-breaking hyphens. Wordpress ignores these in the editor and they can't be seen. However as soon as the text is exported via XLIFF for translation in SDL Studio regular hyphens occur are displayed in mid-sentence in each segment. I tried selecting everything, copying it back in again and saving/exporting the post again but Wordpress doesn't strip whatever it is that causes the problem.
Has anyone got any ideas how I can go about cleaning the hyphens up before starting work in Studio?
Thanks,
Daniel


 

Daniel McCosh
Germany
Local time: 13:28
German to English
TOPIC STARTER
The culprit was U+00AD (discretionary hyphen) Jul 2, 2014

Now that I have the unicode code point, I could replace this easily.
However perhaps I should now rephrase my question: is there a way of telling Studio 2014 SP1 to ignore certain characters when parsing the XML file without having to find and replace these discretionary hyphens? Either by entity, unicode code point or any other means.
Thanks,
Daniel

[Edited at 2014-07-02 18:02 GMT]


 

SDL Community  Identity Verified
United Kingdom
Local time: 13:28
English
you can't ignore characters... Jul 2, 2014

... but perhaps you can replace them across the project in the source files before translating? Perhaps you can share a small sample of this?

Regards

Paul
pfilkin@sdl.com


 

Daniel McCosh
Germany
Local time: 13:28
German to English
TOPIC STARTER
Solution: pre-processing files Jul 3, 2014

Hi Paul,
As you said the best solution is replacing the characters across the project beforehand - we'll use the Wordpress Editor parser to prevent this and several other special characters which have slipped in.
Thanks,
Daniel


 


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


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

Conditional (non-breaking hyphens) in export from Wordpress

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 Studio 2019 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2019 has evolved to bring translators a brand new experience. Designed with user experience at its core, Studio 2019 transforms how new users get up and running, helps experienced users make the most of the powerful features, ensures new

More info »



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