Sha256: 7f3337331da4107be8e2520cd4380bccd41923a62c8cb4da24e8df73a5b3d0ce

Contents?: true

Size: 918 Bytes

Versions: 7

Compression:

Stored size: 918 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Lor < Symbol
        INPUT = {
          unicodemath: [["lor", "&#x2228;"], parsing_wrapper(["vee", "vv"])],
          asciimath: [["vee", "vv", "&#x2228;"], parsing_wrapper(["lor"])],
          mathml: ["&#x2228;"],
          latex: [["vee", "lor", "&#x2228;"], parsing_wrapper(["vv"])],
          omml: ["&#x2228;"],
          html: ["&#x2228;"],
        }.freeze

        # output methods
        def to_latex
          "\\vee"
        end

        def to_asciimath
          parsing_wrapper("lor")
        end

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

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

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

        def to_html
          "&#x2228;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/lor.rb
plurimath-0.8.9 lib/plurimath/math/symbols/lor.rb
plurimath-0.8.8 lib/plurimath/math/symbols/lor.rb
plurimath-0.8.7 lib/plurimath/math/symbols/lor.rb
plurimath-0.8.6 lib/plurimath/math/symbols/lor.rb
plurimath-0.8.5 lib/plurimath/math/symbols/lor.rb
plurimath-0.8.4 lib/plurimath/math/symbols/lor.rb