Sha256: e4284675e9b46dbebd8e2faf1cd5e1e6b85951809c5d456d8e6ecbe98e9bfd1c

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\sansLturned"
        end

        def to_asciimath
          parsing_wrapper("sansLturned")
        end

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

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

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

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