packages feed

typst-symbols 0.1.3.1 → 0.1.4

raw patch · 3 files changed

+57/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Typst.Shorthands: mathSymbolShorthands :: [(Text, Text)]

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for typst-symbols +## 0.1.4++* Add Typst.Shorthands with symbol shorthand table.+ ## 0.1.3.1  * Fix symbol-scraping script and symbols for typst 0.7.
+ src/Typst/Shorthands.hs view
@@ -0,0 +1,51 @@+{-# LANGUAGE OverloadedStrings #-}+module Typst.Shorthands (+  mathSymbolShorthands+)+where+import Data.Text (Text)++-- A list of pairs of math shorthands and symbol names.+mathSymbolShorthands :: [(Text, Text)]+mathSymbolShorthands =+-- autogenerated by make update-symbols+  [ ( "->" , "arrow.r" )+  , ( "|->" , "arrow.r.bar" )+  , ( "=>" , "arrow.r.double" )+  , ( "|=>" , "arrow.r.double.bar" )+  , ( "==>" , "arrow.r.double.long" )+  , ( "-->" , "arrow.r.long" )+  , ( "~~>" , "arrow.r.long.squiggly" )+  , ( "~>" , "arrow.r.squiggly" )+  , ( ">->" , "arrow.r.tail" )+  , ( "->>" , "arrow.r.twohead" )+  , ( "<-" , "arrow.l" )+  , ( "<==" , "arrow.l.double.long" )+  , ( "<--" , "arrow.l.long" )+  , ( "<~~" , "arrow.l.long.squiggly" )+  , ( "<~" , "arrow.l.squiggly" )+  , ( "<-<" , "arrow.l.tail" )+  , ( "<<-" , "arrow.l.twohead" )+  , ( "<->" , "arrow.l.r" )+  , ( "<=>" , "arrow.l.r.double" )+  , ( "<==>" , "arrow.l.r.double.long" )+  , ( "<-->" , "arrow.l.r.long" )+  , ( "*" , "ast.op" )+  , ( "||" , "bar.v.double" )+  , ( "[|" , "bracket.l.double" )+  , ( "|]" , "bracket.r.double" )+  , ( ":=" , "colon.eq" )+  , ( "::=" , "colon.double.eq" )+  , ( "*" , "convolve" )+  , ( "..." , "dots.h" )+  , ( "=:" , "eq.colon" )+  , ( "!=" , "eq.not" )+  , ( ">>" , "gt.double" )+  , ( ">=" , "gt.eq" )+  , ( ">>>" , "gt.triple" )+  , ( "<<" , "lt.double" )+  , ( "<=" , "lt.eq" )+  , ( "<<<" , "lt.triple" )+  , ( "-" , "minus" )+  , ( "'" , "prime" )+  ]
typst-symbols.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               typst-symbols-version:            0.1.3.1+version:            0.1.4 synopsis:           Symbol and emoji lookup for typst language description:        This package defines symbol and emoji codes for the                     typst language (<https://typst.app>).@@ -24,6 +24,7 @@ library     import:           warnings     exposed-modules:  Typst.Symbols+                      Typst.Shorthands                       Typst.Emoji     build-depends:    base >= 4.12 && < 5,                       text >= 1.0 && < 2.1