Brian Jordan
2024-02-07 16:53:19 UTC
I use a program called !Zonk to produce and edit my websites. It is a 20
year old program that continues to work well with one small problem. I
have used the program with several flavours of RICS OS in the main on VA,
I use it now on this Pi courtesy of Aemulor.
The program allows the creation of template files for the look and feel
of the site along with data files for the content. The templates and data
files are text files containing HTML fom which !Zonk builds HTML files
according to instructions encoded in the templates.
The 'one small problem' is in the naming and location of the finished
files and seems to be related to some Regex content within an editable
system file in !Zonk; the relevant stuff seems to be in this segment...
# these default setups create filenames based on the 'leaf' part of the
# datafile name, add /htm and put them in an 'htm' directory below the
# data directory which *must* already exist
oneout: ((?:[^\.]*\.)*)(\w{1,6})[^\.]*$::htm.\2/htm
I seem, at some time, to have managed to edit the entry perhaps to
accomodate long file names.
oneout: ((?:[^\.]*\.)*)([^/\.]+)[^\.]*$::htm.\2/htm
Under my current setup the output doesn't incorporate the leafname (just
/htm)and puts it one directory level above where is intended. Whether
this is a Pi/Aemulor issue or a Regex one isn't clear to me. I wonder if
anyone can provide any insight?
Thanks
year old program that continues to work well with one small problem. I
have used the program with several flavours of RICS OS in the main on VA,
I use it now on this Pi courtesy of Aemulor.
The program allows the creation of template files for the look and feel
of the site along with data files for the content. The templates and data
files are text files containing HTML fom which !Zonk builds HTML files
according to instructions encoded in the templates.
The 'one small problem' is in the naming and location of the finished
files and seems to be related to some Regex content within an editable
system file in !Zonk; the relevant stuff seems to be in this segment...
# these default setups create filenames based on the 'leaf' part of the
# datafile name, add /htm and put them in an 'htm' directory below the
# data directory which *must* already exist
oneout: ((?:[^\.]*\.)*)(\w{1,6})[^\.]*$::htm.\2/htm
I seem, at some time, to have managed to edit the entry perhaps to
accomodate long file names.
oneout: ((?:[^\.]*\.)*)([^/\.]+)[^\.]*$::htm.\2/htm
Under my current setup the output doesn't incorporate the leafname (just
/htm)and puts it one directory level above where is intended. Whether
this is a Pi/Aemulor issue or a Regex one isn't clear to me. I wonder if
anyone can provide any insight?
Thanks
--
_____________________________________________________________________
Brian Jordan
***@btinternet.com
RISC OS 5.28 (16-Dec-20) on Raspberry Pi
_____________________________________________________________________
_____________________________________________________________________
Brian Jordan
***@btinternet.com
RISC OS 5.28 (16-Dec-20) on Raspberry Pi
_____________________________________________________________________