Sha256: 4ecc3f2969d20e1c7c90f7ffdaa58f2fc2d78bef616dbae1098eb22ea3751feb

Contents?: true

Size: 962 Bytes

Versions: 2

Compression:

Stored size: 962 Bytes

Contents

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

        # output methods
        def to_latex
          "\\llangle"
        end

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

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

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

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

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