Sha256: cdee7ba4e6088304ec2aec66fcf77165218dca28acf874fd6734b297040c9b86

Contents?: true

Size: 993 Bytes

Versions: 2

Compression:

Stored size: 993 Bytes

Contents

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

        # output methods
        def to_latex
          "\\APLrightarrowbox"
        end

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

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

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

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

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