Sha256: 85be6cfc15adc64f1ecbe9ed9c9ef1f1d6c607ba6829a81ff97dc49bc64f8c7f

Contents?: true

Size: 999 Bytes

Versions: 10

Compression:

Stored size: 999 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\draftingarrow"
        end

        def to_asciimath(**)
          parsing_wrapper("draftingarrow", lang: :asciimath)
        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

10 entries across 10 versions & 1 rubygems

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