Superscsript + subscript caracters in Trados + Multiterm

I'm trying to implement a rule in Trados 2021 to implement some automatic microtypographical changes.

For instance, in French I want Trados to change 1er to 1er, so with "er" in superscript (or for instance  no -> no     CO2 -> CO2) and I can't find any option to automate that process. I tried to insert them als ordinals in the auto-correct list, but couldn't find a way to insert superscript characters.

Screenshot of Trados Studio autocorrect settings showing an attempt to replace '1er' with '1er' in superscript, but the superscript format is not applied.

Does anyone have a solution or an idea?



Generated Image Alt-Text
[edited by: Trados AI at 11:38 PM (GMT 0) on 28 Feb 2024]
emoji
Parents
  • This is actually more tricky than it seems for a few reasons.

    1. superscript and subscript are only supported in some filetypes so Studio won't allow it unless it is supported in the target file
    2. you need to insert a controlling tag pair to force the use of superscript/subscript.  It's not simple text.

    This means using text replacement will not work.  You could probably do something using AutoHotkey.  So pressing Win+1 with this script:

    #1::Send, 1^+=er{RIGHT}

    Would get me this using my keyboard:

    Trados Studio interface showing the use of superscript tags around the text '1er' with a pencil icon indicating editing.

    The problem might be that you'd need a lot of hotkeys to satisfy your requirements here.  I imagine someone like would be able to create a much better example that "may" work as more of an automatic replacement when you simply type "1er"... that would be beyond my ability to write as easily as I did this one.

    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

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 11:38 PM (GMT 0) on 28 Feb 2024]
Reply
  • This is actually more tricky than it seems for a few reasons.

    1. superscript and subscript are only supported in some filetypes so Studio won't allow it unless it is supported in the target file
    2. you need to insert a controlling tag pair to force the use of superscript/subscript.  It's not simple text.

    This means using text replacement will not work.  You could probably do something using AutoHotkey.  So pressing Win+1 with this script:

    #1::Send, 1^+=er{RIGHT}

    Would get me this using my keyboard:

    Trados Studio interface showing the use of superscript tags around the text '1er' with a pencil icon indicating editing.

    The problem might be that you'd need a lot of hotkeys to satisfy your requirements here.  I imagine someone like would be able to create a much better example that "may" work as more of an automatic replacement when you simply type "1er"... that would be beyond my ability to write as easily as I did this one.

    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

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 11:38 PM (GMT 0) on 28 Feb 2024]
Children