Sha256: cc735e45e72bd3522a352b584ca908c5082d60ad3c49d50c327b406670e4548f

Contents?: true

Size: 945 Bytes

Versions: 10

Compression:

Stored size: 945 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\Barv"
        end

        def to_asciimath(**)
          parsing_wrapper("Barv", lang: :asciimath)
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x2ae7;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x2ae7;"
        end

        def to_html(**)
          "&#x2ae7;"
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/barv.rb
plurimath-0.8.23 lib/plurimath/math/symbols/barv.rb
plurimath-0.8.22 lib/plurimath/math/symbols/barv.rb
plurimath-0.8.21 lib/plurimath/math/symbols/barv.rb
plurimath-0.8.20 lib/plurimath/math/symbols/barv.rb
plurimath-0.8.19 lib/plurimath/math/symbols/barv.rb
plurimath-0.8.18 lib/plurimath/math/symbols/barv.rb
plurimath-0.8.17 lib/plurimath/math/symbols/barv.rb
plurimath-0.8.16 lib/plurimath/math/symbols/barv.rb
plurimath-0.8.15 lib/plurimath/math/symbols/barv.rb