OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] A stupid idea


Hi,

I made a realy quick & dirty Perlscript that will generate callout icons 
in svg and png from all Unicode characters. (it does not create numbers 
above nine, and will probably not either if noone extends it).

Not sure if this is what you were looking for.
The script is Linux specific. Uses FreeSerif as font and Inkscape to 
transform the images to png. Might be portable to Windows. Inkscape has 
a windows version as well.

Playing with -d in the inkscape command or the mm settings in the svg 
generation gives different png sizes.

Well, if anyone finds it helpful.. just don't blame me if it eats your 
lunch.. there are probably a ton of bugs in script..

It generates 4901 icons.(in a svg and a png subfolder relative to your 
current location). The number of useful Icons are related to the SVG 
font you used I guess. But you can get some cool icons.

Still you need to edit the scritp. It makes use of Normans unichars.el 
file. names files according to &name; or if nil, the number.

Yes I said it was quick & dirty.. :)

I have attached the scritp together with an example of the FEOH rune, as 
output.

/Fred


Bob Stayton wrote:
> Hi Jacque,
> That's not a stupid idea at all.  You could file a SourceForge feature
> request if you like.
> 
> I'm not clear what the problem is, though.  If you have the SVG generator,
> you can generate SVG icon files for however many callout numbers you need.
> The bitmap numbers would only be used for HTML output.  What exactly were
> you expecting, and what did you get that did not meet those expectations?
> 
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
> 
> 
> ----- Original Message ----- 
> From: <jacques@foucry.net>
> To: <docbook-apps@lists.oasis-open.org>
> Sent: Thursday, December 02, 2004 1:58 AM
> Subject: [docbook-apps] A stupid idea
> 
> 
> 
>>Hello list,
>>
>>I am still fighting with my callout icons :-) In fact all work perfectky
>>but the result is not exactly what I expected. Because the bitmap version
>>is not perfect as the vectoriel version.
>>
>>It's possible to add some svg code inside docbook file. So it must be
>>possible to use the "original"svg genrator file for the callout icons (to
>>be sure to have something wonderful).
>>
>>But I must admit the it's only an idea for me, I cannot imagine how to
>>make it usable in every docbook file every time we need callout icone.
>>
>>If one of you could help me to see how make this idea true, it will be
> 
> great.
> 
>>Jacques, an stupid idea by day.
>>-- 
>>Sylvie va au marché. Elle a 165 francs dans son porte-monnaie. Elle achéte
>>9 laitues à 3,20 francs et 14 laitues à 3,10 francs. Est-ce bien
>>raisonnable ?
>>
>>Pierre Desproges
>>
>>
>>
> 
> 

callout-gen.sh

PNG image



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]