Closed iseri27 closed 1 year ago
This is a system encoding problem. If Ruby can resolve the file path, then Asciidoctor PDF can read the file. If Ruby cannot read the file path, then there's nothing Asciidoctor PDF can do about it.
I have tested this exact same scenario on my Fedora machine and it works fine. I've even added a test to verify that a properly configured Ruby (and system) will work as expected. See https://github.com/asciidoctor/asciidoctor-pdf/blob/0b80ea6bff5cac6ec61594ee2f647b481d82de61/spec/image_spec.rb#L139-L145
I kindly ask that in the future you raise questions about usage in the project chat at https://chat.asciidoctor.org (as the issue template requested). The issue tracker is for reporting issues that have already been triaged. That helps us to better maintain the project.
my
/home/user/测试/test.adoc
content is:and there is a picture
1.jpg
under/home/user/测试
when i try to generate pdf doc using asciidoctor-pdf, it tells me that "could not embed image":
but if i rename the dir name to
/home/user/testdir
, it can generate pdf correctly.os: nixos output of asciidoctor-pdf -v:
theme file: theme.yml