Sha256: b3ecc549cb2fce26ecc975f26dc1e00ff13eb75bae88e6b349e31d9d36ff8c31

Contents?: true

Size: 969 Bytes

Versions: 10

Compression:

Stored size: 969 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

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.23 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.22 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.21 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.20 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.19 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.18 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.17 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.16 lib/plurimath/math/symbols/hkswarow.rb
plurimath-0.8.15 lib/plurimath/math/symbols/hkswarow.rb