Replace with random placeholder

Viewing 2 reply threads
  • Author
    Posts
    • #70266
      Gobit
      Member

      G’day Folks

      I have laid up a document in Indesign CC, ready for printing. It’s a technical publication with quite complex layout and formatting.

      My client is happy with the result and wants to put a PDF of the document onto it’s intranet as a “template” for staff to see what can be done.

      However, the content is very commercially sensitive so my client wants to replace all copy with placeholder text.

      In other words I need to change “This sentence makes sense.” to “Hkd wkpkdicmd kdie vbcoeh.”.

      Capitalisation, applied formatting/styles, length of words do not change, only the letters. I also need to replace all digits with random digits.

      Is there a simple GREP expression I can use rather than having to pretty much relay the document from scratch using Lorem Ipsum?

      Thanks n cheers, Gobit

    • #70267
      David Blatner
      Keymaster

      There’s no way to do it truly randomly with GREP. You could create a findchangebylist.jsx file that would replace all “e” with “r” and all “T” with “A” and so on, but it would do the same thing for all letters. It would appear random, but wouldn’t be.

      That might be enough to satisfy your client, but a codebreaker would be able to decipher it pretty easily.

    • #70270
      Gobit
      Member

      Thanks David

      Have worked a couple of extra tweaks into that and the client’s happy it’s sufficiently “random” for this purpose.

      Cheers, Gobit

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>