Skip to content

URI handling is now compatible with macOS#4

Open
yanntrividic wants to merge 1 commit intotranspect:masterfrom
yanntrividic:master
Open

URI handling is now compatible with macOS#4
yanntrividic wants to merge 1 commit intotranspect:masterfrom
yanntrividic:master

Conversation

@yanntrividic
Copy link

Hello,

First of all, thank you for the idml2xml converter, and for this frontend. This is great work, and opens up a lot of possibilities!! I have been playing around it for quite some time now, and it allowed me to make a custom Pandoc reader for IDML files, which helped me in various projects. So thank you, really.

That being said, as mentioned #1 (comment), idml2xml.sh needs to resolve canonical URIs. Additionally, there seems to be different readlink versions out there, and even though idml2xml.sh was working on my Ubuntu 24.04 laptop, it did not work when I tried to test it on macOS (Sonoma 14.0), because readlink returns an empty string when called on a path that does not exist.

This pull request fixes the problem. It adds standard URIs where it was crashing on macOS. Maybe some additional paths must also be turned into URIs, but it was enough to do the trick for me, and I am not sure if it is necessary everywhere, so I leave that there for now. I am pretty sure it is not as robust as what the comment mentions (i.e. using more recent Transpect libs) but as I do not know the codebase, I felt that this quick fix was better than nothing.

Have a nice day, and thank you again for this huge piece of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant