<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Automatically Applying Character Styles to Prices</title>
	<atom:link href="http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/feed" rel="self" type="application/rss+xml" />
	<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php</link>
	<description>InDesignSecrets Blog and Podcast</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:34:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ArtDirector</title>
		<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/comment-page-1#comment-483251</link>
		<dc:creator>ArtDirector</dc:creator>
		<pubDate>Thu, 13 May 2010 13:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/?p=3098#comment-483251</guid>
		<description>Yep... it sounds right :-)

Thanks again for your precious help!</description>
		<content:encoded><![CDATA[<p>Yep&#8230; it sounds right <img src='http://indesignsecrets.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thanks again for your precious help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jongware</title>
		<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/comment-page-1#comment-483250</link>
		<dc:creator>Jongware</dc:creator>
		<pubDate>Thu, 13 May 2010 13:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/?p=3098#comment-483250</guid>
		<description>Well, you need another set of GREP styles ... I&#039;d recommend making another paragraph style for those.

I think it might &lt;em&gt;just&lt;em&gt; be possible to try and write a single set of GREPs that differentiate for  a dash somewhere in the text, but that&#039;s really stretching ID&#039;s GREP caps. GREP styles get applied &quot;as you go&quot;, and making them overly complicated would certainly slow down your entire system at some point.

For this simpler case, I would use a nested style; you can apply the text style &quot;up to €&quot;, so it doesn&#039;t matter how many words are before it.</description>
		<content:encoded><![CDATA[<p>Well, you need another set of GREP styles &#8230; I&#8217;d recommend making another paragraph style for those.</p>
<p>I think it might <em>just</em><em> be possible to try and write a single set of GREPs that differentiate for  a dash somewhere in the text, but that&#8217;s really stretching ID&#8217;s GREP caps. GREP styles get applied &#8220;as you go&#8221;, and making them overly complicated would certainly slow down your entire system at some point.</p>
<p>For this simpler case, I would use a nested style; you can apply the text style &#8220;up to €&#8221;, so it doesn&#8217;t matter how many words are before it.</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ArtDirector</title>
		<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/comment-page-1#comment-483248</link>
		<dc:creator>ArtDirector</dc:creator>
		<pubDate>Thu, 13 May 2010 12:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/?p=3098#comment-483248</guid>
		<description>Just another little question...

What if I decide to have only the Discount Price? 
If I change from

[Sentence A] [€XX.XXX,XX] – [Sentence B] [€YY.YYY,YY]

to 

[Sentence B] [€YY.YYY,YY]


the [Sentence B] is formatted as [Sentence A] (while the price maintans the right formatting) and I do not want that...
If you want, I can send you a .indd file as example...

Really really thank you in advance!</description>
		<content:encoded><![CDATA[<p>Just another little question&#8230;</p>
<p>What if I decide to have only the Discount Price?<br />
If I change from</p>
<p>[Sentence A] [€XX.XXX,XX] – [Sentence B] [€YY.YYY,YY]</p>
<p>to </p>
<p>[Sentence B] [€YY.YYY,YY]</p>
<p>the [Sentence B] is formatted as [Sentence A] (while the price maintans the right formatting) and I do not want that&#8230;<br />
If you want, I can send you a .indd file as example&#8230;</p>
<p>Really really thank you in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ArtDirector</title>
		<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/comment-page-1#comment-483247</link>
		<dc:creator>ArtDirector</dc:creator>
		<pubDate>Thu, 13 May 2010 12:29:23 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/?p=3098#comment-483247</guid>
		<description>GREAT!

It works perfectly... How can I thank you?</description>
		<content:encoded><![CDATA[<p>GREAT!</p>
<p>It works perfectly&#8230; How can I thank you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jongware</title>
		<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/comment-page-1#comment-483239</link>
		<dc:creator>Jongware</dc:creator>
		<pubDate>Wed, 12 May 2010 23:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/?p=3098#comment-483239</guid>
		<description>Blast! Foiled again ... You only need &lt;em&gt;one single backslash&lt;/em&gt; before each of the &#039;\w&#039; and &#039;\d&#039; codes.</description>
		<content:encoded><![CDATA[<p>Blast! Foiled again &#8230; You only need <em>one single backslash</em> before each of the &#8216;\w&#8217; and &#8216;\d&#8217; codes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jongware</title>
		<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/comment-page-1#comment-483238</link>
		<dc:creator>Jongware</dc:creator>
		<pubDate>Wed, 12 May 2010 23:44:48 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/?p=3098#comment-483238</guid>
		<description>Ah, okay. This is the same, using GREP styles. Take care not to end the lines with one or more spaces; the final digits test relies on an end-of-line.

“italic white” to “^[\\w ]+”; “italic white+und” to “€[\\d.]+,(?=\\d\\d -)”; “italic white apex” to “(?&lt;=,)\\d\\d(?= -)”; “plain white” to “ - “; “bold black” to “(?&lt;=- ).+,”; “bold apex” to “(?&lt;=,)\\d\\d$”

(I hope all backslashes come through first time...)</description>
		<content:encoded><![CDATA[<p>Ah, okay. This is the same, using GREP styles. Take care not to end the lines with one or more spaces; the final digits test relies on an end-of-line.</p>
<p>“italic white” to “^[\\w ]+”; “italic white+und” to “€[\\d.]+,(?=\\d\\d -)”; “italic white apex” to “(?&lt;=,)\\d\\d(?= -)”; “plain white” to “ &#8211; “; “bold black” to “(?&lt;=- ).+,”; “bold apex” to “(?&lt;=,)\\d\\d$”</p>
<p>(I hope all backslashes come through first time&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ArtDirector</title>
		<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/comment-page-1#comment-483236</link>
		<dc:creator>ArtDirector</dc:creator>
		<pubDate>Wed, 12 May 2010 22:23:22 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/?p=3098#comment-483236</guid>
		<description>Hi Jongware and thanks for your reply...

Your suggestion is good and I also used it. The trouble is that the words &quot;Original Pricee&quot; and &quot;Discount Price&quot; can change occasionally. The data are fetched from an Excel file and sometimes the &quot;Original Price&quot; can be &quot;Prezzo di listino&quot; (it&#039;s an Italian catalogue) or &quot;Prezzo originale&quot; or simply &quot;Listino&quot; and the &quot;Discount Price&quot; can be &quot;Super Offerta&quot; or &quot;Prezzo Super Scontato&quot;, etc... As you can see the words can vary in number so I cannot apply the rule on tha basis you suggest.

The standard line is something like that:
[Sentence A] [€XX.XXX,XX] - [Sentence B] [€YY.YYY,YY]
where Sentence A and B can have variable words and prices can be from thousands to hundreds of thousands... The only fixed character is the [-] between the two prices... And remember that the 2 digits after the comma should inherit the style of the previous digits but also be superscript (or apex)...

Hope that everything is clear :-)

Thanks again for your nice support!</description>
		<content:encoded><![CDATA[<p>Hi Jongware and thanks for your reply&#8230;</p>
<p>Your suggestion is good and I also used it. The trouble is that the words &#8220;Original Pricee&#8221; and &#8220;Discount Price&#8221; can change occasionally. The data are fetched from an Excel file and sometimes the &#8220;Original Price&#8221; can be &#8220;Prezzo di listino&#8221; (it&#8217;s an Italian catalogue) or &#8220;Prezzo originale&#8221; or simply &#8220;Listino&#8221; and the &#8220;Discount Price&#8221; can be &#8220;Super Offerta&#8221; or &#8220;Prezzo Super Scontato&#8221;, etc&#8230; As you can see the words can vary in number so I cannot apply the rule on tha basis you suggest.</p>
<p>The standard line is something like that:<br />
[Sentence A] [€XX.XXX,XX] &#8211; [Sentence B] [€YY.YYY,YY]<br />
where Sentence A and B can have variable words and prices can be from thousands to hundreds of thousands&#8230; The only fixed character is the [-] between the two prices&#8230; And remember that the 2 digits after the comma should inherit the style of the previous digits but also be superscript (or apex)&#8230;</p>
<p>Hope that everything is clear <img src='http://indesignsecrets.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thanks again for your nice support!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jongware</title>
		<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/comment-page-1#comment-483235</link>
		<dc:creator>Jongware</dc:creator>
		<pubDate>Wed, 12 May 2010 20:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/?p=3098#comment-483235</guid>
		<description>GREP styles sure could do that, but ... so can nested styles!

GREP styles are ideal when the text it should mark may occur anywhere inside a paragraph. However, since this is  a simple list of &lt;em&gt;style A&lt;/em&gt; for &lt;em&gt;x&lt;/em&gt; words, &lt;em&gt;style B&lt;/em&gt; for the next &lt;em&gt;y&lt;/em&gt; words etc., nested styles are far more economical, and easier to set up as well.

Go to this style&#039;s style definition, Nested Styles section, switch on Preview, and add the following definitions (creating the appropriate character styles when necessary):
italic through 2 Words
italic + underline through 1 ,
apex through 1 Words
white text through 1 Words
bold through 1 ,
apex bold through 1 Words

The single comma in the 2nd and 5th entries are what you actually have to enter, rather than selecting something from the drop down menu.</description>
		<content:encoded><![CDATA[<p>GREP styles sure could do that, but &#8230; so can nested styles!</p>
<p>GREP styles are ideal when the text it should mark may occur anywhere inside a paragraph. However, since this is  a simple list of <em>style A</em> for <em>x</em> words, <em>style B</em> for the next <em>y</em> words etc., nested styles are far more economical, and easier to set up as well.</p>
<p>Go to this style&#8217;s style definition, Nested Styles section, switch on Preview, and add the following definitions (creating the appropriate character styles when necessary):<br />
italic through 2 Words<br />
italic + underline through 1 ,<br />
apex through 1 Words<br />
white text through 1 Words<br />
bold through 1 ,<br />
apex bold through 1 Words</p>
<p>The single comma in the 2nd and 5th entries are what you actually have to enter, rather than selecting something from the drop down menu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ArtDirector</title>
		<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/comment-page-1#comment-483234</link>
		<dc:creator>ArtDirector</dc:creator>
		<pubDate>Wed, 12 May 2010 19:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/?p=3098#comment-483234</guid>
		<description>Hallo everyone...

GREP Styles look great and exactly what I was looking for...

But here&#039;s the challenge: I have to format a paragraph where I have 2 prices (full and discount)...

The two prices should be on the sme line, so here&#039;s what I have:

Original Price €XX.XXX,XX - Discount Price €YY.YYY,YY

Now, I need that:

• [Original Price] is formatted with italic white text
• [€XX.XXX,] is formatted with italic white and underlined text
• [XX] is italic white underlined apex text
• [-] is white plain text
 [Discount Price €YY.YYY,] is formatted with bold black text
• [YY] is bold black apex text

Tthe prices can vary from 1.000,00 to 100.000,00

Any idea of which code I should use?


Thanks in advance guys!</description>
		<content:encoded><![CDATA[<p>Hallo everyone&#8230;</p>
<p>GREP Styles look great and exactly what I was looking for&#8230;</p>
<p>But here&#8217;s the challenge: I have to format a paragraph where I have 2 prices (full and discount)&#8230;</p>
<p>The two prices should be on the sme line, so here&#8217;s what I have:</p>
<p>Original Price €XX.XXX,XX &#8211; Discount Price €YY.YYY,YY</p>
<p>Now, I need that:</p>
<p>• [Original Price] is formatted with italic white text<br />
• [€XX.XXX,] is formatted with italic white and underlined text<br />
• [XX] is italic white underlined apex text<br />
• [-] is white plain text<br />
 [Discount Price €YY.YYY,] is formatted with bold black text<br />
• [YY] is bold black apex text</p>
<p>Tthe prices can vary from 1.000,00 to 100.000,00</p>
<p>Any idea of which code I should use?</p>
<p>Thanks in advance guys!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland</title>
		<link>http://indesignsecrets.com/automatically-applying-character-styles-to-prices.php/comment-page-1#comment-477913</link>
		<dc:creator>Roland</dc:creator>
		<pubDate>Mon, 14 Sep 2009 06:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/?p=3098#comment-477913</guid>
		<description>Here in Holland prices are formatted € X.XXX,XX (points and commas are switched) so for the catalogs I make, I set up nested styles so &quot;style A&quot; (or &quot;none&quot;) is applied up to €, &quot;style B&quot; applied through the comma and &quot;style C&quot; is applied to the two characters after the comma. This lets me set a separate size and baseline shift for the digits, giving a look that&#039;s easier to read and highly accepted over here.
These aren&#039;t prices that&#039;re found in-line though, but that&#039;s the nature of catalogs :)</description>
		<content:encoded><![CDATA[<p>Here in Holland prices are formatted € X.XXX,XX (points and commas are switched) so for the catalogs I make, I set up nested styles so &#8220;style A&#8221; (or &#8220;none&#8221;) is applied up to €, &#8220;style B&#8221; applied through the comma and &#8220;style C&#8221; is applied to the two characters after the comma. This lets me set a separate size and baseline shift for the digits, giving a look that&#8217;s easier to read and highly accepted over here.<br />
These aren&#8217;t prices that&#8217;re found in-line though, but that&#8217;s the nature of catalogs <img src='http://indesignsecrets.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching using disk

Served from: indesignsecrets.com @ 2012-02-10 00:31:58 -->
