Sha256: baeae2428ccfdbdc994d0e23d6634d25ad88f8c0510ca8f887468b044c018478

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightarrowbsimilar"
        end

        def to_asciimath
          parsing_wrapper("rightarrowbsimilar")
        end

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

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

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

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