Sha256: e8d9dd065fa70acb6f281d7eb57f5e0e0fbb63b4d42fb423f6d7c4fd2af77f29

Contents?: true

Size: 978 Bytes

Versions: 2

Compression:

Stored size: 978 Bytes

Contents

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

        # output methods
        def to_latex
          "\\varisinobar"
        end

        def to_asciimath
          parsing_wrapper("barin", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/barin.rb
plurimath-0.8.13 lib/plurimath/math/symbols/barin.rb