Sha256: 84e7f24c1745ffb21e70e8d50b5caa5a75c3ab95949a3c018a0a79bcbf7b1673

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\veedoublebar"
        end

        def to_asciimath
          parsing_wrapper("veedoublebar")
        end

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

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

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

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