-
Notifications
You must be signed in to change notification settings - Fork 127
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
fix for filenames with spaces #738
base: dev
Are you sure you want to change the base?
Conversation
Both Test and Test2 are passing. Need to do some more specific tests... |
@a1ix2 I'm testing the actual bin/ symlinks, and finding that the problem with spaces is not solved. For instance, if I do this (in the Stylesheets folder):
then everything works; but if I rename the directory:
then both of these fail:
Since this is the common use-case, I'm wondering what your use-case was, where the problem was solved? |
@martindholmes I've added a few modifications that should make it work when both filenames and directories contain spaces. I'm extremely rusty on my bash, so I'm following recommendations I found here https://unix.stackexchange.com/questions/118433/quoting-within-command-substitution-in-bash My use-case I'm trying to convert a ton of TEI XML obtained from GROBID (an academic PDF parser) into a format that is simpler to parse during their ingestion into a RAG. I was looking at |
Test2 passes, but Test fails for me:
So it seems that oddbyexample.xsd is not being generated. When I run the relevant line manually:
I get files called oddbyexample.xsd.tmp and oddbyexample.xsd.rng, but I don't get a plain xsd file. This is hard to figure out. It rather looks as though the failure comes when Stylesheets/xsd/postprocess.xsl is being run, but I can't yet figure out what the problem is. |
Meanwhile, both of these still fail:
So I don't really know where to go from here. My reading of the situation is that just changing the transformtei script is nowhere near sufficient; we will probably have to work through every stage of every transformation to ensure that paths are being passed along in a safe manner, which will be no small task. @a1ix2 I don't know if you want to take this on, or whether your life would be much simpler if you just batch-renamed all your input files to replace spaces and other unwise characters with underscores. |
Test fails in the dev branch for me, so it's likely unrelated. Test2 fails in the dev branch as well for reasons I can't parse (I'm very new to this). These two work for me in the a1ix2:double-quotes branch
|
transformtei complains when filenames contain spaces:
after modifying transformtei as indicated in #737 (comment) everything seems to work: