Quote:
Originally Posted by JSWolf
Going back to Mistborn, I have a conversion from the PDF to LRF. It's not perfect and I will be revising it as I read. I'm up to chapter 6 and I've cleaned up some of the missing fi and fl and bad paragraphs that I have noticed as I have been reading. But the format looks good though.
Thanks to llasram there is a NEW Python program called Obelisk that will take two files and make a diff file so you can recreate the secondary file if you have the primary file. So what I am doing it posting my diff file for Mistborn.pdf so as long as you have that, you will be able to generate the LRF that I am reading.
The zip file contains Obelisk.py and the diff file to generate the LRF. This is a command line program only. There is no GUI.
1. Open a command prompt
2. Go to the directory that has Mistborn.pdf
3. unzip the contents of the attached ZIP file into that directory
4. Type in the command below
5. Enjoy reading on your 500/505.
Code:
obelisk.py M1stb0rn Mistborn.pdf "M1stb0rn#Mistborn.pdf#Mistborn The Final Empire.lrf.obelisk" "Mistborn The Final Empire.lrf"
Please let me know if you do get this to work.
The original thread on his Obelisk is here at https://www.mobileread.com/forums/sho...d.php?p=156354
|
I got it to work OK on my OS X Mac. A few tricks:
- Remember to set the obelisk.py script to be executable. Use 'chmod +x obelisk.py'
- Make sure you properly quote any spaces in your file and/or path names. Details will vary depending on the shell you use.
- If you are not running directly in your home directory, give full path names for all files. This makes the command line look like:
Code:
./obelisk.py M1stb0rn /path/to/files/Mistborne.pdf /path/to/files/M1stb0rn#Mistborn.pdf#Mistborn\ The\ Final\ Empire.lrf.obelisk "Mistborne The Final Empire.lrf"
- Fix the python script: three of the error checks at the end have 'parse.' where they should have 'parser.' Use your favorite text editor to correct them. This makes no difference unless you get one of those errors, but...
I also observe a problem with the file you have produced. There are a whole bunch of words that look like: "bers" for "fibers" and "briely" for "briefly." (both from first page of chapter 24). I think this means that your conversion dropped all of the ligatures on the floor -- like the fi and fl in the words above. It's a bit annoying.
It shows great promise! Figure out how to fix the ligatures and it'll be SUPER.
Xenophon