Open alerque opened 8 months ago
I dropped the path normalization function which isn't necessary here and also changed the PR title because my reference to a SILE version seems to have thrown off the discussion. This is not a problem that started with SILE v0.14.11, it only fixes a bug in this library by making use of the more consistent SILE.input
array provided in more recent SILE versions, a fix that would not have been quite so easier in earlier releases.
Possibly affected modules (using masterFilename
)
The concern with embedders, printoptions, labelrefs and the ToC is a bit different from that of resilient styles
Hmm. In the above sense, styles are perhaps incompatible with content from STDIN. Perhaps this workflow should just be rejected...
These classes seem to work fine when the style or other possible external files are not found. I would still make this change and just let it not find the appropriate file and skip it rather than crashing on not being able to guess a filename.
I noticed while checking my suggestions in this comment that resilient is tripping up on documents coming from STDIN, e.g.:
This should fix that by doing the same thing SILE is internally, but I haven't actually tested it.