Sha256: 54d974a518a65c16f42d2000eed0306dc71cf58f18b9adfd935e0571f25d56e4

Contents?: true

Size: 843 Bytes

Versions: 2

Compression:

Stored size: 843 Bytes

Contents

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

        # output methods
        def to_latex
          "\\yen"
        end

        def to_asciimath
          parsing_wrapper("yen")
        end

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

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

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

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