Re: [NTG-context] escape io.fileseparator in Windows

2021-11-04 Thread Henning Hraban Ramm via ntg-context
> Am 04.11.2021 um 15:54 schrieb Pablo Rodriguez via ntg-context > : > > I’m really suprised that Windows accepts slashes in paths. It does at least since Windows NT. Hraban ___ If your question is of interest to

Re: [NTG-context] escape io.fileseparator in Windows

2021-11-04 Thread Pablo Rodriguez via ntg-context
On 11/3/21 9:55 PM, Hans Hagen via ntg-context wrote: > On 11/3/2021 7:49 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> How can I get the io.fileseparator or escape the backslash in >> main_filename_win above? > (there are helpers for splitting names and combining paths) > > - use locals

Re: [NTG-context] escape io.fileseparator in Windows

2021-11-03 Thread Hans Hagen via ntg-context
On 11/3/2021 7:49 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \starttext \startluacode main_file = document.files[1] if file.pathpart(main_file) == "" then main_filename = file.nameonly(main_file) main_filename_win = main_filename

[NTG-context] escape io.fileseparator in Windows

2021-11-03 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startluacode main_file = document.files[1] if file.pathpart(main_file) == "" then main_filename = file.nameonly(main_file) main_filename_win = main_filename else main_filename =