|
|
Thread Tools | Search this Thread |
06-09-2007, 11:12 PM | #31 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
I'll give the zip file a run in Windows... I tested the 2.0 version in Windows but probably didn't do 2.0.1.
But just for a heads-up, I should have the next version out on Sunday. It fixes the above "<<" issue, and adds a few other features. The pylrs-1.0.1 is part of the installation (it's in the "packages" directory), and is automatically installed when your run the installer in the pielrf directory itself. I did test it in Windows! [indent]python setup.py install[/i] This did require command line, but I don't know any other way to do it. -Pie |
06-09-2007, 11:16 PM | #32 | |
Resident Curmudgeon
Posts: 76,491
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
06-10-2007, 01:22 PM | #33 | |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Quote:
There's two approaches. First you can just trust that pielrf does the right thing, and use the "--strip-html" command line switch. This will run pielrf as usual, and strip out any of the html it doesn't know. The second is to use the striphtml utility before running pielrf. This will do the exact same thing as "--strip-html" but output another text file for you to look at / edit. I prefer pre-stripping with striphtml and then editing that file and feeding it to pielrf. CLIT creates pretty complex HTML, and if you want to add the "<chapter>" tags, pre-stripping makes that a lot easier. It also allows you to clean up any HTML that striphtml didn't get rid of. -Pie |
|
06-10-2007, 01:25 PM | #34 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Is there a comma in any of the file names in the ZIP file? If there is, that "breaks" the built-in Windows unzipper.
|
06-10-2007, 02:10 PM | #35 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
No commas in any file names... and this is one of those evil "it works for me" posts.
I downloaded the pielrf-2.0.3.zip file at the top of this thread. Using WinXP, I Right-Clicked the "pielrf-2.0.3.zip" file and selected "Extract All..." This gives me a "Welcome to the Compressed (zipped) Folders Extraction Wizard." Clicking "Next>" a couple of times unzips me a "pielrf-2.0.3" folder. If I go into the "pielrf-2.0.3" folder, there is a "pielrf-2.0.3" folder in there (no, that wasn't a typo! ). Opening THAT "pielrf-2.0.3" folder shows the correct contents, with the README, pielrf and striphtml commands, plus the setup.py, plus the "examples" and "packages" subdirectories, et cetera. Could it be the dual "pielrf-2.0.3" folders were the problem? EDIT: Just realized that I used the Mac to download, transferred to parallels and unzipped there. Maybe it's IE that's the problem? I'm off for a bit, but I'll try that later. -Pie Last edited by EatingPie; 06-10-2007 at 02:24 PM. |
Advert | |
|
06-10-2007, 04:25 PM | #36 |
Resident Curmudgeon
Posts: 76,491
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Maybe it is IE. But this is the only ZIP file I've had an issue using Windows Explorer. The other issue I have is the file extensions. All Python code under Windows needs to have a .py extension. You run the code by typing filename.py and then it runs it under Python.
If you'd like, I can send you some HTML output from CLIT and see how you get on converting it if you'd like. |
06-10-2007, 07:49 PM | #37 | |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Quote:
In terms of the .py extension, your other choice is the precede the command with "python": python pielrf -i infile.txt -o outfile.lrf -t "Book" ... I realize it's extra typing, and not as "clean" but it gets the job done.I still have to give it a go in IE, and I'll let you know. I use the Mac's built-in zip compression, but I have other programs to create zips, so I'll probably just use one of them from now on. EDIT: IE Worked okay. I'll use a different zip utility for the new version when I post it. -Pie Last edited by EatingPie; 06-10-2007 at 09:01 PM. |
|
06-11-2007, 11:03 PM | #38 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Had some optimization issues with the new version, so I'm a bit delayed.
Definitely should be fixed in the next few days. -Pie |
06-12-2007, 12:16 AM | #39 |
Resident Curmudgeon
Posts: 76,491
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Hopefully with a perfect CLIT HTML conversion as well.
Jon |
06-12-2007, 01:37 PM | #40 |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
To be honest, depending on the complexity of the HTML you sent me (which I did receive), that may have to wait until the next version. I have some promised features that are overdue, and I want to get them out as soon as get the LRF optimized a bit more (it needs to at least match 2.0.3 in terms of load speed). -Pie |
06-12-2007, 10:53 PM | #41 | |
Resident Curmudgeon
Posts: 76,491
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Jon |
|
06-13-2007, 04:41 PM | #42 | |
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Quote:
I am actually not sure what I want to do about the file extension. I prefer to keep it off, since it executes as a script correctly under Mac OS X and Linux (or any other UNIX supporting python). Windows requires you to either add the extension -- as you're suggesting -- or type "python" first. While adding two letters isn't a big deal, the ".py" extension suggests a "library" as opposed to an executable command. Leaving it off means Windows users have to type "python" first, while putting it on means UNIX users may interpret it as a library function rather than an executable. I'd love to hear what others think. This kind of issue is exactly why this thread exists! -Pie |
|
06-13-2007, 05:08 PM | #43 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Pie have you considered making a windows executable with py2exe?
|
06-14-2007, 12:17 AM | #44 |
Resident Curmudgeon
Posts: 76,491
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Well, the way python installs and sets itself up, you have to type the path to python in a Windows command prompt to callthe python command as it's not made part of the path. So for people who do not know the command line well enough, this will be an issue and adding the extention will fix this for them. I say to just do it let the linux/MAC people deal.
|
06-15-2007, 03:07 PM | #45 | ||
Blueberry!
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
|
Quote:
Quote:
You're absolutely right about this being an important "feature," as it does make the Windows execute with python without having to know any path rigamarole. I'll figure out a solution, but it's going to have to wait until my next release (renaming the library, for example, is more than I want to do this time around). At this point, I'm going to post a test download so I can check out the .zip file, and after I get that checked out, I'll post the current, and long-delayed, update. -Pie PS I can see why you want Linux/Mac people to deal... Poor windows users have to deal all the time, and they get really tired of it... or so I hear. Kidding.... Kidding... |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
convert straight quotes to curly quotes | alansplace | Calibre | 3 | 09-25-2010 04:51 PM |
curly quotes | DaleDe | Sigil | 6 | 06-26-2010 11:33 PM |
A tool for converting to curly quotes | Snowman | Workshop | 7 | 02-08-2009 01:22 PM |
Austen, Jane: Emma HTML (PDA and iPhone-friendly) with curly quotes etc | andym | Other Books | 6 | 09-11-2007 03:00 PM |
PRS-500 pielrf beta - Text to LRF with Easy TOC, autoflow, etc. | EatingPie | Sony Reader Dev Corner | 9 | 05-11-2007 11:51 PM |