From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/16640 Path: news.gmane.org!.POSTED!not-for-mail From: Kolen Cheung Newsgroups: gmane.text.pandoc Subject: Re: [Feature Request] Filter with arguments Date: Sun, 8 Jan 2017 12:51:55 -0800 (PST) Message-ID: <434dc10f-02a1-4bbc-a41c-3a29398ca635@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3302_1906262142.1483908715810" X-Trace: blaine.gmane.org 1483908727 30102 195.159.176.226 (8 Jan 2017 20:52:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2017 20:52:07 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS252WXTEIBB3GMZLBQKGQENE3YR7Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jan 08 21:52:02 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qt0-f188.google.com ([209.85.216.188]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQKRU-0006Aj-Ct for gtp-pandoc-discuss@m.gmane.org; Sun, 08 Jan 2017 21:51:52 +0100 Original-Received: by mail-qt0-f188.google.com with SMTP id l7sf18621253qtd.1 for ; Sun, 08 Jan 2017 12:51:57 -0800 (PST) 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=HorH+U/TOoyJL2pHWAayjl65R7khU6QLBGB75JC0+U8=; b=cduzdUwzwGYdJQQMYCN/LWihaai3S4X9rfyPfBk8jukmWaI2CpJDju5ZgJu7jCelKi ePYbCXVjw6B1YZ4e74UCCkqdPCOUlCgw4w2Whs4fEi7o6wU9ZBkC5OJnDOB9eur40FFi tq5GrcRaNN9SpmhhGsvy03e8I80QOaB642jAGLJ14RoANMNEqmmHwsjdmbNR0iBCTdE9 NAuZi1atXmJ0c+s5YkGQ68cL3DrAw085WxQ4uFWfrTdQ0VxduDuDw4yfszsxYeTUjSvU bbJZwtwIyy2Ze8YmXo6odxof80gCpLHHC+t1hqh9KI/yoZFSu4rfxpmKfjERj7G3MoDU 9IRQ== 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=HorH+U/TOoyJL2pHWAayjl65R7khU6QLBGB75JC0+U8=; b=ZnBjQKZgDLjTZxke48lKW+EwoUawQPndKAFTAoBzP8RUnaMSmhwkmtMY4hgqIKbWcB N5XbY52A7SYnSJc4lEeoVoubKgr5+Gkgw34vGt1skEdOtvZQuw976Ef9GUILxYXUz4kX EXnkwzwxuSo0PLUxl/FV0Q+0M1URPANJt1V6BzQucFU9qOWkUYbM17708vCQYTIzLtKF vEDZFFFmFR+mCAxL1oJ4X18tucSTq55qlfw1T3PBl7o750ZjM5SuhAZssQSUxLlaj0NM 65p5pHZLhb+HgiS/ebHG4LkIy5pzueHZJO5gDcNRzr1Zh742EBQy04mGoSMGn9IpcOcy g4wA== 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=HorH+U/TOoyJL2pHWAayjl65R7khU6QLBGB75JC0+U8=; b=jWw50FrMIrxFyb7nOkXAb+9wyKyoztMvbFA0Mz8mNWlCa03lextUdrzZvQ8C+LwUDu MGQj/zJiiwlDeRZ5oynsrlvGheeXTYjtYymT3pmB/oqRZg9itSI1cTHMJSm1TcpRBkAA 2ASGUQuF5eDSC9CUvREAjm/ckgZ57+mXc9ZuQFtue2+5rNHk3aghpl0AKb2ruqO1O3xh 3rKpP0vwTgrnX3RXlKz6QXiDXdjiQm9rEjkknsQK0yQPFDqXe8K3mzw0s+GadFjmgku5 OKyz51RY/1wUm3UcQEehqrV1Cs+H98MNd7sXcauc7SmHJysvsrzhMZoVkECiTqWy2mpN bB1A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIkVDXJeRoQif6FHTdYH/Q4/HynsiCiqoBYcLs4l2U1bjcJhFh46QLh3rAUGHBjlOefibw== X-Received: by 10.157.6.77 with SMTP id 71mr722608otn.13.1483908716696; Sun, 08 Jan 2017 12:51:56 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.59.229 with SMTP id k92ls4809089otc.18.gmail; Sun, 08 Jan 2017 12:51:56 -0800 (PST) X-Received: by 10.157.48.39 with SMTP id d36mr723548otc.1.1483908716330; Sun, 08 Jan 2017 12:51:56 -0800 (PST) In-Reply-To: X-Original-Sender: christian.kolen-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:16640 Archived-At: ------=_Part_3302_1906262142.1483908715810 Content-Type: multipart/alternative; boundary="----=_Part_3303_284773170.1483908715810" ------=_Part_3303_284773170.1483908715810 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Just to mention another disadvantage of -M option that I haven=E2=80=99t in= cluded=20 in the summary above: if the options is specified in this way, it will=20 =E2=80=9Cburn-into=E2=80=9D the document. But one of the application I need= is to go freely=20 in a round trip (converting pandoc Table to CSV CodeBlock in one pass, and= =20 convert the CSV CodeBlock back to pandoc Table in another pass). But since= =20 the -M metadata will accumulate, this is a no-go at least for me. Because= =20 of this, I now see why @jgm recommends using environment variables among=20 the currently working methods. But the potential difficulties for Windows= =20 users is still a concern. And the new suggestions of -F FILTERNAME[=3DFILTEROPTIONS] seems cleanest.= =20 For ugly filter name: -F "My Cool Filter.py"=3D"--some --cool --arg". Don= =E2=80=99t=20 know if this will make the life of pandoc-mode or panzer and alike easier= =20 too. =E2=80=8B --=20 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 e= mail 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/434dc10f-02a1-4bbc-a41c-3a29398ca635%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_3303_284773170.1483908715810 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= Just to mention another disadvantage of -M option that I= haven=E2=80=99t included in the summary above: if the options is specified= in this way, it will =E2=80=9Cburn-into=E2=80=9D the document. But one of = the application I need is to go freely in a round trip (converting pandoc T= able to CSV CodeBlock in one pass, and convert the CSV CodeBlock back to pa= ndoc Table in another pass). But since the -M metadata w= ill accumulate, this is a no-go at least for me. Because of this, I now see= why @jgm recommends using environment variables among the currently workin= g methods. But the potential difficulties for Windows users is still a conc= ern.

