From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17532 Path: news.gmane.org!.POSTED!not-for-mail From: mb21 Newsgroups: gmane.text.pandoc Subject: Re: Markdown for AMP Project https://www.ampproject.org/ Date: Tue, 2 May 2017 14:09:50 -0700 (PDT) Message-ID: References: <74722d2b-3362-48e3-a0b4-fa4502bc8005@googlegroups.com> <886bb176-054d-4e41-ba2e-7058e30ad355@googlegroups.com> <382a2f59-fca3-4409-8b05-10bd7e884a70@googlegroups.com> <01c43386-de61-d9c5-7db0-9e422e7aeddd@F123.org> <20170501171417.GA2499@protected.rcdrun.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2225_437824804.1493759390464" X-Trace: blaine.gmane.org 1493759391 8811 195.159.176.226 (2 May 2017 21:09:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 2 May 2017 21:09:51 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDCMBBVJ5EFBBH7LUPEAKGQEF24XFZY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 02 23:09:47 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pg0-f59.google.com ([74.125.83.59]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5f3J-0002BT-WB for gtp-pandoc-discuss@m.gmane.org; Tue, 02 May 2017 23:09:46 +0200 Original-Received: by mail-pg0-f59.google.com with SMTP id t7sf13368175pgt.0 for ; Tue, 02 May 2017 14:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=TnQtn6X3vMm8/hL8DqYwv1PucY1i+88W02PzgtLKppM=; b=ftLwb1t3Ex1u3NiBIgs50wTAekKHWw5rUsemFfZboT+0KqGhKtUSbfNu9vQcyoiDnj uSHVdaDkxWMJEAfEfpU4lexeCUPUTbLy5As7qJ1JHfLmAEni/LSXaZGGmtl+mAl1u7Jc d+agUcHawAM/ercXTP+LQcEvIQorlfM9mIvxl4DgKJ0LIirEij6iquPI93WDANh3HCvJ hkLKODLjB/nKRkvfkF39WEaHKk9SDjjWhE34isNGxTfVAvT4scmFwKCKGsYCzR8AgyLu 7cpB8gtRUR0u0KAP1PkRt/1pBDqujdJC1a+lQZ+JfM9ij8tzCEnLDVjJEWt1j5AL21qF 93QA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=TnQtn6X3vMm8/hL8DqYwv1PucY1i+88W02PzgtLKppM=; b=b9GrEgaSi/8Ksq9XHk7suYWQrYuSI0NVpSECqxPt95Xl2ERfObWZ+Z9753BYrpbYfT fZNSAcoX4vsgZFHc/i69tWpCYvM4gQpd7BoqAZ6umelhBNl9McofbP+xZdv4QKmSZplN d+ju5coRXrbe3LBKfitTXevYPWSKjdHXhhKwOC/lreLHvJ0yiMa2hlFmTmQB3yco30Zj TirypfOUl6CB2K7eDNoUMwrONEVEYL4n9fZnyxkqpH3NT4ulJkMg9BeRp6WNCqK6Qmw0 LtEZJDHOzgog+smQrQXsUzLx9dgg7uJkpVrKBn/ki8VxaNLqv/iQxR19Un52MwiYlo85 9IQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=TnQtn6X3vMm8/hL8DqYwv1PucY1i+88W02PzgtLKppM=; b=G1xxo7FEY/75UyhQofx4py0qThMGN0xQY8z6fwDudWH2UpJgnz17mqMMqhxIYQkzXs NN7rvJvXfeBMjl8iykaYyZYaqGcnK+MMBYKqYJPoBTT2y2QVdNr4/TEqy3rluEpkDyQ1 RXjNEh2IEDLABGWNnTj+qquEFDrmPs1VpidY+QX0FQv6VwWd2s8/NioNS1txSe/iZjxF AkvfPalBzH7wr1bkZoFdz8f4YJopvL7nT8JgVf5b9NpTFDBMNqlMgBKm5mYjSRNG7M1a l6UZVHOn/AyFG5e9dcgcKoxLzoIvZYCkcC2DbKIQOIKr8yvyUdU25x7xnghCRau3O9Er oyAg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AN3rC/7FM982VWqB3JNTLQ8FoHlMGFhCZldmVetw0OEExujb+HHtFqZz yjhL8U0fmTbPRw== X-Received: by 10.157.39.138 with SMTP id c10mr542304otb.9.1493759391476; Tue, 02 May 2017 14:09:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.43.202 with SMTP id u68ls1966998ota.20.gmail; Tue, 02 May 2017 14:09:51 -0700 (PDT) X-Received: by 10.157.33.109 with SMTP id l42mr665329otd.7.1493759390974; Tue, 02 May 2017 14:09:50 -0700 (PDT) In-Reply-To: <20170501171417.GA2499-vvHXCvOI15V+RnA8QueWCFaTQe2KTcn/@public.gmane.org> X-Original-Sender: mauro.bieg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:17532 Archived-At: ------=_Part_2225_437824804.1493759390464 Content-Type: multipart/alternative; boundary="----=_Part_2226_47708234.1493759390465" ------=_Part_2226_47708234.1493759390465 Content-Type: text/plain; charset=UTF-8 @Jean, you know you can specify image sizes in pandoc as well, right? see http://pandoc.org/MANUAL.html#images On Monday, May 1, 2017 at 7:18:56 PM UTC+2, RCDRUN wrote: > > On Mon, May 01, 2017 at 01:39:34PM -0300, Fernando Botelho wrote: > > it would be really neat for the non-technical among us, if we could have > > this as a file format option. That way we could choose to convert to it > as > > easily as we convert to normal html. > > I am attaching the AMP template I am using. > > I see that AMP HTML tags do not require much adaptation to normal HTML > tags. https://www.ampproject.org/docs/reference/spec > > video and audio tags I am generating by using the plugin, and it is > then complicated. The plugin recognizes if it is AMP page, or if it is > email, or HTML page, and expands into corresponding correct tag. > > <% (princ (cl-user::plugin-video :src "some-video.webm" :width 640 :height > 480)) %> > > The images were my problem, and still I don't know how to implement in > custom Lua writer possibility to provide image width and height. Once > I solve that, I can send it to the list. > > I am using discount markdown that allows me to correctly specify > image sizes such as: > > ![SAM_0020.JPG]( > http://www.startyourowngoldmine.com/images/syogm/tanzania/2017/02/2017-02-04/SAM_0020.JPG > =2048x1536 "SAM_0020.JPG") > > So now I am simply thinking not to use Pandoc, just to recompile the > discount markdown to have the IMG tag correct for AMP, and I am done > myself. > > Jean > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a1643278-9ec1-46a7-80d8-c0238b5b9f22%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_2226_47708234.1493759390465 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
@Jean, you know you can specify image sizes in pandoc as w= ell, right? see=C2=A0http:= //pandoc.org/MANUAL.html#images

