Sha256: 0cec47cf6ad6e3ab5a57827df5e94ae9fab1d0f2e7759d28d3b33bd80219d25d

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\LeftTriangleBar"
        end

        def to_asciimath
          parsing_wrapper("ltrivb")
        end

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

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

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

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