Up to [cvs.NetBSD.org] / pkgsrc / textproc / hs-texmath
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revbump for lang/ghc910
Bump all Haskell because lang/ghc910 has got a library change
textproc/hs-texmath: update to texmath-0.12.10.3
texmath (0.12.10.3)
* MathML writer: fix rendering of EScaled (#264, Ewan Davies).
Use `%` values for `maxwidth` and `minwidth`, and set `stretchy` to
`true`. Otherwise browsers do not rescale.
* TeX reader: Support all r/l variants of `\big`, `\bigg`, `\Big` (#266).
* Require typst-symbols >= 0.1.8.1.
texmath (0.12.10.2)
* Use texmath-symbols 0.1.8 (supports typst 0.13 symbols).
texmath (0.12.10.1)
* MathML writer: group function application with operator name (#262).
This fixes an issue with munder/mover. Previously the mo
with the U+2061 was being put under the 'lim' operator
instead of 'n -> oo'. Grouping them ensures that munder/mover
will work properly.
texmath (0.12.10)
* texmath-server:
+ Change endpoints: `/convert` to root, and `/convert-batch` to `/batch`.
+ Allow running as CGI if renamed pandoc-server.cgi. In this mode it
accepts JSON content with POST requests or parameters with GET requests,
just like pandoc-server itself.
* TeX reader:
+ Fix parsing bug with comment at beginning of braced (#258).
+ Support negative numbers in `\hspace` (#259).
+ Allow decimals in `\hspace` (#259).
+ Support `\quad` in `\text` (#260).
texmath (0.12.9)
* Better handling of primes in eqn, typst, and tex writers.
These writers now render a superscript containing prime
characters using a sequence of `'` characters, e.g.
`f''`. This syntax is supported by all three formats.
* Use Planck constant for italic h in unicodeTable. There is no
regular italic h in Unicode because this already existed in Planck
constant.
* Text.TeXMath.Shared: expose `isRLSequence` and `toPrimes` and
new function `isUpppercaseGreek` [API change, non-breaking].
* OMML reader: consolidate adjacent texts with same style.
This affects EStyled and EText elements. This way we get
`\mathbf{123abc456}` in LaTeX output instead of
`\mathbf{123}\mathbf{abc}\mathbf{456}`. See
https://github.com/jgm/pandoc/discussions/10560 for discussion.
* OMML writer:
+ Use `m:eqArr` rather than `m:m` for arrays with alternating
right, left alignments (#209). (In other writers, TeX and MathML,
we presume that these are aligned equations.)
+ Fix order of `scr` and `sty` elements (#253).
+ Use upright style by default for uppercase Greek.
* MathML reader: properly handle `mmultiscripts` (#252).
* MathML writer:
+ Improve formatting of aligned equations (#207).
An EArray with alternating R,L alignments will be assumed
to be aligned equations and rendered without padding.
+ Use `mi` for EMathOperator. Also: insert the unicode 0x2061
"function application" character after a math operator, unless
it's already there. Ensure that all 0x2061 characters are in
`mo` rather than `mi`.
+ Use upright style for uppercase Greek by default (#255).
+ Fix invalid `displaystyle` attribute. The attribute goes on
enclosing mstyle, not directly on `mfrac`.
* TeX reader:
+ Parse primes as superscripts (#254). This seems to be
how TeX behaves under the hood: `f'` is equivalent to `f^{\prime}`.
+ Avoid implicit pairing of delimiters (reverts #172).
+ Use `EIdentifier` instead of `ESymbol Alpha` for `\ell`, etc (#256).
+ Use Pun for primes in TeX reader, revise type of `toPrimes`.
This will ensure that `mo` is used for primes in MathML.
* test-texmath: allow `mathml` in addition to `mml` to specify mathml.
* Add `binpath` Makefile target.
recursive revbump after patching lang/ghc910
Bump all Haskell packages after switching the default compiler.
textproc/hs-texmath: update to texmath-0.12.8.13
texmath (0.12.8.13)
* Remove special override for `\perp` in Text.TeXMath.Readers.TeX.Commands
(#247). This caused `\perp` to be read as U+22A5 instead of U+27C2. This
addresses the mismatch with the TeX writer (which associates `\bot` with
U+22A5 and `\perp` with U+27C2).
* Typst writer:
+ Fix several issues with accents and attachments (#245).
+ Fix handling of some EOver with combining accents (#245).
+ Escape backslash in text context (#245).
texmath (0.12.8.12)
* TeX writer: render prime and superscripted prime as `'` (#246).
* TeX reader:
+ Don't crash on array with `\hline` before blank cell (#244).
+ Skip whitespace in array column specifier (#244).
* OMML writer:
+ Fix order of dPr attributes (#243).
* Typst writer:
+ Escape commas (#242). Otherwise we can get bad results e.g. in fractions,
when the commas separate arguments.
* Require typst-symbols 0.1.7, update tests.
texmath (0.12.8.11)
* TeX reader: Ignore `@{..}` and `!{..}` in array alignment specifiers (#241).
* TeX reader: ignore `\color` instead of crashing (#225).
texmath (0.12.8.10)
* TeX reader: allow `\lVert .. \vVert` to create an EDelimited (#238).
* Typst writer: improved handling of primes (#239).
Use `'` instead of e.g. `prime`. Don't put a space before primes.
* Typst writer: improve rendering of EDelimited (#238).
* Typst writer: use `mid()` for middle delimiters (#238).
texmath (0.12.8.9)
* Parse TeX `\mathbf` as both bold and upright (#236).
Recursive revbump after changing the default Haskell compiler
textproc/hs-texmath: Update to 0.12.8.8
texmath (0.12.8.8)
* TeX reader: support unicode-math Greek symbols, e.g. `\Alpha` (#235).
This includes symbols like `\Alpha` and `\omicron` that weren't
defined in original TeX.
* Use typst-symbols 0.1.6
texmath (0.12.8.7)
* TeX reader: convert Bin symbols to Ord when appropriate (#234).
E.g. in '-3', we should have an Ord rather than a Bin, so
the spacing will be appropriate.
* Pandoc writer: fix spacing inside EDelimited (#234).
Previously spaces around binary operators were omitted when
they occurred inside parens or brackets.
* test-texmath: allow pandoc output.
texmath (0.12.8.6)
* Typst writer: avoid redundant `lr`s (#233).
texmath (0.12.8.5)
* Typst writer: use ASCII symbols when possible instead of symbols (#232).
E.g., `+` instead of `plus`. Add `\` to characters needing escape.
Enhance list of characters that need escaping.
* Typst writer: fixed EBoxed output so it includes a border.
* Handle `\ddot` better in conversion to typst (#231).
* Use typst-symbols 0.1.5
Revbump all Haskell after updating lang/ghc96
textproc/hs-texmath: Forgot to commit options.mk
hs-texmath: Unbreak tree.
textproc/hs-texmath: Update to 0.12.8.4
texmath (0.12.8.4)
* TeX reader: ignore `\allowbreak` (#230).
* TeX reader: handle `*{5}{lr}` in array column specifier (#229).
* OMML reader: allow `m:e` to be missing in `m:nary` (#228).
Technically this is not allowed, according to the spec, but
Word and LibreOffice seem to tolerate it.
texmath (0.12.8.3)
* OMML writer: use "on" and "off" instead of "1" and "0" for
m:CT_OnOff type. It is said that "1" and "0" work in Word
but not Powerpoint.
texmath (0.12.8.2)
* Typst writer: use binom instead of a fraction (jgm/pandoc#9063).
texmath (0.12.8.1)
* Typst writer: several fixes (#223, Lleu Yang).
+ Escape quotes (") in inQuotes
+ Accent `\8407` corresponds to `arrow()`
+ Write `#none`'s for matrices with blanks at the beginning of a row
texmath (0.12.8)
* Expose Text.TeXMath.Shared [API change]
* Typst writer: Fix bug where 's' turned into 'space' (#219).
* Typst writer: Fix handling of overline (#214).
* Typst writer: Fix underbrace (#217).
* Typst writer: Improve some accents (#216).
* TeX writer: don't include \ on last line of matrix.
* TeX writer: Remove escaping of spaces inside \text{}.
It isn't needed, and it causes problems in MathJax rendering.
* TeX reader: allow empty matrices.
* MathML writer: Fix rendering of vectors (#218).
* Depend on external typst-symbols package.
texmath (0.12.7.1)
* Typst writer:
+ Improve under/overbrace/bracket/line.
+ Fix bugs with super/subscript grouping (#212).
+ Fix case where super/subscript is on an empty element,
by inserting a zws.
texmath (0.12.7)
* Add typst writer. New module: Text.TeXMath.Writers.Typst.
* TeX reader: Support multilined environment. Closes #210.
Bump Haskell packages after updating lang/ghc94
revbump all the Haskell packages after modifying the runtime system of lang/ghc94
textproc/hs-texmath: Update to 0.12.6 The release note is too long to paste here. See https://hackage.haskell.org/package/texmath-0.12.6/changelog
hs*: recursive bump for new dependencies needed for hs-aeson, hs-vector
Bump all Haskell packages after enabling "split sections" in mk/haskell.mk
revbump after changing the default Haskell compiler
Update to texmath-0.12.4
texmath (0.12.4)
* TeX reader: handle hyperref better (#186). We don't parse it as a link,
but we pass its contents through rather than failing.
* Update scripts and data in `lib/` directory. These are not build
dependencies, but they were used to produce some of the large
tables in the source code. Fixed the scripts and Makefile to work
with recent texmath and cabal. Removed two very large unicode data
files that can be downloaded when needed. (This reduces the size of
the source tarball considerably.) Remove `lib/toascii` (no longer used).
* Update MMLDict using latest unicode.xml.
* TeX reader: support siunitx `\qty`, `\qtyrange`, `\unit` (#185).
* Remove Text.TeXMath.Compat. We can now safely require mtl >= 2.2.1.
* Use symbolMap from ToTeX to shorten the long hardcoded symbols list.
Now we only hard-code items that differ what what is in symbolMap.
This reduces the code size by thousands of lines.
* Unicode.ToTeX: export `symbolMap` [API change]. This uses the data in
`records` to create a backwards mapping from TeX commands to Exps (ESymbol
elements). This can replace most of the hardcoded list in the current
TeX reader.
* Split out TeXMath.Readers.TeX.Commands internal module.
This makes the TeX reader shorter and should help compile times.
* OMML reader: better handling of m:t nodes (#151).
Previously we parsed an m:t element as an EIdentifier if it contains a
single letter, but an EText TextNormal if it contains more than one. This
gave bad results in some cases. It is better to reserve EText for the
case where the m:nor property is specified for "normal text."
* Require base >= 4.11.
* Remove `network-uri` flag from stack.yaml.
texmath (0.12.3.3)
* OMML writer: use nary only for operators supported by LibreOffice
(Albert Krewinkel). LibreOffice (and possibly Word, too) can handle
only a small set of operators in an `nary` element.
* TeX writer: use `\xleftarrow`, `\xrightarrow` where sensible
(Albert Krewinkel). The commands are generated for expressions over `←`
or `→`. Besides being more idiomatic, this change also prevents the
generation of invalid LaTeX, as `\leftarrow` and `\rightarrow` are not
math operators and hence may not be followed by `\limit`.
Both commands are part of amsmath.sty.
* TeX reader:
+ Improve angled-bracket support (Albert Krewinkel).
The amsmath package allows `\left<` and `\right>` as alternatives to
`\left\langle` and `\right\rangle`, respectively.
+ Ignore stared version of `\tag` (Albert Krewinkel).
+ Support \dots{c,b,m,i,o} from amsmath (#179).
+ Change symbol returned for \dots{b,i,m} from `…` to `⋯`
(Albert Krewinkel).
texmath (0.12.3.2)
* OMML writer: remove m:nor element in math operators (#178).
This caused the document's main font, rather than the math
font, to be used in formatting operators, which is undesirable.
texmath (0.12.3.1)
* MathML reader: don't allow mfenced attributes to inherit (#177).
When open and close attributes aren't given on an mfenced,
we should use defaults rather than inheriting these from a
parent mfenced.
texmath (0.12.3)
* TeX reader: implement logic to convert a Bin symbol to
an Op to Op when it occurs at the beginning of a group,
or after an Open, Pun, or Op symbol. This will give much
better results for unary `-` (#176).
* OMML writer: fixed rendering of EDelimited (#173).
We now properly render "middles" (separators).
Bump packages that depends on GHC
*: Bump PKGREVISION for ghc-9.0.1
Update to texmath-0.12.2
texmath (0.12.2)
* MathML input: support mmultiscripts element (#158, #100).
* Make MathML tag/attr recognition case-insensitive (#158).
* Pandoc writer: better handling of styling such as `\mathrm` (#145).
Previously identifiers were always italic, no matter what
styling was applied.
* Ignore `\tag` in TeX input (#162).
* TeX writer: avoid unneeded `\left` and `\right` for delimited.
We don't need `\left` and `\right` when the contents are
"standard height."
* TeX reader: parse implicit EDelimited sections (#172).
We now parse `(x)` as EDelimited, even though `\right` and `\left`
are not used.
texmath (0.12.1.1)
* Fix compilation with GHC-9.0.1 (#169, Simon Jakobi).
Background:
https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
* Add eqn to online demo.
* Improve error messages for unknown control sequences, and restructure
tex parser to be more efficient (#167).
texmath (0.12.1)
* OMML writer: explicitly mark symbols as non-italic (#109).
Otherwise, for some reason, they appear as italic by default.
* Improve error messages in reading tex arrays.
* Improve support for `\bmod`, `\mod`, etc. (#165).
Allow them to take complex arguments like `\left( 1 \right)`.
* Improve support for `\genfrac` (#164).
* Ignore `\textstyle`, `\scriptstyle`, `\scriptscriptstyle`,
as we currently ignore `\displaystyle`.
* Parse siunitx commands in reading tex (#157).
* Improve handling of `\not` in reading tex (#161).
Previously we only handled `\not` in front of certain symbols.
* Support `\pod` and `\pmod` and clean up spacing and font for
`\mod` and `\bmod` (#160).
texmath (0.12.0.3)
* Allow pandoc-types 1.22.
texmath (0.12.0.2)
* Allow pandoc-types 1.21.
* Pandoc output: omit empty Emph for sub/superscript without base (#155).
* tex writer: Use `\overline{\overline{B}}` instead of unicode
double line accent (#153).
texmath (0.12.0.1)
* OMML writer: Fix overline and accent rendering (#152).
* OMML reader: Fix dropped arrows (#153). Add tests.
Update to texmath-0.12 * Use Text instead of String in data types and functions (Christian Despres) [API change]. Note that there are still a few places where we unpack Text to String with a view pattern: performance could likely be increased with further rewriting. * Avoid use of !! with negative index (jgm/pandoc#5853).
Update to texmath-0.11.3 Changelog from 0.8 is too long to paste here. See http://hackage.haskell.org/package/texmath-0.11.3/changelog
Bump PKGREVISION for hs-text-1.2.2.0 || hs-hashable-1.2.3.3
Bump PKGREVISION for hs-dlist || hs-utf8-string
Bump PKGREVISION for hs-primitive-0.6.1.0 || hs-vector-0.11.0.0 || hs-mwc-random-0.13.3.2 || hs-vector-algorithms-0.7.0.1
Bump PKGREVISION for hs-text-1.2.1.3
Bump PKGREVISION for hs-unordered-containers-0.2.5.1
Bump PKGREVISION for hs-parsec-3.1.9
Bump PKGREVISION for hs-hashable-1.2.3.2
Bump PKGREVISION for hs-text-1.2.1.1
Bump PKGREVISION for hs-dlist-0.7.1.1
Because this error: ERROR: hs-primitive>=0.5.4 is not installed; can't buildlink files. Bump PKGREVISION for hs-primitive-0.5.4.0
Bump PKGREVISION for hs-scientific-0.3.3.5
Bump PKGREVISION for hs-scientific-0.3.3.4
Bump PKGREVISION for hs-text-1.2.0.3
Bump PKGREVISION for hs-text-1.2.0.2 || hs-hashable-1.2.3.0
Bump PKGREVISION for hs-transformers-0.4.2.0
Bump PKGREVISION for hs-parsec-3.1.7
Bump PKGREVISION for hs-vector-0.10.12.1
Bump PKGREVISION for hs-text-1.2.0.0
Import texmath-0.8 as textproc/hs-texmath, packaged for wip. The texmath library provides functions to read and write TeX math, presentation MathML, and OMML (Office Math Markup Language, used in Microsoft Office). Support is also included for converting math formats to pandoc's native format (allowing conversion, via pandoc, to a variety of different markup formats). The TeX reader supports basic LaTeX and AMS extensions, and it can parse and apply LaTeX macros. (See http://johnmacfarlane.net/texmath for a live demo of bidirectional conversion between LaTeX and MathML.) The package also includes several utility modules which may be useful for anyone looking to manipulate either TeX math or MathML. For example, a copy of the MathML operator dictionary is included.