Sha256: baf084c68bbeb8092d702569daf52ab0eb7a45baac0c897632037ec637aff794

Contents?: true

Size: 969 Bytes

Versions: 2

Compression:

Stored size: 969 Bytes

Contents

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

        # output methods
        def to_latex
          "\\fdiagovrdiag"
        end

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

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

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

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

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