Sha256: b8bd1af2b87cfded907c1a2fe923a509a9007f35ccda04d8e46b54dd46a4982e

Contents?: true

Size: 868 Bytes

Versions: 7

Compression:

Stored size: 868 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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/droang.rb
plurimath-0.8.9 lib/plurimath/math/symbols/droang.rb
plurimath-0.8.8 lib/plurimath/math/symbols/droang.rb
plurimath-0.8.7 lib/plurimath/math/symbols/droang.rb
plurimath-0.8.6 lib/plurimath/math/symbols/droang.rb
plurimath-0.8.5 lib/plurimath/math/symbols/droang.rb
plurimath-0.8.4 lib/plurimath/math/symbols/droang.rb