Sha256: f3f3998ad249ade4c5d979d86c198456381b6f0fcd0672990376d6f29e8c2944

Contents?: true

Size: 996 Bytes

Versions: 2

Compression:

Stored size: 996 Bytes

Contents

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

        # output methods
        def to_latex
          "\\prurel"
        end

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

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

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

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

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