Documentation

Ruby extends AbstractElement
in package

Ruby element HTML writer.

Table of Contents

Properties

$element  : AbstractElement
Element.
$parentWriter  : HTML
Parent writer.
$withoutP  : bool
Without paragraph.

Methods

__construct()  : mixed
Create new instance.
setWithoutP()  : void
Set without paragraph.
write()  : string
Write text.
getParagraphStyleForTextRun()  : string
Write paragraph style for a given TextRun.
getPropertyCssForRtTag()  : string
Get property CSS for the <rt> tag.
getPropertyCssForRubyTag()  : string
Get property CSS for the <ruby> tag.

Properties

Methods

setWithoutP()

Set without paragraph.

public setWithoutP(bool $value) : void
Parameters
$value : bool

write()

Write text.

public write() : string
Return values
string

getParagraphStyleForTextRun()

Write paragraph style for a given TextRun.

private getParagraphStyleForTextRun(TextRun $textRun, string $extraCSS) : string
Parameters
$textRun : TextRun
$extraCSS : string
Return values
string

getPropertyCssForRtTag()

Get property CSS for the <rt> tag.

private getPropertyCssForRtTag(RubyProperties $properties) : string
Parameters
$properties : RubyProperties
Return values
string

getPropertyCssForRubyTag()

Get property CSS for the <ruby> tag.

private getPropertyCssForRubyTag(RubyProperties $properties) : string
Parameters
$properties : RubyProperties
Return values
string

        
On this page

Search results