]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Ruby.php
remove autoload section in composer.json
[github/wallabag/wallabag.git] / inc / 3rdparty / htmlpurifier / HTMLPurifier / HTMLModule / Ruby.php
CommitLineData
d4949327
NL
1<?php\r
2\r
3/**\r
4 * XHTML 1.1 Ruby Annotation Module, defines elements that indicate\r
5 * short runs of text alongside base text for annotation or pronounciation.\r
6 */\r
7class HTMLPurifier_HTMLModule_Ruby extends HTMLPurifier_HTMLModule\r
8{\r
9\r
10 /**\r
11 * @type string\r
12 */\r
13 public $name = 'Ruby';\r
14\r
15 /**\r
16 * @param HTMLPurifier_Config $config\r
17 */\r
18 public function setup($config)\r
19 {\r
20 $this->addElement(\r
21 'ruby',\r
22 'Inline',\r
23 'Custom: ((rb, (rt | (rp, rt, rp))) | (rbc, rtc, rtc?))',\r
24 'Common'\r
25 );\r
26 $this->addElement('rbc', false, 'Required: rb', 'Common');\r
27 $this->addElement('rtc', false, 'Required: rt', 'Common');\r
28 $rb = $this->addElement('rb', false, 'Inline', 'Common');\r
29 $rb->excludes = array('ruby' => true);\r
30 $rt = $this->addElement('rt', false, 'Inline', 'Common', array('rbspan' => 'Number'));\r
31 $rt->excludes = array('ruby' => true);\r
32 $this->addElement('rp', false, 'Optional: #PCDATA', 'Common');\r
33 }\r
34}\r
35\r
36// vim: et sw=4 sts=4\r