Jaco de Groot <[EMAIL PROTECTED]> wrote:
> Michiel Meeuwissen wrote:
> >Well, it works for an existing file, of course it does not generate one
> >already. I tried this:
> ><img src="<mm:image
> >template="s(800x100!)+font(Times-New-Roman-Bold-Italic)+fill(red)+pointsize(20)+gravity(SouthWest)+draw(rotate
> >-5 text 10,10 '@/home/michiel/test.utf8.line')" />" />
> 
> This way the templater has the difficult task of writing dynamic text to a 
> file. I'm generating an image for every page title. The templater than has 
> to create a different file for every different text to prevent problems 
> with two people requesting a page with a different title the same time, 
> writing different text to the same file.

It was not meant as a sollution to anything, I was just testing. Perhaps not
yet quite understanding what you did.

> 
> >Would it not be better to use such an auxiliary file always, when producing
> >text? Then as a user you don't need to anticipate those rather complicated
> >problems about occuring \'e's and so on, but there is simply a good chance
> >that it works then?
> 
> What do you mean with "occuring \'e's"?


I meant that it is perhaps not practical to type @mmbase, '$my_text' because
you may easily forget to use this '@mmbase'. You may see a problem only when
accidentily non-ascii chars (like \'e), appear in @my_text, so actually you
will have to use this @-feature, _always_. So, I was suggesting to create an
intermediate file always, also when not explicitely requested (why would
somebody wants to know that?). 

The only exception being, perhaps, if the given text starts with @ already,
and someone is actually trying to use this feature of imagemagick.

 Michiel


-- 
Michiel Meeuwissen                  mihxil'
Mediacentrum 140 H'sum                [] ()
+31 (0)35 6772979         nl_NL eo_XX en_US




Reply via email to