Sha256: 278a044b041982473757a82a23f951282e3a1f9a908d55b4850abea85479363c

Contents?: true

Size: 923 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

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