Sha256: c19152eece96821fb4a038a05a4f86191f7e580c5785c7e08f551684ad0b21c7

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\viewdata"
        end

        def to_asciimath
          parsing_wrapper("viewdata")
        end

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

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

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

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