Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Grep: sort paragraphs randomly

Explorer ,
Sep 19, 2023 Sep 19, 2023

Greetings to everyone from Sardinia.
In Indesign is there a way to randomly order 4 lines of text?
I have a quiz consisting of 1 question and 4 possible answers, except the answers are arranged so that the first one is correct and the other 3 are wrong.

The question-answer block is constructed like this:

question 1
- answer 1 correct
- wrong answer 2
- wrong answer 3
- wrong answer 4

 

I would like to change the order randomly.

I could do it by hand but it's about 2000 questions and it would take a really long time

 

Greps are powerful tools but I haven't found anything online that can help me

TOPICS
How to
265
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 19, 2023 Sep 19, 2023

Take a look to "SmartSort" Script written by Marc Autret:

 

https://community.adobe.com/t5/indesign-discussions/ann-smartsort-1-17-free-script-advanced-paragrap...

 

Capture d’écran 2023-09-19 à 10.56.41.png

 

Capture d’écran 2023-09-19 à 10.56.55.png

 

So simple! Thanks Marc for this great tool!

 

(^/)  The Jedi

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 07, 2023 Nov 07, 2023
LATEST

Hi, forgive me but I only see your reply now. I had solved it, so to speak, by moving the answers by hand, using Word, and it took me a lot of hours. But I'm curious and I want to try this script you pointed me to. From the attached images it seems to do exactly what I was looking for. A very warm thank you for your reply.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines