To make Advanced DSI [Excel Cell Shading Rekon]

Former Member
Former Member

[2nd Edit starts]
I have mad a workaround. It makes all the changes which made by this codes to its orignal status, as if nothings have happened.
So, all the workaround procedures made perfect, I guess. Enjoy !!
[2nd Edit ends]

[1st Edit starts]
It has a better one, a kind of updated
https://community.sdl.com/product-groups/translationproductivity/f/autohotkey/27314/to-make-a-good-use-of-cadf-excel-cell-shading-rekon-ii
[1st Edit ends]

It stems from this post.


Excluding cells in Excel based on fill colour
community.sdl.com/.../excluding-cells-in-excel-based-on-fill-colour

SDL Trados Studio blinds to MS Excel cell shading and cell numbers.

I have tested this tiny code and make it a little bit better.

tested only with very simple project. - One MS Excel file project.
that is all I have and all I wanted


1.
MS Excel has cell shadings, it has two WorkSheets.

2.
Of course, SDL Trados Studio's default DSI is Dummy. (no cell numbers, no shadings at all)

3.
You just ClickOnce this code.

-of couse, firstly close the document (do not have to quit SDL Trados Studio itself)
-it makes a "BAK" file, just in case (located at the same folder - target folder)

4.
Now, You are seeing "Advanced DSI", full of colors and full of information.
-Dear SDL please delete that useless " + " signs.


As You can see, You can use "Advanced Community Display Filter" perfectly.

Enjoy


Attached
-AutoHotkey source code and a sample MS Excel color file.

advancedDSI.zip

Parents
  • It sounds as though you created something useful... but I can't make it work.  I think you need to provide better instructions as all I get is this:

    Error dialog box in Trados Studio showing 'Error: Call to nonexistent function' with code snippets and an 'OK' button.

    This obviously adds structure to the sdlxliff and I wanted to see what this did to the files in the rest of your workflow.  Where do you run the script from?  I'm guessing it only support full projects as well given you said "target folder"

    Dear SDL please delete that useless " + " signs.

    They are not useless. They are there to indicate to a user that there is more information available than you see in the DSI column.  Don't keep thinking you only ever see this in an Excel file... you don't.  For example:

    Trados Studio Document Structure Information dialog box with a list of items such as 'List Item' and 'Unordered List', and an arrow pointing to the '+' sign indicating more information available.

    If there was no + symbol the user would not know there was anything else to see.

    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 4:14 AM (GMT 0) on 5 Mar 2024]
  • Former Member
    Former Member in reply to Paul

    yap,

    the "+" sign part is "MY" wish, extremly personal. Just ignore it.

    Thanks for the Good examples.

  • Former Member
    Former Member in reply to Former Member

    I have tried to make a minimum distress to the current DSI/SDL's work - just added "Color and Cell address part".

    now, I have found a minor bug (to discern worksheets, currently it looks like a one in DSI section, it is my fault), when I have a time I will fix it, for sure.

    Any kind of bug report welcome. it is my fault. Just tell me.

    and Mr Filkin, I'm feeling a little bit sorry. I have made a unnecessary burden to your desktop. Just let it go, this one is nothing else. I am just having a fun with it.

  • now, I have found minor bug (to discern worsheet, currently it looks like a one in DSI section, it is my fault), when I have a time I will fix it, for sure.

    No worries... for me it's just interesting to see what you have done.

    One other problem might be that if anyone was also using the embedded content processor this script will break it as you replaced the sdl:cell with the colours.  You would be better off adding the colours to it rather than replacing.

    Quite clever though... an interesting approach.  To be used at your own risk though so good to take a copy first.  I guess even like this you could use it to get at the content you needed, then pre-translate the original file if needed.

    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

  • Former Member
    Former Member in reply to Former Member

    a little bit confusing... I'm just thinking  to show/hide at "workSheet Level"... and this is not possible from default functionality too ?. I mean hides all workSheet1 cells OR shows all workSheet1 cells... whatever..

  • Former Member
    Former Member in reply to Paul

    sorry

    I have no idea what do you mean "embedded content"...I am not good at SDL's jargon (and/or MS's too).

    If you gave me a sample I will chek it out, for sure.

    Regards 

  • I have no idea what do you mean "embedded content"...I am not good at SDL's jargon (and/or MS's too).

    Trados Studio options menu with 'Embedded content' section highlighted, showing a disabled dropdown menu for 'sdl:cell' with no other selectable options.

    It only uses sdl:cell.  You can't select another... and don't tell me that's silly showing all the options and not allowing anything else because I know!

    So if you overwrite that in the sdlxliff and you have used this feature to tag up content that should not be translated, like html code in the cell of your spreadsheet, or these sort of constructs {4}, %2 etc., then the embedded content feature may not work anymore.

    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 4:15 AM (GMT 0) on 5 Mar 2024]
  • Former Member
    Former Member in reply to Paul

    looks like "Perfect explanation".

    but, I am still "Perfect ignorant" about it.

    FINE...

    I gave it up. Not interested..

    .

    If I had some time, I will post this workaround of workaround.

    1. you gather all segment numbers you want to hide with this tool.

    2. now, you make all things back to original status, it is so easy, just use the BAK file.

    3. finally, you use the seg numbers gathered at "stage 1", and hide properly all you wanted. 

    4. you are very happy...  Never worry about the strange "I'm bedded contents.."

    regards

  • looks like "Perfect explanation".

    but, I am still "Perfect ignorant" about it.

    ok... take this:

    Trados Studio interface showing the 'Options' menu with 'File Types' expanded and 'Microsoft Excel 2007-2013' selected. A dialog box with 'Embedded content processor' settings is open, with 'Enable embedded content processing' checked.

    I added a cople of things into your excel file and then converted them into tags so they are protected by enabling the embedded content processor in the Excel filetype.  This uses the sdl:cell structure that you overwrite.

    Having tested this seeing as I got this far you don't break the file!  I guess this is because we have already used it to create the project in the first place and don't need it now, and the creation of the target file doesn't seem to need it either.  So potentially that isn't a problem.  Very interesting.

    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 4:15 AM (GMT 0) on 5 Mar 2024]
  • Sorry guys, but as I see it, it's actually useless in the end, because it uses internal structures of the SDLXLIFF for purposes they are not intended for.

    Therefore it's just a question of time when this breaks something... something what relies on things working as they are supposed and expected to.

    That's what is the biggest problem of all these Kelly Edwards' "wannabe-oneclick" creations - they are created without a proper clue how things must work and what rules must be obeyed, therefore are just worthless for any serious and proper use... unfortunately.

    Programming without a clue and the faintest idea...
    It's pity actually...

Reply
  • Sorry guys, but as I see it, it's actually useless in the end, because it uses internal structures of the SDLXLIFF for purposes they are not intended for.

    Therefore it's just a question of time when this breaks something... something what relies on things working as they are supposed and expected to.

    That's what is the biggest problem of all these Kelly Edwards' "wannabe-oneclick" creations - they are created without a proper clue how things must work and what rules must be obeyed, therefore are just worthless for any serious and proper use... unfortunately.

    Programming without a clue and the faintest idea...
    It's pity actually...

Children