Reply To: Character Styles Question…

Home Page / Forums / General InDesign Topics (CLOSED) / Character Styles Question… / Reply To: Character Styles Question…

#68424
Scott Irwin
Member

Couple more questions.

My success with the size range was done using a combination of Grep and nested character styles in a paragraph style. I basically combined Barcode_CZ’s and Masood’s GREP code with Dwayne/Anne’s Nested styles.

I’m curious to know if there is a way to to use Barcode_CZ’s code to find all sizes that are 1X, 2X, 3X, etc. instead of typing them all out one by one, like in Masood’s response? I can type in as many sizes as necessary as long as they are letters, but as soon as it gets to a Number/Letter it doesn’t format it automatically.

So for example – using Barcode_CZ’s GREP code will format all the size letters in Bold. It doesn’t matter if I add sizes or not, as soon as I put in parenthesis, it formats correctly!!
Misses Petite: MPXS(8-10), MPXS(8-10), MPXS(8-10), MPXS(8-10), MPXS(8-10) $29.99
Petite: PXS(8-10), PXS(8-10), PXS(8-10), PXS(8-10), PXS(8-10) $29.99

But when it gets to the women’s sizes – Barcode_CZ’s code doesn’t work. This is where I typed in Masood’s GREP code 5 times, but as soon as I go to 6X(size-size) it doesn’t format because I didn’t go that high in the GREP.
Women’s: 1X(4-6), 2X(8-10), 3X(12-14), 4X(16-18), 5X(20-22) $34.99

Can Barcode_CZ’s be modified to format the 1X (letter/digit) as well?

The next thing I’m running into is that our shoes have a different size format than the clothes. Our shoes look like this format:
N 7-10, 11; M 6-10, 11, 12 $39.99
W 61?2-10, 11, 12; WW 61/2-10 $45.99

The Letters in the above example need to be bold/font, and the numbers normal/different font. I got it working by playing around with GREP paragraph styles. I just applied the size character style to [l\u] which seems to work, until I type in a lower case letter or parenthesis. Sometimes we have shoe sizes that look like this:

WWWW(EEEE) 7-12, 13. or more letters. If I use caps the letters are bold but the parenthesis are not. Lower case letters are not bolded either.

What do I need to adjust in my GREP code for that to work?

Thanks
Scott

This article was last modified on May 14, 2014

Comments (0)

Loading comments...