On Monday, May 1, 2017 at 7:18:5= 6 PM UTC+2, RCDRUN wrote:
On Mo= n, May 01, 2017 at 01:39:34PM -0300, Fernando Botelho wrote:
> it would be really neat for the non-technical among us, if we coul= d have
> this as a file format option. That way we could choose to convert = to it as
> easily as we convert to normal html.

I am attaching the AMP template I am using.

I see that AMP HTML tags do not require much adaptation to normal HTML
tags. http= s://www.ampproject.org/docs/reference/spec

video and audio tags I am generating by using the plugin, and it is
then complicated. The plugin recognizes if it is AMP page, or if it is
email, or HTML page, and expands into corresponding correct tag.

<% (princ (cl-user::plugin-video :src "some-video.webm" :w= idth 640 :height 480)) %>

The images were my problem, and still I don't know how to implement= in
custom Lua writer possibility to provide image width and height. Once
I solve that, I can send it to the list.

I am using discount markdown that allows me to correctly specify
image sizes such as:

![SAM_0020.JPG](= http://www.startyourowngoldmine.com/images/syogm/tanzania/2017/02= /2017-02-04/SAM_0020.JPG =C2=A0=3D2048x1536 "SAM_0020.JPG&quo= t;)

So now I am simply thinking not to use Pandoc, just to recompile the
discount markdown to have the IMG tag correct for AMP, and I am done
myself.

Jean

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/a1643278-9ec1-46a7-80d8-c0238b5b9f22%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_2226_47708234.1493759390465-- ------=_Part_2225_437824804.1493759390464--