08-23-2007, 07:16 PM | #31 | |
Banned
Posts: 640
Karma: 4911
Join Date: Jul 2007
Location: Grapevine, TX
Device: iPad4
|
Quote:
Code:
D:\Work\JCarroll-BonesOfTheMoon>txt2lrf -a "John Carroll" -t "Bones of the Moon" --cover=bones.jpg bones.txt Traceback (most recent call last): File "convert_from.py", line 97, in <module> File "convert_from.py", line 93, in main File "convert_from.py", line 83, in process_file File "libprs500\ebooks\lrf\html\convert_from.pyo", line 1433, in process_file File "libprs500\devices\prs500\driver.pyo", line 56, in <module> File "libprs500\devices\libusb.pyo", line 32, in <module> File "libprs500\__init__.pyo", line 53, in load_library File "ctypes\__init__.pyo", line 423, in LoadLibrary File "ctypes\__init__.pyo", line 340, in __init__ WindowsError: [Error 126] The specified module could not be found D:\Work\JCarroll-BonesOfTheMoon>txt2lrf --version libprs500 0.3.103 |
|
08-23-2007, 07:43 PM | #32 |
creator of calibre
Posts: 44,428
Karma: 24044628
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah ok now that makes sense. Will be fixed in the next version. In the meantime if you remove the --cover option, you should be ok.
|
09-03-2007, 03:22 PM | #33 |
Translating Calibre...
Posts: 657
Karma: 2902
Join Date: Aug 2007
Location: ER.de
Device: [PRS-500], PB360
|
Hi Kovidgoyal,
using txt2lrf I got some text-encoding problems. German "Umlaute" won't be transfered as they should. umlaute.txt in ISO-8859-1 was converted with following line Code:
txt2lrf -a "Tester" -t "Umlautetest" -e "ISO-8859-1" umlaute.txt Maybe I made a mistake? |
09-04-2007, 02:46 AM | #34 |
creator of calibre
Posts: 44,428
Karma: 24044628
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sounds like the new encoding handling code is still buggy. I'll fix it when I return.
|
09-04-2007, 04:58 AM | #35 |
Translating Calibre...
Posts: 657
Karma: 2902
Join Date: Aug 2007
Location: ER.de
Device: [PRS-500], PB360
|
|
11-24-2007, 03:18 PM | #36 |
Junior Member
Posts: 9
Karma: 10
Join Date: Nov 2007
Location: Brea, CA
Device: PRS-505
|
I have a few layout questions...
Is there a way, when using lists to get the wrapped lines to indent and line up with the text from the previous line, like this: Code:
* Here is some text that happens to wrap to the second and third line and I would like it to indent and line up Is there a way to force a page break from the text file? Are there any plans to support descendant selectors when using the --override-css option? Code:
/* select paragraph tags inside list item tags */ li p { font-style: italics; } |
11-24-2007, 04:04 PM | #37 |
creator of calibre
Posts: 44,428
Karma: 24044628
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can just embed HTML for your more sophisticated markup needs. There are no plans to support descendant selectors. I've forgotten the markdown syntax for embedded HTML, but google should allow you to find it in a jiffy.
|
11-24-2007, 04:16 PM | #38 |
Junior Member
Posts: 9
Karma: 10
Join Date: Nov 2007
Location: Brea, CA
Device: PRS-505
|
Alrighty, I'll take a closer look at html2lrf so I can see what html is supported.
|
11-25-2007, 12:01 PM | #39 |
creator of calibre
Posts: 44,428
Karma: 24044628
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The demo file at the start of this thread may prove useful.
|
01-29-2009, 08:35 AM | #40 |
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2008
Device: Cybook Gen3 eBoo
|
Can I stop it from using Markdown at all? I basically have lots of text files which I want to read on the reader as they are in sans-serif font with no jiggling. So plain text, convert it to sans-serif, don't do anything clever with the text.
|
01-29-2009, 12:43 PM | #41 |
creator of calibre
Posts: 44,428
Karma: 24044628
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It shouldn't do anything fancy with your txt if your txt doesn't have any Markdown markup
|
02-10-2009, 06:06 AM | #42 | |
Interested Bystander
Posts: 3,726
Karma: 19728152
Join Date: Jun 2008
Device: Note 4, Kobo One
|
Quote:
An option to disable markup processing would be very useful. |
|
02-10-2009, 07:41 AM | #43 |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Unfortunately, that isn't really possible without a re-write. The way txt2lrf works is that it uses Markdown to convert plain text into HTML, then converts the HTML into an LRF. Not processing Markdown markup means no HTML, which means nothing to convert into an LRF.
You may want to check out pielrf. I'm not sure that it's still maintained, but the last time I looked at it it worked, and seems to do what you want -- directly convert plain text to LRF with minimal special markup interpretation. |
Tags |
libprs500, txt2lrf |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ahhhhh - Utility overload: BookDesigner, BookCreator, Textify, txt2lrf...too much | FatDog | Workshop | 6 | 05-10-2010 12:00 AM |
DX: Contrast has Been Improved | ny10522 | Amazon Kindle | 3 | 06-15-2009 02:46 AM |
txt2lrf questions | ShellShock | Calibre | 0 | 05-04-2009 04:15 AM |
Has E-ink improved? | Kilarney | Which one should I buy? | 4 | 03-14-2009 07:01 PM |
txt2lrf | daesdaemar | Calibre | 3 | 11-20-2008 05:24 PM |