From kowalski0123 at gmail.com Thu Dec 2 19:10:56 2010 From: kowalski0123 at gmail.com (Marek Kowalski) Date: Fri, 3 Dec 2010 01:10:56 +0100 Subject: RedCloth, JRuby and national characters In-Reply-To: References: <509710a18d5ae52efd21741542d5c89f@ruby-forum.com> <44b23f593b41e41d820a3c0412f47cfc@ruby-forum.com> <628C10B4-4CD2-4516-927A-6F570C2C914E@jasongarber.com> Message-ID: Mhm, thanks for keeping me informed! I don't agree with the task description though. As far as I remember the problem was with ragel code not html_esc function. It should be easy to figured out for someone with the ragel experience.. You might want to update the description, to lure people with correct profile. Well we will see, hope someone figures it out. Cheers! MK 2010/11/27 Jason Garber : > I've posted this task to oDesk with a $100 budget. ?Let's hope someone takes > the job! > http://www.odesk.com/jobs/JRuby-fix-for-RedCloth_%7E%7E273ff7a15a938782 > > On Fri, Nov 12, 2010 at 3:57 AM, Jason Garber wrote: >> >> Great work, Marek! ?I pulled your work into a branch:?jruby-mbc >> The problem, as you pointed out, is extra whitespace. ?I'm hoping you or >> someone else can help me get it figured out so I can release it! >> It seems to be just when there's HTML in the input. (At least that's all >> I've found so far.) ?When it's a standalone HTML tag (just a block tag on a >> line), it puts two BRs after. ?When it's an HTML block (start tag, contents, >> end tag), it puts the BR inside the beginning of the next block. ?When just >> one newline ends the document, it puts a BR inside the end of the last >> block; two newlines before EOF behave fine though. >> >>
html_block
>> This is a paragraph with >> a line break >> standalone_html coming up. >>
>> Another p >>
test
>> Another p. >> >> Results in: >> >>
html_block
>>


>> This is a paragraph with
>> a line break

>>

standalone_html coming up.

>>

>>
>>

Another p

>>
test
>>


>> Another p.
>>

>> >> Weird, huh? ?I'd greatly appreciate anyone who can help this Java dunce >> (me). ?Here's the fast way to get it checked out and set up: >> >> git clone?git at github.com:jgarber/redcloth.git >> cd redcloth >> git checkout jruby-mbc >> rvm use jruby-1.5.3 at redcloth ?# assuming you're using rvm and you've done >> 'rvm install jruby' >> bundle >> rake compile >> >> Thanks! >> Jason >> On Oct 18, 2010, at 6:00 AM, Marek Kowalski wrote: >> >> Hi Georg, >> I went the same went. Eventually I managed to kind of solve the >> problem, I have the proper jar generated which handles UTF characters >> properly. What basicly what needs to be done is to use char (16-bit) >> datatype in Ragel code instead of byte (8-bit). You can take a look >> here at my work: >> http://github.com/kowalski/redcloth >> Problem is, that when you run rspec now on the new code, there is a >> number of tests that fails. The difference is the extra whitespaces >> added to the resulting html code. For me it is no harm so I have this >> jar working on production for a few months now. >> >> Cheers, >> Marek Kowalski >> >> 2010/10/18 Georg M. : >> >> Hi Claus, >> >> I hit the same issue (Linux, Redcloth 4.2.3). >> >> My workaround was to html-escape non-standard characters before passing >> >> them to redcloth. It works but my solution is a little bit fragile. Did >> >> you find a proper solution? >> >> Best, Georg >> >> -- >> >> Posted via http://www.ruby-forum.com/. >> >> _______________________________________________ >> >> Redcloth-upwards mailing list >> >> Redcloth-upwards at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/redcloth-upwards >> >> _______________________________________________ >> Redcloth-upwards mailing list >> Redcloth-upwards at rubyforge.org >> http://rubyforge.org/mailman/listinfo/redcloth-upwards >> > > > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards > From lists at ruby-forum.com Sat Dec 11 00:27:40 2010 From: lists at ruby-forum.com (Lxx S.) Date: Sat, 11 Dec 2010 06:27:40 +0100 Subject: Falcons thriving with the NFL team penalized Message-ID: <6b6398b71f82476dd1a859e02957981b@ruby-forum.com> Falcons keep winning close games that their opponents kept drawing penalties. Sanctions playing against the big reason Atlanta (10-2) has won six consecutive games by an average of seven points. Tampa Bay was discovered last week that much. Falcons receiver Brian Finneran is not complaining. "I think we take more shots down the field and you get more defensive pass interference," Finneran said Friday. "We will take all the freebies we can get." Atlanta offense that leads the NFL with 31 first tests the character of punishment, picked up 25 yards on their record victory when cornerback Ronde Barber Buccaneers was highlighted interference pass and linebacker Quincy Black misconduct personal. After sentencing Black moved to Atlanta 16-yard line, quarterback Matt Ryan and Michael Jenkins receiver connected to a short touchdown pass. --- [ http://www.buycnjersey.com ]cheap authentic nfl jerseys [ http://www.buycnjersey.com/en/nfl-jersey-1-2.html ]nfl jerseys throwback classic [ http://www.buycnjersey.com/en/mlb-jersey.html ]mlb jerseys [ http://www.buycnjersey.com/en/nba-jersey-1.html ]nba jerseys [ http://www.buycnjersey.com/en/nhl-jersey.html ]nhl jerseys [ http://www.buycnjersey.com/en/nfl-jersey-1-2/philadelphia-eagles/reebok-nfl-jerseys-philadelphia-eagles-7-michael-vick-white.html] michael vick jerseys -- Posted via http://www.ruby-forum.com/. From ax5 at ix.urz.uni-heidelberg.de Wed Dec 29 12:49:09 2010 From: ax5 at ix.urz.uni-heidelberg.de (Peter Sinn) Date: Wed, 29 Dec 2010 18:49:09 +0100 Subject: thead and tbody Message-ID: Textile 2.2 is the latest incarnation of Textile for PHP and now includes a much improved syntax for tables. Among other things, it supports thead and tbody, like this: |^. |_. A |_. table |_. header |_. row | |-. | A | simple | table | row | A Textile 2.2 sandbox is here: http://textile.sitemonks.com. Any plans to include this syntax into RedCloth? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jg at jasongarber.com Fri Dec 31 10:49:35 2010 From: jg at jasongarber.com (Jason Garber) Date: Fri, 31 Dec 2010 09:49:35 -0600 Subject: thead and tbody In-Reply-To: References: Message-ID: I was unaware of Textile 2.2, but I would love to include it in RedCloth! I just need to find some time to do it. (I made a ticket[1]) How do the Textpattern developers keep track of all that without tests? Beyond me. [1] http://jgarber.lighthouseapp.com/projects/13054-redcloth/tickets/203-update-to-textpattern-22 On Wed, Dec 29, 2010 at 11:49 AM, Peter Sinn wrote: > Textile 2.2 is the latest incarnation of Textile for PHP and now includes a > much improved syntax for tables. Among other things, it supports thead and > tbody, like this: > > |^. > |_. A |_. table |_. header |_. row | > |-. > | A | simple | table | row | > > A Textile 2.2 sandbox is here: http://textile.sitemonks.com. Any plans to > include this syntax into RedCloth? > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards >