TXT filter and inline tags to filter the html code from the Greenshift page builder on WordPress

Dear all,

I received exported text from a website created on WordPress with Greenshift Page Builder. I need to create a filter in order to hide the code and show the text for translation. I have an issue with the text in the special blocks starting with "<!--". 

In this example the text after the textContent must be visible. ANd the text in the div.

Screenshot of HTML code with a comment block containing an image tag. The alt attribute of the image tag is highlighted, indicating the text 'HYGEA WATER SYSTEM - SYSTEM FOR WATER PURIFICATION' to be translated.

In htis second exaple the text in alt should be translated.

I tried with this code with no success:

Screenshot of Trados Studio filter rules interface showing three rules with their opening and closing patterns, tag types, and translatability status. The last rule targets the 'textContent' within comment blocks.

I am attaching the file for testing, if you have any idea how to make the opening and closing pattern for this two particular cases.

Thank you in advance, Sotir

7220.test.zip



Generated Image Alt-Text
[edited by: RWS Community AI at 3:58 PM (GMT 1) on 21 May 2024]
emoji
Parents
  •  

    Like this:

    Screenshot of a text preview in Trados Studio showing a document with repeated paragraphs in Bulgarian about a water filtration system.

    I just used three rules as Document Structure and not as inline tags which is where you are attempting to address this.  Wordpress files can be poor, but sometimes I think the people managing the content really don't help!!  So here it's easier to specify what you want to pull out in the first place and don't try to hide the stuff you don't want.

    Based on your sample I used this:

    Screenshot of Trados Studio settings with a red curved arrow pointing from 'Document structure' to 'Inline tags' in the options menu, indicating a change in settings.

    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: RWS Community AI at 7:45 PM (GMT 1) on 21 May 2024]
  • I tried to use the HTML filter: I changed the extention of the file to .html, but the text from the <!-- ...> blocks is not visible.

    Maybe I can use the parser there?

    Screenshot of Trados Studio's HTML5 filter settings showing the Parser option highlighted.

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 6:20 AM (GMT 1) on 22 May 2024]
  •  

    It all seems to work fine for me... also the HTML filetype.  See the following:

    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
Reply
  •  

    It all seems to work fine for me... also the HTML filetype.  See the following:

    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
Children