Sha256: 5322be78c3c018ed70ff1f799b330b6b78ce5ef2882ce6128ffbefc5578de8f7

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\sansLmirrored"
        end

        def to_asciimath
          parsing_wrapper("sansLmirrored")
        end

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

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

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

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