Class: Plurimath::Math::Function::FontStyle
- Inherits:
-
BinaryFunction
show all
- Defined in:
- lib/plurimath/math/function/font_style.rb,
lib/plurimath/math/function/font_style/bold.rb,
lib/plurimath/math/function/font_style/italic.rb,
lib/plurimath/math/function/font_style/normal.rb,
lib/plurimath/math/function/font_style/script.rb,
lib/plurimath/math/function/font_style/fraktur.rb,
lib/plurimath/math/function/font_style/monospace.rb,
lib/plurimath/math/function/font_style/sans-serif.rb,
lib/plurimath/math/function/font_style/double_struck.rb
Defined Under Namespace
Classes: Bold, DoubleStruck, Fraktur, Italic, Monospace, Normal, SansSerif, Script
Instance Attribute Summary
#parameter_one, #parameter_two
Instance Method Summary
collapse
#==, #class_name, #initialize
Methods inherited from Core
#class_name, #empty_tag, #insert_t_tag, #nary_attr_value, #omml_parameter, #tag_name
Instance Method Details
#to_asciimath ⇒ Object
9
10
11
|
# File 'lib/plurimath/math/function/font_style.rb', line 9
def to_asciimath
parameter_one&.to_asciimath
end
|
#to_html ⇒ Object
30
31
32
|
# File 'lib/plurimath/math/function/font_style.rb', line 30
def to_html
parameter_one&.to_html
end
|
#to_latex ⇒ Object
34
35
36
|
# File 'lib/plurimath/math/function/font_style.rb', line 34
def to_latex
parameter_one&.to_latex
end
|
#to_mathml_without_math_tag ⇒ Object
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/plurimath/math/function/font_style.rb', line 13
def to_mathml_without_math_tag
first_value = parameter_one&.to_mathml_without_math_tag
Utility.update_nodes(
Utility.ox_element(
"mstyle",
attributes: { mathvariant: parameter_two },
),
[first_value],
)
end
|
#to_omml_without_math_tag ⇒ Object
24
25
26
27
28
|
# File 'lib/plurimath/math/function/font_style.rb', line 24
def to_omml_without_math_tag
r_tag = Utility.ox_element("r", namespace: "m")
Utility.update_nodes(r_tag, parameter_one&.insert_t_tag)
[r_tag]
end
|
38
39
40
|
# File 'lib/plurimath/math/function/font_style.rb', line 38
def validate_function_formula
true
end
|