From jg at jasongarber.com Thu Aug 20 20:34:41 2009 From: jg at jasongarber.com (Jason Garber) Date: Thu, 20 Aug 2009 20:34:41 -0400 Subject: The rewrite Message-ID: <522B2034-88AB-45DF-BB0D-D100A24F76DC@jasongarber.com> Hi, RedCloth watchers. Just wanted to tell you Gaspard and I have agreed on a rewrite plan. We're setting up a project to compare redcloth-treetop and redcloth-regexp and any other alternatives that come along. We'll implement some common features and then ask the Ruby community to weigh in on what they like and what they don't. Hopefully that will give us a clear sense of where to go with it. Certainly by now you've heard about _why. RedCloth owes everything to him and I hope I can speak for all of us when I say we're extremely grateful for the code he gave us over the years and the contributions he made to the community. He'll be missed if, in fact, he's truly gone. Jason From hgs at dmu.ac.uk Fri Aug 21 06:17:11 2009 From: hgs at dmu.ac.uk (Hugh Sasse) Date: Fri, 21 Aug 2009 11:17:11 +0100 (BST) Subject: The rewrite In-Reply-To: <522B2034-88AB-45DF-BB0D-D100A24F76DC@jasongarber.com> References: <522B2034-88AB-45DF-BB0D-D100A24F76DC@jasongarber.com> Message-ID: On Thu, 20 Aug 2009, Jason Garber wrote: > Hi, RedCloth watchers. Just wanted to tell you Gaspard and I have agreed on a > rewrite plan. We're setting up a project to compare redcloth-treetop and > redcloth-regexp and any other alternatives that come along. We'll implement I've not looked at racc for years, but that might be a possibility. > some common features and then ask the Ruby community to weigh in on what they > like and what they don't. Hopefully that will give us a clear sense of where > to go with it. Sounds good. > > Certainly by now you've heard about _why. RedCloth owes everything to him and > I hope I can speak for all of us when I say we're extremely grateful for the > code he gave us over the years and the contributions he made to the community. > He'll be missed if, in fact, he's truly gone. In the Art and Code talk he was self-deprecating about his code, and, regrettably, once I was harsh about some bloopsaphone code which I didn't realize was one of his projects. But _Why had already learned something I'm still trying to take on board, that often quickly rolled together code that does the job is MUCH better than code which is "done properly" by the standards of computer science purists but is too late to be useful. He was phenomenally productive as a programmer, produced stuff many people used, and it was novel, reaching into niches others never considered. Some of the artistic work I still don't understand, but there was genius there. Why do the cartoon foxes in the Poignant Guide "work", on any level? I don't know. I'm glad he had the nerve to risk ridicule, and produce something so wonderfully bizarre. To receive praise from him like: http://thread.gmane.org/gmane.comp.lib.shoes/1623/focus=1627 was something I really appreciated and still do. I hope he is still about somewhere, if only so he can look at the web and see he was valued. If he's dramatically taken a sabbatical, I hope he enjoys it. > > Jason Hugh > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards From lists at ruby-forum.com Tue Aug 25 03:13:03 2009 From: lists at ruby-forum.com (Prateek Dayal) Date: Tue, 25 Aug 2009 09:13:03 +0200 Subject: Redcloth repeating text incorrectly Message-ID: <99cbb659e3682862255375328e0e0c92@ruby-forum.com> Hi, I am trying this with RedCloth 4.2.2 and it is also reproducible at http://redcloth.org/try-redcloth/ If I input a text like Hello, Really.. I don't think so Please check again The processed text comes out as Hello, Really.. I don?t think so Really.. I don?t think soPlease check again As you can see some text is randomly repeated (unless this is a feature that I don't know/ have not been able to find). Please let me know what needs to be done to fix this. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Tue Aug 25 03:13:11 2009 From: lists at ruby-forum.com (Prateek Dayal) Date: Tue, 25 Aug 2009 09:13:11 +0200 Subject: Redcloth repeating text incorrectly Message-ID: <56d31cb3e31887b7c7e4bcfbf97b1f6f@ruby-forum.com> Hi, I am trying this with RedCloth 4.2.2 and it is also reproducible at http://redcloth.org/try-redcloth/ If I input a text like Hello, Really.. I don't think so Please check again The processed text comes out as Hello, Really.. I don?t think so Really.. I don?t think soPlease check again As you can see some text is randomly repeated (unless this is a feature that I don't know/ have not been able to find). Please let me know what needs to be done to fix this. Thanks Prateek Dayal -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Tue Aug 25 03:16:11 2009 From: lists at ruby-forum.com (Prateek Dayal) Date: Tue, 25 Aug 2009 09:16:11 +0200 Subject: Redcloth repeating text incorrectly In-Reply-To: <56d31cb3e31887b7c7e4bcfbf97b1f6f@ruby-forum.com> References: <56d31cb3e31887b7c7e4bcfbf97b1f6f@ruby-forum.com> Message-ID: I was posting using the web interface and the thread was posted twice. My apologies for the trouble caused Regards Prateek Dayal Prateek Dayal wrote: > Hi, > > I am trying this with RedCloth 4.2.2 and it is also reproducible at > http://redcloth.org/try-redcloth/ > > If I input a text like > > Hello, > > Really.. I don't think so > > Please check again > > The processed text comes out as > > Hello, > > Really.. I don?t think so > > Really.. I don?t think soPlease check again > > As you can see some text is randomly repeated (unless this is a feature > that I don't know/ have not been able to find). > > Please let me know what needs to be done to fix this. > > Thanks > Prateek Dayal -- Posted via http://www.ruby-forum.com/. From ayqazi at gmail.com Wed Aug 26 14:18:06 2009 From: ayqazi at gmail.com (Asfand Yar Qazi) Date: Wed, 26 Aug 2009 19:18:06 +0100 Subject: Opening links in a new window Message-ID: <79328ea80908261118u25093a3an1e0ac6789b461732@mail.gmail.com> Hi, Short question: How do I create links that open in a new browser window/tab without resorting to raw HTML? Long question: So I want to have links like so: This is a link I've got some javascript that runs on every page after it is loaded and translates the rel='external' into target='_blank'. Stupid XHTML 1.0 strict doesn't allow target='_blank' even though all browsers support it, so the javascript magic is purely so my html is validated against it. I know I can just put raw HTML in, but I don't want to. There has to be an easier way, using the lovely RedCloth syntax. Help? Thanks From lbocseg at yahoo.com.br Fri Aug 28 07:16:18 2009 From: lbocseg at yahoo.com.br (Rodrigo Rosenfeld Rosas) Date: Fri, 28 Aug 2009 11:16:18 +0000 Subject: Opening links in a new window In-Reply-To: <79328ea80908261118u25093a3an1e0ac6789b461732@mail.gmail.com> References: <79328ea80908261118u25093a3an1e0ac6789b461732@mail.gmail.com> Message-ID: <4A97BC82.7040701@yahoo.com.br> Em 26-08-2009 18:18, Asfand Yar Qazi escreveu: > Hi, > > ... > I've got some javascript that runs on every page after it is loaded > and translates the rel='external' into target='_blank'. Stupid XHTML > 1.0 strict doesn't allow target='_blank' even though all browsers > support it, so the javascript magic is purely so my html is validated > against it. > > Hi Asfand, sorry I don't know the answer, but I'm curious. Why do you need it to be validated as XHTML strict? The idea behind XHTML strict is to make your site accessible. Using Javascript per se makes your site innacessible (more than using target="_blank"), since Javascript is not standardized. And what do you mean by "all browsers"? Do you know there are console browsers, brailer browsers, cell phones, etc? Opening a new page is not always clear in all environments. It is easy to understand that a knew page is open when a normal person stands in front of a common desktop browser. But XHTML stricts aims at accessibility and that is why the target attribute is not allowed. If you are not concerned about making your site accessible to blind people or mobile users, than you should not be using XHTML Strict, in my opinion. Choose one that allows target attribute instead of using Javascript where you don't need it. Or does your client asked the pages to be validated with XHTML Strict? If so, and if they are concerned about accessibility, the approach you are taking will not be accepted by it. But if the client just doesn't know what XHTML Strict mean, then feel free to continue doing it that way. Rodrigo. __________________________________________________ Fa?a liga??es para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/ From ayqazi at gmail.com Fri Aug 28 09:20:04 2009 From: ayqazi at gmail.com (Asfand Yar Qazi) Date: Fri, 28 Aug 2009 14:20:04 +0100 Subject: Opening links in a new window In-Reply-To: <4A97BC82.7040701@yahoo.com.br> References: <79328ea80908261118u25093a3an1e0ac6789b461732@mail.gmail.com> <4A97BC82.7040701@yahoo.com.br> Message-ID: <79328ea80908280620r4a79535dk718f8ede545f9c70@mail.gmail.com> In other words it's not possible - that's all I needed to know :-) If a person's browser does not support opening links in a new window, then the link will simply open in the same window. In other words, by conforming to XHTML 1.0 Strict, the functionality is not reduced, just a bit of convenience goes away. But for the majority of my users' browsers, the bit of extra convenience is added to allow the link to open in a new window. 2009/8/28 Rodrigo Rosenfeld Rosas : > Em 26-08-2009 18:18, Asfand Yar Qazi escreveu: >> >> Hi, >> >> ... >> I've got some javascript that runs on every page after it is loaded >> and translates the rel='external' into target='_blank'. ?Stupid XHTML >> 1.0 strict doesn't allow target='_blank' even though all browsers >> support it, so the javascript magic is purely so my html is validated >> against it. >> >> > > Hi Asfand, sorry I don't know the answer, but I'm curious. Why do you need > it to be validated as XHTML strict? > > The idea behind XHTML strict is to make your site accessible. Using > Javascript per se makes your site innacessible (more than using > target="_blank"), since Javascript is not standardized. > > And what do you mean by "all browsers"? Do you know there are console > browsers, brailer browsers, cell phones, etc? Opening a new page is not > always clear in all environments. It is easy to understand that a knew page > is open when a normal person stands in front of a common desktop browser. > But XHTML stricts aims at accessibility and that is why the target attribute > is not allowed. If you are not concerned about making your site accessible > to blind people or mobile users, than you should not be using XHTML Strict, > in my opinion. Choose one that allows target attribute instead of using > Javascript where you don't need it. > > Or does your client asked the pages to be validated with XHTML Strict? If > so, and if they are concerned about accessibility, the approach you are > taking will not be accepted by it. But if the client just doesn't know what > XHTML Strict mean, then feel free to continue doing it that way. > > Rodrigo. > __________________________________________________ > Fa?a liga??es para outros computadores com o novo Yahoo! Messenger > http://br.beta.messenger.yahoo.com/ > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards > From jg at jasongarber.com Fri Aug 28 21:44:01 2009 From: jg at jasongarber.com (Jason Garber) Date: Fri, 28 Aug 2009 21:44:01 -0400 Subject: Redcloth repeating text incorrectly In-Reply-To: References: <56d31cb3e31887b7c7e4bcfbf97b1f6f@ruby-forum.com> Message-ID: <3D57B8CF-85B7-4769-AA65-9030022EF6C3@jasongarber.com> No problem, Prateek. I'll mark it as a bug. The reason is the double period On Aug 25, 2009, at 3:16 AM, Prateek Dayal wrote: > I was posting using the web interface and the thread was posted twice. > My apologies for the trouble caused > > Regards > Prateek Dayal > > Prateek Dayal wrote: >> Hi, >> >> I am trying this with RedCloth 4.2.2 and it is also reproducible at >> http://redcloth.org/try-redcloth/ >> >> If I input a text like >> >> Hello, >> >> Really.. I don't think so >> >> Please check again >> >> The processed text comes out as >> >> Hello, >> >> Really.. I don?t think so >> >> Really.. I don?t think soPlease check again >> >> As you can see some text is randomly repeated (unless this is a >> feature >> that I don't know/ have not been able to find). >> >> Please let me know what needs to be done to fix this. >> >> Thanks >> Prateek Dayal > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards From jg at jasongarber.com Sat Aug 29 03:09:02 2009 From: jg at jasongarber.com (Jason Garber) Date: Sat, 29 Aug 2009 03:09:02 -0400 Subject: Opening links in a new window In-Reply-To: <79328ea80908261118u25093a3an1e0ac6789b461732@mail.gmail.com> References: <79328ea80908261118u25093a3an1e0ac6789b461732@mail.gmail.com> Message-ID: <4064FDE9-4C3A-4613-B557-29A88AC941E9@jasongarber.com> I'd say using Javascript instead of target="_blank" is a good call. May I suggest, then, just using a CSS class to denote which should be external? Any JS library should be able to observe all A tags of a certain class and make them open in a new window. On Aug 26, 2009, at 2:18 PM, Asfand Yar Qazi wrote: > Hi, > > Short question: > > How do I create links that open in a new browser window/tab without > resorting to raw HTML? > > Long question: > > So I want to have links like so: > > This is a link > > I've got some javascript that runs on every page after it is loaded > and translates the rel='external' into target='_blank'. Stupid XHTML > 1.0 strict doesn't allow target='_blank' even though all browsers > support it, so the javascript magic is purely so my html is validated > against it. > > I know I can just put raw HTML in, but I don't want to. There has to > be an easier way, using the lovely RedCloth syntax. Help? > > Thanks > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards From ayqazi at gmail.com Sat Aug 29 05:26:55 2009 From: ayqazi at gmail.com (Asfand Yar Qazi) Date: Sat, 29 Aug 2009 10:26:55 +0100 Subject: Opening links in a new window In-Reply-To: <4064FDE9-4C3A-4613-B557-29A88AC941E9@jasongarber.com> References: <79328ea80908261118u25093a3an1e0ac6789b461732@mail.gmail.com> <4064FDE9-4C3A-4613-B557-29A88AC941E9@jasongarber.com> Message-ID: <79328ea80908290226o69188334s1c0825d51fc103f8@mail.gmail.com> That's actually a brilliant idea. I didn't think of that. It makes perfect sense. I was using the guidelines of some article that said use rel=external instead of target=_blank. On the other hand, having thought about what Rodrigo said, and read a few articles, I think I might just stop opening links in a new window anyway. It confuses or annoys users apparently. Thanks all 2009/8/29 Jason Garber : > I'd say using Javascript instead of target="_blank" is a good call. ?May I > suggest, then, just using a CSS class to denote which should be external? > ?Any JS library should be able to observe all A tags of a certain class and > make them open in a new window. > > On Aug 26, 2009, at 2:18 PM, Asfand Yar Qazi wrote: > >> Hi, >> >> Short question: >> >> How do I create links that open in a new browser window/tab without >> resorting to raw HTML? >> >> Long question: >> >> So I want to have links like so: >> >> This is a link >> >> I've got some javascript that runs on every page after it is loaded >> and translates the rel='external' into target='_blank'. ?Stupid XHTML >> 1.0 strict doesn't allow target='_blank' even though all browsers >> support it, so the javascript magic is purely so my html is validated >> against it. >> >> I know I can just put raw HTML in, but I don't want to. ?There has to >> be an easier way, using the lovely RedCloth syntax. ?Help? >> >> Thanks >> _______________________________________________ >> 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 >