italics

Greetings,

Now and then we come across lengthy documents containing long lists of latin words.

As these are often in separate TU's one would expect to find a filter where one could filter all "italic only" TU's, copy source to target, confirm and thus be rid of them.

I have done some research but have not come across any easy way of doing this within Studio.

If anyone out there has any tips or tricks on this issue, pray enlighten me.

  • Hi Reynir,

    Although it is not well designed, the Advanced Display Filter (found in the View ribbon) might help.

    The Advanced Display Filter filters on tag text (whether you want it to or not).

    Generally the italic tag is "<cf italic=True>", so you could try filtering for part of the text in this tag, such as "italic", or "italic=True". You might miss segments if you try filtering on the entire tag, i.e. "<cf italic=True>", as the italic attribute might be in a tag along with other attributes, like font size or font name.

    Unfortunately this will not find segments that are completely in italic, since the italic tag will then be hidden in the content between segments.

    And, unfortunately once again, the "Advanced Display Filter" does not filter properly when you chose "Show All Content" under "General" in the Filter Attributes tab.

    Instead of just showing inter-segment content that contains the string "italic", the Advanced Display Filter displays All of the content between segments, regardless of whether it includes the string "italic".

    So it looks like you can locate your segments if the text they contain is not completely italic.

    Best regards,
    Bruce Campbell
    ASAP Language Services

  • Hi Bruce,

    I am unable to find the Advanced Display Filter under the View ribbon (see scrnshot)

    Screenshot of Trados Studio interface showing the View ribbon with no Advanced Display Filter option visible. The Review tab is highlighted with a Search function displayed.

    However, under Review there is a Search function but alas with no regular expression possibility.

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 4:02 AM (GMT 0) on 5 Mar 2024]
  • Hi Reynir,

    I am not sure when the Advanced Display Filter first appeared, and whether it originally included filtering on tag text :-(

    I only know that this is what is available in the up-to-date Studio 2017. Are you using an earlier version?

    The filter function on the Review ribbon actually does filter on regular expressions. It does so by default, which can also cause confusion if you are not expecting this or you do not know anything about regular expressions (which I imagine is true for some translators). For example, if you are searching for a period "." or a parenthesis "(", you have to use "\." or "\(" in the filter box on the Review ribbon.

    But the filter on the Review ribbon does not filter on tag text, so it is useless for your purposes.

    -- Yes, it is a bit confusing that the filter on the Review ribbon does not filter on tag text and the Advanced Display Filter does filter on tag text whether you want it to or not, and neither of the filters gives you any idea that such a difference exists, but that is the current state of affairs in Studio 2017.

    Best regards,
    Bruce Campbell
    ASAP Language Services

  • Hi  

    Unfortunately the advice you are receiving is based on something that was never intended in the first place, so it's not surprising it doesn't work.  There are apps that can search in tags, such as the SDLXLIFF Toolkit, but even this will only find tag content in exposed tags.  If the italic controls have been moved externally, as they have in your case then there is no way to use them at all.

    Perhaps a possible solution for your very specific case would be this.

    1. Hide all the columns that are not italic in Excel
    2. Create a new TM and open the file in Studio
    3. Copy source to target for everything and update the TM
    4. Close the file and now take the original Excel file, with no hidden content, in a proper project for the file
    5. Don't do any pretranslation on this file yet so ensure it is empty and nothing has been translated
    6. Add the TM you created in 2.
    7. Pretranslate the file and then filter on all translated segments, and lock them
    8. Then remove the temporary TM and translate the rest of the file as normal with your real TM

    Or maybe do the easy thing to solve your problem and just hide the columns with the Latin Text in Excel and translate the file without this text at all.  Wouldn't that be easier?

    Regards

    Paul

    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

  • Hello Paul,

    and thanks for the enlightening reply. This is absolutely a possibility.
    However, one would think that it would be nice to have the option to, for instance, color entire columns or blocks of text and after creating a project to be able to filter this text by color (or whatever other formatting that works), allowing for taking large chunks of text and dealing with them by copying source to target, confirming and locking the units ?
  • Reynir, I proposed adding a function allowing segments to be filtered by color nearly a year ago, in May 2017. You can upvote the suggestion here if you like.

     

    Dan

  • Hi Dan,

    I believe that the Community Advanced Display Filter plug-in has already got your awaited feature. Check it up in the Colors tab

  • Thank you for the pointer Jesus. I tried that in February and found that it simply did not work, as detailed in this topic. (It may, however, work for others in different language pairs.)

    My understanding is that SDL is looking at the problem. It has been noted by SDL that development of the plug-in was more challenging than originally expected, and I suspect that is an issue - fixing it may require more resources than they can justify committing.

    Regards,

    Dan

  • Unknown said:
    Thank you for the pointer Jesus. I tried that in February and found that it simply did not work, as detailed in this topic. (It may, however, work for others in different language ptagsairs.)

    Indeed.  It has nothing to do with language pairs and everything to do with where the colours are set.  So for internal tags the plugin will work.  For external tags it will not and this is the problem.  Getting the information for these colours using the APIs is currently not possible and this is an open source plugin.  The same would apply to other formatting if we were to enhance the plugin to support bold, italic, underline etc.  All good ideas and we'd love to do it!!

    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

  • Paul, thank you for the clarification. I hope SDL will be able to find a way, but it sounds like some re-engineering of the API would be involved, so I will be careful not to hold my breath!

    Dan