Commit 224eb435 authored by Fabien Boucaud's avatar Fabien Boucaud

Update README.md with a more complete overview of what is supported and how, and what isn't.

parent 1a37a50d
......@@ -53,6 +53,28 @@ around the actual content of each level
- Zip the directory into hdoc archive
###TO DO
Implémenter la gestion du code
Gérer parfaitement les indentations
Possibilité d'utiliser des tags pour typer les sections
- Régler le problème qui fait que pour certains fichiers html2xhtml.xsl ne copie pas correctement l'ensemble du document
- Implémenter la gestion du code
- Gérer parfaitement les indentations
- Possibilité d'utiliser des tags pour typer les sections
### Supported tags
- html tags -> hdoc tags
- u, s, em, strong, color -> em
- sub -> sub
- sup -> sup
- li -> li
- ol -> ol
- br -> p
###Titles
- If it's h1 -> new section
- If following title is not h1 -> new section in the section
- If following title is at the same level -> new section at the same level
- If following title is at a lower level -> new section in the previous section
- If there are any misplaced titles, they will become a new section at their current level of section if there is any. For example, if the first title of the doc is a h2 it will produce a section at the highest level as if it was a h1.
## Capitalisation
Using regular expression with xsl is a good way to parse a non xml file.
We can note about the creation of the hdoc's structure with the titles h1 to h6 that XSLT is probably not the best tool for these specific transformations. Something like SAX, which actually explore the XML files sequentially, would probably be more efficient and easier to use for these kinds of transformations.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment