Sha256: f6d5031eb0ac94fd8d95de78d33a09c814ba18bcc0dcdc16e031a9ac43fd520b

Contents?: true

Size: 871 Bytes

Versions: 2

Compression:

Stored size: 871 Bytes

Contents

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

        # output methods
        def to_latex
          "\\droang"
        end

        def to_asciimath
          parsing_wrapper("droang")
        end

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

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

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

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