Giter Site home page Giter Site logo

Comments (15)

mgieseki avatar mgieseki commented on June 15, 2024

Could you please provide the font 华文仿宋 or post a link where it can be downloaded? Currently, I can't test your example because of the missing font.
If possible, also try to convert your file with the latest version 3.1.2 of dvisvgm and check whether the issue occurs there as well.

from dvisvgm.

mgieseki avatar mgieseki commented on June 15, 2024

The issue might be the same as #235 which has been fixed in dvisvgm 3.1.

from dvisvgm.

archcst avatar archcst commented on June 15, 2024

Thanks for your fast response.
Is there anyway upgrade dvisvgm via Hombrew?

from dvisvgm.

mgieseki avatar mgieseki commented on June 15, 2024

Unfortunately, I don't know since I'm not familiar with Homebrew. Maybe you could ask on their discussion page if they provide a more recent version.

from dvisvgm.

archcst avatar archcst commented on June 15, 2024

from dvisvgm.

mgieseki avatar mgieseki commented on June 15, 2024

Ok, thanks for the update. Please let me know if the latest version fixes the problem for you. Otherwise, I'll have a look what's actually going on.

from dvisvgm.

archcst avatar archcst commented on June 15, 2024

Hi, I'm encountering a compile issue with the 3.1.2 release. Could you please help on this?

Undefined symbols for architecture arm64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [hashcheck] Error 1
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1

from dvisvgm.

mgieseki avatar mgieseki commented on June 15, 2024

Could you please attach the entire build log including the output of configure and make? The single linker error message doesn't provide enough information to determine the cause of the failure.

from dvisvgm.

archcst avatar archcst commented on June 15, 2024

log.txt
Please find log in the attachment, tks

from dvisvgm.

mgieseki avatar mgieseki commented on June 15, 2024

The dvisvgm binary seems to be built correctly and should be located in the src directory. However, the test hashcheck can't be built, probably because the corresponding source file hashcheck.cpp wasn't created correctly. Maybe it's empty on your system.
The file should be created during the build process by genhashcheck.py which requires Python and the Python package xxhash to be installed.
You can try to build it manually by calling make hashcheck inside directory tests. Afterwards have a look at the file and check if the main function is present there. If not, some Python stuff is probably missing on your computer.

from dvisvgm.

archcst avatar archcst commented on June 15, 2024

from dvisvgm.

mgieseki avatar mgieseki commented on June 15, 2024

Yes, that should work. On Linux, python is usually a symbolic link to the python3 executable:

> ls -la /usr/bin/python
lrwxrwxrwx. 1 root root 9  3. Okt 02:00 /usr/bin/python -> ./python3

from dvisvgm.

archcst avatar archcst commented on June 15, 2024

I found the dvisvgm file and mv it to /usr/local/bin, now it works fine with 3.12 version, thanks a lot!

SCR-20231105-kfdt

but I get this message,

❯  dvisvgm --version
dvisvgm 3.1.2

❯  dvisvgm math.xdv -e -n -b min -o math.svg
processing of PostScript specials is disabled (Ghostscript not found)
pre-processing DVI file (format version 7)
processing page 1
  graphic size: 43.44931pt x 568.400711pt (15.270686mm x 199.770002mm)
  output written to math.svg
1 of 1 page converted in 0.190968 seconds

It's wired I'm pretty sure I have installed Ghostscript

❯  brew list | grep ghostscript
ghostscript

Any hints?

from dvisvgm.

mgieseki avatar mgieseki commented on June 15, 2024

Great to hear that the latest version fixes the issue for you.

It's wired I'm pretty sure I have installed Ghostscript

dvisvgm requires the Ghostscript library, the Ghostscript executable is not sufficient. You need to make sure that the library is accessible through the search path of the dynamic linker or specify the path with option --libgs or environment variable LIBGS. Since I don't know much about MacOs, I can't give more specific hints. Here you'll find some more information:

from dvisvgm.

archcst avatar archcst commented on June 15, 2024

Thanks a lot, all problem solved!

export LIBGS=/opt/homebrew/Cellar/ghostscript/10.02.0/lib/libgs.10.02.dylib

❯  dvisvgm math.xdv -e -n -b min -o math.svg
pre-processing DVI file (format version 7)
processing page 1
  graphic size: 43.44931pt x 568.400711pt (15.270686mm x 199.770002mm)
  output written to math.svg
1 of 1 page converted in 2.23617 seconds

from dvisvgm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.