<div dir="ltr">Ok, found the problem :)<div><br></div><div>I need extra quotes :</div><div><br></div><div>_______________________________________________________</div><div><div>$ python ./sugariconify.py -s "#000000" -f "#ffffff" -o activity-icon.svg</div>
<div>entities_passed == 2</div><div><br></div><div>entity definitions:</div><div> self.stroke_entity = #000000</div><div> self.fill_entity = #ffffff</div></div><div>___________________________________________________________</div>
<div><br></div><div>Regards</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-01-26 laurent bernabe <span dir="ltr"><<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, thank you for your answer.<div><br></div><div>Something must be wrong with parameters, as it sends me the options back :</div>
<div><br></div><div>________________________________________________________________</div>
<div><div>$ python ./sugariconify.py -s #000000 -f #ffffff -o activity-icon.svg</div><div><br></div><div>Usage: sugar-iconify.py [options] input.svg</div><div><br></div><div>Options:</div><div><br></div><div> -c<span style="white-space:pre-wrap"> </span>Apply default color entities (#666666, #ffffff) to output</div>
<div> -d directory<span style="white-space:pre-wrap"> </span>The preferred output directory</div><div> -e<span style="white-space:pre-wrap"> </span>Do not insert entities for strokes and fills</div><div> -f hex<span style="white-space:pre-wrap"> </span>Hex value to replace with fill entity</div>
<div> -g<span style="white-space:pre-wrap"> </span>Automatically accept guesses for stroke and fill entities</div><div> -h<span style="white-space:pre-wrap"> </span>Display this help message</div><div> -i<span style="white-space:pre-wrap"> </span>Insert "isolated stroke" entities</div>
<div> -m<span style="white-space:pre-wrap"> </span>Multiple export; export top level groups as separate icons</div><div> -o<span style="white-space:pre-wrap"> </span>Overwrite the input file; overridden by -m</div>
<div> -p pattern<span style="white-space:pre-wrap"> </span>Only export icons whose name matches pattern; for use with -m</div><div> -s hex<span style="white-space:pre-wrap"> </span>Hex value to replace with stroke entity</div>
<div> -x<span style="white-space:pre-wrap"> </span>Output example SVGs, for previewing their appearance in Sugar;</div><div> <span style="white-space:pre-wrap"> </span>ignored with -m</div><div> -v<span style="white-space:pre-wrap"> </span>verbose</div>
</div><div><br></div><div>___________________________________________________________________</div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-01-25 Walter Bender <span dir="ltr"><<a href="mailto:walter.bender@gmail.com" target="_blank">walter.bender@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">try:<br>
<br>
python ./sugariconify.py -s #000000 -f #ffffff -o activity-icon.svg<br>
<br>
<br>
On Sat, Jan 25, 2014 at 4:45 PM, laurent bernabe<br>
<<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>> wrote:<br>
> Hello again,<br>
><br>
> I've downloaded sugariconify script in my Ubuntu post, but I get the<br>
> following error :<br>
><br>
> _____________________________________________________________________<br>
> $ ./sugariconify.py -s #000000 -f #ffffff -o activity-icon.svg<br>
> ./sugariconify.py: ligne 27: HELP : commande introuvable (could not find<br>
> command HELP on line 27)<br>
> ./sugariconify.py: ligne 45: Erreur de syntaxe près du symbole inattendu « (<br>
> » (syntax error near unexpected symbol '(' on line 45 )<br>
> ./sugariconify.py: ligne 45: `class SugarIconify():' (on line 45).<br>
> _____________________________________________________________________<br>
><br>
> Regards<br>
><br>
><br>
> 2014-01-25 laurent bernabe <<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>><br>
><br>
>> Hello,<br>
>><br>
>> thank you for your answer,<br>
>><br>
>> in fact the folder icons should have been named "pictures", as I won't use<br>
>> these resources as icons, but as pictures in my application.<br>
>><br>
>> I didn't know about the sugar_iconify program : thanks again, I'll have a<br>
>> look at it. As I kept a copy of my svg activity icon before adding entities,<br>
>> it is still time to use it.<br>
>><br>
>> Thanks.<br>
>><br>
>> Regards<br>
>><br>
>><br>
>> 2014-01-25 Walter Bender <<a href="mailto:walter.bender@gmail.com" target="_blank">walter.bender@gmail.com</a>><br>
>>><br>
>>> Your icons are all bmp files. We use SVG for icons in Sugar. Please<br>
>>> refer to these pages:<br>
>>><br>
>>><br>
>>> <a href="http://wiki.sugarlabs.org/go/Human_Interface_Guidelines/The_Sugar_Interface/Icons" target="_blank">http://wiki.sugarlabs.org/go/Human_Interface_Guidelines/The_Sugar_Interface/Icons</a><br>
>>><br>
>>> and<br>
>>><br>
>>> <a href="http://wiki.sugarlabs.org/go/Sugar_iconify" target="_blank">http://wiki.sugarlabs.org/go/Sugar_iconify</a><br>
>>><br>
>>> regards.<br>
>>><br>
>>> -walter<br>
>>><br>
>>> On Sat, Jan 25, 2014 at 5:46 AM, laurent bernabe<br>
>>> <<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>> wrote:<br>
>>> > Oups, it seems that i forgot to link onto my project :<br>
>>> > LearnChessWeb<br>
>>> ><br>
>>> > Helps are welcome.<br>
>>> ><br>
>>> > Regards.<br>
>>> ><br>
>>> ><br>
>>> > 2014/1/24 laurent bernabe <<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>><br>
>>> >><br>
>>> >> Hello,<br>
>>> >><br>
>>> >> in my project LearningChessWeb, I've just changed the activity icon.<br>
>>> >> It renders fine in journal and activities menu, but it can't be seen<br>
>>> >> in<br>
>>> >> the application toolbar, once launched.<br>
>>> >><br>
>>> >> How could I "patch" it ?<br>
>>> >><br>
>>> >> This is where I've been looking :<br>
>>> >> <a href="http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar" target="_blank">http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar</a><br>
>>> >><br>
>>> >> I've been designing icon with Inkscape, and added entities from<br>
>>> >> Brackets<br>
>>> >> IDE (maybe it isn't the best way to design an activity icon ...)<br>
>>> >><br>
>>> >> Regards<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > Sugar-devel mailing list<br>
>>> > <a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>>> > <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>>> ><br>
>>><br>
>>><br>
<span><font color="#888888">>>><br>
>>> --<br>
>>> Walter Bender<br>
>>> Sugar Labs<br>
>>> <a href="http://www.sugarlabs.org" target="_blank">http://www.sugarlabs.org</a><br>
>><br>
>><br>
><br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
Walter Bender<br>
Sugar Labs<br>
<a href="http://www.sugarlabs.org" target="_blank">http://www.sugarlabs.org</a><br>
</font></span></font></span></blockquote></div><br></div>
</blockquote></div><br></div>