Sha256: bed1acf9bc7663f4b80b9020f1eae50540b9a102989f5fde0415ac5c88e5db13

Contents?: true

Size: 877 Bytes

Versions: 2

Compression:

Stored size: 877 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Micro"
        end

        def to_asciimath
          parsing_wrapper("tcmu")
        end

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

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

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

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