Sha256: 7e5d6b6f266f15869db3dc05de10846d2283c0b5badbbe9d4470800ac9f70964

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Hkswarow < Symbol
        INPUT = {
          unicodemath: [["&#x2926;"], parsing_wrapper(["hkswarow"], lang: :unicode)],
          asciimath: [["&#x2926;"], parsing_wrapper(["hkswarow"], lang: :asciimath)],
          mathml: ["&#x2926;"],
          latex: [["hkswarow", "&#x2926;"]],
          omml: ["&#x2926;"],
          html: ["&#x2926;"],
        }.freeze

        # output methods
        def to_latex
          "\\hkswarow"
        end

        def to_asciimath
          parsing_wrapper("hkswarow", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2926;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.13 lib/plurimath/math/symbols/hkswarow.rb