From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/360 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Status of textile branch Date: Sun, 7 Nov 2010 15:21:04 -0800 Message-ID: <20101107232104.GC8043@protagoras.phil.berkeley.edu> References: <4C91ECEC.8080606@gmail.com> <20101022160052.GA25925@protagoras.phil.berkeley.edu> <87iq09gcu3.fsf@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1289172231 21161 80.91.229.12 (7 Nov 2010 23:23:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Nov 2010 23:23:51 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncCO38oIeaEBD16dzmBBoE30QRmw-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Nov 08 00:23:47 2010 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pw0-f58.google.com ([209.85.160.58]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PFEaN-0002V0-08 for gtp-pandoc-discuss@m.gmane.org; Mon, 08 Nov 2010 00:23:43 +0100 Original-Received: by pwj10 with SMTP id 10sf1442197pwj.3 for ; Sun, 07 Nov 2010 15:23:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:received:date:from:to:subject :message-id:references:mime-version:in-reply-to:x-pgp-key:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type :content-disposition:content-transfer-encoding; bh=5NmE3oSx7VaZ7NCChTb75h+kl4xdHAasNFMjr3501sM=; b=5UG6SSSlyIbG45Di3zbY40ZLUaXD1DtfWSdm8Loi99uClTeTNGdqKklUlQrHZa+RMJ 6j3zDtSdFHbwAdg8XNBSSIfKVNxpTFZ2A7gt/egMl/cPTyxwdmWl8AjZKbm3RvN0gdtd fkNLpI1jK6snGrfz0Xm0ZME49wGklZzCRr8GM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:date:from:to:subject:message-id:references :mime-version:in-reply-to:x-pgp-key:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition :content-transfer-encoding; b=yFSNCSOnJSfrbp+imd7wuuk6T3g7+aTaVaD3N4BqsxIMdD7lAOLyNtP3UWWPVDSPkj MmBwkzwr7z0OT89Tla08m2KQ5tveDAZMr6lKMg2gYCGriFK5+nOwkASkKiqRpuxE8AiQ R0ztZ6WwV9csNMU9YSQjfC2u+OFK4yDSrDJwg= Original-Received: by 10.142.249.18 with SMTP id w18mr221953wfh.8.1289172213618; Sun, 07 Nov 2010 15:23:33 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.142.78.15 with SMTP id a15ls7356358wfb.2.p; Sun, 07 Nov 2010 15:23:25 -0800 (PST) Original-Received: by 10.142.44.21 with SMTP id r21mr3347898wfr.56.1289172205204; Sun, 07 Nov 2010 15:23:25 -0800 (PST) Original-Received: by 10.142.44.21 with SMTP id r21mr3347897wfr.56.1289172205180; Sun, 07 Nov 2010 15:23:25 -0800 (PST) Original-Received: from cm03fe.IST.Berkeley.EDU (cm03fe.IST.Berkeley.EDU [169.229.218.144]) by gmr-mx.google.com with ESMTP id p40si8997187wfc.6.2010.11.07.15.23.25; Sun, 07 Nov 2010 15:23:25 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 169.229.218.144 as permitted sender) client-ip=169.229.218.144; Original-Received: from protagoras.phil.berkeley.edu ([128.32.137.142]) by cm03fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1PFEa3-0001AA-Ak for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Sun, 07 Nov 2010 15:23:24 -0800 Original-Received: by protagoras.phil.berkeley.edu (Postfix, from userid 1000) id F0B82131777; Sun, 7 Nov 2010 15:21:04 -0800 (PST) In-Reply-To: <87iq09gcu3.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.20 (2009-06-14) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 169.229.218.144 as permitted sender) smtp.mail=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: List-Post: , List-Help: , List-Archive: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Content-Disposition: inline Xref: news.gmane.org gmane.text.pandoc:360 Archived-At: +++ Paul R [Nov 07 10 20:20 ]: > Hi John ! >=20 > With great pleasure, I just found some time to hack on the textile > reader. >=20 > John> I tested it on the sample text at textism.com, and noticed a few > John> things. First, textile allows you to attach attributes to a lot of > John> the constructions, e.g. h2{color:green} bq[fr] Pandoc should just > John> ignore these, but they trip up the reader as it currently stands. >=20 > Ok, I just pushed that feature to github. >=20 > John> There are a few other things that didn't convert well, like the > John> raw HTML bits. >=20 > How to fix this one is not really clear to my eyes. The reference I use > ( http://redcloth.org/hobix.com/textile/ ) says "HTML will only be > escaped if it=92s found in a pre or code block". So every others html > constructions are designed to enclose regular textile constructs. > However, Pandoc rawHtml contructs are designed to handle the case of > plain string contents, so they don't fit the textile spec. Not sure what you mean here. Pandoc's markdown allows raw html around pandoc constructions: you can do *emphasized*, for example. This would give you a sequence with one raw Html inline, then an Emph inline, than another raw Html inline. So you should be able to use the same code, more or less, that the markdown reader uses. > We could work around that by: > - treating the html content as string > - adding a new block constructor and a new inline constructor > - dropping the html tags >=20 > What do you think ? >=20 > John> I was pleased to see that you added a test suite, though it still > John> needs expanding. It should be a rough copy of the other reader > John> test suites, in the sense that it covers the same constructions, > John> plus things that are unique to textile (for example, the > John> attributes on h2 above). >=20 > I updated the test suite accordingly to the new feature. Great! By the way, have you been using my textile writer at all? I seem to recall that it was missing a few features, but I can't remember what they were or why I decided not to release it. John --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to pandoc-discuss+unsubscribe@go= oglegroups.com. For more options, visit this group at http://groups.google.com/group/pandoc= -discuss?hl=3Den.