Difference between revisions of "Book Formatting"

1,071 bytes added ,  13:07, 13 January 2010
imported>Orix
(posted point on <img> tag disruption and solution)
imported>Aellis
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:


'''Warning:''' Do not use “ speech marks when coding or in writing, only " or ”, the main reason being that “ speech marks tend to disrupt coding. The book will still work, but parts of the coding will be obvious in game (such as having < marks everywhere), and the coding may not have taken effect.
'''Warning:''' Do not use “ speech marks when coding or in writing, only " or ”, the main reason being that “ speech marks tend to disrupt coding. The book will still work, but parts of the coding will be obvious in game (such as having < marks everywhere), and the coding may not have taken effect.
Get into the practice of omitting the quotation marks from the tags you use.  <nowiki><FONT face="1"></nowiki> compiles the same as <nowiki><FONT face=1></nowiki>.  This way, if you do want to use quotation marks, you can do so without borking your book.
Example: <nowiki><FONT face=3></nowiki>Buy the book at "First Edition".<nowiki></FONT></nowiki>
Will appear in game as: Buy the book at "First Edition".


== Supported Tags ==
== Supported Tags ==
Line 37: Line 41:
</nowiki>
</nowiki>


Differences: As with the font tag (see <nowiki><FONT></nowiki> below), the div tags do not nest as they would in HTML.  
Differences: As with the font tag (see <nowiki><FONT></nowiki> below), the div tags do not nest as they would in HTML.
 
If you do nest tags, the <nowiki><DIV></nowiki> tag is destroyed when followed by a <nowiki></FONT></nowiki> tag.
Example: <nowiki><DIV align=right></nowiki>Mytext<nowiki><FONT face=3></nowiki>is a handwritten<nowiki></FONT></nowiki>note.<nowiki></DIV></nowiki>
With normal HTML tags, the result would be:
                                                    Mytext is a handwritten note.
But in game the book will be formatted:
                                                          Mytext is a handwritten
note.


===<nowiki><FONT></nowiki>===
===<nowiki><FONT></nowiki>===
Line 77: Line 91:
You cannot stretch or squish an image in a book, you can only crop. This means that with a width and height of 64 (as in the example above) only the top-left 64x64 section of the image file will be used. The rest of the image file will be ignored. (Naming the files with the correct width and height to display them is probably good practice. Use the full resolution sizes for all resolutions of the image.
You cannot stretch or squish an image in a book, you can only crop. This means that with a width and height of 64 (as in the example above) only the top-left 64x64 section of the image file will be used. The rest of the image file will be ignored. (Naming the files with the correct width and height to display them is probably good practice. Use the full resolution sizes for all resolutions of the image.


NB: The largest Image size possible is 444 x 650 pixels. Go over this and the book will crash when opened in game.
NB: The largest Image size possible is 444x650 pixels. Go over this and the book will crash when opened in game. However, this may be variable from person to person, some are getting it as high as 490x680 (and even 490x720 after the first page).  


'''Notes:'''
'''Notes:'''
Anonymous user