Sha256: cd9c48d2915ff87a6843725054d52e9a7053cc952b25a846222c5f02cace1b39

Contents?: true

Size: 963 Bytes

Versions: 2

Compression:

Stored size: 963 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftbkarrow"
        end

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

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

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

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

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