[luatex] Documentation improvement about open_read_file callbacks and readers

luigi scarso luigi.scarso at gmail.com
Sun May 8 13:04:56 CEST 2022


On Fri, May 6, 2022 at 10:50 PM Jérôme LAURENS <
jerome.laurens at u-bourgogne.fr> wrote:

> The documentation about readers (p 172 for v1.15) is
>
> ```
> Your function should return either a string or nil. The value nil signals
> that the end of file has
> occurred, and will make TEX call the optional close function next.
>
> ```
> This is partly exact. If the reader returns nil since the very first call,
> then it is called once again and only then the close function is eventually
> called. The reader is always called at least twice. It is worth mentioning
> because it may be counterintuitive.
>
>
(sorry for the delay)
For sake of completeness,  can you add an example ?



-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20220508/5c52e4cf/attachment.html>


More information about the luatex mailing list.