From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/6675 Path: news.gmane.org!not-for-mail From: Shahbaz Youssefi Newsgroups: gmane.text.pandoc Subject: Re: C bindings Date: Fri, 28 Jun 2013 11:23:16 +0200 Message-ID: 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: multipart/alternative; boundary=001a113312d4ce35ba04e0336da8 X-Trace: ger.gmane.org 1372411397 7266 80.91.229.3 (28 Jun 2013 09:23:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 09:23:17 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCROTOMZXUKRBBNMWWHAKGQEHN43V5Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 28 11:23:19 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ee0-f57.google.com ([74.125.83.57]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UsUti-0000GP-QV for gtp-pandoc-discuss@m.gmane.org; Fri, 28 Jun 2013 11:23:18 +0200 Original-Received: by mail-ee0-f57.google.com with SMTP id t10sf365020eei.22 for ; Fri, 28 Jun 2013 02:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:mime-version:in-reply-to:references:date:message-id :subject:from:to: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; bh=XnHuwGUfEge8zwzBDwB5Y1UrXNDUyCyge6axZK7O1U0=; b=IJA+pKb4wG8rY9yQxuInXFPRwuQ6qmYzREKTL5M/YOswVlz2I63ExWb/CkYtgQ0dOm SaR8HxCZqFXRQxiT0nigI7zr0VEjiofzDId9EQQSMRH5bcfUxUvw6q16ji4oVCqAJsUL KaSJ0F9TZ0zihlNJuFaErBLtLEdJxThWRJ9+D/GtUVmYPtRh2N8P25ZRVewIZHPv20Nz XxiNXePxwrhldABMG7mN6kkavY5pxxMik1+ycaq5ZZ9umKmgWsOiJqNe5ecdmIXEBOWX zJQbmGJRSXpx4xGPxxycg3V609X4hdFy6rctIh/TYqioLNpwkbsCJ0FjVJP2RndDQkIe FW9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:mime-version:in-reply-to:references:date:message-id :subject:from:to: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; bh=XnHuwGUfEge8zwzBDwB5Y1UrXNDUyCyge6axZK7O1U0=; b=s9qYGQ0eSWYHZGjq0IX+3gdWBPoVufpkbWpycbfhw8Iwq3XTdy5f4lIa0ngdusfVDw p7WSyQV62RDbf7bXM7nJ1czTymNlIgeRn2YKWpGSDSL01Pd3bmWmRe3uJyvR8QR6y6x/ InE3/tRTLbYFa0RLe95DcGaQNd5Eap8nY3SY2OvmuGnFJAuDzSNwGXoqA5Ly/hOmUj1q omT62+i5dNRoey4bCARrpqjKQLjM0aLnzpfAC72VSF66H8BJWQF3INr4DH8CSnYv2xj+ qAZzJMNeMWdz62zVmex1P2jLu++eHQXArdgS+KiHUFScQ/NbYjYaFMwTGa2uJ/dIucnT 8gOQ== X-Received: by 10.180.198.177 with SMTP id jd17mr76755wic.21.1372411398295; Fri, 28 Jun 2013 02:23:18 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.180.104.169 with SMTP id gf9ls133598wib.35.canary; Fri, 28 Jun 2013 02:23:17 -0700 (PDT) X-Received: by 10.204.72.1 with SMTP id k1mr535627bkj.1.1372411397419; Fri, 28 Jun 2013 02:23:17 -0700 (PDT) Original-Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [2a00:1450:4010:c03::232]) by gmr-mx.google.com with ESMTPS id cx8si277836bkb.0.2013.06.28.02.23.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Jun 2013 02:23:17 -0700 (PDT) Received-SPF: pass (google.com: domain of shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4010:c03::232 as permitted sender) client-ip=2a00:1450:4010:c03::232; Original-Received: by mail-la0-f50.google.com with SMTP id dy20so1871245lab.23 for ; Fri, 28 Jun 2013 02:23:17 -0700 (PDT) X-Received: by 10.112.11.84 with SMTP id o20mr5999466lbb.86.1372411397025; Fri, 28 Jun 2013 02:23:17 -0700 (PDT) Original-Received: by 10.112.6.170 with HTTP; Fri, 28 Jun 2013 02:23:16 -0700 (PDT) In-Reply-To: <20130626171432.GA1663-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org> X-Original-Sender: shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4010:c03::232 as permitted sender) smtp.mail=shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dkim=pass header.i=@gmail.com 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: , Xref: news.gmane.org gmane.text.pandoc:6675 Archived-At: --001a113312d4ce35ba04e0336da8 Content-Type: text/plain; charset=ISO-8859-1 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/HSregex-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 wrote: > There is > 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 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 > > [1] > https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f- > > b176-ce71dd8e3acd%40googlegroups.com. > > For more options, visit [2]https://groups.google.com/groups/opt_out. > > > > References > > > > 1. > https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f-b176-ce71dd8e3acd%40googlegroups.com > > 2. 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 > https://groups.google.com/d/msgid/pandoc-discuss/20130626171432.GA1663%40protagoras.phil.berkeley.edu > . > For more options, visit 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 https://groups.google.com/d/msgid/pandoc-discuss/CALeOzZ_ypqU1fT%3DcBd8-JNLBeEG3RK0v2VJ1JTh3Q1FS11n6uQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. --001a113312d4ce35ba04e0336da8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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 r= egex-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/HSregex-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 reinst= all regex-pcre-builtin with cabal gives a warning that it may break pandoc.=

