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

On Thu, 13 Jul 2023, 14:11 Trevor Jenkins, <bslwannabe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I have a group of files created long ago with a word processor for the BBC Micro. The word processor(WordWide/WordWisePlus), which originated in the late 1980s, saved documents in a sort of binary format in that some 7-bit printable characters have the eighth bit set to indicate that the character was preceded on screen by a carriage return. Other old ASCII control codes such as SI and SO were used for italics (I think). There are also encapsulated Epson dot-matrix setup sequences at the start of the files. Had a few read throughs of the Pandoc/Lua filter documentation but simply cannot get my head around how these documents could be processed using a Lua filter for pandoc to convert what is essentially a stream of 8-bit bytes into a form that can be used to convert to a modern format.

Would appreciate some pointers to how to handle this task using pandoc and Lua? Otherwise I will have write some one-off throw away C code that does not help me in using Lua for future tasks.

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@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6019A3AE-5A17-4857-A428-5B2C5F7AB879%40gmail.com.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxgArqRo2zf5%2BQDvhhT7U3ZLz8gH4me9LXBiN_di2qF2DQ%40mail.gmail.com.