Making conditional text BOLD

442 views
Skip to first unread message

Mark

unread,
Oct 27, 2017, 3:16:11 PM10/27/17
to XMPie Interest Group
Question . I have some text that will sometimes have the Mobile #, sometimes the Office#, sometimes both. I need to add the "M" and/or "O" if the field is not null, but the "M" and/or "O" needs to be bold and the phone number regular. I can do this with layers but would rather do it with Qlingo if possible. Suggestions? Thanks.

Wayne

unread,
Oct 27, 2017, 4:55:43 PM10/27/17
to XMPie Interest Group
This maybe easier to accomplish using Grep Styles


ROBERT HOPFNER

unread,
Oct 27, 2017, 5:14:12 PM10/27/17
to xmpie...@googlegroups.com

Yes, grep styles are the way to go with this, just use a conditional on existing data and then build your Grep Style on M|O


Make your paragraph style based on your regular text and then create a bold character style for the Grep Style.




On October 27, 2017 at 3:55 PM Wayne <wbut...@gmail.com> wrote:

This maybe easier to accomplish using Grep Styles


 

--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users...@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.

Mark

unread,
Oct 30, 2017, 4:24:02 PM10/30/17
to XMPie Interest Group
How could I use the grep style on a character that is there sometimes and not present other times?

ROBERT HOPFNER

unread,
Oct 30, 2017, 4:44:39 PM10/30/17
to xmpie...@googlegroups.com

Hi Mark,


GREP is just searching for whatever it is you want to modify. So if you create the paragraph style with the GREP style and then set the GREP string to M|O (em pipe oh, caps of course) it will search for those two characters only. If it doesn't find them, then nothing will turn bold. 


If you were doing something like M: and O:, then you could set your GREP to search for the colon and bold the colon and everything before it, but InDesign lets you cheat a bit by just putting in the characters you need so in that case you could simply use M|O|: and then every time any of those 3 characters are found it would turn them bold. 


The default GREP statement is "\d+" so just change that to M|O and apply your bold character style and you should be set.


If you need more help, let me know, I am available if you want to go through it.


cheers,

Bob

--

Mark

unread,
Oct 31, 2017, 9:05:14 AM10/31/17
to XMPie Interest Group
Thanks Bob, that's exactly what I was looking for. you ROCK!

Tom Komin

unread,
Oct 31, 2017, 4:32:10 PM10/31/17
to XMPie Interest Group
Does this work with Xlim or do you need InDesign server for this to work? The XLIM Preflight removed the GREP style when trying to save.

Thanks,
Tom

ROBERT HOPFNER

unread,
Oct 31, 2017, 5:28:18 PM10/31/17
to xmpie...@googlegroups.com, Tom Komin

The GREP style, is a attribute of a paragraph style that is a function of InDesign so you would need to have InDesign Server for it to work other than on your desktop. 

Tyrone

unread,
Oct 31, 2017, 6:32:45 PM10/31/17
to xmpie...@googlegroups.com

You can use Unicode in your uCreate or uplan

 

Create 3 variables in uplan or in uCreate palette

Add this code to Indesign_Font_Intro variable –"<UNICODE-WIN>\r\n<Version:5><FeatureSet:InDesign-Roman><ParaStyle:NormalParagraphStyle>"

Normal_Arial_Font - "<cTypeface:Light><cSize:9.000000><cLeading:16.000000><cFont:Arial>"

Bold_Arial_Font - "<cTypeface:Regular><cSize:50.000000><cLeading:20.000000><cFont:trashco>"

 

Then create an ADOR and add the variables how you want

 

@{InDesign_Font_Intro} & @{Normal_Arial_Font} & "This is a test, the next word should be " & @{Bold_Arial_Font} & "BOLD" & @{Normal_Arial_Font} & " and now its not"

 

 

 

 

Regards,

 

Tyrone O’Brien

Director | DM Solutions Specialist

 

emailsignature


Virus-free. www.avast.com
image001.png
image002.jpg

rhopfner

unread,
Oct 31, 2017, 11:20:27 PM10/31/17
to xmpie...@googlegroups.com
Thanks Tyrone,  

That is really interesting, is there some more I can read up on how this works? 



Sent from my Sprint Samsung Galaxy S8+.

Tyrone

unread,
Oct 31, 2017, 11:44:42 PM10/31/17
to xmpie...@googlegroups.com

This is an old document that explains it

 

so the way you create your bold or regular text

 

1.       setup document in indesign

2.       highlight bold text and export from indesign as indesign tag text

3.       save file then open with notepad

4.       copy your required Unicode into your ucreate or plan file

 

Regards,

 

Tyrone O’Brien

Director | DM Solutions Specialist

 

emailsignature

 


Virus-free. www.avast.com
image003.jpg
UNICODE.docx

Mark

unread,
Nov 2, 2017, 11:34:51 AM11/2/17
to XMPie Interest Group
Worked like a charm Bob, thx!


On Monday, October 30, 2017 at 3:44:39 PM UTC-5, Bob Hopfner wrote:
Reply all
Reply to author
Forward
0 new messages