Documentation updates and test fix for #254
This commit is contained in:
parent
ec85d7d641
commit
022cdeb570
|
|
@ -33,7 +33,7 @@ This release marked the change of PHPWord license from LGPL 2.1 to LGPL 3. Four
|
|||
- RTF Reader: Basic RTF reader - @ivanlanin GH-72 GH-252
|
||||
- Element: New `Line` element - @basjan GH-253
|
||||
- Title: Ability to apply numbering in heading - @ivanlanin GH-193
|
||||
- HTML Reader: Basic HTML reader - @ivanlanin GH-80
|
||||
- HTML Reader: Basic HTML reader - @ivanlanin GH-80 GH-254
|
||||
|
||||
### Bugfixes
|
||||
|
||||
|
|
|
|||
110
docs/intro.rst
110
docs/intro.rst
|
|
@ -117,61 +117,61 @@ Writers
|
|||
Readers
|
||||
~~~~~~~
|
||||
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| Features | | DOCX | ODT | RTF |
|
||||
+===========================+======================+========+=======+=======+
|
||||
| **Document Properties** | Standard | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Custom | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| **Element Type** | Text | ✓ | ✓ | ✓ |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Text Run | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Title | ✓ | ✓ | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Link | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Preserve Text | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Text Break | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Page Break | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | List | ✓ | ✓ | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Table | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Image | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Object | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Watermark | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Table of Contents | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Header | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Footer | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Footnote | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Endnote | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| **Graphs** | 2D basic graphs | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | 2D advanced graphs | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | 3D graphs | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| **Math** | OMML support | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | MathML support | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| **Bonus** | Encryption | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
| | Protection | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| Features | | DOCX | ODT | RTF | HTML |
|
||||
+===========================+======================+========+=======+=======+=======+
|
||||
| **Document Properties** | Standard | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Custom | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| **Element Type** | Text | ✓ | ✓ | ✓ | ✓ |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Text Run | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Title | ✓ | ✓ | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Link | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Preserve Text | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Text Break | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Page Break | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | List | ✓ | ✓ | | ✓ |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Table | ✓ | | | ✓ |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Image | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Object | | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Watermark | | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Table of Contents | | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Header | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Footer | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Footnote | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Endnote | ✓ | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| **Graphs** | 2D basic graphs | | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | 2D advanced graphs | | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | 3D graphs | | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| **Math** | OMML support | | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | MathML support | | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| **Bonus** | Encryption | | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
| | Protection | | | | |
|
||||
+---------------------------+----------------------+--------+-------+-------+-------+
|
||||
|
||||
Contributing
|
||||
------------
|
||||
|
|
|
|||
|
|
@ -111,34 +111,34 @@ Below are the supported features for each file formats.
|
|||
|
||||
### Readers
|
||||
|
||||
| Features | | DOCX | ODT | RTF |
|
||||
|-------------------------|--------------------|------|-----|-----|
|
||||
| **Document Properties** | Standard | ✓ | | |
|
||||
| | Custom | ✓ | | |
|
||||
| **Element Type** | Text | ✓ | ✓ | ✓ |
|
||||
| | Text Run | ✓ | | |
|
||||
| | Title | ✓ | ✓ | |
|
||||
| | Link | ✓ | | |
|
||||
| | Preserve Text | ✓ | | |
|
||||
| | Text Break | ✓ | | |
|
||||
| | Page Break | ✓ | | |
|
||||
| | List | ✓ | ✓ | |
|
||||
| | Table | ✓ | | |
|
||||
| | Image | ✓ | | |
|
||||
| | Object | | | |
|
||||
| | Watermark | | | |
|
||||
| | Table of Contents | | | |
|
||||
| | Header | ✓ | | |
|
||||
| | Footer | ✓ | | |
|
||||
| | Footnote | ✓ | | |
|
||||
| | Endnote | ✓ | | |
|
||||
| **Graphs** | 2D basic graphs | | | |
|
||||
| | 2D advanced graphs | | | |
|
||||
| | 3D graphs | | | |
|
||||
| **Math** | OMML support | | | |
|
||||
| | MathML support | | | |
|
||||
| **Bonus** | Encryption | | | |
|
||||
| | Protection | | | |
|
||||
| Features | | DOCX | ODT | RTF | HTML|
|
||||
|-------------------------|--------------------|------|-----|-----|-----|
|
||||
| **Document Properties** | Standard | ✓ | | | |
|
||||
| | Custom | ✓ | | | |
|
||||
| **Element Type** | Text | ✓ | ✓ | ✓ | ✓ |
|
||||
| | Text Run | ✓ | | | |
|
||||
| | Title | ✓ | ✓ | | |
|
||||
| | Link | ✓ | | | |
|
||||
| | Preserve Text | ✓ | | | |
|
||||
| | Text Break | ✓ | | | |
|
||||
| | Page Break | ✓ | | | |
|
||||
| | List | ✓ | ✓ | | ✓ |
|
||||
| | Table | ✓ | | | ✓ |
|
||||
| | Image | ✓ | | | |
|
||||
| | Object | | | | |
|
||||
| | Watermark | | | | |
|
||||
| | Table of Contents | | | | |
|
||||
| | Header | ✓ | | | |
|
||||
| | Footer | ✓ | | | |
|
||||
| | Footnote | ✓ | | | |
|
||||
| | Endnote | ✓ | | | |
|
||||
| **Graphs** | 2D basic graphs | | | | |
|
||||
| | 2D advanced graphs | | | | |
|
||||
| | 3D graphs | | | | |
|
||||
| **Math** | OMML support | | | | |
|
||||
| | MathML support | | | | |
|
||||
| **Bonus** | Encryption | | | | |
|
||||
| | Protection | | | | |
|
||||
|
||||
## Contributing
|
||||
|
||||
|
|
|
|||
|
|
@ -58,8 +58,8 @@ class HtmlTest extends \PHPUnit_Framework_TestCase
|
|||
$section = new Section(1);
|
||||
$content = '';
|
||||
$content .= '<table><tr><th>Header</th><td>Content</td></tr></table>';
|
||||
$content .= '<ul><li>Bullet</li></ul>';
|
||||
$content .= '<ul><li>Bullet</li><ul><li>Bullet</li></ul></ul>';
|
||||
$content .= '<ol><li>Bullet</li></ol>';
|
||||
Html::addHtml($section, $content, null, array('listdepth' => 2));
|
||||
Html::addHtml($section, $content);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue