Skip to content

Commit

Permalink
Update for itextomml 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
distler committed Oct 4, 2021
1 parent 83bf3a1 commit 6eb056b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ module Instiki
module VERSION #:nodoc:
MAJOR = 0
MINOR = 30
TINY = 2
TINY = 3
SUFFIX = '(MML+)'
PRERELEASE = false
if PRERELEASE
Expand Down
9 changes: 9 additions & 0 deletions app/views/layouts/tex.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@
\re@DeclareMathSymbol{\Perp}{\mathrel}{symbolsC}{121}
\re@DeclareMathSymbol{\Vbar}{\mathrel}{symbolsC}{121}
\re@DeclareMathSymbol{\sslash}{\mathrel}{stmry}{12}
\re@DeclareMathSymbol{\boxslash}{\mathrel}{stmry}{27}
\re@DeclareMathSymbol{\boxbslash}{\mathrel}{stmry}{28}
\re@DeclareMathSymbol{\boxast}{\mathrel}{stmry}{24}
\re@DeclareMathSymbol{\boxcircle}{\mathrel}{stmry}{29}
\re@DeclareMathSymbol{\boxbox}{\mathrel}{stmry}{30}
\re@DeclareMathSymbol{\obslash}{\mathrel}{stmry}{20}
\re@DeclareMathSymbol{\obar}{\mathrel}{stmry}{58}
\re@DeclareMathSymbol{\olessthan}{\mathrel}{stmry}{60}
\re@DeclareMathSymbol{\ogreaterthan}{\mathrel}{stmry}{61}
\re@DeclareMathSymbol{\bigsqcap}{\mathop}{stmry}{"64}
\re@DeclareMathSymbol{\biginterleave}{\mathop}{stmry}{"6}
\re@DeclareMathSymbol{\invamp}{\mathrel}{symbolsC}{77}
Expand Down
9 changes: 9 additions & 0 deletions test/functional/wiki_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1425,6 +1425,15 @@ def set_tex_header
\re@DeclareMathSymbol{\Perp}{\mathrel}{symbolsC}{121}
\re@DeclareMathSymbol{\Vbar}{\mathrel}{symbolsC}{121}
\re@DeclareMathSymbol{\sslash}{\mathrel}{stmry}{12}
\re@DeclareMathSymbol{\boxslash}{\mathrel}{stmry}{27}
\re@DeclareMathSymbol{\boxbslash}{\mathrel}{stmry}{28}
\re@DeclareMathSymbol{\boxast}{\mathrel}{stmry}{24}
\re@DeclareMathSymbol{\boxcircle}{\mathrel}{stmry}{29}
\re@DeclareMathSymbol{\boxbox}{\mathrel}{stmry}{30}
\re@DeclareMathSymbol{\obslash}{\mathrel}{stmry}{20}
\re@DeclareMathSymbol{\obar}{\mathrel}{stmry}{58}
\re@DeclareMathSymbol{\olessthan}{\mathrel}{stmry}{60}
\re@DeclareMathSymbol{\ogreaterthan}{\mathrel}{stmry}{61}
\re@DeclareMathSymbol{\bigsqcap}{\mathop}{stmry}{"64}
\re@DeclareMathSymbol{\biginterleave}{\mathop}{stmry}{"6}
\re@DeclareMathSymbol{\invamp}{\mathrel}{symbolsC}{77}
Expand Down
6 changes: 6 additions & 0 deletions test/unit/page_renderer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@ def test_have_latest_itex2mml
%{\\right\\rvert</annotation></semantics></math></p>},
%{Foo $\\left\\llbracket\\begin{matrix}a\\\\ b\\\\ c\\end{matrix}\\right\\rrbracket \\left\\lVert\\begin{matrix}a\\\\ b\\\\ c\\end{matrix}\\right\\rvert$})

assert_markup_parsed_as(
%{<p>Foo <math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><semantics>} +
%{<mrow><mo>⧄</mo><mo>⧅</mo><mo>⧆</mo><mo>⧇</mo><mo>⧈</mo></mrow><annotation encoding='application/x-tex'>} +
%{\\boxslash\\boxbslash\\boxast\\boxcircle\\boxbox</annotation></semantics></math></p>},
%{Foo $\\boxslash\\boxbslash\\boxast\\boxcircle\\boxbox$})

end

def test_blahtex
Expand Down

0 comments on commit 6eb056b

Please sign in to comment.