Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Other formats > LRF

Notices

Reply
 
Thread Tools Search this Thread
Old 08-23-2007, 07:16 PM   #31
edbro
Banned
edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.edbro is fluent in JavaScript as well as Klingon.
 
Posts: 640
Karma: 4911
Join Date: Jul 2007
Location: Grapevine, TX
Device: iPad4
Quote:
Originally Posted by kovidgoyal View Post
I cant duplicate this bug and the line numbers in the error message are wrong. Can you try uninstalling and re-installing libprs500.
Okay, I uninstalled/reinstalled/rebooted. Here is a copy/paste of lastest attempt followed by version number:
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
edbro is offline   Reply With Quote
Old 08-23-2007, 07:43 PM   #32
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-03-2007, 03:22 PM   #33
StDo
Translating Calibre...
StDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with others
 
StDo's Avatar
 
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
to umlaute.lrf.

Maybe I made a mistake?
Attached Files
File Type: txt umlaute.txt (141 Bytes, 943 views)
File Type: lrf umlaute.lrf (1.2 KB, 1046 views)
StDo is offline   Reply With Quote
Old 09-04-2007, 02:46 AM   #34
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Old 09-04-2007, 04:58 AM   #35
StDo
Translating Calibre...
StDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with othersStDo plays well with others
 
StDo's Avatar
 
Posts: 657
Karma: 2902
Join Date: Aug 2007
Location: ER.de
Device: [PRS-500], PB360
Quote:
Originally Posted by kovidgoyal View Post
Sounds like the new encoding handling code is still buggy. I'll fix it when I return.
You got a ticket. No: 192.

Have nice holidays. Or is it a work trip?
StDo is offline   Reply With Quote
Advert
Old 11-24-2007, 03:18 PM   #36
mcortez
Junior Member
mcortez began at the beginning.
 
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 an equivalent to <DL> / <DT> for txt2lrf?

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;
}
Thanks for all the hard work!!!
mcortez is offline   Reply With Quote
Old 11-24-2007, 04:04 PM   #37
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Old 11-24-2007, 04:16 PM   #38
mcortez
Junior Member
mcortez began at the beginning.
 
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.
mcortez is offline   Reply With Quote
Old 11-25-2007, 12:01 PM   #39
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The demo file at the start of this thread may prove useful.
kovidgoyal is offline   Reply With Quote
Old 01-29-2009, 08:35 AM   #40
stilliremain
Junior Member
stilliremain began at the beginning.
 
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.
stilliremain is offline   Reply With Quote
Old 01-29-2009, 12:43 PM   #41
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
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
kovidgoyal is offline   Reply With Quote
Old 02-10-2009, 06:06 AM   #42
murraypaul
Interested Bystander
murraypaul ought to be getting tired of karma fortunes by now.murraypaul ought to be getting tired of karma fortunes by now.murraypaul ought to be getting tired of karma fortunes by now.murraypaul ought to be getting tired of karma fortunes by now.murraypaul ought to be getting tired of karma fortunes by now.murraypaul ought to be getting tired of karma fortunes by now.murraypaul ought to be getting tired of karma fortunes by now.murraypaul ought to be getting tired of karma fortunes by now.murraypaul ought to be getting tired of karma fortunes by now.murraypaul ought to be getting tired of karma fortunes by now.murraypaul ought to be getting tired of karma fortunes by now.
 
Posts: 3,725
Karma: 19728152
Join Date: Jun 2008
Device: Note 4, Kobo One
Quote:
Originally Posted by kovidgoyal View Post
It shouldn't do anything fancy with your txt if your txt doesn't have any Markdown markup
Unfortunately your txt may have something that looks like markdown markup but isn't, and the tool will make a real mess of it.

An option to disable markup processing would be very useful.
murraypaul is offline   Reply With Quote
Old 02-10-2009, 07:41 AM   #43
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by murraypaul View Post
An option to disable markup processing would be very useful.
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.
llasram is offline   Reply With Quote
Reply

Tags
libprs500, txt2lrf

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 10:43 PM.


MobileRead.com is a privately owned, operated and funded community.