Sha256: 5498c972f10a4ef0192838127668c5b75e777932fe79a252d5ff2d7d641227ea

Contents?: true

Size: 884 Bytes

Versions: 2

Compression:

Stored size: 884 Bytes

Contents

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

        # output methods
        def to_latex
          parsing_wrapper("zwnj")
        end

        def to_asciimath
          parsing_wrapper("zwnj")
        end

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

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

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

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