Git Product home page Git Product logo

Comments (23)

objmagic avatar objmagic commented on June 15, 2024 3

Thanks. We can wait @gfngfn to fix font issue #13 #17 (since I don't know much about font) and I can fix build issue later (#21, #40)

from satysfi.

omasanori avatar omasanori commented on June 15, 2024 1

I am unsure but embedding $PREFIX into the source code in compile-time or using relative path would work, I guess.

from satysfi.

omasanori avatar omasanori commented on June 15, 2024 1

@objmagic, please consider free alternatives I listed too if you work on the font issue.
IMHO, using Latin Modern and/or TeX Gyre for Latin scripts and IPAex for Japanese scripts is a lightweight solution.

(Note that Latin Modern and some of TeX Gyre fonts already have corresponding OpenType Math fonts, so they will get harmonized results without much investigation after we get configurable math font feature.)

from satysfi.

nekketsuuu avatar nekketsuuu commented on June 15, 2024 1

@objmagic additional note for the font issue https://twitter.com/bd_gfngfn/status/964779203869556737

from satysfi.

omasanori avatar omasanori commented on June 15, 2024 1

Not yet. We still need to execute cp -R "$(opam config var prefix)/share/satysfi" "${HOME}/.satysfi" as a workaround after installation. #109 addresses this, but it has not been reviewed yet.

from satysfi.

omasanori avatar omasanori commented on June 15, 2024

How about just making SATySFi $PREFIX-friendly? (At least setup_root_dirs will need some changes.) Maybe I am missing the point, though...
PATH-like environment variable would be helpful anyway.

from satysfi.

nekketsuuu avatar nekketsuuu commented on June 15, 2024

Survey: TeX uses multiple TEXMF.

References (in Japanese):

from satysfi.

nekketsuuu avatar nekketsuuu commented on June 15, 2024

@omasanori What do you think about the method to remember $PREFIX?

from satysfi.

objmagic avatar objmagic commented on June 15, 2024

we shouldn't copy libraries under /usr/local/share

agree. We cannot assume every user has access to /usr/local

from satysfi.

nyuichi avatar nyuichi commented on June 15, 2024

Yes, root_dirs is now hard-coded and is not configurable.
I was aware, when I wrote that patch, that that may cause some problems, but could not find a neat way to tell opam to modify the source code and embed installation directory strings (e.g. /usr/local or ~/.opam/4.06.0/). (Is there?)

One possible workaround is to get opam installation directory at run time and append it to satysfi_root_dirs with less priority than ~/.satysfi. Thoughts?

from satysfi.

nekketsuuu avatar nekketsuuu commented on June 15, 2024

@nyuichi Thanks for your comment! I almost agree with you. I also thought of getting the OPAM prefix at run time by running opam config var prefix, however I noticed that the same problem will occur if other $PREFIX is set at compile time. So I'm seeking more general solution.

from satysfi.

objmagic avatar objmagic commented on June 15, 2024

I can make a large clean up in #21 to address many issues including this one later when I have time. But before this I'd like to have font dependency issue resolved

from satysfi.

nyuichi avatar nyuichi commented on June 15, 2024

@nekketsuuu

Right. That's not a fix but just a workaround, though I think it should work fine for most users. Meanwhile, I await @objmagic's fix, leaving this issue as it is.

from satysfi.

nyuichi avatar nyuichi commented on June 15, 2024

@objmagic

Are you still working on this? If you don't have time, I can write a patch instead.

from satysfi.

equal-l2 avatar equal-l2 commented on June 15, 2024

Has the problem solved?

from satysfi.

nekketsuuu avatar nekketsuuu commented on June 15, 2024

@gfngfn How's #109 going? I think it's great to resolve this issue for easy installation of SATySFi.

from satysfi.

na4zagin3 avatar na4zagin3 commented on June 15, 2024

FYI, for workaround, I made a tool https://github.com/na4zagin3/satyrographos which copies the directories under $(opam config var prefix)/share/satysfi/* to $HOME/.satysfi/dist with merging.

from satysfi.

na4zagin3 avatar na4zagin3 commented on June 15, 2024

@nekketsuuu do you mind to close this PR as the lib-satysfi is not installed under the OPAM registory now?

from satysfi.

nekketsuuu avatar nekketsuuu commented on June 15, 2024

@na4zagin3 Which commits or pull requests do you think of as that change?

from satysfi.

na4zagin3 avatar na4zagin3 commented on June 15, 2024

@nekketsuuu 3c1bd3c must be it.

from satysfi.

na4zagin3 avatar na4zagin3 commented on June 15, 2024

If #149 is merged, the dist library will be installed into OPAM registry again, fyi.

from satysfi.

nekketsuuu avatar nekketsuuu commented on June 15, 2024

Ah, I remember that. Personally I feel that does not resolve the core of this problem best, but this issue is fixed as you said.

I'm closing this issue, but feel free to reopen this or report an related issue if needed.

from satysfi.

na4zagin3 avatar na4zagin3 commented on June 15, 2024

Ah, I missed this PR actually includes a proposal to use environment variables.. I'd update the title and the description..

from satysfi.

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.