Who really uses strikethroughs?? This is one of the most common tripwires in RedCloth. You are the friend--the only friend--who has offered to help. Obviously em dashes. I died in -2006- wait, no, two-thousand-FIVE! Obviously strikethrough. I''m going on a trip - a long one - to the Virgin Islands. That''s got to be en dashes. Such a cheap, no-hassle, no-worry guarantee!! Hyphens, but can be confusing to parsers. All but the first work with Trad. RedCloth. Have you encountered other sticky scenarios I can add to the tests? Maybe I can scale back the strikethroughs in SuperRC? _why
> Maybe I can scale back the strikethroughs in SuperRC?That would be great! I''ve seen many people get hung up with em-dash- laden sentences. The more advertising background they have, the worse they are with this. :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/redcloth-upwards/attachments/20070124/ebfd0d0b/attachment.html
On Tue, Jan 23, 2007 at 11:22:45PM -0600, why the lucky stiff wrote:> > I died in -2006- wait, no, two-thousand-FIVE! >Okay, in SuperRedCloth: space dash words+ dash space Strict just like that!! You can can have spaces and some punctuation between words, but the dashes must be up against the first and last words of the phrase. It still smells, though. What if you have to strike-out something with dashes in it?? I guess it''s back to <del>..</del>. There should be a syntax for grouping text. I died in -(two thousand six -- yes i did -- fell off a cliff)- -- no, wait, I died in 2005 while jogging... Who knows. _why
why the lucky stiff wrote:> Okay, in SuperRedCloth: > > space dash words+ dash space > > Strict just like that!!great to see you working on RedCloth again :D while your at it: any change to include <dl> lists? I already proposed them here in december :) red is beautiful! [murphy]
On Wed, 24 Jan 2007, why the lucky stiff wrote:> On Tue, Jan 23, 2007 at 11:22:45PM -0600, why the lucky stiff wrote: > > > > I died in -2006- wait, no, two-thousand-FIVE! > > > > Okay, in SuperRedCloth: > > space dash words+ dash space/\s+\-\b(.*)\b\-\s/> > Strict just like that!! > > You can can have spaces and some punctuation between words, but the > dashes must be up against the first and last words of the phrase. > > It still smells, though. What if you have to strike-out something > with dashes in it?? I guess it''s back to <del>..</del>. > > There should be a syntax for grouping text. > > I died in -(two thousand six -- yes i did -- fell off a cliff)- > -- no, wait, I died in 2005 while jogging...irb(main):001:0> regexp=/\s+\-\b(.*)\b\-\s/ => /\s+\-\b(.*)\b\-\s/ irb(main):002:0> str= " I died in -2048 -- yes -- ate my own dogfood- no, just now" => " I died in -2048 -- yes -- ate my own dogfood- no, just now" irb(main):003:0> str =~ regexp => 10 irb(main):004:0> puts $1 2048 -- yes -- ate my own dogfood => nil irb(main):006:0> Hmm, is that sufficient? irb(main):006:0> str = " what - will - this - do?" => " what - will - this - do?" irb(main):007:0> str =~ regexp => nil No, I haven''t prised the lid off to see if this uses regexps or a Proper parser.> > Who knows. > > _whyI don''t know enough about Super Red Cloth to add anything useful, except that if it makes it easier to maintain, that is good. I''m not clear about how Ragel fits into the picture yet, whether we need to install that as well to get it to work or what. Hugh
One sticky scenario we get a lot in our application is people putting two smilies somewhere in their post. Here is a smilie :-) And another :-( Bugger! Comes out with a strikethrough... Undesired! On 1/24/07, why the lucky stiff <why at hobix.com> wrote:> > Who really uses strikethroughs?? This is one of the most common > tripwires in RedCloth. > > You are the friend--the only friend--who has offered to help. > > Obviously em dashes. > > I died in -2006- wait, no, two-thousand-FIVE! > > Obviously strikethrough. > > I''m going on a trip - a long one - to the Virgin Islands. > > That''s got to be en dashes. > > Such a cheap, no-hassle, no-worry guarantee!! > > Hyphens, but can be confusing to parsers. > > All but the first work with Trad. RedCloth. Have you encountered other > sticky scenarios I can add to the tests? Maybe I can scale back the > strikethroughs in SuperRC? > > _why > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards >-- Mat Mannion Web Developer M: 07725 216 409 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/redcloth-upwards/attachments/20070124/6ca7ee14/attachment.html
why the lucky stiff
2007-Jan-24 16:52 UTC
Definition lists (was Re: Strikethroughs and dashes)
On Wed, Jan 24, 2007 at 07:54:47AM +0100, murphy wrote:> while your at it: any change to include <dl> lists? > I already proposed them here in december :)Definitions are already a part of RedCloth 3. I''m not sure who introduced them or when, but... - Foo : definition - Bar := definition Some Textile hacks use: @ Foo ~ definition @ Bar ~ definition Textil.pm is: dl. Foo:definition Bar:definition I think I like the WikiCode syntax better. I''m open to this in SuperRC, let''s just be sure to allow styling and alignment as with the other elements. ;(highlight) Foo : definition ;{color:red} Bar : definition Also, PyTextile and Textile v2 should be checked for a precedent perhaps. _why
On Wed, Jan 24, 2007 at 10:07:06AM +0000, Hugh Sasse wrote:> > Okay, in SuperRedCloth: > > > > space dash words+ dash space > > /\s+\-\b(.*)\b\-\s/Not quite. The definition of "words" isn''t (.*). It''s a bit more complicated!!> irb(main):002:0> str= " I died in -2048 -- yes -- ate my own dogfood- no, just now" > => " I died in -2048 -- yes -- ate my own dogfood- no, just now" > irb(main):003:0> str =~ regexp > => 10 > irb(main):004:0> puts $1 > 2048 -- yes -- ate my own dogfoodThat''s correct. Dashes are found up against the "2048" and "dogfood", so that would be a strike. But you bring up yet another great ambiguity: negative numbers!!> irb(main):006:0> str = " what - will - this - do?" > => " what - will - this - do?" > irb(main):007:0> str =~ regexp > => nilThat''s also correct. Those dashes are en dashes. There''s no question there.> I don''t know enough about Super Red Cloth to add anything useful, > except that if it makes it easier to maintain, that is good. I''m > not clear about how Ragel fits into the picture yet, whether we > need to install that as well to get it to work or what.You won''t need to install Ragel unless you''re compiling from the repo. The tarball and gem dists will be premade for ya. See Hpricot and Mongrel -- same thing. _why
On Wed, Jan 24, 2007 at 10:15:53AM +0000, Mat Mannion wrote:> Here is a smilie :-) And another :-( Bugger!Oh, yes. That''s a good one. SuperRC does: <p>Here is a smilie :–) And another :–( Bugger!</p> While RedCloth 3 does: <p>Here is a smilie :<del>) And another :</del>( Bugger!</p> So, progress. _why
Bret Pettichord
2007-Jan-25 00:48 UTC
Definition lists (was Re: Strikethroughs and dashes)
Is there a spec for textile? Is redcloth supposed to conform to a spec? I am concerned that we are seeing the development of several incompatible dialects of textile. Bret -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/redcloth-upwards/attachments/20070124/86815c08/attachment-0001.html
why the lucky stiff
2007-Jan-25 02:28 UTC
Definition lists (was Re: Strikethroughs and dashes)
On Wed, Jan 24, 2007 at 06:48:08PM -0600, Bret Pettichord wrote:> Is there a spec for textile? Is redcloth supposed to conform to a spec?It''s an informal sort of thing. I mean the reference[1] is very basic, giving plenty of room for interpretation. Like: type a few long-nosed smilies into that page. There''s no science to the dwimmyness of it. _why
why the lucky stiff schrieb:> Definitions are already a part of RedCloth 3. I''m not sure who > introduced them or when, but... > > - Foo :> definition > - Bar := definitionum...doesn''t work for me. rico:~ murphy$ gem list redcloth RedCloth (3.0.4) rico:~ murphy$ redcloth - foo := bar <p>- foo := bar</p> am I wrong? [murphy]
It is in svn trunk, not 3.0.4 -Lucas http://rufy.com/ On Jan 24, 2007, at 10:01 PM, murphy wrote:> why the lucky stiff schrieb: >> Definitions are already a part of RedCloth 3. I''m not sure who >> introduced them or when, but... >> >> - Foo :>> definition >> - Bar := definition > um...doesn''t work for me. > > rico:~ murphy$ gem list redcloth > > RedCloth (3.0.4) > > rico:~ murphy$ redcloth > - foo := bar > <p>- foo := bar</p> > > > am I wrong? > [murphy] > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards
Lucas Carlson schrieb:> It is in svn trunk, not 3.0.4my bad, it works now. thank you! [murphy]
On Wed, 24 Jan 2007, why the lucky stiff wrote:> On Wed, Jan 24, 2007 at 10:07:06AM +0000, Hugh Sasse wrote: > > > Okay, in SuperRedCloth: > > > > > > space dash words+ dash space > > > > /\s+\-\b(.*)\b\-\s/ > > Not quite. The definition of "words" isn''t (.*). It''s a bit more > complicated!!:-) This was just to get the ends about right as a first shot.> > > irb(main):002:0> str= " I died in -2048 -- yes -- ate my own dogfood- no, just now" > > => " I died in -2048 -- yes -- ate my own dogfood- no, just now" > > irb(main):003:0> str =~ regexp > > => 10 > > irb(main):004:0> puts $1 > > 2048 -- yes -- ate my own dogfood > > That''s correct. Dashes are found up against the "2048" and > "dogfood", so that would be a strike. > > But you bring up yet another great ambiguity: negative numbers!!New dimensions in temporal physics... :-) Good point though, I hadn''t thought of that. How to strikeout a negative number? -\-2048 -- That was way back in negative time!-> > > irb(main):006:0> str = " what - will - this - do?" > > => " what - will - this - do?" > > irb(main):007:0> str =~ regexp > > => nil > > That''s also correct. Those dashes are en dashes. There''s no > question there.:-)> > > I don''t know enough about Super Red Cloth to add anything useful, > > except that if it makes it easier to maintain, that is good. I''m > > not clear about how Ragel fits into the picture yet, whether we > > need to install that as well to get it to work or what. > > You won''t need to install Ragel unless you''re compiling from the > repo. The tarball and gem dists will be premade for ya. See > Hpricot and Mongrel -- same thing.Thanks. (OT: Is it pronounced more like Rigel or Bagel, soft or hard g?)> > _whyHugh