Sha256: 4e00d1ceeea2ffa3b85ec794eb4d8996d70ad2513325dbc9df8ce4dfe2e8bb85

Contents?: true

Size: 960 Bytes

Versions: 4

Compression:

Stored size: 960 Bytes

Contents

# frozen_string_literal: true

require_relative "../font_style"

module Plurimath
  module Math
    module Function
      class FontStyle
        class Fraktur < FontStyle
          def initialize(parameter_one,
                         parameter_two = "fraktur")
            super
          end

          def to_asciimath
            "mathfrak(#{parameter_one&.to_asciimath})"
          end

          def to_latex
            "\\mathfrak{#{parameter_one&.to_latex}}"
          end

          def to_mathml_without_math_tag(intent)
            Utility.update_nodes(
              Utility.ox_element(
                "mstyle",
                attributes: { mathvariant: "fraktur" },
              ),
              [parameter_one&.to_mathml_without_math_tag(intent)],
            )
          end

          def to_omml_without_math_tag(display_style)
            font_styles(display_style, scr: "fraktur")
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/function/font_style/fraktur.rb
plurimath-0.8.13 lib/plurimath/math/function/font_style/fraktur.rb
plurimath-0.8.12 lib/plurimath/math/function/font_style/fraktur.rb
plurimath-0.8.11 lib/plurimath/math/function/font_style/fraktur.rb