Thanks for the reply Jenna!! :-)

Sounds great ......testing.......Works!!

Superfast response - I am working on an ABC music format  package
and thought Shoes would be ideal for this sort of utility

So far the transposer works but now I am refactoring to cope with more complex input
as abc files can contain many tunes and tunes that have more than one key!
Now  I can use syntax colouring to display the abc tunes. Great!




Bluebie, Jenna wrote:
Whoopse, I forgot the bits << before the span in the else block. Oh well!


On 24/06/2008, at 8:39 AM, Bluebie, Jenna wrote:

how about...

bits = Array.new
if ...
    bits << span("text", :stroke=>blue)
else
    span("other", :stroke => red)
end

para *bits


On 24/06/2008, at 8:12 AM, jonty wrote:

I am trying to parse text and then reassemble it for display conditional on the content of the text and set formatting accordingly.

But I am getting stuck on how to do this in shoes

para doesn't accept a block more's the pity

(say -  para do
if ... span("text", :stroke=>blue)
else span ("other" ;stroke=>red)
end
end)

Anyone help?

------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.1/1513 - Release Date: 22/06/2008 07:52

Reply via email to