From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/16630 Path: news.gmane.org!.POSTED!not-for-mail From: Kolen Cheung Newsgroups: gmane.text.pandoc Subject: Re: Filter with arguments Date: Sat, 7 Jan 2017 12:51:41 -0800 (PST) Message-ID: References: <20170106114647.GG791@Administrateurs-iMac-3.local> <1239e0f1-2538-4781-8a75-90c59f86aabc@googlegroups.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_2278_1085136814.1483822301457" X-Trace: blaine.gmane.org 1483822310 29718 195.159.176.226 (7 Jan 2017 20:51:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 7 Jan 2017 20:51:50 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS252WXTEIBBXVJYXBQKGQEHC6IKGI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jan 07 21:51:46 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ua0-f184.google.com ([209.85.217.184]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPxxi-00063n-5q for gtp-pandoc-discuss@m.gmane.org; Sat, 07 Jan 2017 21:51:38 +0100 Original-Received: by mail-ua0-f184.google.com with SMTP id 96sf215187193uaq.0 for ; Sat, 07 Jan 2017 12:51:42 -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=JLdAGQ9JWVxWdz2v35OmO0Dz2hY8Ga76AhOheliCu0w=; b=qbJ6XftylJMic1eeb+oSyqxfgc56h2ftLTHFrk34oE/espds8BVwNeZCyfDFZYsTKe FAzONjIEHW/Q8QyN6WZNEkFfhez1RQiN1kz8eXx8TUtiHIgIGr/ql0I1WXrnskAN/SWG SxemwlGmJAwlPaSIrdqrZp9V282RPHjwm0kwk6JQ0JAXxRBoi1c+PQdHjcnlOXwJEybO xBnPlCWh6yXMzS4DU+HZ6z0PQiAGcnU7OHTcu8Cx8jiCpcFu8fqXDpoCs5sKZ0YbYoEM 0mQc2aFhuW2T5tqkk0M//Zl8GwfY686QJjbGXugZu+Laz+cMuCTCHuQ4pMDkFxJaANQa 9NzA== 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=JLdAGQ9JWVxWdz2v35OmO0Dz2hY8Ga76AhOheliCu0w=; b=FPGT5CcrSWnQ4gGwFUm0VEujMBt590EZAPkQnIgVoOpInnl98SUGDpchT9VdWzEw5I cJrrMfMB4z7fBjkGOMeuTlUlNUDbvNXsSxe4GfcIlgEn7tvQW4eQUzVMyA8ARIo6rr6g euU/RxxP/zBxUzJ1NggQHXaY903g5JQXx8CZh8AbLkobmyo068gPDSArk0nYnZ1n1HR2 Cj0o42ujDbFpNC+/6YvpgyvIOJwbVLfZxG1qq5RUXMVy+RYysyKTL4wWFjRFCG9nVoUM hPJsIG3KTec7EGbWTDK8xsInY83gqW71THgiGAlEyEOu+AI6Y1ihdEtUX+c5mEzHLGPv yTTg== 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=JLdAGQ9JWVxWdz2v35OmO0Dz2hY8Ga76AhOheliCu0w=; b=LYNVEgfDj/ISxZ7AowwnczfKjtmeaqfgoF7WKBvSsQeoeiW3cCc0+ZOP897JWGTeB0 5zoy+RC50h1Z8ANXtSpZTIjlvOP3v9uaDBGPcpIv4aZ/rE0XbxvDNPSYOGSE+T2hoPUT BFdVOAC3JE+F9zy3NH93nl9/Kg1lqB5uY8701X9j4cYI+kCY+Dt9NlVwFrwgBAN/YUUE QhEZOab8e975O3R+0Xy2yIDmCB4T0ILIH4DsGU+jpdX6uGuoFhIRCqT8k4SEPUXElwdP PiL6kKZrv52M1OxiRK0QMWrKUm+EFKMdP9hSxrY0KyTfn2RWVMFgjj3HDtXR5MS5bnLV tWJg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIkVDXISB98RZkhM+wGenIvJY1/bhhtZohMO1rdxCGgaJfjaTCzi5gEguOiuAZMB9VGfvw== X-Received: by 10.157.14.183 with SMTP id 52mr616886otj.20.1483822302361; Sat, 07 Jan 2017 12:51:42 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.1.164 with SMTP id e33ls3896259ote.43.gmail; Sat, 07 Jan 2017 12:51:41 -0800 (PST) X-Received: by 10.157.41.149 with SMTP id n21mr615068otb.4.1483822301953; Sat, 07 Jan 2017 12:51:41 -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:16630 Archived-At: ------=_Part_2278_1085136814.1483822301457 Content-Type: multipart/alternative; boundary="----=_Part_2279_1985654967.1483822301457" ------=_Part_2279_1985654967.1483822301457 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Is that a realistic scenario? At least in my case of pantable it actually is. Because either way it is=20 calling pandoc to do some heavy lifting. So many of the functions I wrote= =20 will be the same. The only differences are how the options are given, and= =20 then how the input/output format might be different (e.g. from csv as a=20 filter expects the csv in CodeBlock, but from csv on cli expects just a=20 plain csv). As for hierarchical metadata structures being ugly I don=E2=80=99t think th= ey are. They aren=E2=80=99t if in YAML, but they seems to be when specified using -= M (or am=20 I missing something?). In the case of any of the suggested method, the=20 filter arg is only available to that particular filter, so there=E2=80=99s = no=20 mixing of name spaces. And just to add that sometimes it is not desirable= =20 to put this info in the YAML. e.g. when converting all pandoc Table to=20 other formats (currently I only have CSV in CodeBlock output, but I might= =20 add some others soon, and not to mention it can works the other way=20 around), one want to be able to input any random sources (it would very=20 well be from a .docx) and have the ability to specifies the output format= =20 (say CSV in ClodeBlock, CSS tables using Div, etc.) *without* touching the= =20 documents. =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/de2e97b1-17a4-4f70-8c17-b3cd960dceb2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_2279_1985654967.1483822301457 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Is that a realistic scenario= ?

At least in my case of panta= ble it actually is. Because either way it is calling pandoc to do some heav= y lifting. So many of the functions I wrote will be the same. The only diff= erences are how the options are given, and then how the input/output format= might be different (e.g. from csv as a filter expects the csv in CodeBlock= , but from csv on cli expects just a plain csv).

As for hierarchical metadata= structures being ugly I don=E2=80=99t think=20 they are.

They aren=E2=80=99t if in YA= ML, but they seems to be when specified using -M (or am = I missing something?). In the case of any of the suggested method, the filt= er arg is only available to that particular filter, so there=E2=80=99s no m= ixing of name spaces. And just to add that sometimes it is not desirable to= put this info in the YAML. e.g. when converting all pandoc Table to other = formats (currently I only have CSV in CodeBlock output, but I might add som= e others soon, and not to mention it can works the other way around), one w= ant to be able to input any random sources (it would very well be from a .docx) and have the ability to specifies the output format (= say CSV in ClodeBlock, CSS tables using Div, etc.) without touchin= g the documents.

=E2=80=8B<= /div>

--
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/de2e97b1-17a4-4f70-8c17-b3cd960dceb2%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_2279_1985654967.1483822301457-- ------=_Part_2278_1085136814.1483822301457--