Sha256: 77d3681120d765f1b6ad8f71ae154c465c4998bd0fa4ca020dd13cff57c048dd

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Isinobar < Symbol
        INPUT = {
          unicodemath: [["&#x22f7;"], parsing_wrapper(["isinobar"])],
          asciimath: [["&#x22f7;"], parsing_wrapper(["isinobar"])],
          mathml: ["&#x22f7;"],
          latex: [["isinobar", "&#x22f7;"]],
          omml: ["&#x22f7;"],
          html: ["&#x22f7;"],
        }.freeze

        # output methods
        def to_latex
          "\\isinobar"
        end

        def to_asciimath
          parsing_wrapper("isinobar")
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("&#x22f7;")
        end

        def to_mathml_without_math_tag(_)
          ox_element("mi") << "&#x22f7;"
        end

        def to_omml_without_math_tag(_)
          "&#x22f7;"
        end

        def to_html
          "&#x22f7;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/isinobar.rb
plurimath-0.8.11 lib/plurimath/math/symbols/isinobar.rb