Sha256: 58bb7aace3eb6dab3907a8f7b1186614c5e9ef6a2f853d7030c20fe8bd48d5af

Contents?: true

Size: 920 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/draftingarrow.rb
plurimath-0.8.9 lib/plurimath/math/symbols/draftingarrow.rb
plurimath-0.8.8 lib/plurimath/math/symbols/draftingarrow.rb
plurimath-0.8.7 lib/plurimath/math/symbols/draftingarrow.rb
plurimath-0.8.6 lib/plurimath/math/symbols/draftingarrow.rb
plurimath-0.8.5 lib/plurimath/math/symbols/draftingarrow.rb
plurimath-0.8.4 lib/plurimath/math/symbols/draftingarrow.rb