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]
  • Hi Paul,

    sure, I can always use a third party tool, but it would be quite handy if users could rely on SDL in-build features, i.e. a reliable and performant text edition features in Trados AND in Multiterm (I already suggested this a while ago). It's extremely time consuming to write autohotkey scripts for ordinals, chemicals formulas etc. or using an online sub/superscript editor like lingojam). I saw that html5 has been implemented in parts of Multiterm, so I guess it's not that tricky to expand this across all SDL products. I may be an exception, but in my opinion typographical and microtypograhical aspects are part of our job.

  • You have built in features:

    Trados Studio toolbar with text formatting options including bold, italic, underline, superscript, subscript, clear formatting, and text direction controls.

    But you are asking for an automated text replacement feature that needs to understand what specific formatting you wish to be applied.  Please think about this... it's not as simple as you seem to think.  Even if we had something built in it would still require you carrying out some time consuming task to tell it how you wanted it to work for your specific set of circumstances.

    I suggested Autohotkey because I thought you might be interested in a solution of some kind.

    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]
  • sorry, I mixed up Studio and Multiterm.

    In Studio you have at least the option you mention, but no automated way. I think instead of Autohotkey, I'll just export the autosuggest list, edit it in an xml editor and then reimport it. That might actually be the easiest option.

    In Multiterm there's still no option to insert or edit sub/superscript characters.

  • You mean exporting the AutoCorrect list, right?

    As far as I know, Microsoft Word let's you format the AutoCorrect entries, but not Trados Studio. The reason, I guess is that Word knows their own formatting.

    Talking about AutoHotkey, this is the script I use for CO2:

    :*B0C:CO2::
        SelectLastChar() ; Select "2"
        SubscriptTrados()
    return

    SelectLastChar(n:= 1) {
        SendInput {Shift down}{Left %n%}{Shift up}
    }

    Control(key:= "") {
        SendInput, {Ctrl Down}%key%{Ctrl Up}
    }

    SubscriptTrados() {
        Control("{`+}") ;CTRL + + in SDL Trados
    }

    It's true that you'd need an AutoHotkey entry for each case, exactly the same thing as with any AutoCorrect.

    The good point is that you can group them. For example, this script will work for SiO2 and CO2:

    :*B0C:SiO2::
    :*B0C:CO2::

        SelectLastChar()
        SubscriptTrados()
    return

    A similar thing can be done for other compounds, like H2O, and superscripts re. 1er and .

Reply
  • You mean exporting the AutoCorrect list, right?

    As far as I know, Microsoft Word let's you format the AutoCorrect entries, but not Trados Studio. The reason, I guess is that Word knows their own formatting.

    Talking about AutoHotkey, this is the script I use for CO2:

    :*B0C:CO2::
        SelectLastChar() ; Select "2"
        SubscriptTrados()
    return

    SelectLastChar(n:= 1) {
        SendInput {Shift down}{Left %n%}{Shift up}
    }

    Control(key:= "") {
        SendInput, {Ctrl Down}%key%{Ctrl Up}
    }

    SubscriptTrados() {
        Control("{`+}") ;CTRL + + in SDL Trados
    }

    It's true that you'd need an AutoHotkey entry for each case, exactly the same thing as with any AutoCorrect.

    The good point is that you can group them. For example, this script will work for SiO2 and CO2:

    :*B0C:SiO2::
    :*B0C:CO2::

        SelectLastChar()
        SubscriptTrados()
    return

    A similar thing can be done for other compounds, like H2O, and superscripts re. 1er and .

Children