-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration files for luaotfload #201
Comments
Considering that this is for user configuration files only (disregarding our discussion in #200):
Agreed.
Nice, this would allow useful interaction between project specific and user specific configurations. Is the Kpathsea search even desirable at all for user / project specific config files? |
Also: maybe there still would be a reason for allowing configuration through Lua code. This would allow embedding the config in the project itself, instead of having to rely on potentially missing config file. Maybe even adding an option to disable loading any external configuration files, to ensure document that document compiles the same in setups of different people. |
I haven't completely given up on using this more generally yet, but for now that's look into the user use case.
I think it is, mostly because it's just something I would expect as a TeX user (Actually I keep forgetting that
Most project code actually runs after luaotfload is loaded, so the available range of options there is somewhat limited. Of course there is support for changing the options for which it makes sense, but it's a mess and should get a cleaner interface and more appropriate names. I'm not too happy about disabling configuration files completely because we have too many settings which assume to have consistent values system wide. If someone really wants to fixate everything, they can always set all options, but especially for the options affecting the database I want it to be an explicit decision to go over the users wishes. |
Looking into #200 I looked over the configuration file loading if luaotfload which reminded me that it is kind of a mess: Currently the first of the following files is loaded:
./luaotfload.conf
./luaotfloadrc
$XDG_CONFIG_HOME/luaotfload.conf
$XDG_CONFIG_HOME/luaotfloadrc
$HOME/.luaotfloadrc
luaotfloadrc
luaotfload.conf
There are quite some issues I have with this:
luaotfload.conf
preferred and sometimesluaotfloadrc
?$XDG_CONFIG_HOME/luaotfload.conf
be skipped if./luaotfload.conf
is present?One suggestion to improve this would be:
luaotfload.conf
, but additionally look forluaotfloadrc
for now and throw an error if it exists to avoid silently breaking something.config.actions
interfaces in the process or at least move them into less generic names.Of course, this is potentially breaking existing configurations, but I would assume that these aren't used that much in the first place and even if people use these files, they can just rename them.
The text was updated successfully, but these errors were encountered: