From cardmagic at gmail.com Mon Jun 5 13:33:58 2006
From: cardmagic at gmail.com (Lucas Carlson)
Date: Mon, 5 Jun 2006 10:33:58 -0700
Subject: hard_breaks
In-Reply-To: <1a991fa30605100900t5442ec4v4fd208e401eb7a45@mail.gmail.com>
References: <1a991fa30605100900t5442ec4v4fd208e401eb7a45@mail.gmail.com>
Message-ID: <16A31DD4-2691-4E0B-9E1F-DEA2E042CB40@rufy.com>
Fixed.
-Lucas
http://rufy.com/
On May 10, 2006, at 9:00 AM, Christoffer Sawicki wrote:
> Dear Dressers of RedCloth,
>
> I have a question:
>
> text = "Foo\nBar\n\nBaz"
> RedCloth.new(text, [ :hard_breaks ]).to_html
>
> # => "
Foo
Bar
\nBaz
"
>
> Shouldn't that really be "Foo
Bar
Baz
"?
>
> So long,
>
> --
> Christoffer Sawicki
>
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
From christoffer.sawicki at gmail.com Mon Jun 5 15:22:25 2006
From: christoffer.sawicki at gmail.com (Christoffer Sawicki)
Date: Mon, 5 Jun 2006 21:22:25 +0200
Subject: hard_breaks
In-Reply-To: <16A31DD4-2691-4E0B-9E1F-DEA2E042CB40@rufy.com>
References: <1a991fa30605100900t5442ec4v4fd208e401eb7a45@mail.gmail.com>
<16A31DD4-2691-4E0B-9E1F-DEA2E042CB40@rufy.com>
Message-ID: <1a991fa30606051222p3e0e970ej2f19389aa247729@mail.gmail.com>
On 6/5/06, Lucas Carlson wrote:
> Fixed.
Great. Thanks.
--
Christoffer Sawicki
From jeremy.burks at gmail.com Mon Jun 5 19:09:40 2006
From: jeremy.burks at gmail.com (Jeremy Burks)
Date: Mon, 5 Jun 2006 18:09:40 -0500
Subject: possible bug in trunk base.rb? BREAK_RE.
Message-ID:
Hello All, first post to the list.
I just checked out trunk and it broke my tests.
Turns out that the BREAK_RE regex found in base.rb is missing the "/m"
mode modifier.
I am still getting my head around the library so i may be missing
something but was that done on purpose?
Thanks.
jeremy
Index: base.rb
===================================================================
--- base.rb (revision 24)
+++ base.rb (working copy)
@@ -181,7 +181,7 @@
@@?
(.*?)/x
BLOCKS_GROUP_RE = /\n{2,}(?! )/m
- BLOCK_RE = /^(([a-z]+)(\d*))(#{A}#{C})\.(?::(\S+))? (.*)$/
+ BLOCK_RE = /^(([a-z]+)(\d*))(#{A}#{C})\.(?::(\S+))? (.*)$/m
SETEXT_RE = /\A(.+?)\n([=-])[=-]* *$/m
ATX_RE = /\A(\#{1,6}) # $1 = string of #'s
[ ]*
From cardmagic at gmail.com Mon Jun 5 19:15:48 2006
From: cardmagic at gmail.com (Lucas Carlson)
Date: Mon, 5 Jun 2006 16:15:48 -0700
Subject: possible bug in trunk base.rb? BREAK_RE.
In-Reply-To:
References:
Message-ID: <8F9C021D-0E63-4558-874C-1AC084AAC0AC@rufy.com>
Can you provide the tests that didn't work without the "/m"?
-Lucas
http://rufy.com/
On Jun 5, 2006, at 4:09 PM, Jeremy Burks wrote:
> Hello All, first post to the list.
>
> I just checked out trunk and it broke my tests.
>
> Turns out that the BREAK_RE regex found in base.rb is missing the "/m"
> mode modifier.
>
> I am still getting my head around the library so i may be missing
> something but was that done on purpose?
>
> Thanks.
> jeremy
>
>
> Index: base.rb
> ===================================================================
> --- base.rb (revision 24)
> +++ base.rb (working copy)
> @@ -181,7 +181,7 @@
> @@?
> (.*?)/x
> BLOCKS_GROUP_RE = /\n{2,}(?! )/m
> - BLOCK_RE = /^(([a-z]+)(\d*))(#{A}#{C})\.(?::(\S+))? (.*)$/
> + BLOCK_RE = /^(([a-z]+)(\d*))(#{A}#{C})\.(?::(\S+))? (.*)$/m
> SETEXT_RE = /\A(.+?)\n([=-])[=-]* *$/m
> ATX_RE = /\A(\#{1,6}) # $1 = string of #'s
> [ ]*
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
From jeremy.burks at gmail.com Mon Jun 5 19:48:14 2006
From: jeremy.burks at gmail.com (Jeremy Burks)
Date: Mon, 5 Jun 2006 18:48:14 -0500
Subject: possible bug in trunk base.rb? BREAK_RE.
In-Reply-To: <8F9C021D-0E63-4558-874C-1AC084AAC0AC@rufy.com>
References:
<8F9C021D-0E63-4558-874C-1AC084AAC0AC@rufy.com>
Message-ID:
i have attached my test case.
i am extending redcloth to handle syntax highlighting via the syntax
library. it could very well be i am miss using "block_textile_prefix".
here is what i am going for:
code[ruby]. # a code block
class Foo < Bar
def to_s
"Foo Bar!"
end
end
On 6/5/06, Lucas Carlson wrote:
> Can you provide the tests that didn't work without the "/m"?
>
> -Lucas
> http://rufy.com/
>
>
>
> On Jun 5, 2006, at 4:09 PM, Jeremy Burks wrote:
>
> > Hello All, first post to the list.
> >
> > I just checked out trunk and it broke my tests.
> >
> > Turns out that the BREAK_RE regex found in base.rb is missing the "/m"
> > mode modifier.
> >
> > I am still getting my head around the library so i may be missing
> > something but was that done on purpose?
> >
> > Thanks.
> > jeremy
> >
> >
> > Index: base.rb
> > ===================================================================
> > --- base.rb (revision 24)
> > +++ base.rb (working copy)
> > @@ -181,7 +181,7 @@
> > @@?
> > (.*?)/x
> > BLOCKS_GROUP_RE = /\n{2,}(?! )/m
> > - BLOCK_RE = /^(([a-z]+)(\d*))(#{A}#{C})\.(?::(\S+))? (.*)$/
> > + BLOCK_RE = /^(([a-z]+)(\d*))(#{A}#{C})\.(?::(\S+))? (.*)$/m
> > SETEXT_RE = /\A(.+?)\n([=-])[=-]* *$/m
> > ATX_RE = /\A(\#{1,6}) # $1 = string of #'s
> > [ ]*
> > _______________________________________________
> > 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: marooncloth_test.rb
Type: application/x-ruby
Size: 2406 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/redcloth-upwards/attachments/20060605/fa0d5ba0/attachment.bin
From jeremy.burks at gmail.com Mon Jun 5 20:01:54 2006
From: jeremy.burks at gmail.com (Jeremy Burks)
Date: Mon, 5 Jun 2006 19:01:54 -0500
Subject: possible bug in trunk base.rb? BREAK_RE.
In-Reply-To:
References:
<8F9C021D-0E63-4558-874C-1AC084AAC0AC@rufy.com>
Message-ID:
it just occured from me. i wrote my tests initially against the
redcloth version found in the alexey branch of i2
(http://dev.rubyonrails.org/browser/tools/i2/branches/alexey/lib/redcloth.rb).
that must have been customized and i made the bad assumption that was
how BREAK_RE was in redcloth 3.0.3.
On 6/5/06, Jeremy Burks wrote:
> i have attached my test case.
>
> i am extending redcloth to handle syntax highlighting via the syntax
> library. it could very well be i am miss using "block_textile_prefix".
>
> here is what i am going for:
>
> code[ruby]. # a code block
> class Foo < Bar
> def to_s
> "Foo Bar!"
> end
> end
>
>
>
> On 6/5/06, Lucas Carlson wrote:
> > Can you provide the tests that didn't work without the "/m"?
> >
> > -Lucas
> > http://rufy.com/
> >
> >
> >
> > On Jun 5, 2006, at 4:09 PM, Jeremy Burks wrote:
> >
> > > Hello All, first post to the list.
> > >
> > > I just checked out trunk and it broke my tests.
> > >
> > > Turns out that the BREAK_RE regex found in base.rb is missing the "/m"
> > > mode modifier.
> > >
> > > I am still getting my head around the library so i may be missing
> > > something but was that done on purpose?
> > >
> > > Thanks.
> > > jeremy
> > >
> > >
> > > Index: base.rb
> > > ===================================================================
> > > --- base.rb (revision 24)
> > > +++ base.rb (working copy)
> > > @@ -181,7 +181,7 @@
> > > @@?
> > > (.*?)/x
> > > BLOCKS_GROUP_RE = /\n{2,}(?! )/m
> > > - BLOCK_RE = /^(([a-z]+)(\d*))(#{A}#{C})\.(?::(\S+))? (.*)$/
> > > + BLOCK_RE = /^(([a-z]+)(\d*))(#{A}#{C})\.(?::(\S+))? (.*)$/m
> > > SETEXT_RE = /\A(.+?)\n([=-])[=-]* *$/m
> > > ATX_RE = /\A(\#{1,6}) # $1 = string of #'s
> > > [ ]*
> > > _______________________________________________
> > > 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 etienne.durand at woa.hu Wed Jun 14 13:21:05 2006
From: etienne.durand at woa.hu (Jean-Etienne Durand)
Date: Wed, 14 Jun 2006 19:21:05 +0200
Subject: CR issue
Message-ID: <44904581.8000004@woa.hu>
Hi,
I am using RedCloth (3.0.4).
First using online text2html (http://www.textism.com/tools/textile/) ,
"123
456"
returns 123
456
But by code:
require 'RedCloth'
puts RedCloth.new("123\n456").to_html
I got:
123
456
CR is not taken in consideration. Is there any parameter I am missing?
Thank you for your help,
Jean-Etienne
--
Woa! Kft www.novAgora.hu
"All you need in this life is ignorance and confidence; then success is
sure.", Mark Twain
From cardmagic at gmail.com Wed Jun 14 13:30:35 2006
From: cardmagic at gmail.com (Lucas Carlson)
Date: Wed, 14 Jun 2006 10:30:35 -0700
Subject: CR issue
In-Reply-To: <44904581.8000004@woa.hu>
References: <44904581.8000004@woa.hu>
Message-ID: <0F1531CD-D901-4534-B5D9-6602B607A14C@rufy.com>
puts RedCloth.new("123\n456", [:hard_breaks]).to_html
-Lucas
http://rufy.com/
On Jun 14, 2006, at 10:21 AM, Jean-Etienne Durand wrote:
> Hi,
>
> I am using RedCloth (3.0.4).
>
> First using online text2html (http://www.textism.com/tools/textile/) ,
> "123
> 456"
> returns 123
456
>
> But by code:
>
> require 'RedCloth'
> puts RedCloth.new("123\n456").to_html
>
>
> I got:
> 123
> 456
>
> CR is not taken in consideration. Is there any parameter I am missing?
>
> Thank you for your help,
> Jean-Etienne
> --
> Woa! Kft www.novAgora.hu
>
> "All you need in this life is ignorance and confidence; then
> success is
> sure.", Mark Twain
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
From etienne.durand at woa.hu Wed Jun 14 13:46:32 2006
From: etienne.durand at woa.hu (Jean-Etienne Durand)
Date: Wed, 14 Jun 2006 19:46:32 +0200
Subject: CR issue
In-Reply-To: <0F1531CD-D901-4534-B5D9-6602B607A14C@rufy.com>
References: <44904581.8000004@woa.hu>
<0F1531CD-D901-4534-B5D9-6602B607A14C@rufy.com>
Message-ID: <44904B78.7080502@woa.hu>
Thank you Lucas,
By doing that, I have a problem with paragraphs.
source:
"description1
h3. BigTitle1
description2
h3. BigTitle2
description3
h3. BigTitle3
"
1. without hard_breaks:
description1
BigTitle1
description2
BigTitle2
description3
BigTitle3
2. with hard_breaks
description1
BigTitle1
description2
h3. BigTitle2
description3
h3. BigTitle3
Any idea?
Lucas Carlson wrote:
> puts RedCloth.new("123\n456", [:hard_breaks]).to_html
>
> -Lucas
> http://rufy.com/
>
>
>
> On Jun 14, 2006, at 10:21 AM, Jean-Etienne Durand wrote:
>
>
>> Hi,
>>
>> I am using RedCloth (3.0.4).
>>
>> First using online text2html (http://www.textism.com/tools/textile/) ,
>> "123
>> 456"
>> returns 123
456
>>
>> But by code:
>>
>> require 'RedCloth'
>> puts RedCloth.new("123\n456").to_html
>>
>>
>> I got:
>> 123
>> 456
>>
>> CR is not taken in consideration. Is there any parameter I am missing?
>>
>> Thank you for your help,
>> Jean-Etienne
>> --
>> Woa! Kft www.novAgora.hu
>>
>> "All you need in this life is ignorance and confidence; then
>> success is
>> sure.", Mark Twain
>> _______________________________________________
>> 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
>
>
>
--
Woa! Kft www.novAgora.hu
H-1243 Budapest Tel +36 30 252 04 04
Pf. 506
"All you need in this life is ignorance and confidence; then success is sure.", Mark Twain
From cardmagic at gmail.com Wed Jun 14 13:48:16 2006
From: cardmagic at gmail.com (Lucas Carlson)
Date: Wed, 14 Jun 2006 10:48:16 -0700
Subject: CR issue
In-Reply-To: <44904B78.7080502@woa.hu>
References: <44904581.8000004@woa.hu>
<0F1531CD-D901-4534-B5D9-6602B607A14C@rufy.com>
<44904B78.7080502@woa.hu>
Message-ID: <3ABB4DCD-0C5E-4E3D-A1C3-150761A6978F@rufy.com>
I will add a unit test for this failure and see if I or others can
fix it.
-Lucas
http://rufy.com/
On Jun 14, 2006, at 10:46 AM, Jean-Etienne Durand wrote:
> Thank you Lucas,
>
> By doing that, I have a problem with paragraphs.
>
> source:
> "description1
>
> h3. BigTitle1
>
> description2
>
> h3. BigTitle2
>
> description3
>
> h3. BigTitle3
> "
>
> 1. without hard_breaks:
> description1
>
>
> BigTitle1
>
>
> description2
>
>
> BigTitle2
>
>
> description3
>
>
> BigTitle3
>
> 2. with hard_breaks
> description1
> BigTitle1
> description2
> h3. BigTitle2
> description3
> h3. BigTitle3
>
> Any idea?
>
>
> Lucas Carlson wrote:
>> puts RedCloth.new("123\n456", [:hard_breaks]).to_html
>>
>> -Lucas
>> http://rufy.com/
>>
>>
>>
>> On Jun 14, 2006, at 10:21 AM, Jean-Etienne Durand wrote:
>>
>>
>>> Hi,
>>>
>>> I am using RedCloth (3.0.4).
>>>
>>> First using online text2html (http://www.textism.com/tools/
>>> textile/) ,
>>> "123
>>> 456"
>>> returns 123
456
>>>
>>> But by code:
>>>
>>> require 'RedCloth'
>>> puts RedCloth.new("123\n456").to_html
>>>
>>>
>>> I got:
>>> 123
>>> 456
>>>
>>> CR is not taken in consideration. Is there any parameter I am
>>> missing?
>>>
>>> Thank you for your help,
>>> Jean-Etienne
>>> --
>>> Woa! Kft www.novAgora.hu
>>>
>>> "All you need in this life is ignorance and confidence; then
>>> success is
>>> sure.", Mark Twain
>>> _______________________________________________
>>> 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
>>
>>
>>
>
>
> --
> Woa! Kft www.novAgora.hu
> H-1243 Budapest Tel +36 30 252 04 04
> Pf. 506
>
> "All you need in this life is ignorance and confidence; then
> success is sure.", Mark Twain
>
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
From vadim at reverycodes.com Wed Jun 14 13:57:39 2006
From: vadim at reverycodes.com (Vadim Gritsenko)
Date: Wed, 14 Jun 2006 13:57:39 -0400
Subject: CR issue
In-Reply-To: <3ABB4DCD-0C5E-4E3D-A1C3-150761A6978F@rufy.com>
References: <44904581.8000004@woa.hu> <0F1531CD-D901-4534-B5D9-6602B607A14C@rufy.com> <44904B78.7080502@woa.hu>
<3ABB4DCD-0C5E-4E3D-A1C3-150761A6978F@rufy.com>
Message-ID: <44904E13.9070705@reverycodes.com>
Lucas Carlson wrote:
> I will add a unit test for this failure and see if I or others can
> fix it.
Can you also apply [1] while you are at it? Thanks,
Vadim
[1] http://rubyforge.org/pipermail/redcloth-upwards/2005-December/000023.html
From cardmagic at gmail.com Wed Jun 14 14:07:46 2006
From: cardmagic at gmail.com (Lucas Carlson)
Date: Wed, 14 Jun 2006 11:07:46 -0700
Subject: CR issue
In-Reply-To: <44904E13.9070705@reverycodes.com>
References: <44904581.8000004@woa.hu> <0F1531CD-D901-4534-B5D9-6602B607A14C@rufy.com> <44904B78.7080502@woa.hu>
<3ABB4DCD-0C5E-4E3D-A1C3-150761A6978F@rufy.com>
<44904E13.9070705@reverycodes.com>
Message-ID:
I already did, and I fixed it too.
-Lucas
http://rufy.com/
On Jun 14, 2006, at 10:57 AM, Vadim Gritsenko wrote:
> Lucas Carlson wrote:
>> I will add a unit test for this failure and see if I or others can
>> fix it.
>
> Can you also apply [1] while you are at it? Thanks,
>
> Vadim
>
> [1] http://rubyforge.org/pipermail/redcloth-upwards/2005-December/
> 000023.html
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
From vadim at reverycodes.com Wed Jun 14 14:26:58 2006
From: vadim at reverycodes.com (Vadim Gritsenko)
Date: Wed, 14 Jun 2006 14:26:58 -0400
Subject: CR issue
In-Reply-To:
References: <44904581.8000004@woa.hu> <0F1531CD-D901-4534-B5D9-6602B607A14C@rufy.com> <44904B78.7080502@woa.hu> <3ABB4DCD-0C5E-4E3D-A1C3-150761A6978F@rufy.com> <44904E13.9070705@reverycodes.com>
Message-ID: <449054F2.7000101@reverycodes.com>
Lucas Carlson wrote:
> I already did, and I fixed it too.
Sorry! I did not get response so assumed it was not applied :)
Vadim
> On Jun 14, 2006, at 10:57 AM, Vadim Gritsenko wrote:
>
>> Lucas Carlson wrote:
>>> I will add a unit test for this failure and see if I or others can
>>> fix it.
>> Can you also apply [1] while you are at it? Thanks,
>>
>> Vadim
>>
>> [1] http://rubyforge.org/pipermail/redcloth-upwards/2005-December/
>> 000023.html
From etienne.durand at woa.hu Thu Jun 15 04:46:42 2006
From: etienne.durand at woa.hu (Jean-Etienne Durand)
Date: Thu, 15 Jun 2006 10:46:42 +0200
Subject: CR issue
In-Reply-To: <3ABB4DCD-0C5E-4E3D-A1C3-150761A6978F@rufy.com>
References: <44904581.8000004@woa.hu> <0F1531CD-D901-4534-B5D9-6602B607A14C@rufy.com> <44904B78.7080502@woa.hu>
<3ABB4DCD-0C5E-4E3D-A1C3-150761A6978F@rufy.com>
Message-ID: <44911E72.5010008@woa.hu>
Thank you,
But still, why is it working fine on http://www.textism.com/tools/textile/ ?
Lucas Carlson wrote:
> I will add a unit test for this failure and see if I or others can
> fix it.
>
> -Lucas
> http://rufy.com/
>
>
>
> On Jun 14, 2006, at 10:46 AM, Jean-Etienne Durand wrote:
>
>
>> Thank you Lucas,
>>
>> By doing that, I have a problem with paragraphs.
>>
>> source:
>> "description1
>>
>> h3. BigTitle1
>>
>> description2
>>
>> h3. BigTitle2
>>
>> description3
>>
>> h3. BigTitle3
>> "
>>
>> 1. without hard_breaks:
>> description1
>>
>>
>> BigTitle1
>>
>>
>> description2
>>
>>
>> BigTitle2
>>
>>
>> description3
>>
>>
>> BigTitle3
>>
>> 2. with hard_breaks
>> description1
>> BigTitle1
>> description2
>> h3. BigTitle2
>> description3
>> h3. BigTitle3
>>
>> Any idea?
>>
>>
>> Lucas Carlson wrote:
>>
>>> puts RedCloth.new("123\n456", [:hard_breaks]).to_html
>>>
>>> -Lucas
>>> http://rufy.com/
>>>
>>>
>>>
>>> On Jun 14, 2006, at 10:21 AM, Jean-Etienne Durand wrote:
>>>
>>>
>>>
>>>> Hi,
>>>>
>>>> I am using RedCloth (3.0.4).
>>>>
>>>> First using online text2html (http://www.textism.com/tools/
>>>> textile/) ,
>>>> "123
>>>> 456"
>>>> returns 123
456
>>>>
>>>> But by code:
>>>>
>>>> require 'RedCloth'
>>>> puts RedCloth.new("123\n456").to_html
>>>>
>>>>
>>>> I got:
>>>> 123
>>>> 456
>>>>
>>>> CR is not taken in consideration. Is there any parameter I am
>>>> missing?
>>>>
>>>> Thank you for your help,
>>>> Jean-Etienne
>>>> --
>>>> Woa! Kft www.novAgora.hu
>>>>
>>>> "All you need in this life is ignorance and confidence; then
>>>> success is
>>>> sure.", Mark Twain
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>>
>>>
>> --
>> Woa! Kft www.novAgora.hu
>> H-1243 Budapest Tel +36 30 252 04 04
>> Pf. 506
>>
>> "All you need in this life is ignorance and confidence; then
>> success is sure.", Mark Twain
>>
>> _______________________________________________
>> 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
>
>
>
--
Woa! Kft www.novAgora.hu
H-1243 Budapest Tel +36 30 252 04 04
Pf. 506
"All you need in this life is ignorance and confidence; then success is sure.", Mark Twain
From windholtz at gmail.com Fri Jun 16 15:33:45 2006
From: windholtz at gmail.com (Mark Windholtz)
Date: Fri, 16 Jun 2006 15:33:45 -0400
Subject: Odd behavior
Message-ID: <074CB8F9-F655-4CA3-885C-072FA2EFCDF1@gmail.com>
I'm getting a lot of odd behavior with RedCloth.
Perhaps I've configured something wrong.
Here's one example...
h1. header line
# one
# two
lala haha
------------ Returns the following---------------
header line
- one
- two
lala haha
Any ideas about what this might be?
Regards,
- Mark Windholtz
(513) 226-8259
AIM: objwind
http://railsstudio.com/about.html
From jmg3000 at gmail.com Fri Jun 16 16:24:43 2006
From: jmg3000 at gmail.com (John Gabriele)
Date: Fri, 16 Jun 2006 16:24:43 -0400
Subject: shortcut for full url as the linktext?
Message-ID: <65e0bb520606161324o3dccd9deqcb848a9f9721b9f8@mail.gmail.com>
Is there a shortcut for this:
"http://foo.com":http://foo.com
?
Thanks,
---John
From cardmagic at gmail.com Fri Jun 16 16:39:34 2006
From: cardmagic at gmail.com (Lucas Carlson)
Date: Fri, 16 Jun 2006 13:39:34 -0700
Subject: shortcut for full url as the linktext?
In-Reply-To: <65e0bb520606161324o3dccd9deqcb848a9f9721b9f8@mail.gmail.com>
References: <65e0bb520606161324o3dccd9deqcb848a9f9721b9f8@mail.gmail.com>
Message-ID: <8BC1DF82-6ED5-430C-AEC3-205DDAC21339@rufy.com>
In the trunk, http://foo.com automatically becomes a link.
-Lucas
http://rufy.com/
On Jun 16, 2006, at 1:24 PM, John Gabriele wrote:
> Is there a shortcut for this:
>
> "http://foo.com":http://foo.com
>
> ?
>
> Thanks,
> ---John
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
From cardmagic at gmail.com Fri Jun 16 16:41:14 2006
From: cardmagic at gmail.com (Lucas Carlson)
Date: Fri, 16 Jun 2006 13:41:14 -0700
Subject: Odd behavior
In-Reply-To: <074CB8F9-F655-4CA3-885C-072FA2EFCDF1@gmail.com>
References: <074CB8F9-F655-4CA3-885C-072FA2EFCDF1@gmail.com>
Message-ID:
You need to have two returns after blocks of logic. Thus:
h1. header line
# one
# two
lala haha
-Lucas
http://rufy.com/
On Jun 16, 2006, at 12:33 PM, Mark Windholtz wrote:
> I'm getting a lot of odd behavior with RedCloth.
> Perhaps I've configured something wrong.
> Here's one example...
>
> h1. header line
> # one
> # two
> lala haha
>
> ------------ Returns the following---------------
>
> header line
>
> - one
> - two
lala haha
>
>
>
> Any ideas about what this might be?
>
> Regards,
> - Mark Windholtz
> (513) 226-8259
>
> AIM: objwind
> http://railsstudio.com/about.html
>
>
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
From jmg3000 at gmail.com Fri Jun 16 17:38:28 2006
From: jmg3000 at gmail.com (John Gabriele)
Date: Fri, 16 Jun 2006 17:38:28 -0400
Subject: shortcut for full url as the linktext?
In-Reply-To: <8BC1DF82-6ED5-430C-AEC3-205DDAC21339@rufy.com>
References: <65e0bb520606161324o3dccd9deqcb848a9f9721b9f8@mail.gmail.com>
<8BC1DF82-6ED5-430C-AEC3-205DDAC21339@rufy.com>
Message-ID: <65e0bb520606161438k47ced551jcc3342b2af9d947b@mail.gmail.com>
Works great!
BTW, I really like the new
```source
code
```
syntax. *Huge* timesaver.
Thanks!
---John
On 6/16/06, Lucas Carlson wrote:
> In the trunk, http://foo.com automatically becomes a link.
>
> -Lucas
> http://rufy.com/
>
>
>
> On Jun 16, 2006, at 1:24 PM, John Gabriele wrote:
>
> > Is there a shortcut for this:
> >
> > "http://foo.com":http://foo.com
> >
> > ?
> >
> > Thanks,
> > ---John
> > _______________________________________________
> > 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 jmg3000 at gmail.com Fri Jun 16 17:50:26 2006
From: jmg3000 at gmail.com (John Gabriele)
Date: Fri, 16 Jun 2006 17:50:26 -0400
Subject: rendering mathematical equations
Message-ID: <65e0bb520606161450u6105185fx7865e363e69c7445@mail.gmail.com>
Any recommendations on how I can get mathematical equations into my
resulting html? (Besides using x^2^ type markup.)
I figure I could parse out equation text from my main text before
RedCloth ever sees it... and then maybe create png's somehow from it,
putting the links to them back into the main text before handing it
over to RC. But I don't know of a util that will generate equations
for me.
I've used LaTeX in the past, but that seems like an awful large
program to install and crank up just for a few equations, since I
don't need it for any document layout. (Note though, I think TeX
output is *beautiful*.)
I've heard groff can make equations... But again, I don't need full
document typesetting. Also, groff plus macros also seems like a pretty
big package...
Lout is another one I've come across, but I'm not even sure I can get
png's out of that.
Is there some plugin for RC for rendering equations?
Thanks,
---John
From assaph at gmail.com Sat Jun 17 00:26:27 2006
From: assaph at gmail.com (Assaph Mehr)
Date: Sat, 17 Jun 2006 14:26:27 +1000
Subject: rendering mathematical equations
In-Reply-To: <65e0bb520606161450u6105185fx7865e363e69c7445@mail.gmail.com>
References: <65e0bb520606161450u6105185fx7865e363e69c7445@mail.gmail.com>
Message-ID: <3ff47be90606162126o9feb742odadc4d186fda23d4@mail.gmail.com>
Hi John,
> Is there some plugin for RC for rendering equations?
Strictly off-topic, I don't know how to do this in RedCloth but I've
heard good thing about jsMath[1]. As the name implies it's a
javascript package for rendering math equations on web pages. Never
used, just heard about it.
Cheers,
Assaph
[1] http://www.math.union.edu/~dpvc/jsMath/
From jmg3000 at gmail.com Sun Jun 18 01:15:45 2006
From: jmg3000 at gmail.com (John Gabriele)
Date: Sun, 18 Jun 2006 01:15:45 -0400
Subject: rendering mathematical equations
In-Reply-To: <3ff47be90606162126o9feb742odadc4d186fda23d4@mail.gmail.com>
References: <65e0bb520606161450u6105185fx7865e363e69c7445@mail.gmail.com>
<3ff47be90606162126o9feb742odadc4d186fda23d4@mail.gmail.com>
Message-ID: <65e0bb520606172215j45f1f45cy9e8c1f3f02956fa5@mail.gmail.com>
On 6/17/06, Assaph Mehr wrote:
> Hi John,
>
> > Is there some plugin for RC for rendering equations?
>
> Strictly off-topic, I don't know how to do this in RedCloth but I've
> heard good thing about jsMath[1].
Wow. Seems like a pretty extensive system.
It's interesting to see how much html gets produced by jsMath to
render the equations. It's quite a lot. Also, jsMath seems a bit slow.
I think I'll keep looking for a way to just just create some png's
ahead of time.
Thanks for the input!
---John
From etienne.durand at woa.hu Sun Jun 18 01:24:23 2006
From: etienne.durand at woa.hu (Jean-Etienne Durand)
Date: Sun, 18 Jun 2006 07:24:23 +0200
Subject: rendering mathematical equations
In-Reply-To: <65e0bb520606172215j45f1f45cy9e8c1f3f02956fa5@mail.gmail.com>
References: <65e0bb520606161450u6105185fx7865e363e69c7445@mail.gmail.com> <3ff47be90606162126o9feb742odadc4d186fda23d4@mail.gmail.com>
<65e0bb520606172215j45f1f45cy9e8c1f3f02956fa5@mail.gmail.com>
Message-ID: <4494E387.301@woa.hu>
AFAIK, the simplest way is to use texi2dvi + dvi2png to generate a png
file from a TeX source. This is what I did in a rails project, and it
worked fine and was very easy to implement.
Jean-Etienne
--
Woa! Kft www.novAgora.hu
"All you need in this life is ignorance and confidence; then success is sure.", Mark Twain
John Gabriele wrote:
> On 6/17/06, Assaph Mehr wrote:
>
>> Hi John,
>>
>>
>>> Is there some plugin for RC for rendering equations?
>>>
>> Strictly off-topic, I don't know how to do this in RedCloth but I've
>> heard good thing about jsMath[1].
>>
>
> Wow. Seems like a pretty extensive system.
>
> It's interesting to see how much html gets produced by jsMath to
> render the equations. It's quite a lot. Also, jsMath seems a bit slow.
> I think I'll keep looking for a way to just just create some png's
> ahead of time.
>
> Thanks for the input!
>
> ---John
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
>
>
>
From jmg3000 at gmail.com Sun Jun 18 02:35:01 2006
From: jmg3000 at gmail.com (John Gabriele)
Date: Sun, 18 Jun 2006 02:35:01 -0400
Subject: rendering mathematical equations
In-Reply-To: <4494E387.301@woa.hu>
References: <65e0bb520606161450u6105185fx7865e363e69c7445@mail.gmail.com>
<3ff47be90606162126o9feb742odadc4d186fda23d4@mail.gmail.com>
<65e0bb520606172215j45f1f45cy9e8c1f3f02956fa5@mail.gmail.com>
<4494E387.301@woa.hu>
Message-ID: <65e0bb520606172335k5231205ey2561f01931ff8495@mail.gmail.com>
On 6/18/06, Jean-Etienne Durand wrote:
> AFAIK, the simplest way is to use texi2dvi + dvi2png to generate a png
> file from a TeX source. This is what I did in a rails project, and it
> worked fine and was very easy to implement.
>
> Jean-Etienne
Interesting. I've never tried using texinfo...
Just now I tried creating a simple LaTeX file:
\documentclass{article}
\begin{document}
\[ a_{i}^{2} + b_{j}^{2} = c_{k}^{2} \]
\end{document}
and got a dvi from that, but dvipng gives me a rather large png:
http://www.simisen.com/jmg/temp/foo1.png
I'd need a way to clip the equation out of the big image...
Jeane-Etienne, did you just create a very small texinfo source file
and process that, or was there some trick involved to get the png's to
come out sized correctly -- each containing just one equation (rather
than a whole page)?
---John
From jmg3000 at gmail.com Sun Jun 18 03:07:02 2006
From: jmg3000 at gmail.com (John Gabriele)
Date: Sun, 18 Jun 2006 03:07:02 -0400
Subject: rendering mathematical equations
In-Reply-To: <65e0bb520606172335k5231205ey2561f01931ff8495@mail.gmail.com>
References: <65e0bb520606161450u6105185fx7865e363e69c7445@mail.gmail.com>
<3ff47be90606162126o9feb742odadc4d186fda23d4@mail.gmail.com>
<65e0bb520606172215j45f1f45cy9e8c1f3f02956fa5@mail.gmail.com>
<4494E387.301@woa.hu>
<65e0bb520606172335k5231205ey2561f01931ff8495@mail.gmail.com>
Message-ID: <65e0bb520606180007v4a0fa4fenad4d302d79fa3107@mail.gmail.com>
On 6/18/06, I wrote:
> On 6/18/06, Jean-Etienne Durand wrote:
> > AFAIK, the simplest way is to use texi2dvi + dvi2png to generate a png
> > file from a TeX source. This is what I did in a rails project, and it
> > worked fine and was very easy to implement.
> >
> > Jean-Etienne
>
> Interesting. I've never tried using texinfo...
>
> Just now I tried creating a simple LaTeX file:
>
> \documentclass{article}
> \begin{document}
> \[ a_{i}^{2} + b_{j}^{2} = c_{k}^{2} \]
> \end{document}
>
> and got a dvi from that, but dvipng gives me a rather large png:
> http://www.simisen.com/jmg/temp/foo1.png
>
> I'd need a way to clip the equation out of the big image...
>
> Jeane-Etienne, did you just create a very small texinfo source file
> and process that, or was there some trick involved to get the png's to
> come out sized correctly -- each containing just one equation (rather
> than a whole page)?
Whoops. Ah. Ok, I just needed to shut off page numbering with
\pagestyle{empty} before the \begin line. Then I get
http://www.simisen.com/jmg/temp/foo2.png , and probably just need to
fiddle with margins to get it centered correctly. Sweet!
I think Textile plus this method of adding equations should work very
well. Thanks again for the suggestion!
---John
From iainhaslam at gmail.com Sun Jun 18 05:51:02 2006
From: iainhaslam at gmail.com (Iain Haslam)
Date: Sun, 18 Jun 2006 09:51:02 +0000
Subject: rendering mathematical equations
In-Reply-To: <65e0bb520606180007v4a0fa4fenad4d302d79fa3107@mail.gmail.com>
References: <65e0bb520606161450u6105185fx7865e363e69c7445@mail.gmail.com>
<3ff47be90606162126o9feb742odadc4d186fda23d4@mail.gmail.com>
<65e0bb520606172215j45f1f45cy9e8c1f3f02956fa5@mail.gmail.com>
<4494E387.301@woa.hu>
<65e0bb520606172335k5231205ey2561f01931ff8495@mail.gmail.com>
<65e0bb520606180007v4a0fa4fenad4d302d79fa3107@mail.gmail.com>
Message-ID: <5f7436c0606180251n2d1d96c0sa2db8c52d3fa69ae@mail.gmail.com>
> probably just need to fiddle with margins to get it centered correctly.
The problem of getting png images of equations with LaTeX formatting
has been solved literally hundreds of times previously; don't waste
your time reworking this wheel!
1) Google for "latex equation png", or
2) look at how html2latex (tried and true) or hevea (maintained and
configurable) do it, or
3) use http://redsymbol.net/software/l2p/
Iain.
From iainhaslam at gmail.com Sun Jun 18 06:00:18 2006
From: iainhaslam at gmail.com (Iain Haslam)
Date: Sun, 18 Jun 2006 10:00:18 +0000
Subject: shortcut for full url as the linktext?
In-Reply-To: <65e0bb520606161438k47ced551jcc3342b2af9d947b@mail.gmail.com>
References: <65e0bb520606161324o3dccd9deqcb848a9f9721b9f8@mail.gmail.com>
<8BC1DF82-6ED5-430C-AEC3-205DDAC21339@rufy.com>
<65e0bb520606161438k47ced551jcc3342b2af9d947b@mail.gmail.com>
Message-ID: <5f7436c0606180300y454c6221nc4d12cb7607e2b4e@mail.gmail.com>
> BTW, I really like the new
>
> ```source
> code
> ```
>
> syntax. *Huge* timesaver.
Continuing this particular off-topicness: Lucas, are you aware or in
favour of the bc(code). syntax already being used for this [1]? I
mentioned it previously on the list [2], but elicited no response.
Iain.
[1] http://blog.thought-mesh.net/mt-static/docs/mtmanual_textile.html
[2] First post here:
http://rubyforge.org/pipermail/redcloth-upwards/2006-March.txt
From jmg3000 at gmail.com Sat Jun 24 22:26:51 2006
From: jmg3000 at gmail.com (John Gabriele)
Date: Sat, 24 Jun 2006 22:26:51 -0400
Subject: pre, code, ```,
and a "bc." marker. Was "Re: shortcut for full url as the linktext?"
Message-ID: <65e0bb520606241926l5cb0f8d3r442b90bc72cb459d@mail.gmail.com>
On 6/18/06, Iain Haslam wrote:
> > BTW, I really like the new
> >
> > ```source
> > code
> > ```
> >
> > syntax. *Huge* timesaver.
>
> Continuing this particular off-topicness: Lucas, are you aware or in
> favour of the bc(code). syntax already being used for this [1]? I
> mentioned it previously on the list [2], but elicited no response.
>
> Iain.
>
> [1] http://blog.thought-mesh.net/mt-static/docs/mtmanual_textile.html
> [2] First post here:
> http://rubyforge.org/pipermail/redcloth-upwards/2006-March.txt
Sorry for the late reply...
Iain, how would "bc." work for multi-line code snippets with spaces
between some lines? For example, with 'bq.', if I break a line, I
leave the blockquote. It would seem to me that tags you can open and
close (```like these```) would be more suitable for putting chunks of
code in.
BTW, I'd love to see ```(ruby) whatever``` give me syntax highlighted code. :)
Not sure I've installed the svn version correctly, but putting
anything in parentheses after the ``` doesn't seem to produce any
extra "class=ruby" at all... I just get that extra text (like, say,
'(ruby)') inside my pre/code tags.
---John
From jmg3000 at gmail.com Sat Jun 24 22:46:43 2006
From: jmg3000 at gmail.com (John Gabriele)
Date: Sat, 24 Jun 2006 22:46:43 -0400
Subject: brief svn download and install instructions?
Message-ID: <65e0bb520606241946l7aca1120t76aa7677fecf85ef@mail.gmail.com>
Could someone please give some instructions for downloading, building,
and installing redcloth from svn?
To retrieve it, I've tried the basic:
svn checkout svn+ssh://code.whytheluckystiff.net/svn/redcloth
and
svn checkout svn+ssh://anonymous at code.whytheluckystiff.net/svn/redcloth
but I just get a connection refused message.
Thanks,
---John
From assaph at gmail.com Mon Jun 26 19:56:57 2006
From: assaph at gmail.com (Assaph Mehr)
Date: Tue, 27 Jun 2006 09:56:57 +1000
Subject: brief svn download and install instructions?
In-Reply-To: <65e0bb520606241946l7aca1120t76aa7677fecf85ef@mail.gmail.com>
References: <65e0bb520606241946l7aca1120t76aa7677fecf85ef@mail.gmail.com>
Message-ID: <3ff47be90606261656k329c96b3jdf09c6883ae82ef0@mail.gmail.com>
> svn checkout svn+ssh://code.whytheluckystiff.net/svn/redcloth
svn checkout http://code.whytheluckystiff.net/svn/redcloth
Cheers,
Assaph
From iainhaslam at gmail.com Tue Jun 27 05:41:44 2006
From: iainhaslam at gmail.com (Iain Haslam)
Date: Tue, 27 Jun 2006 10:41:44 +0100
Subject: pre, code, ```,
and a "bc." marker. Was "Re: shortcut for full url as the linktext?"
In-Reply-To: <65e0bb520606241926l5cb0f8d3r442b90bc72cb459d@mail.gmail.com>
References: <65e0bb520606241926l5cb0f8d3r442b90bc72cb459d@mail.gmail.com>
Message-ID: <5f7436c0606270241x18c0f143u3797b14018f82b8d@mail.gmail.com>
> Iain, how would "bc." work for multi-line code snippets with spaces
> between some lines? For example, with 'bq.', if I break a line, I
> leave the blockquote. It would seem to me that tags you can open and
> close (```like these```) would be more suitable for putting chunks of
> code in.
I would suggest using the "extended blocks" bc.. notation. It
indicates that formatting should remain the same until the next
formatting instruction. It's useful for bq.. too, although I don't
think redcloth currently supports it. I have seen this in other
textile implementations, eg [1], but I don't think redcloth does it
yet.
> BTW, I'd love to see ```(ruby) whatever``` give me syntax highlighted code. :)
Great that someone else thinks the same. My implementation (bc. only)
was based on an old version of redcloth, but I'm sure it wouldn't take
me long to get it working against the svn version.
Regards,
Iain.
[1] http://www.brajeshwar.com/faq/mtmanual_textile2.html#extended_blocks