PDA

Ver la Versión Completa : LRFTools. Convert LRF to EPUB, HTML, PDF and RTF



jotas
23/07/2009, 20:04
... y he encontrado también esta, que me parece muy prometedora. Si podemos pasar directamente de LRF a RTF, XML y EPUB, estamos a un paso de poder convertir y compartir cualquier fichero LRF, del cual no tengamos fuentes o sin más trabajo, con cualquier otro lector, en espera (breve, deseemos) de una conversión, implementación y compatibilidad EPUB decente entre todos los lectores, o de una conversión directa a .FB2 (se supone que le Calibre 0.60 traerá conversión desde/hasta todos los formatos soportados).

http://www.mobileread.com/forums/showthread.php?t=28707

http://code.google.com/p/lrf-epub-tools/


LRFTools. Convert LRF to EPUB, HTML, PDF and RTF

Usage: java -Xms200M -Xmx300M -jar LRFTools-vx.y.z.jar action (params)

Note: Java VM gets 200MB minimun, 300 maximun memory to work. If you plan to convert only a few books, you can reduce significantly these values (40,60).

Actions:

1) convertLRF dir (-d dirOut |-z zipfile) (-XML|-PDF|-RTF|-HTML|-EPUB) (options)

Converts to XML, PDF, RTF and/or HTML every LRF file in 'dir' recursively. You can specify more than one format conversion simultaneously. Converted files go to the same place as original, except if you specify '-z zipfile', then go to zipfile; or '-d dir', then output files are created in dirOut replicating the same original directory tree structure.

(options) one or more of:

-A4 : Means normal paper size (trying to reflow)

-rf nn : Fonts Sizes, nn is a percentage of resistance to change size of font

-catpar str: Try to merge paragraphs not ending with '.', ':','?' this way:

para1+str+para2

-repl "str1" "str2" : Replace instances of str1 (in a block) for str2

-noo : No overwrite existing files.

-noe : No Embed OTF fonts on epub files.

-nopb: Do not emit page breaks.

You cannot output HTML files to a zipfile right now.

2) convertPDF dir (-d dirOut) [-noo|-SVG|-noe|-nopb]

Converts every PDF in 'dir' (with recursion) to EPUB format. -SVG means use batik to generate Scalable Vector Graphics for each page Other options same as convertLRF.

3) convertDOCX dir (-d dirOut) [-noo|-noe|nopb]

Converts every OpenXML file (Word 2007 docx files) to EPUB format. Other options same as convertLRF.

4) view

Shows GUI to view epub files.

5) updfmd dir

Search dir recursively, expecting PDF filenames 'BookAuthor-BookTitle.pdf' and modifies metadata of PDF to reflect BookAuthor and BookTitle so our Sony PRS can catalog the book conveniently.

6) mergePDF dir -o grouped.pdf

Merge all PDF and LRF files contained at dir (with recursion) into one new PDF file with a TOC pointing to each old single document. LRF files are converted first to PDF.

7) mergeEPUB dir -a author -t title -o grouped.epub

Merge all EPUB files contained at dir (with recursion) into one new EPUB file with a TOC pointing to each old single document.

the_doc
23/07/2009, 21:04
Yo ya conocía este programita. Existe una GUI en java que facilita mucho las cosas. Es tremendamente rápido; pero la conversión es pobre, con muchos errores de maquetado. Y si quieres dejar bien el documento necesitas dedicarle mucho tiempo.
Es mejor que nada, pero está aún muy verde y parece que hace ya un año que no sacan nuevas versiones.

jotas
23/07/2009, 21:31
¿¿¿???


La última versión es del 8 de Mayo de este año, 2009, y hay varias actualizaciones cada mes por lo que veo en http://code.google.com/p/lrf-epub-tools/updates/list

the_doc
23/07/2009, 22:09
Loooooooool, confundí May 08 (8 de mayo) con mayo de 2008.
Tienes razón, jotas, es un proyecto activo ^^;
Así que esperemos que mejore mucho, que me bajé un pack enorme de novelas de fantasía y ciencia ficción en inglés en lrf, y yo lo que tengo es un papyre ^^;