mrpiggi / svg

Handling SVG pictures in LaTeX documents using Inkscape, ImageMagick and/or Ghostscript
Other
65 stars 12 forks source link

Importing SVG doesn't work on Windows when the filename contains German special characters #42

Open major-mayer opened 2 years ago

major-mayer commented 2 years ago

Hi, I just noticed that on Windows the import of an SVG file doesn't work when it contains an German special characters like umlauts (ä, ö or ü.) or "ß". For example:

\begin{figure}[h]
    \includesvg[width=\textwidth, inkscapelatex=false]{3_Dateigröße_Vergleich.svg}
\end{figure}

Will result in:


** (org.inkscape.Inkscape:8104): WARNING **: 11:06:36.618: Can't open file: d:\checkouts\laurenz-bachelorarbeit\images\3_Dateigröße_Vergleich.svg (doesn't exist)

** (org.inkscape.Inkscape:8104): WARNING **: 11:06:36.618: Can't open file: d:\checkouts\laurenz-bachelorarbeit\images\3_Dateigröße_Vergleich.svg (doesn't exist)
ink_file_open: 'd:\checkouts\laurenz-bachelorarbeit\images\3_Dateigröße_Vergleich.svg' cannot be opened!
InkscapeApplication::document_open: Failed to open: d:\checkouts\laurenz-bachelorarbeit\images\3_Dateigröße_Vergleich.svg
ConcreteInkscapeApplication::on_open: failed to create document!

Package svg Warning: The export with Inkscape failed for file
(svg)                `images//3_Dateigröße_Vergleich.svg'
(svg)                Troubleshooting: Please check in the log file how
(svg)                the invocation of Inkscape took place and try to
(svg)                execute it yourself in the terminal on input line 86.

! Package svg Error: File `3_Dateigröße_Vergleich_svg-raw.pdf' is missing.

See the svg package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.86 ...pelatex=false]{3_Dateigröße_Vergleich.svg}

[26]

On my Linux machine, i never had this problem, but here on Windows it doesn't work. I am using This is LuaHBTeX, Version 1.13.2 (TeX Live 2021/W32TeX).