03-22-2011, 05:14 PM | #16 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@fragile,
I think something must have changed between Calibre v7.49 and v7.50 regarding TXT conversion. I used v7.49 to produce the epub shown above in my screencaps. So far, I haven't been able to reproduce it with v7.50. I'm struggling to remember exactly which settings I used. Convert - TXT Input - Paragraph style: 'single' (I think) Convert - TXT Input - Formatting style: ????? Convert - TXT Input - Preserve spaces: checked (definitely) Convert - Look&Feel - ExtraCSS: body {font-family: monospace} (definitely) I do remember I didn't put a lot of effort into choosing the parameters. I'll try a few more conversions in case I hit on a working combo. In the meantime, I've dug the old epub out of the Recycle Bin and am posting here in case it's any use to you. You could try reporting the problem in the Calibre Bug system. |
03-22-2011, 05:41 PM | #17 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
OK call off the dogs, I'm an idiot. There is nothing wrong with Calibre v7.50
This is the full list of settings from the conversion log: Spoiler:
I think the important ones are: Code:
Convert - TXT Input - Paragraph style: single Convert - TXT Input - Formatting style: plain Convert - TXT Input - Preserve spaces: checked Convert - Look&Feel - ExtraCSS: body {font-family: monospace; line-height: 0.5em;} Convert - Look&Feel - Smarten punctuation: unchecked |
03-25-2011, 11:44 AM | #18 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Mar 2010
Device: PRS-900
|
@Jackie_w
I'm still struggling with this. I tried the settings you mentioned, fbreader still continues to truncate the spaces. With okular though I was able to see that the spaces are indeed preserved. Which reader did you use in the screenshot you put up? Was it fbreader itself? One more thing is that the rfc text is preformatted with hard-line breaks but your screenshot seems to show a fine formatting irrespective of the line breaks. I tried all the paragraph formatting options I wasn't able to achieve your results. Was the screenshot from a PB302 or a larger device? |
03-25-2011, 12:02 PM | #19 | |||
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Quote:
Code:
Convert - TXT Input - Paragraph style: single Quote:
Did you try loading the epub I attached in post #16. |
|||
03-27-2011, 09:51 AM | #20 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Mar 2010
Device: PRS-900
|
Thanks for the info. I opened them with AdobeViewer and the spacing was fine. Putting the device in landscape mode made the line breaks more tolerable.
However one problem is that the font is way too light and thin. Is there a way to ^bold^ it? I don't see an option for this in adobeviewer. Perhaps it could be done by software over epub? |
03-28-2011, 10:21 AM | #21 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Last edited by jackie_w; 03-28-2011 at 10:25 AM. |
|
03-29-2011, 01:51 PM | #22 | |
Connoisseur
Posts: 53
Karma: 10
Join Date: Mar 2010
Device: PRS-900
|
Ouch! My PB302 doesn't mount over USB any more...
@jackie_w
I tried method 3 and it worked fine. I tried a couple of times editing the userStyle1.css for correcting the line-spacing. I would have probably done this about 3 times. All of a sudden an unrelated problem started happening: When I plug the device into USB, my computer seems to recognize only the miniSD card. Earlier it used to recognize, PB's root directory (the one that contains /system) as well. Now I seem to have lost access to this drive. Initially I thought it probably is some issue with my comp and had both the device and the computer powered off and then retried still it wouldn't recognize PBs drive. It only recognized the miniSD card. I also tried rebooting the device and then removing the miniSD. Then I attached it to the comp, still doesn't detect PBs drive. I infer that the USB is fine as the device is recognized however the disk alone doesn't mount. IOW, it shows up as F: in my comp, but when I open it, it complains that there is no media in it. So this kind of tells me there is some problem mounting the device. I switched over to poterm in the PB and checked its mounts. It had the drives mounted correctly. (IOW: I was able to see both /mnt/ext1 and /mnt/ext2. ext1 is the one that doesn't get detected on the comp.) The PB302 itself doesn't seem to have trouble accessing the drive. It is able to access the books in it et all. However it doesn't seem to be able to export it over usb. To debug furthur I again had it connected through usb, the drive didn't show up as usual. I then disconnected the usb and through poterm got the output of dmesg. Here is what I see: Quote:
I'm not sure if this signifies sectors going bad... but its way to early for the disks to be going bad. I've had the device just for a couple of months now. All that I've done is copied over a few books. Any suggestions pointers will help. Last edited by fragile; 03-29-2011 at 01:55 PM. |
|
03-29-2011, 02:14 PM | #23 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Oh dear. I'm afraid that log is way beyond my tech abilities. My unix is non-existent. Have you tried more obvious things like:
- a different USB cable - making sure the cable is connected directly, not via a USB hub - a different PC - remove the hacked AdobeViewer, although I haven't had any problems with the 15.2 version on my PB360. |
03-30-2011, 08:59 AM | #24 | |
Connoisseur
Posts: 53
Karma: 10
Join Date: Mar 2010
Device: PRS-900
|
Quote:
|
|
03-06-2012, 12:54 PM | #25 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Mar 2012
Device: PocketBook 611
|
For fragile or anyone stuck with this problem. Yes, fbreader is very nasty and compresses all spaces, tabs, wide space, utf8 non-breaking space ... simply everything.
But you can fool it with SOFT-HYPHEN ! This is utf8 0x00AD symbol. Even though fbreader doesn't display it, it treats as non-space. This means that spaces around soft-hyphen are not contracted. I used this short python script to transform my txt files: Quote:
My problem was with formating songs with chords for guitar playing - fbreader destroyed the formatting. This conversion of txt files solved my problem. Enjoy! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text (.txt) files to PRS (.note) format | OutaDaDark | Sony Reader | 3 | 10-04-2010 01:26 AM |
Trouble with .txt files | lunixer | Calibre | 14 | 08-19-2010 06:43 PM |
modifying the TXT output format | ctop | Calibre | 5 | 06-01-2010 09:08 PM |
TXT format does not work correctly, too! | greenapple | iRiver Story | 1 | 05-06-2010 03:06 AM |
Books in txt format are not displayed fully. | KrioMaster | Sony Reader | 3 | 05-26-2009 12:53 PM |