Giter Site home page Giter Site logo

Comments (3)

jgm avatar jgm commented on July 28, 2024

\ddot{q} parses as

[ EOver False (EIdentifier "q") (ESymbol Accent "\776") ]

The problem is that dot.double is \168 (scraped from the typst documentation on symbols).

776 = Combining Diaeresis
168 = Diaeresis

You'll note we don't have trouble with \dddot, just \ddot, and this is why.

In typst-symbols, dot.triple is

8411 - combining three dots above

In my opinion, it would make sense for dot.double and dot.triple both to be mapped to characters with similar unicode properties -- hence 776.

cc @laurmaedje

In the mean time, though, we can probably just add some code to treat 776 as 168 for purpose of typst symbol lookup.

from texmath.

jgm avatar jgm commented on July 28, 2024

I've fixed this with the workaround. @laurmaedje I'm really not sure about the character mapping issue -- you probably know more than I do about this -- but I thought I'd raise the issue.

from texmath.

laurmaedje avatar laurmaedje commented on July 28, 2024

If I recall correctly, we did it this way because we generally wanted the non-combining character as the default for the symbol (e.g. tilde is a normal tilde, not a combining one and diaresis/dot.double is the same), but the triple dot only exists in combining form. I'm not 100% sure though.

from texmath.

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.