forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: Show text file with Forrest
Date Mon, 23 Jul 2007 01:24:58 GMT
Thorsten Scherler wrote:
> Juan Carlos Fernandez Caballero wrote:
> > 
> > A have a problem with Forrest. A need show (load) a text file.
> 
> You mean you want to use a text file as input?
> 
> >  I could to paste the text in a image and use:
> > 
> > <p><img src="images/prueba.jpg" alt="Prueba"/></p>
> 
> Meaning you want to display the whole text file as image?
> 
> > I believe that this is not the orthodox way but to do it. Can I use
> > the text file of direct way?
> 
> Yeah, there is.
> 
> If you use POD format then you can use
> http://www.rblasch.org/projects/pod-input/.
> 
> Otherwise it should be easy to write an input plugin for text. 
> 
> Do you have an example file?

Juan, as you can see in this thread, Brolin has explained
that you can use xi:include and Thorsten has mentioned
some other techniques.

There is another option: Use "ASCII Art" to automatically
generate an image from text.

Add a file xdocs/text.aart

Add an image link to your xdoc source:
  <p>
   Text: <img src="text.png" alt="image"/>
  </p>

It would only be suitable for small snippets of text,
but this technique might be useful in some circumstances.

-David

Mime
View raw message