Sha256: 7429227ef5e3265cb4d85ce8a8afdac640af2f8c107b14df7f0e099d4b648f4c

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\varniobar"
        end

        def to_asciimath
          parsing_wrapper("varniobar")
        end

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

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

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

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