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

XML import and automatic color change

Explorer ,
Oct 29, 2022 Oct 29, 2022

Copy link to clipboard

Copied

Hi there,
I need to integrate notes during an XML import on indesign. These notes have colors, for example from 1 to 1.9 is green, from 2 to 2.9 is yellow.
Is it possible to apply a precise color according to the note automatically imported in xml?
Thanks for your help.

TOPICS
Feature request , Import and export

Views

149

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Oct 29, 2022 Oct 29, 2022

Hi @Mouchet0D4C ,

you need one GREP style for the "/10" and several for all color instances.

How many different ranges do you have? Nine ones for 1 to 9 ?

What do you mean by "I'm stuck setting up all the different styles automatically"?

Finding a GREP pattern that matches one single color range?

 

Download my sample InDesign document from my Dropbox account with instances for 1 and 2.

The GREP patterns I used are very simple ones that do work only for a range from 1 to 9 at the beginning of the

...

Votes

Translate

Translate
Explorer ,
Oct 29, 2022 Oct 29, 2022

Copy link to clipboard

Copied

I saw that it was possible to do this with GREP styles. I looked on that side, but I'm stuck setting up all the different styles automatically. I don't know anything about variables. Here is a picture of what I want to do.

Sans titre-3en.jpg

Votes

Translate

Translate

Report

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
Community Expert ,
Oct 29, 2022 Oct 29, 2022

Copy link to clipboard

Copied

Hi @Mouchet0D4C ,

you need one GREP style for the "/10" and several for all color instances.

How many different ranges do you have? Nine ones for 1 to 9 ?

What do you mean by "I'm stuck setting up all the different styles automatically"?

Finding a GREP pattern that matches one single color range?

 

Download my sample InDesign document from my Dropbox account with instances for 1 and 2.

The GREP patterns I used are very simple ones that do work only for a range from 1 to 9 at the beginning of the expression. This one, and higher, is not supported: 10,0/10 to 10,9/10.

 

221029-1-GREP-Styles-Sample-2022.indd

https://www.dropbox.com/s/k9lfovofd57c1v9/221029-1-GREP-Styles-Sample-2022.indd?dl=1

 

Pattern for the smaller part, that is working with a "Positive Look Behind":

 

(?<=\d,\d)/10

 

 

Sample pattern for the first range from 1.0 to 1.9 :

 

1,\d/10

 

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Votes

Translate

Translate

Report

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 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

LATEST

Hi,

thank you very much. It works well ! 👍🏻

Votes

Translate

Translate

Report

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