-
Notifications
You must be signed in to change notification settings - Fork 500
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
Can't run asciidoctor-pdf 1.5.0.beta.3 in asciidoctorj-pdf #1250
Comments
Dang it. Windows is suppose to be using |
I verified that on CRuby on Windows, File::PATH_SEPARATOR is However, there is still the large issue of the JAR filename in JRuby, which would certainly break JRuby on non-Windows. |
My last comment was probably misleading, sorry about this ;-) It doesn't run on my Mac, and I suppose it will also fail on Linux, because without any further customization |
Yes, that's what I suspected. The JAR paths are interfering with the assumption that we can separate entries using the path separator. Back to the drawing board. |
We'll just change it to always be semicolon. That seems safe. |
Another option is to detect |
What's interesting is that now we see how to load fonts out of a JAR.
That makes me think that just standardizing on the |
👍 |
Yeah. And it seems like Java uses |
…ple font dirs to be compatible with JAR paths
Thanks for the heads up on this and good detective work. 🕵️♂️ |
Thanks! |
…ple font dirs to be compatible with JAR paths
Keep in mind that when specifying multiple font dirs on the CLI, it's necessary to either escape the semi-colon or enclose the value in double quotes. Otherwise, the shell will interpret it as a command separator. |
I am currently trying to bring asciidoctor-pdf 1.5.0.beta.3 to asciidoctorj-pdf.
However the tests currently fail here in
Converter#register_fonts
:asciidoctor-pdf/lib/asciidoctor-pdf/converter.rb
Line 3333 in 946339c
This seems to be because
fonts_dir
is a URI to an internal resource that is retrieved via the Ruby classloader here:asciidoctor-pdf/lib/asciidoctor-pdf/converter.rb
Lines 3321 to 3323 in 946339c
Using my
puts
debugging superpowers I figured out that dirs resolves to this:(As it splits on the system path separator – which is
:
on my machine – I can imagine that this even runs on Windows :-D)The text was updated successfully, but these errors were encountered: