Sha256: a233d8d84f5f36e3a2e77219824f174a93efb9227ed19cc464f3f23ae205249d

Contents?: true

Size: 926 Bytes

Versions: 2

Compression:

Stored size: 926 Bytes

Contents

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

        # output methods
        def to_latex
          "\\varisinobar"
        end

        def to_asciimath
          parsing_wrapper("barin")
        end

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

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

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

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