<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cari Jansen &#187; GREP</title>
	<atom:link href="http://carijansen.com/category/grep/feed/" rel="self" type="application/rss+xml" />
	<link>http://carijansen.com</link>
	<description>Training, Public Speaking, Publishing Consultancy</description>
	<lastBuildDate>Thu, 12 Aug 2010 02:45:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>GREP it vertically in InDesign</title>
		<link>http://carijansen.com/2010/05/04/grep-it-vertically-in-indesign/</link>
		<comments>http://carijansen.com/2010/05/04/grep-it-vertically-in-indesign/#comments</comments>
		<pubDate>Tue, 04 May 2010 11:57:08 +0000</pubDate>
		<dc:creator>Cari Jansen</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[GREP]]></category>
		<category><![CDATA[InDesign]]></category>
		<category><![CDATA[digitip]]></category>

		<guid isPermaLink="false">http://carijansen.com/?p=1313</guid>
		<description><![CDATA[&#8220;How do I set vertical type in InDesign?&#8221; was a question that landed in my email box today. In all honesty, setting vertical type in InDesign does require the opening of &#8216;the box of tricks&#8217;. I&#8217;m writing this tip in two parts. The first part (found below) will show you a pretty quick and dirty [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;How do I set vertical type in InDesign?&#8221; was a question that landed in my email box today. In all honesty, setting vertical type in InDesign does require the opening of &#8216;the box of tricks&#8217;. I&#8217;m writing this tip in two parts. The first part (found below) will show you a pretty quick and dirty method you can apply just using InDesign. The <a href="http://carijansen.com/2010/05/04/vertical-type-from-illustrator-to-indesign" target="_blank">second part</a> will look at integration between InDesign and Illustrator.<span id="more-1313"></span></p>
<h3>Vertical Type in InDesign using GREP</h3>
<p>For those of you that only have a copy of Adobe InDesign, the following tip provides you with a pretty quick and easy way to set vertical type.</p>
<p>First we&#8217;ll start by creating a Text Frame that has our soon to be vertical text set in it. For the best result, set the text alignment to <strong>Align Centre</strong>.</p>
<p><img class="alignnone size-full wp-image-1321" title="verticalType_01" src="http://carijansen.com/wp-content/uploads/2010/05/verticalType_01.png" alt="screenshot of horizontal text inserted in a text frame." width="220" height="274" /></p>
<p>Now that we have the text frame with our text on the page. We&#8217;re ready to convert this to Vertical Text.</p>
<h4>Getting to GREP</h4>
<p>The work-around I choose to use for this is the insertion of a &#8216;Forced Line Break&#8221; &#8230; that&#8217;s hard work!!! Imagine having to manually press Shift+Return/Enter after each character&#8230; surely there must be a quick way to do this?<br />
Oooh yeah&#8230; there is&#8230; We&#8217;ll be using a super-duper quick GREP Find/Change for this.</p>
<p>From the <strong>Edit</strong> menu choose <strong>Find/Change </strong>and click the <strong>GREP</strong> tab</p>
<p>I&#8217;m using the GREP option here, because it allows us to search for every individual character in the selected text frame (Story) and say .. &#8220;now go and put a forced line break behind it&#8221;&#8230;</p>
<p>Click the metacharacter menu on the right of the <strong>Find what</strong> part of the dialog. Metacharacters incidentally are characters that have a special meaning in InDesign.</p>
<p>We&#8217;re looking really for any type of character, so let&#8217;s choose <strong>Wildcards &gt; Any Character</strong>.</p>
<p>This adds a single full-stop in the Find what field in the dialog box. Super.</p>
<p><img class="size-full wp-image-1322  alignnone" title="VerticalType_Find_02" src="http://carijansen.com/wp-content/uploads/2010/05/VerticalType_Find_02b.png" alt="screenshot Find/Change dialog. Find What. Wild Cards. Any Character." width="576" height="377" /></p>
<p>Now on to changing things&#8230; What we need to do is put the originally found text back AND add a forced line break behind it. So here we go.</p>
<p>From the metacharacter menu on the right of <strong>Change to</strong>, choose <strong>Found &gt; Found Text</strong>. This adds a <strong>$0</strong> in the Change to field.</p>
<p><img class="alignnone size-full wp-image-1323" title="VerticalType_Change_03" src="http://carijansen.com/wp-content/uploads/2010/05/VerticalType_Change_03b.png" alt="Find/Change dialog, with metacharacter selection Found. Found Text selecterd." width="576" height="371" /></p>
<p>Next from the same menu choose <strong>Forced Line Break</strong>. This adds <strong>\n </strong>to the Change to field.</p>
<p><img class="alignnone size-full wp-image-1324" title="VerticalType_Change_04" src="http://carijansen.com/wp-content/uploads/2010/05/VerticalType_Change_04b.png" alt="Find/Change dialog with Change to metacharacter Forced Line Break selected." width="526" height="415" /></p>
<p>Before we do anything else, ensure the Text Frame is selected, and set the <strong>Search</strong> option to <strong>Story</strong>. Then click the <strong>Change All</strong> button.</p>
<h4>Changing the space between characters</h4>
<p>In one quick hit, the text will appear Vertically (in reality the text is now broken over a number of lines).</p>
<p><img class="alignnone size-full wp-image-1317" title="VerticalType_Change_05" src="http://carijansen.com/wp-content/uploads/2010/05/VerticalType_Change_05.png" alt="screenshot of vertical type" width="288" height="356" /></p>
<p>To control the spacing between the characters, either alter the Leading for the text, or set the <strong>Vertical Justification</strong> to <strong>Align Justified</strong> (<strong>Object &gt; Text Frame Options</strong>).</p>
<p><img class="alignnone size-full wp-image-1325" title="VerticalType_Justify_06" src="http://carijansen.com/wp-content/uploads/2010/05/VerticalType_Justify_06.png" alt="Text Frame Options dialog, with Vertical Justification setting change to Align Justified." width="447" height="476" /></p>
<p>The latter provides you with a nice click and drag method to expand the height of the text frame and automatically insert more space between the characters.</p>
<p><img class="alignnone size-full wp-image-1315" title="VerticalType_Justify_07" src="http://carijansen.com/wp-content/uploads/2010/05/VerticalType_Justify_07c.gif" alt="interactive screenshot showing how Vertical Justification works when the frame is expanded." width="311" height="469" /></p>
<p>For some alternate approaches you can also refer to David Blatner&#8217;s post on the InDesign Secrets blog. A very nice article outlining another couple of InDesign <a href="http://indesignsecrets.com/setting-vertical-text-in-indesign.php">vertical type methods</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://carijansen.com/2010/05/04/grep-it-vertically-in-indesign/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Introducing GREP Styles (4)</title>
		<link>http://carijansen.com/2009/07/09/tip-091/</link>
		<comments>http://carijansen.com/2009/07/09/tip-091/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 17:02:43 +0000</pubDate>
		<dc:creator>Cari Jansen</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[GREP]]></category>
		<category><![CDATA[InDesign]]></category>
		<category><![CDATA[digitip]]></category>

		<guid isPermaLink="false">http://carijansen.com/?p=816</guid>
		<description><![CDATA[Digitip 090 &#8211; InDesign CS4 &#8211; GREPpin&#8217; ahead or GREPpin&#8217; behind
The following tip is the 4th tip in a series of tips on GREP that I&#8217;m working on. It&#8217;s one of my personal favourites. Probably because I&#8217;ve worked with so many people in my carreer who set those Ads you find in your letter box [...]]]></description>
			<content:encoded><![CDATA[<h3>Digitip 090 &#8211; InDesign CS4 &#8211; GREPpin&#8217; ahead or GREPpin&#8217; behind</h3>
<p>The following tip is the 4th tip in a series of tips on GREP that I&#8217;m working on. It&#8217;s one of my personal favourites. Probably because I&#8217;ve worked with so many people in my carreer who set those Ads you find in your letter box twice a week. The local supermarket product advertising material is what I&#8217;m talking about.</p>
<p><img class="alignnone size-full wp-image-817" title="091_14_Done" src="http://carijansen.com/wp-content/uploads/2009/07/091_14_Done.png" alt="091_14_Done" width="484" height="332" /></p>
<p>Because of the amount of GREP styles involved in creating this Paragraph Style, I won&#8217;t add screenshots for each step, but instead provide you with step-by-steps on how to get to the end result.</p>
<p>Let&#8217;s start working.<span id="more-816"></span></p>
<h4>Paragraph Style</h4>
<p>We will be formatting our Paragraph Style with 6 different character styles, in order to do this I&#8217;ve started out by creating a very simple Paragraph Style called &#8220;PriceTag&#8221;. It merely sets the Alignment of the style and nothing else.</p>
<p><img class="alignnone size-full wp-image-818" title="091_01_ParaStyle" src="http://carijansen.com/wp-content/uploads/2009/07/091_01_ParaStyle.png" alt="091_01_ParaStyle" width="510" height="214" /></p>
<h4>Character Styles</h4>
<p>Next with the Paragraph Style applied to two samples, format the samples as you would like them to look. Basically what you&#8217;re doing is prepping for the Character Styles. One tip is that I would advice you to change the Kerning setting to Optical so that the  spacing for figure pairs is just that bit better looking.</p>
<p><img class="alignnone size-full wp-image-819" title="091_02_CharStyle" src="http://carijansen.com/wp-content/uploads/2009/07/091_02_CharStyle.png" alt="091_02_CharStyle" width="510" height="387" /></p>
<p>Once you&#8217;ve got the format right. select the formatted text bit-by-bit and define Character Styles for all of the components.</p>
<blockquote><p><strong>Dollar Symbol</strong> is used to set the &#8216;$&#8217; in $99.99<br />
<strong>Dollars</strong> is used to set the first &#8216;99&#8242; (or other number) in $99.99<br />
<strong>Decimal Point</strong> is used to make the full-stop . disappear in $99.99<br />
<strong>Cents</strong> is used to set the second &#8216;99&#8242; in $99.99 in a smaller font and with baseline shift (or superscript if you prefer).<br />
<strong>Cents Big</strong> is used only when defining a 99c type price and sets the &#8216;99&#8242;.<br />
<strong>Cents Symbol</strong> sets the &#8216;c&#8217;</p></blockquote>
<h4>Make the decimal disappear</h4>
<p>To make the decimal disappear, I set it to 1pt font size and 1% horizontal scaling and change the fill colour to [none]. You might need to play around with this a little till you get things right.</p>
<p>Before we start with the GREP styles&#8230; Let&#8217;s reset our original text again and clear the character formatting changes we applied for the purpose of character style development.</p>
<p><strong>Right-click</strong> the Paragraph Style, and choose <strong>Apply &#8220;PriceTag&#8221; Clear Overrides</strong>.</p>
<h4>GREP Styles</h4>
<p>Time to start creating our 6 different GREP styles that will make up this PriceTag style.</p>
<p>Right-click the Paragraph Style and choose Edit <strong>&#8220;PriceTag&#8221;&#8230;</strong> Then in the Paragraph Style Options, click the New GREP style button for each of the styles listed below and follow the rest of the prompts listed.</p>
<h5>Setting Dollar Symbol</h5>
<p>Change <strong>Apply Style</strong> to: Dollar Symbol</p>
<p>Clear the Expression in <strong>To Text</strong>. Cool so the literal text we&#8217;re look at here is the dollar sign itself. Unfortunately we can&#8217;t just enter a <strong>$</strong>, as that character is one of the reserved characters for GREP. We&#8217;ll &#8220;escape&#8221; it by placing a backslash in front of it &#8216;<strong>\</strong>&#8216;.</p>
<blockquote><p>To Text: \$</p></blockquote>
<h5>Setting Dollars</h5>
<p>Now to those dollars. Change <strong>Apply Style</strong> to: Dollar Symbol</p>
<p>The Expression in <strong>To Text</strong> has already got the /d+ in it (<strong>Wildcards &gt; Any Digit</strong>, <strong>Repeat &gt; One or More Times</strong>), to allow for the dollars digits to be formatted.</p>
<p>Place the cursor after the <strong>/d+</strong></p>
<p>It&#8217;s now time to insert a Positive Lookahead. The dollar &#8216;digits&#8217; are placed ahead of the full-stop (decimal point) and that&#8217;s what we&#8217;re looking for when defining the GREP expression that sets these. We need to tell the expression that &#8216;if&#8217; the digits are ahead of the full-stop, then the character style must be applied.</p>
<p>From <strong>Special Characters for Search</strong> choose: <strong>Match &gt; Positive Lookahead</strong>. This adds <strong>(?=)</strong> to the expression. All we need to do know is, insert the full-stop inside this part of the expression.  Again, the &#8216;<strong>.</strong>&#8216; actually has a reserved meaning in GREP, so we must escape it with the &#8216;<strong>\</strong>&#8216;.  Insert these characters before the closing parenthesis.</p>
<blockquote><p>To Text: \d+(?=\.)</p></blockquote>
<h5>Setting Decimal Point</h5>
<p>Change <strong>Apply Style</strong> to: Decimal Point.</p>
<p>Clear the Expression in <strong>To Text</strong>.We&#8217;re once again inserting literal text here &#8216;.&#8217; and as in the previous GREP style we must escape the character and are thus inserting &#8216;<strong>\.</strong>&#8216;</p>
<blockquote><p>To Text: \.</p></blockquote>
<h5>Setting Cents</h5>
<p>Wow, we&#8217;ve made it to the Cents. That means we&#8217;re half way there <img src='http://carijansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   Change <strong>Apply Style</strong> to: Cents.</p>
<p>As previously mentioned the expression in <strong>To Text</strong> has already got the /d+ in it (<strong>Wildcards &gt; Any Digit</strong>, <strong>Repeat &gt; One or More Times</strong>), to allow for the cents digits to be formatted.</p>
<p>Place the cursor in front the <strong>/d+</strong></p>
<p>It&#8217;s now time to insert a Positive Lookbehind. The cents &#8216;digits&#8217; are placed behind of the full-stop (decimal point) and that&#8217;s what we&#8217;re looking for when defining the GREP expression that sets these. We need to tell the expression that &#8216;if&#8217; the digits are behind the full-stop, then the character style must be applied.</p>
<p>From <strong>Special Characters for Search</strong> choose: <strong>Match &gt; Positive Lookbehind</strong>. This adds <strong>(?&lt;=)</strong> to the expression. All we need to do know is, insert the full-stop inside this part of the expression, similar to how we did this for the Positive Lookahead <strong>(?&lt;=\.)</strong></p>
<blockquote><p>To Text: (?&lt;=\.)</p></blockquote>
<h5>Setting Cents Big</h5>
<p>Ha, time for another Positive Lookahead  the bigger cent digits ahead of the &#8216;c&#8217; <img src='http://carijansen.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Character Style setting first&#8230; Change <strong>Apply Style</strong> to: Cents Big</p>
<p>The Expression in <strong>To Text</strong> has already got the /d+ in it. Place the cursor after the <strong>/d+</strong></p>
<p>It&#8217;s now time to insert the second Positive Lookahead. The bigger cent &#8216;digits&#8217; are placed ahead of the &#8216;<strong>c</strong>&#8216;. We need to tell the expression that &#8216;if&#8217; the digits are ahead of the &#8216;<strong>c</strong>&#8216;, then the character style must be applied.</p>
<p>From <strong>Special Characters for Search</strong> choose: <strong>Match &gt; Positive Lookahead</strong>. This adds <strong>(?=)</strong> to the expression. Then insert &#8216;<strong>c</strong>&#8216;  characters before the closing parenthesis.</p>
<blockquote><p>To Text: \d+(?=c)</p></blockquote>
<h5>Setting Cents Symbol</h5>
<p>We&#8217;ve made it to the last GREP style, another Positive Lookbehind&#8230; remember the &#8216;c&#8217; behind the bigger cent digits <img src='http://carijansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Character Style setting first&#8230; Change <strong>Apply Style</strong> to: Cents Symbol.</p>
<p>The Expression in <strong>To Text</strong> has  got the /d+ in it. This time we&#8217;ll clear that.</p>
<p>Instead we will insert the &#8216;c&#8217; first and place our cursor in front of the &#8216;c&#8217;.</p>
<p>We&#8217;ll insert a Positive Lookbehind. The &#8216;c&#8217; is placed behind the bigger cent &#8216;digits&#8217;. We need to tell the expression that &#8216;if&#8217; the c is behind the digits then the character style must be applied.</p>
<p>From <strong>Special Characters for Search</strong> choose: <strong>Match &gt; Positive Lookbehind</strong>. This adds <strong>(?&lt;=)</strong> to the expression.</p>
<p>My instinct was to insert \d+ inside this expression, but that doesn&#8217;t work. Instead we&#8217;ll have to insert a Character Set that tells the expression the c can sit behind a 0,1,2,3,4,5,6,7,8 or 9.</p>
<p>Place the cursor in front of the closing parenthesis. Then choose from <strong>Special Characters for Search</strong> choose: <strong>Match &gt; Character Set</strong>. This adds [] to the previous insertion.</p>
<p>We&#8217;ll now insert the characters, and if we enter <strong>0-9</strong> we&#8217;re basically defining all of digits.</p>
<blockquote><p>To Text: (?&lt;=[0-9])c</p></blockquote>
<p>Wow&#8230; we&#8217;ve made it to the end <img src='http://carijansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Click <strong>OK to</strong> update the Paragraph Style.</p>
<p><img class="alignnone size-full wp-image-827" title="091_15_PStyleOptions" src="http://carijansen.com/wp-content/uploads/2009/07/091_15_PStyleOptions.png" alt="091_15_PStyleOptions" width="510" height="426" /></p>
<p>Ready to apply our new Paragraph Style with Grep Styles to our Price Tag text frames.</p>
<p>If you want to make things even more exciting, then enable the Paragraph Style option as part of a fancy Object Style&#8230; and all your formatting will be applied through the Object Style.</p>
<h3>Video Tutorial</h3>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/M78WUk_-M7g&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/M78WUk_-M7g&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://carijansen.com/2009/07/09/tip-091/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Introducing GREP Styles (3)</title>
		<link>http://carijansen.com/2009/07/06/tip-090/</link>
		<comments>http://carijansen.com/2009/07/06/tip-090/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 17:30:05 +0000</pubDate>
		<dc:creator>Cari Jansen</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[GREP]]></category>
		<category><![CDATA[InDesign]]></category>
		<category><![CDATA[digitip]]></category>

		<guid isPermaLink="false">http://carijansen.com/?p=797</guid>
		<description><![CDATA[Digitip 090 &#8211; Adobe InDesign CS4 GREP Styles
This is the third in a series of tutorials I&#8217;ll be writing up about GREP styles. The previous GREP Tutorial is about applying a different style to figures.
In this tutorial we look at how we can convert text typed in Capital Letters to Small Caps.

Let&#8217;s get started.
We&#8217;re jumping [...]]]></description>
			<content:encoded><![CDATA[<h3>Digitip 090 &#8211; Adobe InDesign CS4 GREP Styles</h3>
<p>This is the third in a series of tutorials I&#8217;ll be writing up about GREP styles. The <a href="http://carijansen.com/2009/07/05/tip-089/" target="_blank">previous GREP Tutorial</a> is about applying a different style to figures.</p>
<p>In this tutorial we look at how we can convert text typed in Capital Letters to Small Caps.</p>
<p><img class="alignnone size-full wp-image-804" title="090_06_done" src="http://carijansen.com/wp-content/uploads/2009/07/090_06_done.png" alt="090_06_done" width="510" height="167" /></p>
<p>Let&#8217;s get started.<span id="more-797"></span></p>
<p>We&#8217;re jumping straight into the Paragraph Style and GREP style this time around (see the previous tips <a href="http://carijansen.com/2009/07/04/tip-088/">(1)</a> and <a href="http://carijansen.com/2009/07/05/tip-089/" target="_blank">(2)</a> for different approaches)</p>
<p>Right click the paragraph style in the Paragraph Styles panel to edit it and in the <strong>Paragraph Style Options</strong> click <strong>GREP Style</strong>.</p>
<p>Then Click <strong>New GREP Style</strong>, this adds a third GREP Style to our &#8220;Body Text&#8221; paragraph style.</p>
<p>At the bottom of the <strong>Apply Style</strong> pop-up I can still choose <strong>New Character Style</strong>. Yay! That&#8217;s very cool. Thank you Adobe!</p>
<p><img class="alignnone size-full wp-image-799" title="090_01_newcharstyle" src="http://carijansen.com/wp-content/uploads/2009/07/090_01_newcharstyle.png" alt="090_01_newcharstyle" width="510" height="483" /></p>
<p>I&#8217;m naming my style Small Caps (OT). Hmmm wonder why?</p>
<p><img class="alignnone size-full wp-image-800" title="090_02_newcharstyle" src="http://carijansen.com/wp-content/uploads/2009/07/090_02_newcharstyle.png" alt="090_02_newcharstyle" width="510" height="305" /></p>
<h4>Changing Cases</h4>
<p>So someone typed in A.M and P.M. through this James Cook Voyages diary manuscript whilst holding down the Shift-key on the keyboard. Normally that would require a painful Find/Change that changes them to lowercase first, before we can change them back to small caps, as presently no &#8220;Upper Case&#8221; style has been recorded.</p>
<p>However since I&#8217;m using an Open Type font for my Body Text, I can prevent myself from having to jump through all sorts of hoops &#8211; <strong>Type &gt; Change Case</strong>, being another one of them &#8211; to get this looking right.</p>
<p>One of OpenType&#8217;s extended features is that of having the ability to set true small caps characters to text, regardless of the current formatting.</p>
<blockquote><p>John D. Berry talks about <a href="http://http://www.creativepro.com/article/dot-font-using-expert-characters-and-expert-sets" target="_blank">extended features</a> including the OpenType small caps feature back in October 2006, in an article he wrote for Creative Pro.Com. It&#8217;s worth a read.</p></blockquote>
<p>Let&#8217;s click <strong>Basic Character Formats</strong> and look at the <strong>Case</strong> menu.</p>
<p>There it is the <strong>Open Type All Small Caps</strong>.  Let&#8217;s choose this and click <strong>OK</strong> to define our newly created Character Style for our GREP style.</p>
<p><img class="alignnone size-full wp-image-801" title="090_03_newcharstyle" src="http://carijansen.com/wp-content/uploads/2009/07/090_03_newcharstyle.png" alt="090_03_newcharstyle" width="510" height="305" /></p>
<p>So that&#8217;s it our Character Style has been defined. Let&#8217;s get to the GREP Expression.</p>
<h4>GREP Expression</h4>
<p>Basically there are only two occurrences of text that I want to change in Cook&#8217;s journal. The words &#8220;A.M.&#8221; and &#8220;P.M.&#8221;.  So what I&#8217;m looking at setting is that either A.M. OR P.M. when encountered must be formatted using our Character Style.</p>
<blockquote><p>OR, means that either A.M or P.M. can appear in the paragraph. There is no need for both of them to be inserted as text in the paragraph.</p></blockquote>
<p>To set the expression, let&#8217;s start by entering A.M. as literal text for the <strong>To Text</strong> <em>(I&#8217;m making a mistake here on purpose, we&#8217;ll fix that in a little while)</em>.</p>
<h4>Match</h4>
<p>So what is it we are trying to match with our GREP style&#8230; Oooh yes, A.M. <strong>or</strong> P.M.</p>
<p>Now as to the OR&#8230;</p>
<p>From <strong>Special Characters for Search </strong>choose <strong>Match &gt; Or</strong></p>
<p><img class="alignnone size-full wp-image-806" title="090_04_or" src="http://carijansen.com/wp-content/uploads/2009/07/090_04_or.png" alt="090_04_or" width="510" height="305" /></p>
<p>Next let&#8217;s set P.M.  And ensure you click the Preview box in the <strong>Paragraph Style Options</strong> dialog to see the effects of the current settings.</p>
<p><img class="alignnone size-full wp-image-802" title="090_04_arm_am" src="http://carijansen.com/wp-content/uploads/2009/07/090_04_arm_am.png" alt="090_04_arm_am" width="510" height="121" /></p>
<p>It looks kind-off OK&#8230; but no it&#8217;s not.</p>
<p>Remember back in the <a href="http://carijansen.com/2009/07/04/tip-088/" target="_blank">first GREP tutorial</a>, I mentioned that certain characters are reserved by GREP for other things. We actually used one of them in our very first GREP the &#8220;.&#8221; (fullstop), and it meant &#8220;Any Character&#8221;. Now that we are looking closer, you might notice that not only the word &#8220;A.M.&#8221; is set to small caps, but the word ARM as well.</p>
<p>The solution is that we need to change this &#8220;.&#8221; &#8220;Any Character&#8221; into a literal character&#8230; and that&#8217;s done by escaping it with the &#8220;\&#8221; (Backslash) character.  We&#8217;ll need to make this change manually.</p>
<p><img class="alignnone size-full wp-image-803" title="090_05_ampm" src="http://carijansen.com/wp-content/uploads/2009/07/090_05_ampm.png" alt="090_05_ampm" width="510" height="426" /></p>
<p>Once we&#8217;ve made this change our third GREP style is completed.</p>
<p><img class="alignnone size-full wp-image-804" title="090_06_done" src="http://carijansen.com/wp-content/uploads/2009/07/090_06_done.png" alt="090_06_done" width="510" height="167" /></p>
<h3>Video Tutorial</h3>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://www.youtube.com/v/m8N2mAPIWGY&amp;hl=en&amp;fs=1" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/m8N2mAPIWGY&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/m8N2mAPIWGY&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true" data="http://www.youtube.com/v/m8N2mAPIWGY&amp;hl=en&amp;fs=1"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://carijansen.com/2009/07/06/tip-090/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing GREP Styles (2)</title>
		<link>http://carijansen.com/2009/07/05/tip-089/</link>
		<comments>http://carijansen.com/2009/07/05/tip-089/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 14:32:17 +0000</pubDate>
		<dc:creator>Cari Jansen</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[GREP]]></category>
		<category><![CDATA[InDesign]]></category>
		<category><![CDATA[digitip]]></category>

		<guid isPermaLink="false">http://carijansen.com/?p=787</guid>
		<description><![CDATA[Digitip 089 &#8211; Adobe InDesign CS4 &#8211; GREP your Figures
This is the second in a series of short GREP Style tutorials. I introduce GREP styles in the first post in this series. In this short tutorial we look at how we can use a GREP style to change the appearance of any figures within a [...]]]></description>
			<content:encoded><![CDATA[<h3>Digitip 089 &#8211; Adobe InDesign CS4 &#8211; GREP your Figures</h3>
<p>This is the second in a series of short GREP Style tutorials. I introduce GREP styles in the <a href="http://carijansen.com/2009/07/04/tip-088/" target="_blank">first post</a> in this series. In this short tutorial we look at how we can use a GREP style to change the appearance of any figures within a paragraph style.</p>
<p><img class="alignnone size-full wp-image-788" title="089_01_applied" src="http://carijansen.com/wp-content/uploads/2009/07/089_01_applied.png" alt="089_01_applied" width="510" height="175" /></p>
<p>Task for this GREP Style is that it changes the formatting on any numerical characters (figures) throughout the Body Text paragraph style.</p>
<p><span id="more-787"></span>We&#8217;re starting the same way once again. By creating a Character Style that sets the formatting for the figures.</p>
<h4>OpenType Fonts and Figures</h4>
<p>As I&#8217;m using a Open Type font in this example (Minion Pro). I can use OpenType features for figure formatting. Kind of cool.</p>
<p>To create a Character Style that has my figure settings included, I start by highlighting a figure and from the <strong>Control Panel </strong>menu choose <strong>OpenType</strong>.</p>
<p>Any <strong>OpenType font features</strong> listed between square brackets [] are not available to the font. The last group of features are figure specific features: Tabular Lining, Proportional Oldstyle, Proportional Lining, Tabular Oldstyle and the default setting Default Figure Style.</p>
<blockquote><p>There&#8217;s much more to OpenType then just being a cross-platform font. As these fonts are double byte fonts they can contain an expanded character set and provide cool typographical features.  Adobe Systems Inc. has a good <a href="http://www.adobe.com/type/opentype/qna.html" target="_blank">OpenType Q&amp;A</a> page available as part of their Open Type &#8216;branch&#8217; on their web-site</p></blockquote>
<p>In brief (and I&#8217;m not font expert to be honest): <strong>Oldstyle</strong> figures, are generally designed smaller and match with lowercase characters. <strong>Lining</strong> figures are designed to match uppercase characters. <strong>Tabular</strong> figures are designed for figure placement in tabular (tabbed/tables) format, e.g. as in financial reports etc. <strong>Proportional</strong> figures are designed to be proportionaly spaced.</p>
<p>I&#8217;m a fan of Proportional Oldstyle, I like the smaller font size.</p>
<p><img class="alignnone size-full wp-image-789" title="089_02_propoldstyle" src="http://carijansen.com/wp-content/uploads/2009/07/089_02_propoldstyle.png" alt="089_02_propoldstyle" width="510" height="524" /></p>
<p>From the Character Style panel menu choose <strong>New Character Style</strong> and set the <strong>Style Name</strong> for the style. I&#8217;m setting mine to &#8220;Proportional Oldstyle&#8221;.</p>
<p>Click <strong>OK</strong> to add the style to the Character Styles panel.</p>
<p><img class="alignnone size-full wp-image-790" title="089_03_newcharstyle" src="http://carijansen.com/wp-content/uploads/2009/07/089_03_newcharstyle.png" alt="089_03_newcharstyle" width="510" height="305" /></p>
<h4>Paragraph Style</h4>
<p>Time to start GREPPING again&#8230; and this one will be a quickie <img src='http://carijansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>From the Paragraph Styles panel, right-click &#8220;Body Text&#8221; (or the style that you want to edit) and choose Edit &#8220;Body Text&#8221;.</p>
<p>The Paragraph Style Options dialog appears.</p>
<p>Click <strong>GREP Style</strong>, and click <strong>New Grep Style&#8230;</strong> to add another GREP style to the paragraph style.</p>
<p><img class="alignnone size-full wp-image-791" title="089_04_newgrepstyle" src="http://carijansen.com/wp-content/uploads/2009/07/089_04_newgrepstyle.png" alt="089_04_newgrepstyle" width="510" height="426" /></p>
<p>Choose the &#8220;Proportional Oldstyle&#8221; Character Style from the <strong>Apply Style </strong>list. And believe it or not you&#8217;re done.</p>
<p>That&#8217;s because the default expression that InDesign inserts is &#8220;Any Digit, One or More times&#8221;. But let&#8217;s imagine your setting the expression anyway <img src='http://carijansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Clear the field data in <strong>To Text</strong>. Then from the<strong> Special Characters for Search</strong> pop-up choose:<strong> Wildcards &gt; Any Character</strong></p>
<p>Follow this with: <strong>Repeat &gt; One or More times</strong>.</p>
<p>Click<strong> OK</strong> and you&#8217;re done <img src='http://carijansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-788" title="089_01_applied" src="http://carijansen.com/wp-content/uploads/2009/07/089_01_applied.png" alt="089_01_applied" width="510" height="175" /></p>
<h3>Video Tutorial</h3>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://www.youtube.com/v/DvsnJEEx4BQ&amp;hl=en&amp;fs=1" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/DvsnJEEx4BQ&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/DvsnJEEx4BQ&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true" data="http://www.youtube.com/v/DvsnJEEx4BQ&amp;hl=en&amp;fs=1"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://carijansen.com/2009/07/05/tip-089/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Introducing GREP Styles (1)</title>
		<link>http://carijansen.com/2009/07/04/tip-088/</link>
		<comments>http://carijansen.com/2009/07/04/tip-088/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 04:35:44 +0000</pubDate>
		<dc:creator>Cari Jansen</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[GREP]]></category>
		<category><![CDATA[InDesign]]></category>
		<category><![CDATA[digitip]]></category>

		<guid isPermaLink="false">http://carijansen.com/?p=762</guid>
		<description><![CDATA[Digitip 088 &#8211; Adobe InDesign CS4 &#8211; GREP Styles (1)
InDesign CS3 introduced the ability to perform GREP Find/Changes, making it easier for us to apply character styles to text pattern strings such as &#8216;all text&#8217; between parentheses.  InDesign CS4 introduces the ability to lock this pattern based application of character styles into your Paragraph Styles.
In [...]]]></description>
			<content:encoded><![CDATA[<h3>Digitip 088 &#8211; Adobe InDesign CS4 &#8211; GREP Styles (1)</h3>
<p>InDesign CS3 introduced the ability to perform GREP Find/Changes, making it easier for us to apply character styles to text pattern strings such as &#8216;all text&#8217; between parentheses.  InDesign CS4 introduces the ability to lock this pattern based application of character styles into your Paragraph Styles.</p>
<p>In the upcoming series of tips I hope to introduce some uses of GREP Styles as demoed during the June 2009 &#8211; InDesign User Group meeting in Perth.</p>
<p><img class="alignnone size-full wp-image-775" title="089_12_applied" src="http://carijansen.com/wp-content/uploads/2009/07/089_12_applied.png" alt="089_12_applied" width="510" height="288" /></p>
<p>This first GREP style tutorial tutorial looks at how we can automatically apply a character style to all text between parentheses.</p>
<p><span id="more-762"></span></p>
<p>All of the paragraphs for which the text between parenthesis must be set in Italic have already had a Paragraph Style &#8220;Body Text&#8221; applied to it.</p>
<h4>Define a Character Style</h4>
<p>In preparation for the GREP style, I prefer to create the Character Styles required prior to defining the GREP style components (Character Style and Expression).</p>
<p>To define a Character Style:</p>
<p>highlight some text in the Body Text paragraphs and change its formatting. I&#8217;ve changed the <strong>Font Style</strong> to <strong>Medium Italic</strong>.</p>
<p><img class="alignnone size-full wp-image-765" title="089_01_newcharst" src="http://carijansen.com/wp-content/uploads/2009/07/089_01_newcharst.png" alt="089_01_newcharst" width="510" height="216" /></p>
<p>Next choose <strong>New Character Style</strong> from the <strong>Character Styles panel</strong> menu and Name the Style. I&#8217;m naming mine &#8220;Medium Italic&#8221;.</p>
<p><img class="alignnone size-full wp-image-766" title="089_02_namestyle" src="http://carijansen.com/wp-content/uploads/2009/07/089_02_namestyle.png" alt="089_02_namestyle" width="510" height="305" /></p>
<p>Click <strong>OK</strong> to add the style to the Control Panel. I&#8217;m purposely not clicking &#8220;Apply Style to Selection&#8217;, as the text I formatted with Medium Italic is only used as the basis for the Character Style definition.</p>
<p><img class="alignnone size-full wp-image-767" title="089_03_clearoverride" src="http://carijansen.com/wp-content/uploads/2009/07/089_03_clearoverride.png" alt="089_03_clearoverride" width="510" height="241" /></p>
<p>Because we set some of the text in Medium Italic (Font Style), our Paragraph Style now indicates with the &#8216;+&#8217; icon that this format is not native to the Paragraph Style. Let&#8217;s remove this format override, by clicing the <strong>Clear Overrides</strong> icon at the bottom of the Paragraph Styles panel.</p>
<p>It is now time to add the GREP Style to our Paragraph Style.</p>
<p><img class="alignnone size-full wp-image-768" title="089_04_editbodytext" src="http://carijansen.com/wp-content/uploads/2009/07/089_04_editbodytext.png" alt="089_04_editbodytext" width="510" height="241" /></p>
<h5>GREP Style</h5>
<p>Right-click the Paragraph Style and select <strong>Edit</strong> &#8220;Body Text&#8221; to edit the style. The Paragraph Style Options dialog appears. Click <strong>GREP Styles</strong>.</p>
<p><img class="alignnone size-full wp-image-769" title="089_05_newgrepstyle" src="http://carijansen.com/wp-content/uploads/2009/07/089_05_newgrepstyle.png" alt="089_05_newgrepstyle" width="510" height="426" /></p>
<p>First of all lets set the Character Style that we&#8217;re going to apply to the GREP Expression we&#8217;re inserting in just a moment. From the <strong>Apply Style </strong>drop down choose the Character Style created earlier.</p>
<p><img class="alignnone size-full wp-image-770" title="089_06_applystyle" src="http://carijansen.com/wp-content/uploads/2009/07/089_06_applystyle.png" alt="089_06_applystyle" width="510" height="221" /></p>
<p>The Character Style we want to apply is &#8220;Medium Italic&#8221;.</p>
<blockquote><p>Oops did you forget to create the Character Style? Don&#8217;t worry, from InDesign CS4, you have the ability to create your Character Style right here in the Paragraph Style Options dialog. Have a look at the bottom of the Apply Style pop-up and notice the &#8220;New Character Style&#8221;.</p></blockquote>
<h4>GREP Expression</h4>
<p>It&#8217;s time to get GREPPING&#8230; so what was that pattern again we were looking for? An <strong>Open Parenthesis character,</strong> followed by <strong>any type of text (alpha-numerical, spaces etc. all allowed)</strong>, finished off with a <strong>Closing Parenthesis </strong>character.</p>
<h4>Symbols</h4>
<p>If you are already a GREP wiz you might be able to enter the required GREP expression in the To Text field. However I personally prefer constructing the expression bit-by-bit. The <strong>Special Characters For Search</strong> pop-up is a great help in constructing the expression. InDesign will automatically insert the correct expression data.</p>
<p><img class="alignnone size-full wp-image-771" title="089_07_openbracket" src="http://carijansen.com/wp-content/uploads/2009/07/089_07_openbracket.png" alt="089_07_openbracket" width="510" height="220" /></p>
<p>Our <strong>Open Parenthesis Character</strong> is part of the <strong>Symbols </strong>group.</p>
<p>As choose this component, you might notice that the text entered in the To Text field is now set to <strong>\(</strong>.  Certain symbols are reserved by GREP for particular expression components. The Parenthesis form part of this group of characters. For our GREP Expression to recognise the  &#8220;(&#8221; as a literal character it must be preceded by a &#8220;\&#8221; character. This &#8220;\&#8221; is referred to as an Escape Character.</p>
<blockquote><p>Each of the following characters is reserved by GREP: * ^ } ] ) $ . { [ ( | + ? ~</p>
<p>If you want to use these characters as a literal character in a GREP expression, you must escape them with the &#8220;\&#8221;.</p></blockquote>
<h4>Wildcards</h4>
<p>Next we&#8217;re after our next part of the expression: The any text or words etc. that are inserted prior to the closing parenthesis.</p>
<p><img class="alignnone size-full wp-image-776" title="089_08_anycharacter" src="http://carijansen.com/wp-content/uploads/2009/07/089_08_anycharacter.png" alt="089_08_anycharacter" width="510" height="241" /></p>
<p>When you are looking for ANYTHING&#8230; Think of the fact that you know that this ANYTHING might be an &#8220;a&#8221; or a &#8220;b&#8221; or really any character of the alphabet, and even numbers or spaces.</p>
<p>Wildcards are a way of defining an &#8220;ANYTHING&#8221;.  And as we&#8217;re looking for any type of character, not just Digits (numbers), Letters (alphabetical) or White Space (spaces), we&#8217;re choosing <strong>Wildcards &gt; Any Character</strong>.</p>
<p><img class="alignnone size-full wp-image-772" title="089_09_oneormore" src="http://carijansen.com/wp-content/uploads/2009/07/089_09_oneormore.png" alt="089_09_oneormore" width="510" height="275" /></p>
<p>A &#8220;.&#8221; is added to the GREP expression.</p>
<h4>Repeat</h4>
<p>You might think at this stage that you&#8217;re there&#8230; Not quite&#8230; GREP Expressions need to know home many times on ef these Any Characters can occur&#8230; So we need to know tell the Expression how many times this Any Character can repeat itself.</p>
<p>Let&#8217;s assume we don&#8217;t encounter &#8220;()&#8221; (without text between the parentheses). So we&#8217;re looking at <strong>One or More</strong> occurrences.</p>
<h4>Shortest Match</h4>
<p>So what would happen if there is more than one set of &#8220;()&#8221; within a paragraph? Well, this is where the <strong>Shortest Match</strong> option comes in handy. Shortest Match looks for the first occurrence of the &#8220;(&#8221; and the first occurrence of the &#8220;)&#8221;, the shortest possible string it can find in the paragraph, and that is exactly what we&#8217;re after <img src='http://carijansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So let&#8217;s choose <strong>Repeat &gt; One or More Times (Shortest Match)</strong>.  This adds &#8220;+?&#8221; to the expression.</p>
<p>We&#8217;re almost there at this stage. All we need to add to our expression now is the Closing Parenthesis character. We jump back to Symbols for that one.</p>
<p>Choose <strong>Symbols &gt; Close Parenthesis Character</strong></p>
<p>Our finished expression is <strong>\(.+?\)</strong></p>
<p><img class="alignnone size-full wp-image-774" title="089_11_finished" src="http://carijansen.com/wp-content/uploads/2009/07/089_11_finished.png" alt="089_11_finished" width="510" height="177" /></p>
<p>Any text between brackets is now set using our GREP style. Click OK to apply the GREP style to the Paragraph Style and see the finished result.</p>
<p><img class="alignnone size-full wp-image-775" title="089_12_applied" src="http://carijansen.com/wp-content/uploads/2009/07/089_12_applied.png" alt="089_12_applied" width="510" height="288" /></p>
<h3>Video Tutorial</h3>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/JZWVkBMb1Rg&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/JZWVkBMb1Rg&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://carijansen.com/2009/07/04/tip-088/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How do I create fractions in InDesign?</title>
		<link>http://carijansen.com/2008/08/25/tip075/</link>
		<comments>http://carijansen.com/2008/08/25/tip075/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 12:01:50 +0000</pubDate>
		<dc:creator>Cari Jansen</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[GREP]]></category>
		<category><![CDATA[InDesign]]></category>
		<category><![CDATA[digitip]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://carijansen.com/2008/08/25/indesign_fractions/</guid>
		<description><![CDATA[Digitip 075 &#8211; Adobe InDesign
InDesign out-of-the-box, does not contain a &#8216;Make Fraction&#8221; command, like other applications such as QuarkXPress have, so if you&#8217;re a Quark converter (Welcome a-board by the way!!!), how do you go abouts creating fractions in InDesign?
So how can setting fractions be made easier? Well, there are a number of options available. [...]]]></description>
			<content:encoded><![CDATA[<h3>Digitip 075 &#8211; Adobe InDesign</h3>
<p>InDesign out-of-the-box, does not contain a &#8216;Make Fraction&#8221; command, like other applications such as QuarkXPress have, so if you&#8217;re a Quark converter (Welcome a-board by the way!!!), how do you go abouts creating fractions in InDesign?</p>
<p>So how can setting fractions be made easier? Well, there are a number of options available. Let me take you through five different methods&#8230;<span id="more-346"></span></p>
<h4>Option 1 &#8211; Use OpenType font with fraction support</h4>
<p>Quite a few OpenType fonts you use a font such as Adobe Garamond Pro, which has really good fraction support, creating fractions is pretty easy. Type the fraction e.g. 1/2, highlight the text, then from the <strong>Character</strong> <strong>panel</strong> menu select <strong>OpenType &gt; Fractions. </strong><strong><br />
</strong></p>
<p><a title="fraction_01.png" href="http://carijansen.com/wp-content/uploads/2008/08/fraction_01.png"><img src="http://carijansen.com/wp-content/uploads/2008/08/fraction_01.png" alt="fraction_01.png" /></a></p>
<p>Alternatively, select <strong>OpenType &gt; Fractions</strong> from the <strong>Control Panel menu</strong> or select <strong>OpenType &gt; Fractions</strong> in the <strong>Character Style Options</strong> dialog.</p>
<p>If you regularly use this feature consider applying a shortcut to this comment, by choosing <strong>Edit &gt; Keyboard Shortcuts</strong>, then select <strong>Product Area &gt; Panel Menus </strong>and scroll down to <strong>Character:OpenType:Fractions</strong>, set <strong>Context</strong> to <strong>Text</strong>, seen as you&#8217;d only apply this shortcut when working with text and for instance choose shortcut <strong>Command+Shift+F (Mac) </strong>or <strong>Ctrl+Shift+F (Win).</strong> Click <strong>Assign</strong>, to add the shortcut to your shortcut set. If you&#8217;ve not yet created a new shortcut set you&#8217;ll be prompted to create a new set. Click <strong>OK</strong> to acknowledge the changes made and close the Keyboard Shortcuts dialog.</p>
<p>The advantage of using the OpenType Fraction feature, is that you can easily resize your text and the fractions will remain typographically correct. Something the &#8220;Make Fraction&#8221; command in QuarkXPress for instance doesn&#8217;t do, as it simpley resizes the text before and after the &#8216;/&#8217; and amends the baseline shift when generating fraction.</p>
<h4>Option 2 &#8211; Find/Change with OpenType support</h4>
<p>Ok, so you&#8217;re using a OpenType font with fraction support. Yay!!!<br />
With Find/Change you can to set your all fractions in one hit! Using the GREP feature, now, that would save some time.<br />
Set <strong>Find what:</strong><br />
<strong>Wildcards &gt; Any digit</strong> \d<br />
that is <strong>Repeat</strong>ed &gt; <strong>One or More Times</strong> \d+<br />
followed by a slash-character \d+/<br />
followed by another <strong>Wildcards &gt; Any digit</strong> \d+/ \d<br />
that is <strong>Repeat</strong>ed &gt; <strong>One or More Times</strong> \d+/ \d+</p>
<p>Set <strong>Change to:</strong><br />
Select<strong> Found &gt; Found Text</strong> $0</p>
<p>Set <strong>Change Format:<br />
Style Options:</strong> <strong>Character Style</strong> &gt; fraction.</p>
<p>This fraction Character style, would just enable the OpenType Features setting for Fractinos.When using Superscript Position setting, you&#8217;ll have to have a bit of a play with the <strong>Edit &gt; Preferences &gt; Advanced Type</strong>, superscript Position and Size settings for the document to ensure you generate the best looking fraction for the font you&#8217;re using.</p>
<p>Next&#8230; click <strong>Change All</strong>.</p>
<p><a title="fraction_04.png" href="http://carijansen.com/wp-content/uploads/2008/08/fraction_04.png"><img src="http://carijansen.com/wp-content/uploads/2008/08/fraction_04.png" alt="fraction_04.png" /></a></p>
<h4>Option 3 &#8211; Use a Script</h4>
<p>You&#8217;re using a font that doesn&#8217;t support Fractions? Bummer&#8230; Naaaaah&#8230; not really&#8230; <a href="http://www.danrodney.com">Dan Rodney</a> developed a <a href="http://www.danrodney.com/scripts/properfraction.html">Proper Fraction script</a> that helps you generate fractions. The Proper Fraction script is available in Free format as well as low cost Pro Script (that finds all fractions and formats automatically).</p>
<p>The Free Script allows you to highlight some text, then generate the fraction either by running the <strong>ProperFraction 2.0-Size DanRodney.js</strong> script which really replicates what the &#8220;Make Fraction&#8221; command in QuarkXPress does (e.g. reduce font size, set baseline shift). I&#8217;d vote for not using this particular script as it has the same limitations when text is resized later on.</p>
<p><a title="fraction_02.png" href="http://carijansen.com/wp-content/uploads/2008/08/fraction_02.png"><img src="http://carijansen.com/wp-content/uploads/2008/08/fraction_02.png" alt="fraction_02.png" /></a></p>
<p>The second sript <strong>ProperFraction 2.0-HScale-VScale DanRodney.js</strong> is a bit better in that it utilises a combination of horizontal and vertical scaling and baseline shift. Although text resizing is still an issue, due to the baseline shift, which Rodney acknowledges in his notes for the script, he also recommends the quick fix to use after resizing text, which is utilising Find/Change to correct the baseline shift values as required.</p>
<h4>Option 4- Find/Change no OpenType support</h4>
<p>Ok, you want to set fractions for your core body text and don&#8217;t want to pay for a script and are not using an OpenType font with Fractions support?</p>
<p>Well here&#8217;s one way of fixing things&#8230; still a multi-step process&#8230;</p>
<p>Let&#8217;s look at using <strong>Edit &gt; Find/Change</strong> again&#8230; and use GREP once more&#8230;</p>
<p>Set <strong>Find what:</strong><br />
<strong>Wildcards &gt; Any digit</strong> \d<br />
that is <strong>Repeat</strong>ed &gt; <strong>One or More Times</strong> \d+<br />
followed by a slash-character \d+/</p>
<p>Set <strong>Change to:</strong><br />
Select<strong> Found &gt; Found Text</strong> $0</p>
<p>Set <strong>Change Format:<br />
Style Options:</strong> <strong>Character Style</strong> &gt; superscript.</p>
<p><a title="fraction_03.png" href="http://carijansen.com/wp-content/uploads/2008/08/fraction_03.png"><img src="http://carijansen.com/wp-content/uploads/2008/08/fraction_03.png" alt="fraction_03.png" /></a></p>
<p>This superscript Character style, would just set the Basic Character Position to Superscript and if I may recommend, also set the Kerning setting to Optical. If your text is formatted with an OpenType font that supports Denominator and Nominator font settings, then utilise the <strong>Nominator</strong> OpenType feature.</p>
<p>When using Superscript Position setting, you&#8217;ll have to have a bit of a play with the <strong>Edit &gt; Preferences &gt; Advanced Type</strong>, superscript Position and Size settings for the document to ensure you generate the best looking fraction for the font you&#8217;re using.</p>
<p>Next&#8230; click <strong>Change All.</strong></p>
<p>Continue with the following Find/Change command:</p>
<p>Set <strong>Find what:</strong><br />
A slash-character /<br />
followed by <strong>Wildcards &gt; Any digit</strong> / \d<br />
that is <strong>Repeat</strong>ed &gt; <strong>One or More Times</strong> /\d+</p>
<p>Set <strong>Change to:</strong><br />
Select<strong> Found &gt; Found Text</strong> $0</p>
<p>Set <strong>Change Format:<br />
Style Options:</strong> <strong>Character Style</strong> &gt; subscript.</p>
<p>This subscript Character style, would just set the Basic Character Position to Subscript and if I may recommend, also set the Kerning setting to Optical. If your text is formatted with an OpenType font that supports Denominator and Nominator font settings, then utilise the <strong>Denominator</strong> OpenType feature.</p>
<p>When using Subscript Position setting, you&#8217;ll have to have a bit of a play with the <strong>Edit &gt; Preferences &gt; Advanced Type</strong>, superscript Position and Size settings for the document to ensure you generate the best looking fraction for the font you&#8217;re using.</p>
<p>Next, click <strong>Change All.</strong></p>
<p>Ok, so at this stage you would have ended up with a document that has fractions looking like this:</p>
<p><a title="fraction_05.png" href="http://carijansen.com/wp-content/uploads/2008/08/fraction_05.png"><img src="http://carijansen.com/wp-content/uploads/2008/08/fraction_05.png" alt="fraction_05.png" /></a></p>
<p>What we really need to do at this stage is locate all the /-characters in the fractions and turn the default slash character to a &#8220;fraction slash&#8221;.</p>
<p>Set <strong>Find what:</strong><br />
A slash-character /</p>
<p>Set <strong>Find Format:</strong><br />
<strong>Style Options:</strong> <strong>Character Style</strong> &gt; subscript.</p>
<p>What we&#8217;d like to do at this stage is change that slash to a Fraction Slash. We&#8217;ll have to discover what the Unicode character for that is.</p>
<p><a title="fraction_06.png" href="http://carijansen.com/wp-content/uploads/2008/08/fraction_06.png"><img src="http://carijansen.com/wp-content/uploads/2008/08/fraction_06.png" alt="fraction_06.png" /></a></p>
<p>For my font &#8216;2044&#8242;. We&#8217;re now ready to set the Change To settings.</p>
<p>Set <strong>Change to:</strong><br />
\x{2044} (use \x{nnnn} and replace nnnn with the Unicode).</p>
<p>Set <strong>Change Format:</strong><br />
<strong>Style Options:</strong> <strong>Character Style</strong> &gt; [None]. (to remove the subscript style).<br />
<strong>Basic Character Formats: </strong>Normal (to remove the subscript)</p>
<p><strong>Change All&#8230;</strong></p>
<p>Wow, that is a lot of steps to get some fractions set in your document.</p>
<p>Luckily InDesign comes pre-installed with the FindChangeByList.jsx script that allows you to perform multiple finds in ONE hit! So yes, you can perform all of the preceding tasks in a single hit.</p>
<h4>Option 5 &#8211; FindChangeByList</h4>
<p>The FindChangeByList.jsx script utilises a text file located in the InDesign CS3/Scripts/Scripts Panel/Sample Scripts/JavaScripts/FindChangeSupport directory, called FindChangeList.txt as way of setting a series of Find/Changes and applying them as a single command.</p>
<p>If you rename the default .txt file in this directory &#8211; which is the text file containing instructions the script uses by default &#8211; and create a new file called &#8216;fractions.txt&#8217; somewhere, you&#8217;ll prompted to point to the .txt file that contains your Find/Changes when running the script.</p>
<p>Rather than typing out all of the previously set Find/Change settings (option 4), I&#8217;ve attached a sample .txt file for you to use, simply change your style names and the script will work for you too!</p>
<p>The one thing that you&#8217;ll have to do is to adjust your <strong>Preferences &gt; Advanced Type &gt; Character Settings</strong> for Superscript and Subscript to provide the best positioning and sizing for the core font you&#8217;re using.</p>
<p>Here&#8217;s a link to the <a title="fractions.txt" href="http://carijansen.com/wp-content/uploads/2008/08/fractions.txt">fractions.txt</a> file I&#8217;ve created as a sample for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://carijansen.com/2008/08/25/tip075/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Grokking Grep for Geeks Only?</title>
		<link>http://carijansen.com/2008/07/23/grokking-grep-for-geeks-only/</link>
		<comments>http://carijansen.com/2008/07/23/grokking-grep-for-geeks-only/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 09:54:22 +0000</pubDate>
		<dc:creator>Cari Jansen</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[GREP]]></category>
		<category><![CDATA[InDesign]]></category>

		<guid isPermaLink="false">http://carijansen.com/2008/07/23/grokking-grep-for-geeks-only/</guid>
		<description><![CDATA[Kris Coppieters, with the &#8220;work-in-progress&#8221; Grep Grokker GREP Tutor, has added another contribution for those of use out there wanting to learn Grep.  Bedankt daarvoor Kris!
Web-reference: GrepTutor (2008, Rorohiko)
Web-reference: Grep-it-and-sort-it (2008, Cari Jansen)
Web-reference: Grep examples, downloadable InDesign file, with some of the GREP samples I used during last year&#8217;s GREP session at the InDesign Conference in [...]]]></description>
			<content:encoded><![CDATA[<p>Kris Coppieters, with the &#8220;work-in-progress&#8221; Grep Grokker GREP Tutor, has added another contribution for those of use out there wanting to learn Grep.  Bedankt daarvoor Kris!</p>
<p><strong>Web-reference:</strong> <a href="http://www.rorohiko.com/greptutor/GrepTutor.html">GrepTutor</a> (2008, Rorohiko)<br />
<strong>Web-reference:</strong> <a href="http://carijansen.com/2008/02/29/tip-070/">Grep-it-and-sort-it</a> (2008, Cari Jansen)<br />
<strong>Web-reference:</strong> <a href="http://carijansen.com/2007/08/31/indesign-cs3-conference/">Grep examples</a>, downloadable InDesign file, with some of the GREP samples I used during last year&#8217;s GREP session at the InDesign Conference in Melbourne (2008, Cari Jansen)</p>
]]></content:encoded>
			<wfw:commentRss>http://carijansen.com/2008/07/23/grokking-grep-for-geeks-only/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GREP it and sort it</title>
		<link>http://carijansen.com/2008/02/29/tip-070/</link>
		<comments>http://carijansen.com/2008/02/29/tip-070/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 14:53:20 +0000</pubDate>
		<dc:creator>Cari Jansen</dc:creator>
				<category><![CDATA[GREP]]></category>
		<category><![CDATA[InDesign]]></category>
		<category><![CDATA[digitip]]></category>

		<guid isPermaLink="false">http://carijansen.com/2008/02/29/tip070/</guid>
		<description><![CDATA[Digitip 070 &#8211; Adobe InDesign
During the GREP session at the InDesign Conference in Melbourne late August last year, I demoed the &#8220;swapping of first name and surnames&#8221; and have been meaning to add a tip on this to my blog for sometime in which we GREP it and then sort the names alphabetically. Last night&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<h3>Digitip 070 &#8211; Adobe InDesign</h3>
<p>During the GREP session at the InDesign Conference in Melbourne late August last year, I demoed the &#8220;swapping of first name and surnames&#8221; and have been meaning to add a tip on this to my blog for sometime in which we GREP it and then sort the names alphabetically. Last night&#8217;s visit to the Brisbane IDUG, incidently my first visit to an Australian IDUG, in which Iain presented a great series of short InDesign tips and tricks reminded me <img src='http://carijansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <span id="more-248"></span></p>
<h4>The pattern</h4>
<p>GREP is all about search for patterns in text and applying format or pattern changes to found text. Let&#8217;s make the following assumption. A tab-delimited file was placed in InDesign, possibly originating from Excel. Names are listed as: &#8220;FirstName &lt;tab&gt; LastName&#8221;So how do we find these with use of GREP and swap them around? Well, let&#8217;s review the pattern we are looking for: we are looking for &#8220;a series of characters&#8221; that is followed by a &#8220;tab-character&#8221; and ends with another &#8220;series of characters&#8221;. Time to start looking.</p>
<h4>Find/Change</h4>
<p>Select <strong>Find/Change&#8230;</strong> from the Edit menu and click the GREP tab. This change the Find/Change dialog to &#8220;GREP&#8221; mode.</p>
<p><img src="http://carijansen.com/wp-content/uploads/2008/02/070_01.png" alt="070_01.png" /></p>
<h4>Marking Subexpression</h4>
<p>Subexpressions are like smaller &#8217;sub-parts&#8217; of a Find that can be reused for various purposes. To find the above pattern we&#8217;ll use subexpressions. We&#8217;ll need at least two subexpressions. One for the &#8220;first name&#8221; and one for the &#8220;surname&#8221;. Select <strong>Match &gt; Marking Subexpression</strong> from the &#8220;Find What&#8221; Metacharacters menu. Insert two subexpressions.</p>
<p><img src="http://carijansen.com/wp-content/uploads/2008/02/070_02.png" alt="070_02.png" /></p>
<p>A marking subexpression is an expression that may be recalled. Non-marking ones can not be recalled.</p>
<p>&#8220;()()&#8221; is now listed in the &#8220;Find What&#8221; field.The round brackets encapsulate the subexpressions. Between the two subexpression we are looking for a Tab character. Insert the cursor between the two subexpressions. Next Select <strong>Tab</strong> from the &#8220;Find What&#8221; Metacharacter menu.<br />
<img src="http://carijansen.com/wp-content/uploads/2008/02/070_03.png" alt="070_03.png" /></p>
<p>&#8220;()\t()&#8221; is now listed in the &#8220;Find What&#8221; field</p>
<h4>Wildcard characters</h4>
<p>Within each of the subexpressions you&#8217;re now looking for any character that might appear one or more times. As the first name or the surname can contain spaces. Place the cursor between the brackets of the first subexpression and select <strong>Wildcards &gt; Any Character</strong> from the &#8220;Find What&#8221; Metacharacters menu. Repeat this for the second subexpression.</p>
<p><img src="http://carijansen.com/wp-content/uploads/2008/02/070_04.png" alt="070_04.png" /></p>
<p>&#8220;(.)\t(.)&#8221; is now listed in the &#8220;Find What&#8221; field</p>
<h4>One or More times</h4>
<p>Your&#8217;re not looking for single character first or surnames but for one or more characters.Place the behind the &#8216;.&#8217; inside the subexpression. Select <strong>Repeat &gt; One or More Times</strong> from the &#8220;Find What&#8221; Metacharacters menu. Repeat this for the second subexpression.</p>
<p><img src="http://carijansen.com/wp-content/uploads/2008/03/070_05.png" alt="070_05.png" /></p>
<p>&#8220;(.+)\t(.+)&#8221; is now listed in the &#8220;Find What&#8221; field</p>
<h4>Change</h4>
<p>We&#8217;re now ready to make the change. When we are finding things we are finding a pattern that contains two subexpressions. In the &#8220;Change To&#8221; field we want to return the second expression first and the first expression second. Insert your cursor in the &#8220;Change To&#8221; Field. Select <strong>Found &gt; Found 2 </strong>from the &#8220;Change To&#8221; Metacharacter menu to return the second subexpression info first, then Select <strong>Found &gt; Found 1.</strong></p>
<p><img src="http://carijansen.com/wp-content/uploads/2008/02/070_06.png" alt="070_06.png" /></p>
<p>&#8220;$2$1&#8243; is now listed in the &#8220;Change To&#8221; field. I&#8217;d like for the Names Listing to be formatted using the NamesList paragraph style. This paragraph style uses a nested style called &#8220;Bold&#8221; that formats the surname in &#8220;Bold&#8221;. However as surnames could consist of more than one word we&#8217;d need to insert another type of delimiter through which we can set the change for Nested Styles. The End Nested Style Character Here will do the job <img src='http://carijansen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  To prep the changed text for this, insert your cursor between the $2 and $1. Select <strong>Other &gt; End Nested Style Character Here</strong> from the &#8220;Change To&#8221; Metacharacters menu.<br />
<img src="http://carijansen.com/wp-content/uploads/2008/02/070_07.png" alt="070_07.png" /><br />
Add a Space behind the ~h to prevent the first and surnames from becoming one word.<br />
&#8220;$2~h $1&#8243; is now listed in the &#8220;Change To&#8221; field.</p>
<h4>Change Formatting</h4>
<p>You&#8217;re ready to set the Change Formatting now. Click the Format Settings button next to the Change Formatting to set the Change Format settings.<br />
<img src="http://carijansen.com/wp-content/uploads/2008/02/070_08.png" alt="070_08.png" /></p>
<p>If you don&#8217;t see this part of the dialog, click <strong>More Options</strong>.</p>
<p><img src="http://carijansen.com/wp-content/uploads/2008/03/070_091.png" alt="070_091.png" /></p>
<p>Set the Paragraph style to &#8220;NamesList&#8221;, click <strong>OK.</strong></p>
<h4>Making the change</h4>
<p>You are now ready to make the change. Select the Names Listing text you&#8217;d like to apply the change to. Ensure the Search option is set to &#8220;Selection&#8221;.</p>
<p><img src="http://carijansen.com/wp-content/uploads/2008/02/070_10.png" alt="070_10.png" /></p>
<p>Next press <strong>Change All.</strong></p>
<p><img src="http://carijansen.com/wp-content/uploads/2008/02/070_11l.png" alt="070_11l.png" /><br />
<img src="http://carijansen.com/wp-content/uploads/2008/02/070_11r.png" alt="070_11r.png" /></p>
<h4>Sorting the paragraphs</h4>
<p>Time to sort the paragraphs now. highlight the names listing again, and Show the <strong>Scripts</strong> panel (<strong>Window &gt; Automation</strong>). From the Application/JavaScripts/Sample Script double click &#8220;Sort Paragraphs&#8221;.</p>
<p><img src="http://carijansen.com/wp-content/uploads/2008/02/070_12.png" alt="070_12.png" /></p>
<p>You&#8217;re now done. Listing now displays Surname Lastname and is sorted in alphabetical order.</p>
]]></content:encoded>
			<wfw:commentRss>http://carijansen.com/2008/02/29/tip-070/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>InDesign CS3 Conference</title>
		<link>http://carijansen.com/2007/08/31/indesign-cs3-conference/</link>
		<comments>http://carijansen.com/2007/08/31/indesign-cs3-conference/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 13:39:43 +0000</pubDate>
		<dc:creator>Cari Jansen</dc:creator>
				<category><![CDATA[GREP]]></category>
		<category><![CDATA[InDesign]]></category>

		<guid isPermaLink="false">http://carijansen.com/?p=80</guid>
		<description><![CDATA[First of all, thank you to everyone who attended the GREP and XML sessions for InDesign CS3 I presented at the InDesign Conference in Melbourne yesterday and today, also thank you for all the kind compliments. As promised yesterday I would upload the actual InDesign document I used for the GREP session. The web-link below [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, thank you to everyone who attended the GREP and XML sessions for InDesign CS3 I presented at the InDesign Conference in Melbourne yesterday and today, also thank you for all the kind compliments. As promised yesterday I would upload the actual InDesign document I used for the GREP session. The web-link below will give you access to the InDesign file. Right-click, then Save Target As will enable you to save the file to your computer. <span id="more-80"></span>Please note that I&#8217;ve had to remove the images from this file to prevent any copyright issues. These files are uploaded for personal-usage and self-education only.</p>
<p class="blog_text"><strong>Web Reference:</strong> <a href="http://carijansen.com/wp-content/myfiles/2007/GREP%20Samples.zip" target="_blank">InDesignCS3 GREP examples</a> (2007, Cari Jansen)</p>
]]></content:encoded>
			<wfw:commentRss>http://carijansen.com/2007/08/31/indesign-cs3-conference/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
