Sha256: a5a41988b83e2ca690c4bf11d0fcdd5997c0a6299c20c602740374d51997309f

Contents?: true

Size: 939 Bytes

Versions: 2

Compression:

Stored size: 939 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nhVvert"
        end

        def to_asciimath
          parsing_wrapper("nhVvert", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2af5;"
        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/nhvvert.rb
plurimath-0.8.13 lib/plurimath/math/symbols/nhvvert.rb