Sha256: f2ab659c0be4b8c51c6a8eb2209ac070840b5b6ce69e0d7715892949de27599b

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\hkswarow"
        end

        def to_asciimath
          parsing_wrapper("hkswarow")
        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.12 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.11 lib/plurimath/math/symbols/hkswarow.rb