View Single Post
Old 02-10-2011, 09:09 PM   #21
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
I've pushed up changes to the handling of \t and \T tags. There is no way to get them 100% mapped to XHTML unfortunately. \t and \T can do some very strange things and are highly dependent fix positions within the viewer screen. So, only certain, common cases are handled.
  • \t starting and ending a line (or another line) will create a hard margin indent.
  • \t starting a line and ending anywhere before the end will create a text indent.
  • \T starting a line will create a text indent.
  • \t sets and \T inside of a line will be ignored.

Code:
\tText ... end of Text\t
will produce

Code:
    Text
    ...
    end of text
---

Code:
\tText ...
end of Text\t
will produce

Code:
    Text
    ...
    end of text
---

Code:
\tT\text ... end of Text
will produce

Code:
    Text
...
end of text
---


Code:
\T="5%"Text ... end of Text
will produce

Code:
    Text
...
end of text
---

Code:
Text ... \tend\t of\T="5%" Text
will produce

Code:
Text
...
end of Text
* I'm using the ... in place of a long string of text to denote how it will appear when wrapped.
user_none is offline   Reply With Quote