17
seer
8y

So a non-tech colleague just walked in and asked if it was possible to find and replace "level 1" for a star in 200 .docx files. Considering the fact docx is xml I thought it shouldn't be too hard to do this. I received her email... Including the FF-ing star as a png image! Here i thought she meant a *. Ah.. Hell no!
ʕノ•ᴥ•ʔノ ︵ ┻━┻

Comments
  • 5
    She spelled star wrong.
  • 3
    @ericfledderman It's dutch ;-)
  • 1
    One of the better ones today 😂
  • 0
    what you could do is use three emoji star emoji or ASCII character instead of the PNG ⭐.
    you get different characters by pressing alt+a number on the text editor. you can find a star there
  • 0
    @tysa *the emoji star , and I wrote emoji twice.
  • 1
    - Open up a .docx file in excel/libre office
    - add the star in the place where it's supposed to go
    - save the document
    - re open it in a text editor so that you can see the raw XML
    - check how the PNG is represented in the XML (it will be a base64 encoded string if you're lucky)
    - copy that line and then run your find and replace.

    Ta-da!
  • 0
    @dev0urer Damn, that is actually pretty smart! Haha. However I have already told them we can't do it and they should do it manually, so I am asking them every day how far they are and enjoying it :-p
Add Comment