Sha256: d7e6482b8192fe42b69877bc6fd8f81ef6fc393b860f3ec46a25017fe2f5adbd

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circledvert"
        end

        def to_asciimath
          parsing_wrapper("circledvert")
        end

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

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

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

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