Class Rtc


@Bean(typeName="rtc") public class Rtc extends HtmlElementMixed
DTO for an HTML <rtc> element.

The rtc element represents a ruby text container for a ruby annotation. It is used within a ruby element to group multiple ruby text (rt) elements together. The rtc element is part of the ruby annotation system and is used to provide multiple levels of annotations for the same base text. It is typically used when you need to provide both pronunciation and translation annotations for the same text, or when you need to group related ruby text elements together.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple ruby text container Rtc simple = rtc( rt("かんじ"), rt("Chinese characters") ); // Rtc with styling Rtc styled = rtc( rt("にほんご"), rt("Japanese language") )._class("ruby-text-container"); // Rtc with complex content Rtc complex = rtc( rt("ふくざつな"), rt("complex"), rt("かんじ"), rt("kanji") ); // Rtc with ID Rtc withId = rtc( rt("かんじ"), rt("Chinese characters") ).id("ruby-text-container-1"); // Rtc with styling Rtc styled2 = rtc( .style("font-size: 0.8em; color: #666;") .children( new Rt().children("かんじ"), new Rt().children("Chinese characters") ); // Rtc with multiple elements Rtc multiple = new Rtc() .children( new Rt().children("ふくざつな"), new Rt().children("complex"), new Rt().children("かんじ"), new Rt().children("kanji") ); // Rtc with links Rtc withLinks = new Rtc() .children( new Rt().children("かんじ"), new Rt().children( new A().href("/dictionary/kanji").children("Chinese characters") ) );

See Also: