[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:04160] Re: What are you using Ruby for? -- packaging Ruby programs as single files

From: Toshiro Kuwabara <toshirok@...3.so-net.ne.jp>
Date: 2000-07-21 17:01:43 UTC
List: ruby-talk #4160
Hi,

I havn't follow all mail of this discussion, so if I miss the point, 
please forgive me.

In message "[ruby-talk:04147] Re: What are you using Ruby for? -- packaging Ruby programs as single files"
    on 00/07/20, Conrad Schneiker <schneik@austin.ibm.com> writes:
>> > I also think this would be a good idea.  Might also be nice if one could
>> include
>> > foreign files (jpegs, etc.).  But would be really worthwhile even without
>> that.
>
>This foreign files feature would be very useful for web/HTML applications and
>for applications with built-in help documentation, so I think this would be a
>pretty important  to support this from the start.
>
>(This also suggests another RD/rdtool extension to be able to import graphics
>for diagrams and such.)

Does it mean to extend Include Element of RD such like?

  <<< foo.jpeg
  
   and this means (in HTML)
   
   <DIV class="figure"><IMG src="foo.jpeg"></DIV>

You can do it for the present like:
   
   (in RD file)
   <<< foo

   (in foo.html)
   <DIV class="figure"><IMG src="foo.jpeg" alt="Fig: foo"></DIV>

   (and prepare foo.jpeg file.)

And the reason why RD doesn't allow "<<< foo.jpeg" is
  
  * HTML's "IMG" requires "alt" attribute.
  * all kind of output format doesn't support JPEG file importing. so
    you should also prepare "foo.ps" or other format image when you
    want to output LaTeX file (or other document format) also.

---
Tosh
Toshiro Kuwabara


In This Thread

Prev Next