Sha256: f5012f6705b47c006e357ae5cb9754875e9463209d8af73dc252ff8453e06d88

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\varhexagonblack"
        end

        def to_asciimath
          parsing_wrapper("varhexagonblack")
        end

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

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

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

        def to_html
          "&#x2b22;"
        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/varhexagonblack.rb
plurimath-0.8.11 lib/plurimath/math/symbols/varhexagonblack.rb