And the new suggestions of <= code style=3D"font-size: 0.85em; font-family: 'Latin Modern Mono', = Consolas, 'Liberation Mono', Menlo, Courier, 'PingFang HK',= =E8=98=8B=E6=96=B9-=E6=B8=AF, 'PingFang TC', =E8=98=8B=E6=96=B9-= =E7=B9=81, 'PingFang SC', =E8=98=8B=E6=96=B9-=E7=B0=A1, PingFang, &= #39;Microsoft YaHei New', 'Microsoft Yahei', =E5=BE=AE=E8=BD=AF= =E9=9B=85=E9=BB=91, SimSun, =E5=AE=8B=E4=BD=93, STXihei, =E5=8D=8E=E6=96=87= =E7=BB=86=E9=BB=91, monospace;margin: 0px 0.15em; padding: 0px 0.3em; white= -space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: r= gb(248, 248, 248); border-top-left-radius: 3px; border-top-right-radius: 3p= x; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; display= : inline;">-F FILTERNAME[=3DFILTEROPTIONS] seems cleanest. For ugly = filter name: -F "My Cool Filter.py"=3D"--some -= -cool --arg". Don=E2=80=99t know if this will make the life of = pandoc-mode or panzer and alike easier too.

=E2=80=8B

--
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/434dc10f-02a1-4bbc-a41c-3a29398ca635%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_3303_284773170.1483908715810-- ------=_Part_3302_1906262142.1483908715810--