Sha256: 2cfec26f5292bc3c71f184bf82a6802e24557a7b6ee26390c7d976520f6ada7e

Contents?: true

Size: 963 Bytes

Versions: 2

Compression:

Stored size: 963 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circledvert"
        end

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