From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/6690 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: C bindings Date: Sun, 30 Jun 2013 11:30:37 -0700 Message-ID: <20130630183036.GA17415@Johns-MacBook-Pro.local> References: <20130626171432.GA1663@protagoras.phil.berkeley.edu> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1372617045 915 80.91.229.3 (30 Jun 2013 18:30:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Jun 2013 18:30:45 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBVPSYGHAKGQEGQWRFOY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jun 30 20:30:48 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qa0-f55.google.com ([209.85.216.55]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UtMOc-00073V-TM for gtp-pandoc-discuss@m.gmane.org; Sun, 30 Jun 2013 20:30:47 +0200 Original-Received: by mail-qa0-f55.google.com with SMTP id cm16sf1049274qab.10 for ; Sun, 30 Jun 2013 11:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere: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:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type:content-disposition; bh=d2SvXqZCvG6kXQEgkrxHRvuKcpt1k+n05okTeNvQKrE=; b=exWuVwOgMMcEbEPIhjZqXqkAUeWTdjp9IQ0fLIbqNlzPK9Ml4Y8fq5DYNHCf3Z/R96 gAzyidiATsytJB9Tzk4KYi5uAOON7rw4uJBRX+F1Cc+AQJN5Kv9MMtBhiTOzIOxX5x6h dIKSX844O5a/ju7zo1vfjO85GJXUAOUYQHDv7t7KDNfc8I1GotHOTE7FuKW6O9mzbaXM 2Qs8PnDwCdyLfhoEJbEu0OK2sQVHZFyvMDZ/Yj77sZk/9Ly6/oRWn3fOUvexKePijFNv 7EVMvvN53PuKE8UAvQDUOdsxu8ks/nb1yng7eEcaqdJkZbGMvyrJo6+ixv+DC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere: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:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type:content-disposition; bh=d2SvXqZCvG6kXQEgkrxHRvuKcpt1k+n05okTeNvQKrE=; b=NJIfEyJlriEpHZBpWo/agBJlv3tvgwz+wZOnXO06gLOfiyGsNBMc79fsqFm025Tspe 1pN8PVabbAPhfh6E46EAqATvo6JoyyFZm9cc4JiYKxg5d5mYI40GbiUTIOLUm+hIgGhB x/CGrrytmjGEbJCgq1AzCL0iG/R+G40LLN/M77K9FGeWMBQUEsAGdoVD44/1MsAClSfY /dr+irHTshgGuzOY0kUN2dYNwEiKgT9CEiD7F9ksVr6BoPi4olULQpUk+kizZ4cNaHW3 Vp/1SZ+swl2VsYqByz4AGt3ukoO+kpnH1cq2MMKOWFIs/dGgBRxyYMSOSd+sMKxQ6Hs6 X-Received: by 10.50.106.50 with SMTP id gr18mr719630igb.1.1372617045907; Sun, 30 Jun 2013 11:30:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.77.112 with SMTP id r16ls1437058igw.25.canary; Sun, 30 Jun 2013 11:30:45 -0700 (PDT) X-Received: by 10.67.1.8 with SMTP id bc8mr6829797pad.35.1372617045370; Sun, 30 Jun 2013 11:30:45 -0700 (PDT) Original-Received: from cm04fe.IST.Berkeley.EDU (cm04fe.IST.Berkeley.EDU. [169.229.218.145]) by gmr-mx.google.com with ESMTPS id rv7si1226825pbc.1.2013.06.30.11.30.45 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 30 Jun 2013 11:30:45 -0700 (PDT) Received-SPF: neutral (google.com: 169.229.218.145 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) client-ip=169.229.218.145; Original-Received: from li55-134.members.linode.com ([74.82.3.134] helo=johnmacfarlane.net) by cm04fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1UtMOZ-0003Gs-G7 for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Sun, 30 Jun 2013 11:30:45 -0700 Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 632D6BB9E5; Sun, 30 Jun 2013 14:31:40 -0400 (EDT) In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 169.229.218.145 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) smtp.mail=jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@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: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Content-Disposition: inline Xref: news.gmane.org gmane.text.pandoc:6690 Archived-At: Thanks for doing this. I've updated pandoc-extras. +++ Shahbaz Youssefi [Jun 30 13 13:04 ]: > Hi again, > I updated libpandoc (for C bindings) to the current version of pandoc > and made some improvements. I sent a pull request to toyvo, but it has > been left unanswered (he's probably not so active on github). In the > meantime, you could > [refer]([1]https://github.com/jgm/pandoc/wiki/Pandoc-Extras) to my fork > at: > [2]https://github.com/ShabbyX/libpandoc > Have a nice day, > Shahbaz > > On Fri, Jun 28, 2013 at 2:12 PM, Shahbaz Youssefi > <[3]shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > It seems like that was an error in the package itself. This > [question]([4]http://stackoverflow.com/q/17361047/912144) and its > answer have the solution. > > On Fri, Jun 28, 2013 at 11:23 AM, Shahbaz Youssefi > <[5]shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Thank you for the pointer. I am in the process of updating libpandoc to > work with pandoc 1.11 (actually above 1.10) where I came to a build > issue that I'm not sure how to resolve. > Loading package regex-pcre-builtin-0.94.4.6.8.31 ... linking ... ghc: > /home/XXXX/.cabal/lib/regex-pcre-builtin-0.94.4.6.8.31/ghc-7.4.1/HSrege > x-pcre-builtin-0.94.4.6.8.31.o: unknown symbol `utf8_table4' > ghc: unable to load package `regex-pcre-builtin-0.94.4.6.8.31' > Trying to reinstall regex-pcre-builtin with cabal gives a warning that > it may break pandoc. > The offending source code is this: > {-# LANGUAGE TemplateHaskell #-} > module LibPandoc.Instances where > import Data.Data > import Data.DeriveTH > import Text.Pandoc > import Text.Pandoc.Shared > $( derive makeTypeable ''ReaderOptions ) > $( derive makeData ''ReaderOptions ) > $( derive makeTypeable ''WriterOptions ) > $( derive makeData ''WriterOptions ) > $( derive makeTypeable ''HTMLMathMethod ) > $( derive makeData ''HTMLMathMethod ) > $( derive makeTypeable ''ObfuscationMethod ) > $( derive makeData ''ObfuscationMethod ) > Can you see anything wrong there? > Thank you again for the help, > Shahbaz > On Wed, Jun 26, 2013 at 7:14 PM, John MacFarlane > <[6]fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > There is > [7]https://github.com/toyvo/libpandoc > but I'm not sure when it was last updated. > +++ Shahbaz Youssefi [Jun 26 13 09:32 ]: > > > Hi, > > I just came to know pandoc and it seems wonderful and I'm planning on > > using it in a project of mine. My project however is written in C. > > Given that making C bindings is a common operation for many languages > > (and I saw that for Haskell it too is possible), I was wondering if > > pandoc has any C bindings? If not, would it be a possibility to make > > those bindings? > > I know very basic Haskell, but I might be able to make the bindings > > myself with some struggle, if the developers are interested.. > > Thank you, > > Shahbaz > > > > -- > > 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 [8]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To post to this group, send email to > [9]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > > > > [1][10]https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc > 5-433f- > > b176-ce71dd8e3acd%[11]40googlegroups.com. > > For more options, visit > [2][12]https://groups.google.com/groups/opt_out. > > > > References > > > > 1. > [13]https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-4 > 33f-b176-ce71dd8e3acd%40googlegroups.com > > 2. [14]https://groups.google.com/groups/opt_out > > -- > 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 [15]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [16]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > [17]https://groups.google.com/d/msgid/pandoc-discuss/20130626171432. > GA1663%40protagoras.phil.berkeley.edu. > > For more options, visit [18]https://groups.google.com/groups/opt_out. > > -- > 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 > [19]https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ_BcVwuYTJwp > QBSOhd9FMbU%3DNu_F4%3DTtDeHLfNc2h3LYQ%40mail.gmail.com. > For more options, visit [20]https://groups.google.com/groups/opt_out. > > References > > 1. https://github.com/jgm/pandoc/wiki/Pandoc-Extras > 2. https://github.com/ShabbyX/libpandoc > 3. mailto:shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > 4. http://stackoverflow.com/q/17361047/912144 > 5. mailto:shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > 6. mailto:fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > 7. https://github.com/toyvo/libpandoc > 8. mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 9. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 10. https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f- > 11. http://40googlegroups.com/ > 12. https://groups.google.com/groups/opt_out > 13. https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f-b176-ce71dd8e3acd%40googlegroups.com > 14. https://groups.google.com/groups/opt_out > 15. mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 16. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 17. https://groups.google.com/d/msgid/pandoc-discuss/20130626171432.GA1663%40protagoras.phil.berkeley.edu > 18. https://groups.google.com/groups/opt_out > 19. https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ_BcVwuYTJwpQBSOhd9FMbU%3DNu_F4%3DTtDeHLfNc2h3LYQ%40mail.gmail.com > 20. https://groups.google.com/groups/opt_out