Elie Roux wrote:

Ok, I'll do that then! But why isn't there a open_write_file callback? With this callback you wouldn't have to add some management I guess...

even then you need management

Also: how do I control the "input buffer" of the main tex file? I can't control it with open_read_file can I? So I still would have to register a function in the process_input_buffer and add functions in the open_read_files that concert from utf to latin1, before they are converted again to utf... I still find this solution ugly... Isn't there a better one?

rewrite latex

anyhow, normally one writes from lua or from tex:

- open/close in tex, write from tex or lua (texio.write)
- open/close in lua, write from lua

because writes can be direct (\immediate) or defered you always need some control over it, so using callbacks is kind of tricky; and after all, normally writes (and esp ones to aux files) should be managed by the macro package anyway

the more precise control at the read end is due to the fact that in todays tex this is also kind of controlled (in the web2c lib) as well as that input can come from other sources than the file system

Hans


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

Reply via email to