From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/6689 Path: news.gmane.org!not-for-mail From: Shahbaz Youssefi Newsgroups: gmane.text.pandoc Subject: Re: C bindings Date: Sun, 30 Jun 2013 13:04:14 +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=089e0160bd0e860f4004e05d1271 X-Trace: ger.gmane.org 1372590252 16699 80.91.229.3 (30 Jun 2013 11:04:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Jun 2013 11:04:12 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCROTOMZXUKRBLVBYCHAKGQE3IJ3NZA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jun 30 13:04:15 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ee0-f64.google.com ([74.125.83.64]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UtFQV-0005Nl-Cp for gtp-pandoc-discuss@m.gmane.org; Sun, 30 Jun 2013 13:04:15 +0200 Original-Received: by mail-ee0-f64.google.com with SMTP id l10sf813752eei.9 for ; Sun, 30 Jun 2013 04:04:15 -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=E4G9Am2mGv+BIJm32BA2IrivXbTZn/pUC7cjC4ThfhI=; b=L9WZ20LSkOHE9wFytAxVQ6d8nDeebTQdQ8pTO4ot7w3s95d/Im7q5qGn8n2ShdMrPh oU5leonujuOkJQdzeCOt3g76FVil+/Cbc/ZcPoncztSiNMYUjD7iCPGpKrCIc8u9BYea 8E8QqCFYdb9wviuiDQY1oa4pi0h0eGfg6nDh6rEoGoW8ehsb3tsuuMCg9hMecWMk13bq QIz3Cw5SaN2ahLl/uxUgm3RogNB8qvOPA8xGDXob8ZwhapwpcfECIjNSgEKqA8IxSTCx t9R2AphfEabkV+1zm4P5sAUI1rFAYFCu+JYEtt+PAEoafDOx0HkFVsJZOXnSqPfV5DVv oKiQ== 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=E4G9Am2mGv+BIJm32BA2IrivXbTZn/pUC7cjC4ThfhI=; b=gzMWcNezEe89iu5yaS4akgIIRpqHbDS1BqbFx3KXeDllMPc7O22JyPu1kadcK+PnLE U1d21g2WwdLCMXvEvS3Ha+1Ey8RiHSk5NSFvv/d0qMmkvelmBEDUgs+8V9szzmtNa7QT kqCbMCBLricLb7TbH67BgFHihvxnJfeeWtamWwRTTFimWnUuCxM8DZyu2kBkdr6b4YLz xcqSbnSxdSlEzHopO5G7Sm9OGDzhAZ9IAq+Gb1TEPXklGBeSX6MJVp3UU9zN8+YEm1Sn Cgm8fuFfAvEP8O5LL+sf/QdzmP/q75AssPMDi1jjZHQfGPQxFsZ/C9XnCRoctUYlhRi8 iEIA== X-Received: by 10.180.183.238 with SMTP id ep14mr375758wic.18.1372590254992; Sun, 30 Jun 2013 04:04:14 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.180.183.17 with SMTP id ei17ls526896wic.23.gmail; Sun, 30 Jun 2013 04:04:14 -0700 (PDT) X-Received: by 10.204.224.8 with SMTP id im8mr1550951bkb.5.1372590254416; Sun, 30 Jun 2013 04:04:14 -0700 (PDT) Original-Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [2a00:1450:4010:c03::22d]) by gmr-mx.google.com with ESMTPS id rg9si669028bkb.3.2013.06.30.04.04.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Jun 2013 04:04:14 -0700 (PDT) Received-SPF: pass (google.com: domain of shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4010:c03::22d as permitted sender) client-ip=2a00:1450:4010:c03::22d; Original-Received: by mail-la0-x22d.google.com with SMTP id fr10so3506124lab.18 for ; Sun, 30 Jun 2013 04:04:14 -0700 (PDT) X-Received: by 10.152.27.137 with SMTP id t9mr9987631lag.28.1372590254197; Sun, 30 Jun 2013 04:04:14 -0700 (PDT) Original-Received: by 10.112.6.170 with HTTP; Sun, 30 Jun 2013 04:04:14 -0700 (PDT) In-Reply-To: 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::22d 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:6689 Archived-At: --089e0160bd0e860f4004e05d1271 Content-Type: text/plain; charset=ISO-8859-1 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](https://github.com/jgm/pandoc/wiki/Pandoc-Extras) to my fork at: https://github.com/ShabbyX/libpandoc Have a nice day, Shahbaz On Fri, Jun 28, 2013 at 2:12 PM, Shahbaz Youssefi wrote: > It seems like that was an error in the package itself. This [question]( > http://stackoverflow.com/q/17361047/912144) and its answer have the > solution. > > > On Fri, Jun 28, 2013 at 11:23 AM, Shahbaz Youssefi 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/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_BcVwuYTJwpQBSOhd9FMbU%3DNu_F4%3DTtDeHLfNc2h3LYQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. --089e0160bd0e860f4004e05d1271 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi again,

I updated libpandoc (for C bind= ings) 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](https://github.com/jgm/pando= c/wiki/Pandoc-Extras) to my fork at:

https://github.com/Sha= bbyX/libpandoc

Have a nice day,
Shahbaz
=


On Fri, Jun 2= 8, 2013 at 2:12 PM, Shahbaz Youssefi <shabbyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wro= te:
It seems like that was an e= rror in the package itself. This [question](http://stackoverflow.com/q/173610= 47/912144) and its answer have the solution.

On Fri, Jun 28, 2013 at 11:23 AM, Shahbaz = Youssefi <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 (actuall= y above 1.10) where I came to a build issue that I'm not sure how to re= solve.

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-pcr= e-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 MacFarlane <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<= /a>.
> =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 pandoc-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.
For more options, visit 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 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/C= ALeOzZ_BcVwuYTJwpQBSOhd9FMbU%3DNu_F4%3DTtDeHLfNc2h3LYQ%40mail.gmail.com= .
For more options, visit https://groups.google.com/groups/opt_out.
 
 
--089e0160bd0e860f4004e05d1271--