GithubHelp home page GithubHelp logo

[Discussion] Unicode preview? about texlab HOT 4 CLOSED

latex-lsp avatar latex-lsp commented on August 24, 2024
[Discussion] Unicode preview?

from texlab.

Comments (4)

or17191 avatar or17191 commented on August 24, 2024

Hey,

I've started working on a PR for this issue, but I need some help.
The images are saved in a JSON file, so it seems that adding the Unicode representation of commands to that file is the right way to go. But, that file is not under version control, and I don't know how to update it. Does anyone know how to update that file?

Also, I've pushed the branch to here, and since I'm a rust and texlab novice I would appreciate your input.

from texlab.

efoerster avatar efoerster commented on August 24, 2024

Thanks for your help. The data.json file is auto-generated with the help of a Python script. You should add the data to the script, we can then upload a new version. I think the best way to implement this is to add a glyph field to the Command class. If you need data, I suggest to look into the unimathsymbols.txt data set.

In the language server, we should place the glyph always in the detail field of the CompletionItem. This should simplify things greatly and VS Code users would benefit from this too.

from texlab.

efoerster avatar efoerster commented on August 24, 2024

@or17191 We tested your code and it works fine. So, we merged it into the master.
We will push a new release soon.

from texlab.

clason avatar clason commented on August 24, 2024

I'm closing this for now since the main issue (completion documentation for commands) is fixed, and anything beyond that doesn't seem reasonable at the moment.

from texlab.

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.