Sha256: dd9b5b1fc8caa59c277743bd285ac8b8a838303af547737b7a5db0ed45b7dee3

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rvboxline"
        end

        def to_asciimath
          parsing_wrapper("rvboxline")
        end

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

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

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

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