Sha256: 9b7d7467b92d3c97663e826507f341ef8d5b4d66a0777d2edf36dcbb0f6990fd

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\draftingarrow"
        end

        def to_asciimath
          parsing_wrapper("draftingarrow")
        end

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

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

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

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