﻿--- XML SYNTAX REFERENCE ---

1. PARAGRAPHS (`<p>`):
   - Use `<p>` to create a new paragraph.
   - Example: `<p>This is a paragraph.</p>`
   - STYLING: Use the `style` attribute with CSS-like syntax.
     - `english`: non chinese font, eg., "Times New Roman".
     - `chinese`: chinese font, eg., "SimSun".
     - `align`: "left", "center", "right", "justify".
     - `font-size`: e.g., "28" (for 14pt font), "32" (for 16pt).
     - `font-weight`: "bold".
     - `color`: Hex color code, e.g., "FF0000" for red.
     - `margin-top`, `margin-bottom`: e.g., "200".
     - `margin-left`, `margin-right`: e.g., "720" (for paragraph indentation).
     - `line-height`: e.g., "18pt", "1.5" (line spacing).
     - `spacing`: e.g., "240" (paragraph spacing value).
   - Style Example: `<p style="align:center;font-size:32;font-weight:bold;margin-top:240;spacing:240;">Centered Bold Title</p>`

2. TEXT SPANS (`<span>`):
   - Use `<span>` inside `<p>` for styling parts of the text.
   - It supports `style` with `font-size`, `font-weight`, `color`, `underline`, and `spacing`.
   - Underline values: "single", "double", "dash", "dot-dash", etc.
   - `spacing`: e.g., "240" (character spacing value).
   - Example: `<p>This is <span style="font-weight:bold;color:FF0000;spacing:240;">red and bold</span> text.</p>`
   - Note: `<span>` can also be used standalone (not inside `<p>`) for text runs.

3. TABLES (`<table>`):
   - Use `<table>` to create a table.
   - `grid`: Defines column widths. e.g., `grid="4500/4500"` for two equal columns.
   - `width`: Total table width. e.g., `width="9000"`.
   - `style`:
     - `align`: "center", "left", "right".
     - `border`: "none" to hide all borders.
   - Example: `<table grid="3000/3000/3000" style="align:center;"> ... table content ... </table>`

4. TABLE ROWS (`<tr>`):
   - Use `<tr>` for table rows.
   - `header="1"`: Marks the row as a table header (repeats on new pages).
   - `height`: Row height, e.g., `height="500"`.

5. TABLE CELLS (`<tc>`):
   - Use `<tc>` for table cells.
   - `span`: Column span. e.g., `span="2"`.
   - `merge`: Vertical merge. "start" for the first cell, "continue" for subsequent cells in the merge.
   - `align`: Vertical alignment inside the cell. "center", "top", "bottom".
   - `border-top`, `border-bottom`, `border-left`, `border-right`: "none" to hide a specific border.
   - Content inside `<tc>` MUST be wrapped in `<p>`.
   - Example: `<tc span="2"><p>This cell spans two columns.</p></tc>`

--- END OF REFERENCE ---
