Sha256: d07a35aa8fe407906747af493abf4ada6ef65c3f1d04f39e43cf6a1e4af5bd54

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftarrowbsimilar"
        end

        def to_asciimath
          parsing_wrapper("leftarrowbsimilar")
        end

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

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

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

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