Reader

DS, DSi and 3DS homebrews: apps, emulators, games and tools for Luma3DS and the Homebrew Launcher, with versions and links.
User avatar
sniper3d
Master Gamer
Members
Posts: 2480
Joined: Mon 3 Jan 2011 13:07
Wi-Fi: Oui
PS3 Dongle: Aucun

Reader

Post by sniper3d »

Automatically translated from French.

Here's version 0.1 of Lecteur the homebrew by paymouge This Homebrew will let you read e-books on your nintendo DS.
Application coded in lua, requires the latest version of the interpreter MicroLua DS to work.
Image unavailable (removed by its host) Changelog
Spoiler
V 0.1:
-Script fully operational
This content is for members only. Log in or register for free to see it.
USAGE
Usage is very simple, everything is found in the application's menu button.

CREATING A BOOK
Each book has as many pages as the author wants.
Each page is made up of 34 lines maximum.
Each line has 42 characters maximum.

THE HEADER

The header is important and must be filled in, that's where the book's information is found.

It contains:

[Version]1.0 (This line indicates for which version of lecteur.lua the book was created.)
[Title]Le test (This is where the book's title appears)
[Date]2/12/2012 (Book creation date)
[Revision]10/12/2012 (Date of the last modification)
[Autor]Papymouge (Name of the book's author)
[Genre]Test (The genre of your book ex: Detective, Dictionary,...)
[NbPage]4 (The number of pages in the book without the cover)
[Synopsis][/Synopsis] (Between these two tags is your book's summary)
[Summary][/Summary] (Between these two tags is your book's table of contents)

EXAMPLE TABLE OF CONTENTS
[Summary]
Page_number Associated_text
[/Summary]

that is:

[Summary]
2 Page 2
[/Summary]

After the header come the pages. Each page of the book is enclosed between the [PN°_of_the_page] and [/P] tags.
Example for page 3:
[P3]
Text of page three.
[/P]

There's a page 0 (zero) which for now is considered the cover page, but later on could hold initialization variables for the book.

TEXT FORMATTING TAGS
[BR] followed by a number indicates the number of lines to skip. (ex: [BR5])
[NBSP] followed by a number indicates the number of spaces to insert. (ex: [NBSP7])
[C][/C] between these two tags is the text to center.
[GP][/GP] creates a link to another page of the book. (ex: [GP5]Links to page 5[/GP])
[COrrvvbb][/CO] colors a text with the color rrvvbb. (replace 'rr' with the red component on two digits. same for 'vv' green and 'bb' blue) ex: for 3 red, 9 green and 22 blue you'd write: [CO030922]colored text[/CO]
[IMGxxxyyy]Path_and_name_of_the_image[/IMG] displays an image at coordinates xxx,yyy. If xxx and yyy aren't given, the image is displayed starting from the line where the tag is.

The [C][/C] and [CO][/CO] tags can't be used across multiple lines. If you want to center or color multiple lines of text, you'll need to put them on each line of text.

Images have a maximum size of 256 X 356 pixels, beyond that images will be cropped.
Source

Everything for DS · DSi · 3DS