How to select/highlight target segment text base on comment

I have Custom View where  list of comments of selected segment will be displayed. Now want to achieve is, once comment selected in custom view then it should select/highlight respective text in segment.

Can anyone do needful?

See snap shot. Its in context of Comment Window in SDL Trados Studio, need to implement same feature for text selection.

Screenshot of SDL Trados Studio interface showing the Comment Window with a list of comments. A red box highlights a selected comment and red arrows point to the corresponding text in the segment editor, indicating the feature to select and highlight text.



Generated Image Alt-Text
[edited by: Trados AI at 1:12 PM (GMT 0) on 5 Mar 2024]
Parents
  • Hi Harshad,

    Currently that functionality is not offered by Integration API, in putting focus on a specific range within the segment content. It is however automatically handled when you are navigating comments from the integrated Comment view within the editor, as you demonstrated in the attached screenshot.

    I can tell you that we have identified and put in an API enhancement request with the Studio team for this specific feature, as it is very much needed there and very difficult to attempt to reproduce the same functionality through reflection.

    P.

    Patrick Andrew Hartnett | Developer Experience | Team Lead | RWS Group

  • Hi Patrick,

    Thanks for your reply.

    So conclusion is,  we dont have such public SDL API which allows to select/highlight target segment text.

    Correct me if i am wrong or request to agree/confirm.

    Any idea when such feature will be available in SDL API?

    Thanks,

    -Harshad

  • Correct, we don't offer that feature thought the Integration API at the moment.  It is offered through the verification framework where you can specify the TextLocation, but that is a different type of integration...

    Patrick Andrew Hartnett | Developer Experience | Team Lead | RWS Group

Reply Children