Sha256: 60990481d6c705b658e71ddaa8c3bc6aa4adee5383564b35f7ee39513807f3c6

Contents?: true

Size: 939 Bytes

Versions: 2

Compression:

Stored size: 939 Bytes

Contents

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

        # output methods
        def to_latex
          "\\fbowtie"
        end

        def to_asciimath
          parsing_wrapper("fbowtie", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x29d3;"
        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/fbowtie.rb
plurimath-0.8.13 lib/plurimath/math/symbols/fbowtie.rb