Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package texmath for openSUSE:Factory checked in at 2023-09-04 22:52:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/texmath (Old) and /work/SRC/openSUSE:Factory/.texmath.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "texmath" Mon Sep 4 22:52:34 2023 rev:54 rq:1108506 version:0.12.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/texmath/texmath.changes 2023-08-23 14:59:01.062140691 +0200 +++ /work/SRC/openSUSE:Factory/.texmath.new.1766/texmath.changes 2023-09-04 22:52:46.706062776 +0200 @@ -1,0 +2,12 @@ +Tue Aug 22 16:13:04 UTC 2023 - Peter Simons <psim...@suse.com> + +- Update texmath to version 0.12.8.1. + 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 + +------------------------------------------------------------------- Old: ---- texmath-0.12.8.tar.gz texmath.cabal New: ---- texmath-0.12.8.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ texmath.spec ++++++ --- /var/tmp/diff_new_pack.qbD5ex/_old 2023-09-04 22:52:47.946106609 +0200 +++ /var/tmp/diff_new_pack.qbD5ex/_new 2023-09-04 22:52:47.950106750 +0200 @@ -20,13 +20,12 @@ %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: %{pkg_name} -Version: 0.12.8 +Version: 0.12.8.1 Release: 0 Summary: Conversion between math formats License: GPL-2.0-or-later URL: https://hackage.haskell.org/package/%{name} Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{name}-%{version}/revision/1.cabal#/%{name}.cabal BuildRequires: chrpath BuildRequires: ghc-Cabal-devel BuildRequires: ghc-aeson-devel @@ -127,7 +126,6 @@ %prep %autosetup -cp -p %{SOURCE1} %{name}.cabal %build %define cabal_configure_options -fexecutable ++++++ texmath-0.12.8.tar.gz -> texmath-0.12.8.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/texmath-0.12.8/changelog new/texmath-0.12.8.1/changelog --- old/texmath-0.12.8/changelog 2001-09-09 03:46:40.000000000 +0200 +++ new/texmath-0.12.8.1/changelog 2001-09-09 03:46:40.000000000 +0200 @@ -1,3 +1,11 @@ +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] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/texmath-0.12.8/src/Text/TeXMath/Writers/Typst.hs new/texmath-0.12.8.1/src/Text/TeXMath/Writers/Typst.hs --- old/texmath-0.12.8/src/Text/TeXMath/Writers/Typst.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/texmath-0.12.8.1/src/Text/TeXMath/Writers/Typst.hs 2001-09-09 03:46:40.000000000 +0200 @@ -45,7 +45,7 @@ inParens s = "(" <> s <> ")" inQuotes :: Text -> Text -inQuotes s = "\"" <> s <> "\"" +inQuotes s = "\"" <> escInQuotes s <> "\"" esc :: Text -> Text esc t = @@ -66,6 +66,16 @@ needsEscape '_' = True needsEscape _ = False +escInQuotes :: Text -> Text +escInQuotes t = + if T.any (== '"') t + then T.concatMap escapeChar t + else t + where + escapeChar c + | c == '"' = "\\" <> T.singleton c + | otherwise = T.singleton c + writeExpS :: Exp -> Text writeExpS (EGrouped es) = "(" <> writeExps es <> ")" writeExpS e = @@ -129,6 +139,7 @@ ESymbol Accent "\x2c7" -> "caron" <> inParens (writeExp b) ESymbol Accent "\x2192" -> "->" <> inParens (writeExp b) ESymbol Accent "\x2190" -> "<-" <> inParens (writeExp b) + ESymbol Accent "\8407" -> "arrow" <> inParens (writeExp b) ESymbol TOver "\9182" -> "overbrace(" <> writeExp b <> ")" ESymbol TOver "\9140" -> "overbracket(" <> writeExp b <> ")" ESymbol TOver "\175" -> "overline(" <> writeExp b <> ")" @@ -239,7 +250,11 @@ mkArray rows = T.intercalate "; " $ map mkRow rows where - mkRow = T.intercalate ", " . map mkCell + mkRow = T.intercalate ", " . mkCells . map mkCell + mkCells cs = + case cs of + ("":rest) -> "#none" : rest + _ -> cs mkCell = writeExps tshow :: Show a => a -> Text diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/texmath-0.12.8/test/writer/typst/differentiable_manifold.test new/texmath-0.12.8.1/test/writer/typst/differentiable_manifold.test --- old/texmath-0.12.8/test/writer/typst/differentiable_manifold.test 2001-09-09 03:46:40.000000000 +0200 +++ new/texmath-0.12.8.1/test/writer/typst/differentiable_manifold.test 2001-09-09 03:46:40.000000000 +0200 @@ -59,5 +59,5 @@ ] ] >>> typst -gamma_1 ident gamma_2 arrow.l.r.double {gamma_1 lr((0)) eq gamma_2 lr((0)) eq p comma upright(" and ")\ +gamma_1 equiv gamma_2 arrow.l.r.double {gamma_1 lr((0)) eq gamma_2 lr((0)) eq p comma upright(" and ")\ frac(upright(d), upright(d) t) phi.alt compose gamma_1 lr((t))\|_(t eq 0) eq frac(upright(d), upright(d) t) phi.alt compose gamma_2 lr((t))\|_(t eq 0) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/texmath-0.12.8/test/writer/typst/divergence.test new/texmath-0.12.8.1/test/writer/typst/divergence.test --- old/texmath-0.12.8/test/writer/typst/divergence.test 2001-09-09 03:46:40.000000000 +0200 +++ new/texmath-0.12.8.1/test/writer/typst/divergence.test 2001-09-09 03:46:40.000000000 +0200 @@ -22,4 +22,4 @@ (EGrouped [ ESymbol Ord "\8706" , EIdentifier "z" ]) ] >>> typst -nabla dot.op v^(â) eq frac(diff v_x, diff x) plus frac(diff v_y, diff y) plus frac(diff v_z, diff z) +nabla dot.op arrow(v) eq frac(diff v_x, diff x) plus frac(diff v_y, diff y) plus frac(diff v_z, diff z) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/texmath-0.12.8/texmath.cabal new/texmath-0.12.8.1/texmath.cabal --- old/texmath-0.12.8/texmath.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/texmath-0.12.8.1/texmath.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,5 @@ Name: texmath -Version: 0.12.8 +Version: 0.12.8.1 Cabal-Version: >= 1.10 Build-type: Simple Synopsis: Conversion between math formats. @@ -80,7 +80,7 @@ pandoc-types >= 1.20 && < 1.24, mtl >= 2.2.1, text, - typst-symbols, + typst-symbols >= 0.1.4 && < 0.1.5, split Exposed-modules: Text.TeXMath,