|
| 1 | +#LTGbasic |
| 2 | + |
| 3 | +Basic image pages downloader for Libros de Texto Gratuitos (Mexico's free basic education school books) |
| 4 | + |
| 5 | +##Wiki |
| 6 | + |
| 7 | +###What are Libros de Texto Gratuitos? |
| 8 | + |
| 9 | +These books are made (and/or distributed) by the[Comisión Nacional de Libros de Texto Gratuitos](https://www.conaliteg.sep.gob.mx/) (a public descentralized organ of Mexico Government's Public Education Ministry SEP), and are freely provided to all basic education students in the national eduaction system. |
| 10 | + |
| 11 | +###What is LTGbasic |
| 12 | + |
| 13 | +Simply, it is a serial image downloader. Once you determine which school year, and which code of book you require, LTGbasic downloads the image files for the complete book (or some pages, as required). You can visualize the pages in an image viewer, or assemble a PDF file if you have Acrobat or other PDF binder. |
| 14 | + |
| 15 | +###Why LTGbasic |
| 16 | +Why not? |
| 17 | + |
| 18 | +###Features |
| 19 | +- Autofill for current and historical servers. |
| 20 | +- Automatic retrieve of book's total page number. |
| 21 | +- Image download retry on error. |
| 22 | + |
| 23 | +###How the servers are organized |
| 24 | +One server offers downloads of the books in PDF format, but only for current school year, and not all grades. The CONALITEG site allows visualization of all the books on a tailored image visualization web app. If you require to download the books, you can get the image files from the server. |
| 25 | + |
| 26 | +The files are organized in directories by book's code. Each image is an JPG file and is named by page number, with zero filling to three digits, e.g., "012.jpg". The visualizer's htm (named by book's code) page also includes a variable that allows a javascript to know the total page number. |
| 27 | + |
| 28 | +Current school year's books server, directory, htm file and jpg files examples: |
| 29 | +``` |
| 30 | +https://libros.conaliteg.gob.mx/P1LEA.htm |
| 31 | +https://libros.conaliteg.gob.mx/c/P1LEA/024.jpg |
| 32 | +``` |
| 33 | + |
| 34 | +For historical records: |
| 35 | +``` |
| 36 | +https://historico.conaliteg.gob.mx/H1960P1ES002.htm |
| 37 | +https://historico.conaliteg.gob.mx/c/H1960P1ES002/034.jpg |
| 38 | +
|
| 39 | +``` |
| 40 | +###How it works |
| 41 | + |
| 42 | +Once the server and book code are known, LTGbasic uses a WebClient to download the image files, retrying the download in case of failure up to a number of retries. LTGbasic can also try to retrieve the total number of pages for a book. |
| 43 | + |
| 44 | +##Links |
| 45 | + |
| 46 | +###Official |
| 47 | + |
| 48 | +[https://www.conaliteg.sep.gob.mx/](https://www.conaliteg.sep.gob.mx/) |
| 49 | +Government site for the committee that produces the Libros de Texto Gratuito. |
| 50 | + |
| 51 | +[https://libros.conaliteg.gob.mx/catalogo.htm](https://libros.conaliteg.gob.mx/catalogo.htm) |
| 52 | +Free books catalog for the current school year. |
| 53 | + |
| 54 | +[https://librosdetexto.sep.gob.mx/](https://librosdetexto.sep.gob.mx/) |
| 55 | +PDF books for the current school year, for pre-escolar, primaria and telesecundaria only. |
| 56 | + |
| 57 | +[https://historico.conaliteg.gob.mx/](https://historico.conaliteg.gob.mx/) |
| 58 | +Historical record of free text books in past school years. |