<?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>DPAO</title>
	<atom:link href="http://www.dpao.fr/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dpao.fr/blog</link>
	<description>David Pitois est Aussi Online !</description>
	<lastBuildDate>Sun, 19 Jun 2011 15:05:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>dpaTOR</title>
		<link>http://www.dpao.fr/blog/2009/11/21/dpator/</link>
		<comments>http://www.dpao.fr/blog/2009/11/21/dpator/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 16:57:33 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[TV]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.dpao.fr/blog/?p=153</guid>
		<description><![CDATA[Ou comment relever le petit détail qui fait passer le spectateur pour un geek.]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-154 alignright" title="dpaToR" src="http://www.dpao.fr/blog/wp-content/uploads/2009/11/dpaToR.jpg" alt="dpaToR" width="80" height="80" />Le titre incompréhensible, et surtout qui ne veut rien dire, c&#8217;est juste parce que j&#8217;ai achevé la première saison des <a title="Chroniques de Sarah Connor sur Wikipedia (FR)" href="http://fr.wikipedia.org/wiki/The_Sarah_Connor_Chronicles" target="_blank">Chroniques de Sarah Connor </a>et que par conséquent, tout ce qui se finir par -TOR ça sonne bien dans mes oreilles ;).</p>
<p>Le petit teasing de texte, lui c&#8217;est juste parce que dans un extrait de 2-3 secondes, j&#8217;arrive à relever un détail qui me fait peur sur ma santé mentale&#8230; et encore je n&#8217;étais pas aller sur le net avant pour trouver ce petit easter-egg dans la série.</p>
<p>Mais de quoi suis-je en train de parler ? de rien, je ne fais que remplir la page web pour y afficher la petite image extraite du second épisode, au moment où John sort du centre commercial où il est entré pour consulter des informations sur le net dans le rayon informatique.</p>
<p>A vous les screenshots (j&#8217;aurais préféré <em>A Cognacq-Jay</em>, mais c&#8217;est copyrighted by Zitron! Léon, si tu nous entends ;) ).<br />
C&#8217;est au niveau de la porte (pour les aveugles).</p>
<p style="text-align: center;"><a href="http://www.dpao.fr/blog/wp-content/uploads/2009/11/Sarah_1x02.jpg" target="_blank"><img class="size-medium wp-image-155 aligncenter" title="Sarah_1x02" src="http://www.dpao.fr/blog/wp-content/uploads/2009/11/Sarah_1x02-300x187.jpg" alt="Sarah_1x02" width="300" height="187" /></a></p>
<p><span id="more-153"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpao.fr/blog/2009/11/21/dpator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acrobat &amp; les versions de PDF</title>
		<link>http://www.dpao.fr/blog/2009/11/21/acropdf/</link>
		<comments>http://www.dpao.fr/blog/2009/11/21/acropdf/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 00:07:45 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[PAO]]></category>
		<category><![CDATA[Acrobat]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://www.dpao.fr/blog/?p=140</guid>
		<description><![CDATA[Un fichier PDF, c'est tout simple, il suffit de l'ouvrir et de le consulter... si!
Mais par contre, il existe plusieurs versions, de la version 1.3 à l'actuelle 1.7.]]></description>
			<content:encoded><![CDATA[<p><em><img src="http://www.dpao.fr/blog/wp-content/uploads/2009/11/Acrobat.gif" alt="Acrobat" title="Acrobat" width="89" height="80" class="alignleft size-full wp-image-151" />Un fichier PDF, c&#8217;est tout simple:<br />
il suffit de l&#8217;ouvrir et de le consulter&#8230; si!</em><br />
<em>Mais par contre, il existe plusieurs versions,<br />
de la version 1.3 à l&#8217;actuelle 1.7.</em></p>
<h2>Quelle est la version de mon PDF?</h2>
<p>Le petit moyen mnémotechnique pour retenir quelle version est produite depuis Acrobat et son Distiller il suffit de soustraire 1 à la version du logiciel.<br />
Bien entendu, pour ne pas faire simple, la dernière version d&#8217;Acrobat (à savoir la 9) ne suit pas cette règle. Donc, nous avons pour les principales versions: PDF 1.3 (dit compatible Acrobat 4), 1.4 (Acrobat 5), 1.5 (Acrobat 6), 1.6 (Acrobat 7) et enfin 1.7 (Acrobat 8 et 9).</p>
<h2>Quelles sont les différences &laquo;&nbsp;notables&nbsp;&raquo; entre les versions?</h2>
<h4>Le PDF 1.3 (sortie en 1999)</h4>
<p>C&#8217;est celui que je qualifie de PDF standard et permettant une compatibilité maximale dans le mileu prépresse. Il permet en effet de répondre aux principaux besoin pour fournir un PDF destiné à l&#8217;impression industrielle, avec notamment la gestion des couleurs d&#8217;accompagnement (ton direct / Pantone). La gestion des couleurs CMJN &amp; l&#8217;inclusion des fontes étant déjà gérées par les précédentes version.<br />
De ce fait, c&#8217;est la version qui a permis au PDF de rentrer dans ce domaine graphique. Ainsi, les premiers RIP gérants le PDF apparaissent et quelques uns d&#8217;entre eux sont toujours en service, d&#8217;où ma qualification de &laquo;&nbsp;standard&nbsp;&raquo;: si il passait dans un RIP en 1999, il passera aujourd&#8217;hui!</p>
<h4>Le PDF 1.4 (sortie 2001)</h4>
<p>En gardant les mêmes bases que la précédente version, il y a quelques petits ajouts sympatiques comme la transparence qui peut être conservée.<br />
Par contre, un PDF 1.4 ne peut pas être produit par le Distiller, bien que l&#8217;on puisse opter pour cette version dans les options de réglages, si l&#8217;on passe par un fichier PostScript pour générer le PDF (le PostScript est &laquo;&nbsp;limité&nbsp;&raquo; à ce niveau).</p>
<h4>Le PDF 1.5 (sortie 2003)</h4>
<p>On reprend les mêmes et on recommence&#8230; original! Isn&#8217;t it?<br />
Par contre, on peut également avoir des calques à présent dans nos PDF, ce n&#8217;est pas utile tous les jours, mais dans le cas d&#8217;un versionning multilangue cela peut réduire le nombre de document à transmettre et à archiver.</p>
<h4>Le PDF 1.6 (sortie 2005) et le PDF 1.7 (sortie 2005)</h4>
<p>Rien de notable à ma connaissance, si ce n&#8217;est l&#8217;intégration possible d&#8217;objets 3D (dès la version 1.6), c&#8217;est sympa en démo, mais pour le monde graphique traditionnel (papier) je ne vois pas trop l&#8217;utilité!<br />
Un travail de normalisation ISO est également mis en oeuvre, avec des normes PDF/A. Il semblerait d&#8217;ailleurs que ce soit la source de la fin du moyen mnémotechnique, le format PDF étant normalisé, il n&#8217;est plus possible à Adobe de faire ce que bon leur semble et incrémenter ainsi les versions.</p>
<h2>C&#8217;est bien beau tout cela, mais je dois faire quoi?</h2>
<p>Pour une utilisation prépresse traditionnelle, les versions 1.3 et 1.4 sont ce qu&#8217;il y aura de plus &laquo;&nbsp;sécur&#8217;&nbsp;&raquo;, il y aura le moins de surprises possibles avec le 1.3, par contre le document PDF 1.4 pourra être un peu plus léger dans le cas d&#8217;utilisation &laquo;&nbsp;abusive&nbsp;&raquo; de transparence dans la maquette.<br />
Pour un envoi électronique simple (par mail, site web ou autre) où seule la lisibilité du document est concernée, la version importera moins mais il est à noter que les versions plus récente produisent souvent des fichiers de poids plus faibles (les algo de compression s&#8217;améliorant avec le temps et les versions d&#8217;Acrobat).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpao.fr/blog/2009/11/21/acropdf/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>InDesign CS4, bug d&#8217;assemblage</title>
		<link>http://www.dpao.fr/blog/2009/07/22/indesign-cs4-bug-package/</link>
		<comments>http://www.dpao.fr/blog/2009/07/22/indesign-cs4-bug-package/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 20:48:27 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[PAO]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[InDesign]]></category>

		<guid isPermaLink="false">http://www.dpao.fr/blog/?p=134</guid>
		<description><![CDATA[Elle commence à avoir un peu de bouteille cette Creative Suite 4, mais n&#8217;est toujours pas exempte de bugs. J&#8217;ai toujours des problèmes pour sélectionner les différentes boxes des PDF lors de l&#8217;import, il faut passer par un ré-enregistrement sous Acrobat afin d&#8217;en retrouver trace dans les options lors de l&#8217;import du fichier PDF. Dernier [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-133" title="IDCS4" src="http://www.dpao.fr/blog/wp-content/uploads/2009/07/IDCS4.png" alt="IDCS4" width="92" height="92" /> Elle commence à avoir un peu de bouteille cette Creative Suite 4, mais n&#8217;est toujours pas exempte de bugs.</p>
<p>J&#8217;ai toujours des problèmes pour sélectionner les différentes <em>boxes </em>des PDF lors de l&#8217;import, il faut passer par un ré-enregistrement sous Acrobat afin d&#8217;en retrouver trace dans les options lors de l&#8217;import du fichier PDF.</p>
<p>Dernier petit bug décelé lors de la réalisation d&#8217;une gravure en provenance de l&#8217;extérieur&#8230; les liens manquants ! Sur une soixantaine de liens utilisés dans la mise en page, plus d&#8217;une douzaine absents du dossier <em>links </em>réalisé à l&#8217;aide de la fonction d&#8217;assemblage, la fonction destinée à ne pas avoir de liens manquants lors du transfert d&#8217;un dossier. Un comble !</p>
<p>En réalisant divers essais sur ma machine de travail, je n&#8217;arrive pas à reproduire l&#8217;erreur. Pourtant c&#8217;est le 3e dossier consécutif que j&#8217;ai avec des liens manquants.<br />
Après m&#8217;être assuré du process suivi en externe pour préparer cela, j&#8217;en déduis que c&#8217;est bien InDesign qui bug à l&#8217;assemblage, <em>aller zou! on file googler!</em></p>
<p>Et là, jackpot ! Premier résultat sur un sujet des forums Adobe, ce n&#8217;est pas un cas isolé !<br />
Ok, on lit, il va bien y avoir une solution autre que d&#8217;écrire un petit script d&#8217;assemblage (quoique, ça fait longtemps que je n&#8217;avais rien écrit&#8230; ;) ).<br />
Premières constations, Adobe a publier une mise à jour 6.0.2 qui corrigerait le bug&#8230; ah ben non, 3 réponses plus bas, il y a toujours des constats d&#8217;erreur d&#8217;assemblage ! Arg !<br />
Bon, on continue de lire (mais par la fin cette fois), et là <em>c&#8217;est gagné</em> (comme dirait notre amie <a title="NE PAS CLIQUER!" href="http://fr.wikipedia.org/wiki/Dora_l%27exploratrice" target="_blank">Dora</a>), la mise à jour 6.0.3 semble bien avoir éliminé ce problème.</p>
<p>Après vérification, suis-je à jour: oui, je mets toujours mes applications à jour, ma seule mauvaise surprise ayant été la mise à jour Java sur Mac OS X.5 qui m&#8217;a plombé toutes les préférences des applications, sinon que des bonnes surprises.<br />
Par contre, en externe, c&#8217;était toujours la version du DVD qui était utilisée&#8230; oups ! Après mise à jour, l&#8217;assemblage s&#8217;est déroulé correctement.</p>
<p>Morale: toujours penser à mettre à jour ses logiciels de travail !<br />
Enfin lorsque c&#8217;est possible, ça me fait penser à une histoire de Silverlight&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpao.fr/blog/2009/07/22/indesign-cs4-bug-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InDesign Story</title>
		<link>http://www.dpao.fr/blog/2009/07/09/id-story/</link>
		<comments>http://www.dpao.fr/blog/2009/07/09/id-story/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 17:57:33 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Automatisation]]></category>
		<category><![CDATA[PAO]]></category>
		<category><![CDATA[InDesign]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.dpao.fr/blog/?p=123</guid>
		<description><![CDATA[Non, il ne s'agit pas d'une énième émission de télé-réalité, mais bien de "story" dans InDesign. Pour rappel, c'est ainsi que sont nommés les textes lors de l'utilisation de script avec ce logiciel (ou peut être XPress et pas lui).]]></description>
			<content:encoded><![CDATA[<p>Pour les lecteurs du billets concernant Tiddlywiki, c&#8217;est peut être du réchaffé si ces derniers ont poussé à lire le TW de l&#8217;article, sinon tant pis, et de toutes façons il n&#8217;y a pas de lien direct, ici il s&#8217;agit de modifier la langue utilisée par le logiciel.</p>
<p>Sous QuarkXPress, j&#8217;ai longtemps réceptionné des documents en provenance d&#8217;outre-Rhin qu&#8217;il nous fallait traduire en français. Un des problèmes était que de base le logiciel utilisait la langue d&#8217;origine du document comme référence de dictionnaire de césure. Bien que la méthode de mise à jour des styles eut été une solution propre, elle n&#8217;a été que vaguement envisagé, les styles étaient bien utilisés, mais variaient d&#8217;une parution à l&#8217;autre, voir même document à l&#8217;autre. Il fallait donc plus radical et efficace.<br />
Facile ! A l&#8217;aide d&#8217;une bibliothèque on glisse un petit bloc texte type dans la maquette. Ce bloc texte ayant, bien entendu, épuré de tout style afin de ne pas encombrer le document de travail, et bien sur, la langue du paragraphe contenu réglée sur celle de destination (ici français pour ceux qui ne suivent déjà plus!). Il n&#8217;y a plus qu&#8217;à effectuer un <em>Enregistrer sous </em>et activer la langue unique pour modifier tout le document dans la langue désirée.</p>
<p>Sous InDesign, j&#8217;ai bien cherché, mais je n&#8217;ai rien trouvé! Soit! Une occasion de plus jouer avec des scripts. En plus cette fois, les fichiers proviennent d&#8217;outre-Manche, c&#8217;est pas gagné pour leur faire comprendre que le texte français qu&#8217;ils maquettent doit utiliser des règles de césures issues d&#8217;un dictionnaire français! Ici pas d&#8217;option autre que mot par mot, paragraphe par paragraphe, style par style ou même bloc par bloc.</p>
<p>J&#8217;ai profité de ce petit contre-temps pour aller une fois de plus du <a title="Une connerie de plus..." href="http://www.deezer.com/track/606311" target="_blank">côté de chez Swann</a>, puis du Javascript pour approfondir encore un peu mes expériences.<br />
L&#8217;option choisie est de laisser le choix du champ d&#8217;application des modification:</p>
<ul>
<li>tous les styles de paragraphes</li>
<li>tous les styles de caractères</li>
<li>tous les paragraphes</li>
</ul>
<p>Ce découpage permettant de voir un peu les différents côtés identiques (sic!) de l&#8217;application d&#8217;une langue dans InDesign via des scripts. L&#8217;ordre me parait également logique dans un esprit de nettoyage logique du texte les styles avant les paragraphes afin de préserver les liens de style au maximum en cas de modification à venir.</p>
<p>Première étape, une fenêtre dialogue permettant le choix du champ d&#8217;application, si un document est ouvert:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> main<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>app.<span style="color: #660066;">documents</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      <span style="color: #003366; font-weight: bold;">var</span> myDialog <span style="color: #339933;">=</span> app.<span style="color: #660066;">dialogs</span>.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">name</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Conversion langue FRANCAIS&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000066; font-weight: bold;">with</span><span style="color: #009900;">&#40;</span>myDialog.<span style="color: #660066;">dialogColumns</span>.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        staticTexts.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>staticLabel<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Appliquer aux éléments:&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> sP <span style="color: #339933;">=</span> checkboxControls.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>staticLabel<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Style de paragraphe&quot;</span><span style="color: #339933;">,</span> checkedState<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> sC <span style="color: #339933;">=</span> checkboxControls.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>staticLabel<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Style de caractères&quot;</span><span style="color: #339933;">,</span> checkedState<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> aP <span style="color: #339933;">=</span> checkboxControls.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>staticLabel<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Tous les paragraphes&quot;</span><span style="color: #339933;">,</span> checkedState<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span></pre></div></div>

<p>Seconde étape, on effectue les changements sur les items désirés en se basant sur l&#8217;état des checkbox précédents:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>myDialog.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> sP<span style="color: #339933;">,</span> sC<span style="color: #339933;">,</span> aP<span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>sP.<span style="color: #660066;">checkedState</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>myCounter <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> myCounter <span style="color: #339933;">&lt;</span> app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">paragraphStyles</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> myCounter<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">paragraphStyles</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span>myCounter<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appliedLanguage</span> <span style="color: #339933;">=</span> app.<span style="color: #660066;">languagesWithVendors</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;French&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>sC.<span style="color: #660066;">checkedState</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>myCounter <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> myCounter <span style="color: #339933;">&lt;</span> app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">characterStyles</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> myCounter<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">characterStyles</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span>myCounter<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appliedLanguage</span> <span style="color: #339933;">=</span> app.<span style="color: #660066;">languagesWithVendors</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;French&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>aP.<span style="color: #660066;">checkedState</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>myCounter <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> myCounter <span style="color: #339933;">&lt;</span> app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">stories</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> myCounter<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">stories</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span>myCounter<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appliedLanguage</span> <span style="color: #339933;">=</span> app.<span style="color: #660066;">languagesWithVendors</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;French&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>Et pour finir, on n&#8217;oublie pas de détruire la fenêtre de dialogue, sinon avec le temps InDesign va un peu craquer!</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">myDialog.<span style="color: #660066;">destroy</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Au final, le script complet permettant de convertir un document en français est le suivant:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> main<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>app.<span style="color: #660066;">documents</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      <span style="color: #003366; font-weight: bold;">var</span> myDialog <span style="color: #339933;">=</span> app.<span style="color: #660066;">dialogs</span>.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">name</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Conversion langue FRANCAIS&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000066; font-weight: bold;">with</span><span style="color: #009900;">&#40;</span>myDialog.<span style="color: #660066;">dialogColumns</span>.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        staticTexts.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>staticLabel<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Appliquer aux éléments:&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> sP <span style="color: #339933;">=</span> checkboxControls.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>staticLabel<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Style de paragraphe&quot;</span><span style="color: #339933;">,</span> checkedState<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> sC <span style="color: #339933;">=</span> checkboxControls.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>staticLabel<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Style de caractères&quot;</span><span style="color: #339933;">,</span> checkedState<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> aP <span style="color: #339933;">=</span> checkboxControls.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>staticLabel<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Tous les paragraphes&quot;</span><span style="color: #339933;">,</span> checkedState<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>myDialog.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> sP<span style="color: #339933;">,</span> sC<span style="color: #339933;">,</span> aP<span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>sP.<span style="color: #660066;">checkedState</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>myCounter <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> myCounter <span style="color: #339933;">&lt;</span> app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">paragraphStyles</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> myCounter<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">paragraphStyles</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span>myCounter<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appliedLanguage</span> <span style="color: #339933;">=</span> app.<span style="color: #660066;">languagesWithVendors</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;French&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>sC.<span style="color: #660066;">checkedState</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>myCounter <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> myCounter <span style="color: #339933;">&lt;</span> app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">characterStyles</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> myCounter<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">characterStyles</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span>myCounter<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appliedLanguage</span> <span style="color: #339933;">=</span> app.<span style="color: #660066;">languagesWithVendors</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;French&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>aP.<span style="color: #660066;">checkedState</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>myCounter <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> myCounter <span style="color: #339933;">&lt;</span> app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">stories</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> myCounter<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">stories</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span>myCounter<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appliedLanguage</span> <span style="color: #339933;">=</span> app.<span style="color: #660066;">languagesWithVendors</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;French&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
  myDialog.<span style="color: #660066;">destroy</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Merci d'ouvrir un document.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>A venir, quand j&#8217;en trouverais la motivation et/ou l&#8217;utilisation, un script plus générique allant puiser la liste des langues disponibles, et proposer un changement dans la langue du logiciel après récupérer cette dernière.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpao.fr/blog/2009/07/09/id-story/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TiddlyWiki, le bloc-note utile</title>
		<link>http://www.dpao.fr/blog/2009/06/07/tiddlywiki/</link>
		<comments>http://www.dpao.fr/blog/2009/06/07/tiddlywiki/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 12:45:59 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[DPAO]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.dpao.fr/blog/?p=119</guid>
		<description><![CDATA[TiddlyWiki, c'est un site (?), un bloc-note (?), une application (?), un OVNI (?), en fait c'est un peu tout cela à la fois de mon point de vue.]]></description>
			<content:encoded><![CDATA[<p><a title="TiddlyWiki homepage" href="http://www.tiddlywiki.com/" target="_blank">TiddlyWiki</a>, c&#8217;est un site (?), un bloc-note (?), une application (?), un OVNI (?), en fait c&#8217;est un peu tout cela à la fois de mon point de vue.</p>
<p>Je suis tombé sur ce projet un peu par hasard, j&#8217;étais à la recherche d&#8217;un CMS permettant le partage d&#8217;information dans le cadre professionnel avec des intervenants extérieurs. J&#8217;en suis devenu fan lorsque j&#8217;ai vu la simplicité et légèreté (en poids, 342 Ko) du système pour des échanges mails/web.</p>
<p>TiddlyWiki m&#8217;a séduit par le simple fait que tout est contenu dans un unique fichier HTML (à part, de base, les liens/médias), ce qui permet de déplacer et mettre à jour le contenu assez rapidement, et sans risque d&#8217;oubli d&#8217;un morceau quelque part (tout le monde n&#8217;est pas organisé). Et cette organisation présente en plus une facilité d&#8217;indexation pour les recherches de contenu dans le bloc-note.</p>
<p>Il faut ajouter à cela quelques animations lors d&#8217;ouvertures des <em>billets </em>assez sympatique (il m&#8217;en faut peu), un système de plugins (mes 2 sources de plugins sont <a title="TiddlyVault" href="http://tiddlyvault.tiddlyspot.com/" target="_blank">TiddlyVault</a> et <a title="TiddlyTools" href="http://www.tiddlytools.com/" target="_blank">TiddlyTools</a>), tout cela nous fait un bloc-note à usage personnel bien pratique, mais également un moyen de distribuer du contenu avec une mise en forme et une interface d&#8217;utilisation bien pratique !</p>
<p>En pratique ça donne cela en visualisation en ligne (qui ne permet pas l&#8217;édition du contenu): <a title="pao'Help - TiddlyWiki" href="http://help.dpao.fr/" target="_blank">pao&#8217;Help</a>, ça porte encore une fois sur la PAO (désolé :) ). Il existe même un système de permalien, ce qui permet de pointer directement sur l&#8217;article voulu, lorsqu&#8217;on utilise ce wiki pour un partage de connaissances ou informations, par exemple pour les <a title="Permalien" href="http://help.dpao.fr/#[[Adobe%20InDesign%20%E2%80%93%20diff%C3%A9rence%20entre%20les%20noirs]]" target="_blank">différences de noir InDesign</a> (qui n&#8217;est pas l&#8217;article déjà paru ici, mais de contenu semblable).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpao.fr/blog/2009/06/07/tiddlywiki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Indesign et ses différents noirs</title>
		<link>http://www.dpao.fr/blog/2009/05/17/indesign-noirs/</link>
		<comments>http://www.dpao.fr/blog/2009/05/17/indesign-noirs/#comments</comments>
		<pubDate>Sun, 17 May 2009 10:37:45 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[PAO]]></category>
		<category><![CDATA[Couleur]]></category>
		<category><![CDATA[InDesign]]></category>

		<guid isPermaLink="false">http://www.dpao.fr/blog/?p=105</guid>
		<description><![CDATA[Non, non, il n'est pas question ici d'un autre age où la star ne faisait rien et tout le mérite revenait au fond de la cale...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dpao.fr/blog/wp-content/uploads/2009/05/backinblack.jpg"><img class="size-full wp-image-114 alignright" title="backinblack" src="http://www.dpao.fr/blog/wp-content/uploads/2009/05/backinblack.jpg" alt="backinblack" width="150" height="79" /></a>Pour des habitués d&#8217;XPress, la gestion de la nuance noir peut être un peu déconcertante sous InDesign. Il n&#8217;est pas rare de trouver des documents avec plusieurs nuances utilisées pour un noir. Entre les nuances importées avec un texte, celle d&#8217;un document XPress ourvert dans InDesign, et celles créées pour une occasion particulière&#8230;</p>
<p>J&#8217;ai commencé par citer XPress, car à cette vieille époque il y existait une palette obscure pour le graphiste, utile pour le maquettiste, formidable pour le flasheur: les infos de défonces ! La palette venait compléter la gestion des défonces par nuances dans les options de couleurs, et oui, il y était possible de faire surimprimer du jaune à un noir par défaut ! Totalement inutile cité ainsi, mais tellement pratique dans certains cas.<br />
Mais surtout, avec ces options qui par défaut se géraient assez bien, il faut le dire, il était possible de créer <em>différents </em>noirs, le logiciel décidant ou non de surimprimer les nuances. Or dans InDesign, il semblerait que par défaut tout défonce, à part la nuance [Noir] ! Je dis &laquo;&nbsp;<em>semblerait</em>&laquo;&nbsp;, à part les options d&#8217;objets permettant de surimprimer un objet, je ne rien trouvé d&#8217;aussi détaillé avec des réglagles fins comme une défonce positive ou négative&#8230;</p>
<p>Une petit illustration valant <a title="Don't clic !!!" href="http://www.deezer.com/track/1072688" target="_blank">plus que tout au monde</a> (je me suis servi sur Flickr pour le fond, je vous laisse deviner les mots clés utilisés pour trouver <a title="Source Flickr" href="http://www.flickr.com/photos/18228804@N00/2481058587/" target="_blank">cela</a>):</p>
<p><a href="http://www.flickr.com/photos/18228804@N00/2481058587/" target="_blank"><img class="size-full wp-image-108 alignnone" title="Noir Indesign" src="http://www.dpao.fr/blog/wp-content/uploads/2009/05/idiblack.png" alt="Noir Indesign" width="424" height="312" /></a></p>
<p>La première ligne ne laissent pas deviner qu&#8217;un problème de défonce peut apparaître au flashage, tant que nous restons sur un support de type écran ou sortie imprimante, le défaut ne sera pas visible. Par contre lorsque l&#8217;on rentre dans les couches, on voit que les nuances de noir autre que [Noir] défoncent le fond, ce qui peut être la cause d&#8217;une impression offset de qualité inférieure.<br />
En effet, le moindre petit décalage du noir lors de l&#8217;impression fera apparaître un léger filet blanc suite à ce décalage.</p>
<p>Oui, il est toujours possible de se dire que ce n&#8217;est pas le problème du maquettiste de s&#8217;occupper de ce type de problème, mais n&#8217;est-ce pas plus rassurant et gratifiant de se dire d&#8217;avoir remis un document propre à l&#8217;impression et qu&#8217;il n&#8217;y aura pas de doute sur le rendu ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpao.fr/blog/2009/05/17/indesign-noirs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kuler, parce que ça rime avec couleur</title>
		<link>http://www.dpao.fr/blog/2009/05/11/kuler/</link>
		<comments>http://www.dpao.fr/blog/2009/05/11/kuler/#comments</comments>
		<pubDate>Mon, 11 May 2009 17:31:00 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[PAO]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Couleur]]></category>

		<guid isPermaLink="false">http://www.dpao.fr/blog/?p=92</guid>
		<description><![CDATA[Il n'y a pas que Google qui a droit à son Labs, après tout, il n'y a pas de marque déposée là dessus (enfin pas encore).

Chez Adobe aussi, il existe le Abode'labs avec des petits plus ou moins sympas, des recherches de plugins Photoshop, des évolutions Flash ou Air... Il y a également ce petit truc appelé Kuler.]]></description>
			<content:encoded><![CDATA[<p>Il n&#8217;y a pas que Google qui a droit à son <em>Labs</em>, après tout, il n&#8217;y a pas de marque déposée là dessus (enfin pas encore).</p>
<p>Chez Adobe aussi, il existe le <a title="Adobe Labs" href="http://labs.adobe.com/" target="_blank">Abode&#8217;labs</a> avec des petits plus ou moins sympas, des recherches de plugins Photoshop, des évolutions Flash ou Air&#8230; Il y a également ce petit <em>truc </em>appelé Kuler.</p>
<p><a href="http://www.dpao.fr/blog/wp-content/uploads/2009/05/kuler_logo.jpg"><img class="alignleft size-full wp-image-96" title="kuler_logo" src="http://www.dpao.fr/blog/wp-content/uploads/2009/05/kuler_logo.jpg" alt="kuler_logo" width="112" height="112" /></a>Kuler est à base de Flash/Air (j&#8217;arrive plus à les différencier sur le site Adobe), c&#8217;est un site collaboratif &amp; social où l&#8217;on partage des nuanciers de 3 à 5 couleurs. Le partage est à double sens, bien entendu, mais ce n&#8217;est pas la seule fonctionnalité intéressant de site, il est également possible de créer ses nuanciers en ligne (selon différents modes) et de les exporter en palette .ase, le format de nuancier des applications Abobe.</p>
<p>La création de nuancier se fait soit à partir de <a title="Kuler à base de rien" href="http://kuler.adobe.com/#create/fromacolor" target="_blank">rien</a>, soit à partir d&#8217;un <a title="Kuler à base d'image" href="http://kuler.adobe.com/#create/fromanimage" target="_blank">image</a> en y prenant les dominantes de couleur, les plus lumineuses, les plus éteintes, les plus profondes ou sombres, ou même à coup de pipette personnalisée !</p>
<p>Le plus interressant est la création de nuancier <a title="Kuler à base de rien" href="http://kuler.adobe.com/#create/fromacolor" target="_blank">vierge</a> à partir d&#8217;une roue chromatique. Là encore, différentes régles viennent en aide à la création du nuancier: analogue, monochromatique, Triad, complémentaire, &laquo;&nbsp;composé&nbsp;&raquo; (désolé pour la traduction), teinte ou personnalisée.</p>
<p>Les nuances sont téléchargeables via un fichier ASE, mais également dans les applications CS4! A défaut d&#8217;avoir un compte Adobe ou la Creative Suite 4, il est toujours possible d&#8217;avoir les références des couleurs composants le nuancier, et cela en mode: TSL (HSV) / RVB (RGB) / CMJN (CMYK) / Lab et enfin HEX (couleurs dites web), ça nous laisse l&#8217;embarras du choix!</p>
<p>En plus, l&#8217;interface de navigation du site est très sympathique (à mon goût, mais les goûts &amp; couleurs ne se discutent pas!). Et si bien même, le site ne convient pas, il reste le widget disponible pour Mac (très agréable à utiliser dans Dashboard pour effectuer des recherches) ou encore la version Air-desktop, tous deux sont téléchargeable sur la page de <a title="Liens Kuler" href="http://kuler.adobe.com/#links" target="_blank">links</a> du site.</p>
<p>En pour finir, le côté assez inutile donc totalement indispensable du site, c&#8217;est la partie Beta du produit Labs (faut suivre) qui permet de se faire une idée des dominantes des nuanciers créés, et cela par pays / période, c&#8217;est la fonction <a title="Adobe Kuler Pulse" href="http://kuler.adobe.com/#pulse" target="_blank">Pulse</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpao.fr/blog/2009/05/11/kuler/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Il en faut peu pour être heureux !</title>
		<link>http://www.dpao.fr/blog/2009/05/06/il-en-faut-peu-pour-etre-heureux/</link>
		<comments>http://www.dpao.fr/blog/2009/05/06/il-en-faut-peu-pour-etre-heureux/#comments</comments>
		<pubDate>Wed, 06 May 2009 19:04:16 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[DPAO]]></category>

		<guid isPermaLink="false">http://www.dpao.fr/blog/?p=85</guid>
		<description><![CDATA[Non, il n'est pas question de la chanson du Livre de la Jungle !
Juste, et seulement juste, de ma surprise lorsqu'en jetant un oeil à mon compte Google Analytics je constate que j'ai eu le droit à une visite en provenance d'Erstein!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dpao.fr/blog/wp-content/uploads/2009/05/junglebook.jpg"><img class="alignright size-thumbnail wp-image-89" title="Livre de la Jungle" src="http://www.dpao.fr/blog/wp-content/uploads/2009/05/junglebook-150x150.jpg" alt="Livre de la Jungle" width="150" height="150" /></a>Non, il n&#8217;est pas question de la chanson du <a href="http://fr.wikipedia.org/wiki/Le_Livre_de_la_jungle_(film,_1967)">Livre de la Jungle</a> !<br />
Juste, et seulement juste, de ma surprise lorsqu&#8217;en jetant un oeil à mon compte Google Analytics je constate que j&#8217;ai eu le droit à une visite en provenance d&#8217;<a href="http://maps.google.fr/maps?f=q&amp;source=s_q&amp;hl=fr&amp;geocode=&amp;q=Erstein,+France&amp;sll=47.15984,2.988281&amp;sspn=20.298388,41.132813&amp;ie=UTF8&amp;t=h&amp;ll=48.40197,7.702274&amp;spn=0.077383,0.160675&amp;z=13&amp;iwloc=A">Erstein</a> ! Oui d&#8217;à côté de chez moi ! Youhou ! Je suis aux anges !!!!!</p>
<p>Et non, enfin, descente d&#8217;adrénaline, lorsqu&#8217;en passant sur le site (un peu abandonné avec la finition de mon installation du PC tout beau tout neuf :D ) je découvre 2 nouveaux commentaires, re-youhou !!!, ah non, c&#8217;est du spam :(</p>
<p>Quel est l&#8217;intérêt de polluer un site avec 6 pages, assez personnel ?<br />
C&#8217;est une sorte de web-labs, un blabs en quelque sorte (bah oui, si web-log donne blog, j&#8217;ai bien le droit d&#8217;inventer l&#8217;expression blabs pour désigner un site d&#8217;expérience :P ).</p>
<p>Bah du coup, je doute de mon extension géographique, il y avait bien Paris, mais c&#8217;est naturel, je visite le site pour tester mes bricoles, il y a également les visites de la <a href="http://blog.baleinoid.fr/">Baleine</a>, mais tout de même, avoir eu une visite alsacienne, ça me rend super heureux ! Et oublions les spammers !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpao.fr/blog/2009/05/06/il-en-faut-peu-pour-etre-heureux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>(J+8)x(J-3)=weeds !</title>
		<link>http://www.dpao.fr/blog/2009/04/29/j8xj-3weeds/</link>
		<comments>http://www.dpao.fr/blog/2009/04/29/j8xj-3weeds/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 19:32:24 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[TV]]></category>
		<category><![CDATA[Musique]]></category>
		<category><![CDATA[Série]]></category>

		<guid isPermaLink="false">http://www.dpao.fr/blog/?p=73</guid>
		<description><![CDATA[Bah oui, ça fait une semaine que je n&#8217;ai rien posté (voilà chose faite pour la forme). Mais surtout, ce week end ce sera Le monde du Silence ! avec le montage d&#8217;un nouveau PC orienté vers le calme. Ce sera certainement beaucoup plus agréable pour regarder films et série, bien qu&#8217;après un week end [...]]]></description>
			<content:encoded><![CDATA[<p>Bah oui, ça fait une semaine que je n&#8217;ai rien posté (voilà chose faite pour la forme).<br />
Mais surtout, ce week end ce sera <a href="http://fr.wikipedia.org/wiki/Le_Monde_du_silence" target="_blank">Le monde du Silence !</a> avec le montage d&#8217;un nouveau PC orienté vers le calme.</p>
<p>Ce sera certainement beaucoup plus agréable pour regarder films et série, bien qu&#8217;après un week end marathon avec Weeds, je pense avoir un peu abusé sur les séries ;)</p>
<p><img class="alignright size-thumbnail wp-image-79" title="weeds" src="http://www.dpao.fr/blog/wp-content/uploads/2009/04/weeds.jpg" alt="weeds" width="150" />D&#8217;ailleurs au sujet de <a href="http://fr.wikipedia.org/wiki/Weeds" target="_blank">Weeds</a>, je me demande toujours comment une série comme celle-ci a réussi à passer les tests du CSA, ils devaient être aussi nombreux ce jour là que lors du vote de la loi <a href="http://fr.wikipedia.org/wiki/Loi_Hadopi" target="_blank">Hadopi</a> !<br />
Personnellement, j&#8217;adore ! Le ton est plus que divertissant, les personnages sont attachants. Si si, même les méchants dealers sont sympathiques, limite c&#8217;est une provocation à la consommation (et j&#8217;en connais quelques uns qui ne me contrediraient pas). Par dessus tout, il y a un truc que j&#8217;adore (oui j&#8217;adore l&#8217;expression j&#8217;adore), c&#8217;est le choix musical, et surtout le générique très scotchant dans le genre musique à-la-con qu&#8217;on retient une journée complète sans parvenir à s&#8217;en défaire !<br />
Heureusement, la saison 2, en plus de ses quelques rebondissements (surtout à la fin), nous gratifie d&#8217;une nouvelle version du même thème de <a title="Little boxes / Malvina Reynolds (sur Deezer)" href="http://www.deezer.com/track/2057" target="_blank">Little boxes</a>.</p>
<p>Pour finir, un petit lien des <a href="http://www.sho.com/site/weeds/music.do" target="_blank">sélections musicales des 4 saisons</a> ! d&#8217;ailleurs vivement que Canal+ pousse un peu la cadence, 2 épisodes par semaine c&#8217;est trop lent :P</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpao.fr/blog/2009/04/29/j8xj-3weeds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InDesign, nettoyage des couleurs</title>
		<link>http://www.dpao.fr/blog/2009/04/21/idcolor/</link>
		<comments>http://www.dpao.fr/blog/2009/04/21/idcolor/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 21:19:27 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Automatisation]]></category>
		<category><![CDATA[Couleur]]></category>
		<category><![CDATA[InDesign]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.dpao.fr/blog/?p=56</guid>
		<description><![CDATA[Encore un nouveau script à base de Javascript et d&#8217;InDesign&#8230; mais non, je n&#8217;y suis pas accro ;) Une grande partie de mon temps est occupé par la conversion des couleurs d&#8217;accompagnement d&#8217;un document InDesign et le nettoyage du document qui va avec: suppression de couleurs en double, et parce que je suis un peu [...]]]></description>
			<content:encoded><![CDATA[<p>Encore un nouveau script à base de Javascript et d&#8217;InDesign&#8230; mais non, je n&#8217;y suis pas accro ;)</p>
<p>Une grande partie de mon temps est occupé par la conversion des couleurs d&#8217;accompagnement d&#8217;un document InDesign et le nettoyage du document qui va avec: suppression de couleurs en double, et parce que je suis un peu maniaque sur la façon d&#8217;organiser son travail nommage des couleurs selon leur composition.<br />
Pour le moment, j&#8217;avais 2 Applescripts qui faisaient bien leur boulot, mais qui dit 2 scripts, dit forcément 2 lancement! CQFD. Alors oui, il était possible de les fusionner, mais c&#8217;est tout de même plus polyvalent de revoir son pannel de scripts pour les rendre encore plus pratiques et multi-plateforme.</p>
<p>Le script se divise en plusieurs segments:</p>
<h2>1e partie: le test de version d&#8217;application</h2>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">#target indesign
<span style="color: #003366; font-weight: bold;">var</span> IDvers <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>app.<span style="color: #660066;">version</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>on ne récupére que la partie entière de la version de l&#8217;application</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">switch</span><span style="color: #009900;">&#40;</span>IDvers<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">case</span> <span style="color: #CC0000;">4</span> <span style="color: #339933;">:</span>
		<span style="color: #003366; font-weight: bold;">var</span> mSwatches <span style="color: #339933;">=</span> app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">colors</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>x <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> x <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;=</span> <span style="color: #CC0000;">4</span><span style="color: #339933;">;</span> x<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>updateColors<span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">case</span> <span style="color: #CC0000;">5</span> <span style="color: #339933;">:</span>
		<span style="color: #003366; font-weight: bold;">var</span> mSwatches <span style="color: #339933;">=</span> app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">swatches</span><span style="color: #339933;">;</span>
		updateColors<span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Un petit switch permettant de s&#8217;occuper des méthodes selon la version.<br />
A noter que pour une raison inconnue le script doit être éxécuter plusieurs fois sous InDesign CS2&#8230;</p>
<h2>2e partie: le test des Pantone</h2>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #000066;">name</span>.<span style="color: #660066;">substr</span> <span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">7</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toUpperCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #3366CC;">&quot;PANTONE&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span></pre></div></div>

<p>On évite de traiter les couleurs Pantone en éliminant ces nuances via leur noms. On lance ensuite un try / catch pour éviter les erreurs de traitement lorsqu&#8217;on arrive sur les couleurs protégées comme celle de repérage ou de [Papier].</p>
<h2>3e partie: le changement de mode et nom</h2>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">model</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">1886548851</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// = Process</span>
mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">space</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">1129142603</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// = CMJN</span>
<span style="color: #000066; font-weight: bold;">with</span> <span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  mC <span style="color: #339933;">=</span> Math.<span style="color: #660066;">round</span><span style="color: #009900;">&#40;</span>colorValue<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  mM <span style="color: #339933;">=</span> Math.<span style="color: #660066;">round</span><span style="color: #009900;">&#40;</span>colorValue<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  mY <span style="color: #339933;">=</span> Math.<span style="color: #660066;">round</span><span style="color: #009900;">&#40;</span>colorValue<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  mK <span style="color: #339933;">=</span> Math.<span style="color: #660066;">round</span><span style="color: #009900;">&#40;</span>colorValue<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>on change le modèle de couleur, ainsi que l&#8217;espace colorimétrique, puis on récupérer la valeur entière de la composante pour préparer le renommage de la nuance.</p>
<h2>4e partie: le renommage et la fusion</h2>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
  mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #000066;">name</span> <span style="color: #339933;">=</span> myName<span style="color: #339933;">;</span>  <span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  mSwatches.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span>myName<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">merge</span><span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>dans une boucle try / catch, on tente de renommer la nuance, en cas d&#8217;erreur, la couleur existe, étant un doublon on la fusionne avec l&#8217;existante.</p>
<h2>Conclusion: le script complet</h2>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">#target indesign
<span style="color: #003366; font-weight: bold;">var</span> IDvers <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>app.<span style="color: #660066;">version</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">// version InDesign CSx</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">switch</span><span style="color: #009900;">&#40;</span>IDvers<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">case</span> <span style="color: #CC0000;">4</span> <span style="color: #339933;">:</span> 	<span style="color: #006600; font-style: italic;">// CS2</span>
		<span style="color: #003366; font-weight: bold;">var</span> mSwatches <span style="color: #339933;">=</span> app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">colors</span><span style="color: #339933;">;</span>
		<span style="color: #006600; font-style: italic;">// Hack pour passer plusieurs la méthode</span>
		<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>x <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> x <span style="color: #339933;">&lt;=</span> <span style="color: #CC0000;">4</span><span style="color: #339933;">;</span> x<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>updateColors<span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">default</span> <span style="color: #339933;">:</span>		<span style="color: #006600; font-style: italic;">// CS3</span>
		<span style="color: #003366; font-weight: bold;">var</span> mSwatches <span style="color: #339933;">=</span> app.<span style="color: #660066;">activeDocument</span>.<span style="color: #660066;">swatches</span><span style="color: #339933;">;</span>
		updateColors<span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
	<span style="color: #006600; font-style: italic;">/*default : 	// Ni CS2 ni CS3, avertissement
		alert('Script testé uniquement avec CS2 &amp; CS3');*/</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Fin du traitement'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> updateColors<span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>i <span style="color: #339933;">=</span> mSwatches.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">--</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">// si la nuance se nomme &quot;Pantone xxxx&quot; on ne fait rien</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #000066;">name</span>.<span style="color: #660066;">substr</span> <span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">7</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toUpperCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #3366CC;">&quot;PANTONE&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
				mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">model</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">1886548851</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// 1936748404 = SPOT | 1886548851 = Process | 1919248243 = repérage</span>
				mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">space</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">1129142603</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// 1129142603 = CMJN | 1666336578 = RVB</span>
				<span style="color: #000066; font-weight: bold;">with</span> <span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// récupération des composantes CMJN</span>
					mC <span style="color: #339933;">=</span> Math.<span style="color: #660066;">round</span><span style="color: #009900;">&#40;</span>colorValue<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					mM <span style="color: #339933;">=</span> Math.<span style="color: #660066;">round</span><span style="color: #009900;">&#40;</span>colorValue<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					mY <span style="color: #339933;">=</span> Math.<span style="color: #660066;">round</span><span style="color: #009900;">&#40;</span>colorValue<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					mK <span style="color: #339933;">=</span> Math.<span style="color: #660066;">round</span><span style="color: #009900;">&#40;</span>colorValue<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #003366; font-weight: bold;">var</span> myName <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;C=&quot;</span> <span style="color: #339933;">+</span> mC <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; M=&quot;</span> <span style="color: #339933;">+</span> mM <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; J=&quot;</span> <span style="color: #339933;">+</span> mY <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; N=&quot;</span> <span style="color: #339933;">+</span> mK<span style="color: #339933;">;</span>
				<span style="color: #000066; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #006600; font-style: italic;">// renommage de la nuance selon sa composition</span>
					mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #000066;">name</span> <span style="color: #339933;">=</span> myName<span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #000066; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					<span style="color: #006600; font-style: italic;">// fusion de la nuance en cours avec l'existante de même composition</span>
					mSwatches.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span>myName<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">merge</span><span style="color: #009900;">&#40;</span>mSwatches<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dpao.fr/blog/2009/04/21/idcolor/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

