Any regex to filter all the texts or segments with the same color?

Hi Studio experts,

I have a survey file. All the programming codes or instructions (in blue) do not need translations. Is it possible to filter them all in studio so that I can lock and exclude them from analysis?

Thanks,

Ivan

Parents Reply
  • Hi,

    Just a note. Make sure that you check the file type settings in Project Settings, if you add the file to an existing project (not just File > Options, since those settings will only apply to projects that you create from now on).

    After you have generated the file you might want to restore the hidden text to Not hidden before delivering to the client. Just do it the same way, Find and Replace > Format > Font > uncheck Hidden > OK > Replace All.

    And a tip: If you get these files regularly you can make macros for the search and replace operations and perform it by just clicking one button.

    Paul: Is there a way to convert text like this to inline tags, so that it can be visible in Studio? I haven't really tried it, but I suspect you already have the answer :)

Children
  • Unknown said:
    Is there a way to convert text like this to inline tags, so that it can be visible in Studio?

    Hi Daniel,

    My initial reaction was sure... just create a style and then add this to Studio so that style was converted to inline tags.  So I tested it with this:

    I could have used the tw4winMark that is already listed but thought I'd play with a new one as I have not messed around with this a lot before.  This works but has a problem that is more likely to be associated with my knowledge of Word.  I could not replace the fonts that were blue where they were also part of text in the same sentence, so I wound up with the entire sentence being the inlineTAG style.  I think this has something to do with me basing the new style on the normal style... but I'm not sure and don't have enough time to mess around with this at the moment.

    So might be possible... might be possible.  I guess the alternative would be to use the display filter as you could feasibly read the content in the tags like this... not pretty of course!

  • Yes, I used the All content filter as well, but thought it would be neat to have the info upfront.

    I had to create the tw4winInternal style in Word, but got the same result as you, when the blue text is on the same line it the entire paragraph gets the style, even if I create the style with Style type: Character. Well, we'll see if I figure it out later...

    Five minutes later: Now it worked. I must have done something differently. But the result is the same for this particular case, only the non-translatable text on the same line will show in the segments, so it's effectively the same as hiding the text. I guess it can be fixed with more search and replace options, but for most cases I guess it's just not worth it.

    Anyway, for the record: In Word, click Home > Create a Style > Modify and make sure the style type is Character.

  • That's a good tip!! Thanks Daniel.

    I guess the problem is where the style is a complete segment Studio will just move it external.