The offending source code is this:
=
{-# LANGUAGE TemplateHaskell #-}

module LibPandoc.Instances wher= e

import Data.Data
import Data.DeriveTH
import Text.Pandoc
import Text.Pandoc.Shared

$( derive makeTypeable ''ReaderOpt= ions )
$( derive makeData ''ReaderOptions )
$( derive makeTyp= eable ''WriterOptions )
$( derive makeData ''WriterOptio= ns )
$( derive makeTypeable ''HTMLMathMethod )
$( derive makeData = 9;'HTMLMathMethod )
$( derive makeTypeable ''ObfuscationMeth= od )
$( derive makeData ''ObfuscationMethod )

Can you see anything wrong there?

Thank you again for the help,
<= /div>
Shahbaz

On Wed, Jun 26, 2013 at 7:14 PM, John MacFa= rlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
There is
https://gi= thub.com/toyvo/libpandoc
but I'm not sure when it was last updated.

+++ Shahbaz Youssefi [Jun 26 13 09:32 ]:
> =A0 =A0Hi,
> =A0 =A0I just came to know pandoc and it seems wonderful and I'm p= lanning on
> =A0 =A0using it in a project of mine. My project however is written in= C.
> =A0 =A0Given that making C bindings is a common operation for many lan= guages
> =A0 =A0(and I saw that for Haskell it too is possible), I was wonderin= g if
> =A0 =A0pandoc has any C bindings? If not, would it be a possibility to= make
> =A0 =A0those bindings?
> =A0 =A0I know very basic Haskell, but I might be able to make the bind= ings
> =A0 =A0myself with some struggle, if the developers are interested.. > =A0 =A0Thank you,
> =A0 =A0Shahbaz
>
> =A0 =A0--
> =A0 =A0You received this message because you are subscribed to the Goo= gle
> =A0 =A0Groups "pandoc-discuss" group.
> =A0 =A0To unsubscribe from this group and stop receiving emails from i= t, send
> =A0 =A0an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> =A0 =A0To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> =A0 =A0To view this discussion on the web visit
> =A0 =A0[1]https://groups.google.com/d/ms= gid/pandoc-discuss/cc84a902-1bc5-433f-
> =A0 =A0b176-ce71dd8e3acd%40googlegroups.com.
> =A0 =A0For more options, visit [2]https://groups.google.com/groups/opt_out= .
>
> References
>
> =A0 =A01. = https://groups.google.com/d/msgid/pandoc-discuss/cc84a902-1bc5-433f-b176-ce= 71dd8e3acd%40googlegroups.com
> =A0 =A02. https://groups.google.com/groups/opt_out

--
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 pa= ndoc-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-discu= ss/20130626171432.GA1663%40protagoras.phil.berkeley.edu.

--
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 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/CAL= eOzZ_ypqU1fT%3DcBd8-JNLBeEG3RK0v2VJ1JTh3Q1FS11n6uQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
 
 
--001a113312d4ce35ba04e0336da8--