public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "'William Lupton' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Handling binary format of an old word processor
Date: Sun, 16 Jul 2023 10:17:47 +0100	[thread overview]
Message-ID: <CAEe_xxi3WnRVJ0ry0bButBhWsdYov6XwgUJJ5TSmp-=FpGXpwA@mail.gmail.com> (raw)
In-Reply-To: <D9A14D6A-896B-4B36-BFF3-002AEFC083EB-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1840 bytes --]

I can't speak from experience here, but it seems that you can probably use
lpeg (illustrated in the example in the docs) to process binary data. This
is suggested by https://github.com/spc476/LPeg-Parsers. It would be fun to
try!

On Sat, 15 Jul 2023, 09:38 Trevor Jenkins, <bslwannabe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

>
>
> On 13 Jul 2023, at 19:28, 'William Lupton' via pandoc-discuss <
> pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote:
>
> I think you need to use a custom reader. Here's a link to the appropriate
> bit of the appropriate page.
> https://pandoc.org/custom-readers.html#bytestring-readers
>
>
> Thanks. I had stumbled across that and caused me to post my original email.
>
> I wish there were a worked example of how to use that to process arbitrary
> binary data.
>
> Regards, Trevor.
>
> <>< Re: deemed!
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/D9A14D6A-896B-4B36-BFF3-002AEFC083EB%40gmail.com
> <https://groups.google.com/d/msgid/pandoc-discuss/D9A14D6A-896B-4B36-BFF3-002AEFC083EB%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxi3WnRVJ0ry0bButBhWsdYov6XwgUJJ5TSmp-%3DFpGXpwA%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 3148 bytes --]

      parent reply	other threads:[~2023-07-16  9:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-13 13:10 Trevor Jenkins
     [not found] ` <6019A3AE-5A17-4857-A428-5B2C5F7AB879-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-07-13 18:28   ` 'William Lupton' via pandoc-discuss
     [not found]     ` <CAEe_xxgArqRo2zf5+QDvhhT7U3ZLz8gH4me9LXBiN_di2qF2DQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-07-15  8:38       ` Trevor Jenkins
     [not found]         ` <D9A14D6A-896B-4B36-BFF3-002AEFC083EB-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-07-16  9:17           ` 'William Lupton' via pandoc-discuss [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEe_xxi3WnRVJ0ry0bButBhWsdYov6XwgUJJ5TSmp-=FpGXpwA@mail.gmail.com' \
    --to=pandoc-discuss-/jypxa39uh5tlh3mbocffw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).