Sha256: 1b3209b19e1ddeb4f271194721b516a1a61b998c4ef5e61eb3d1df8f3e63adc3

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\droang"
        end

        def to_asciimath
          parsing_wrapper("droang", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/droang.rb
plurimath-0.8.13 lib/plurimath/math/symbols/droang.rb