How to keep hexadecimal entities in trados studio? (Mainly and  )

Hi Team,

I'm wondering if is there a chance to keep the hexadecimal entities in Trados Studio? 

We created a new project using a XML file as source, I'm sharing with you the screenshot which show you how the source files looks like:

You will see there are some hexadecimal entities present there (&#032). We know they represent the space character.

In the trados studio projects they seems to be hidden or missing, since if you activate the "Show Whitespace characters" option they aren't visible like spaces.:

We need to see them present in the trados studio project for translator's reference.

Anyway the main problem is when we export the target file, they are missing. I'm sharing a screenshot of a comparision between source and target:

The same happens for the non-breaking hexadecimal entities, I mean  

The soruce files contains a lot of these entities and we really need to protect and keep them. I've done a lot of tries modifying the XML filter but I couldn't be able to find out how to do it.

 

Could you please help us with this?

Thanks in advance!

KLAR

Parents
  • Hi  

    Try using the "Always preserve" option in the "Whitespace" settings for your XML filetype.  Based on your sample alone you need to check this or you end up with this in the target file:

    <string name="and" >-</string>

    Use this preserve whitespace option and you get this:

    <string name="and" > - </string>

    Unknown said:
    They are not missing, the spaces are there. From XML perspective there is no difference between the entity representation and the actual character, so the target files are perfectly okay like that.

    Exactly... once you use the option to preserve the whitespace you still won't see them in the editor as they have been moved external as Evzen said; but they will be put into the target file.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Reply
  • Hi  

    Try using the "Always preserve" option in the "Whitespace" settings for your XML filetype.  Based on your sample alone you need to check this or you end up with this in the target file:

    <string name="and" >-</string>

    Use this preserve whitespace option and you get this:

    <string name="and" > - </string>

    Unknown said:
    They are not missing, the spaces are there. From XML perspective there is no difference between the entity representation and the actual character, so the target files are perfectly okay like that.

    Exactly... once you use the option to preserve the whitespace you still won't see them in the editor as they have been moved external as Evzen said; but they will be put into the target file.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Children