Sha256: 8173ec1abb43b23964b868c6ec9da3047e12796632694790b87e354da684e574
Contents?: true
Size: 1.1 KB
Versions: 8
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true require_relative "../table" module Plurimath module Math module Function class Table class Eqarray < Table def initialize(value = [], open_paren = "", close_paren = "", options = {}) super end def to_unicodemath(options:) unicode_value = value.map { |val| val.to_unicodemath(options: options) }.join("@") "#{open_paren&.to_unicodemath(options: options)}█(#{unicode_value})#{close_paren&.to_unicodemath(options: options)}" end def to_mathml_without_math_tag(intent, **) matrix = super set_table_intent(matrix) if intent matrix["intent"] = intent_names[:equations] if intent matrix end private def set_table_intent(tag) matrix = tag.nodes.find { |tag| tag.name == "mtable" } return unless matrix matrix["intent"] = intent_names[:cases] end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems