04-23-2015, 06:17 PM | #31 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Some things are more tolerant to CR/LF than others, but it's just bad practice to mix line-endings, and most everything we do here is guaranteed to expect/work with unix line-endings, while it might only once in a blue moon tolerate CR/LF without ill effect.
Hence the go-to recommendation is unix line-endings and a decent editor, because we're sure *that* expected setup will work. Anything else would just add 'noise' and complicate support. Better eliminate potential issues early, where we can. Plus, one byte less per line, win/win ^^. One of the many things that will not ever bear CR/LFs are shell scripts, for instance. Last edited by NiLuJe; 04-23-2015 at 06:19 PM. |
04-23-2015, 06:23 PM | #32 | |
Wizard
Posts: 3,032
Karma: 52740263
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
|
Quote:
Shari |
|
04-23-2015, 06:28 PM | #33 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
04-23-2015, 06:34 PM | #34 |
Wizard
Posts: 3,032
Karma: 52740263
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
|
|
04-23-2015, 07:01 PM | #35 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
By "how", knc1 meant both over which protocol, but most importantly, via which software, because some are known to silently (or not so silently) fudge with line-endings.
We've already had a couple of interesting and excruciatingly long & pointless debugging back-and-forth sessions simply because an unarchiver or a file transfer program was trying to be cute. |
04-23-2015, 07:07 PM | #36 | |
Wizard
Posts: 3,032
Karma: 52740263
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
|
Quote:
Shari |
|
04-23-2015, 07:42 PM | #37 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
Regardless, if you create or edit a file using Windows' built-in Notepad, you will be working with CRLF. That may or may not blow up on you. I have no idea whether this specific file must use *nix line endings (I was not the one who said it was required), but of a surety, there are things that do depend on it. (As for html and javascript, line endings are optional, so naturally there would be no problem either way. vbscript is a Windows thing, so if it depends on anything it will be DOS line endings...) One way to test your claim (since it runs contradictory to the experience of, well, every other test by any other human being on the planet) would be to open one of those files with Notepad++, which will tell you whether the file uses *nix or DOS line endings. And check the manual for the transfer program you use, to find out if it has the helpful feature of auto-correcting line endings. I am pretty sure Filezilla at least does that. EDIT: Yup -- https://wiki.filezilla-project.org/Data_Type Last edited by eschwartz; 04-23-2015 at 07:45 PM. |
|
04-23-2015, 07:48 PM | #38 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Big Daddy B. Gates is holding your hand in the background - and translating line endings for you. |
|
04-23-2015, 08:41 PM | #39 | |
Wizard
Posts: 3,032
Karma: 52740263
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
|
Quote:
What am I supposed to be seeing? As far as I can tell the only difference is that it adds pretty colors to highlight different elements of the script, kind of like other script editors do. I see nothing to indicate anything about what kind of line endings the file is using. Where would I see that? Shari |
|
04-23-2015, 08:53 PM | #40 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
In the status bar at the bottom, it should indicate DOS or Unix.
The other great feature is that if the file you open is using *nix line endings, it will read it as a DOS file. Rather than treating everything as one giant line, which I do promise you will happen if you copy *nix files from a linux computer to a flashdrive to a Windows computer instead of using FileZilla... and then try to open that file in the default Notepad. |
04-23-2015, 10:58 PM | #41 | |
Wizard
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
Quote:
|
|
04-24-2015, 03:45 AM | #42 | |
just an egg
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
Thank you again everyone for all your help, with a special to ecostin for finding and sharing this hack. It works great!
Quote:
There was something in there about increments of .34, and indeed the default settings increase by multiples of .34 (.68, 1.36, 2.03, 4.42, 12.22). Though I notice you increased each setting by .94 and it worked, so clearly the .34 thing isn't required. In any case, I played with the numbers (using multiples of .34 for each increment), mostly because I like the first 4 or 5 default settings; it's the upper range that I wanted to adjust. If anyone's interested, these sets all worked on my KV (default settings in black, my adjustments in blue): 7.13 7.81 8.49 9.17 9.85 10.53 11.21 11.89 7.13 7.81 8.49 9.17 10.19 11.21 12.23 13.25 7.13 7.81 8.49 9.17 10.53 11.89 13.25 14.61 7.13 7.81 8.49 9.17 10.53 12.56 13.92 15.28 7.13 7.81 8.49 9.17 10.53 15.28 16.64 18.0 Last edited by odamizu; 04-24-2015 at 01:19 PM. Reason: added info |
|
04-24-2015, 03:48 AM | #43 |
just an egg
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
P.S. re: all this talk of line endings (and thank you eschwartz for the amusing overview), I feel like a child sitting at the grown-up's table struggling to understand what you're all talking about!
I edited the text files using an HTML editor on Mac OS X, then saved the file in "plain text" format, and it worked nicely on my Kindle. I'm curious: Did it work because I saved it as plain text (i.e., does plain text = *nix line endings?) or did it work because I'm on a Mac and OS X is Unix-based? |
04-24-2015, 04:24 AM | #44 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Plain text != type of line endings. It was the Mac OS (prior to OS X) that used CR for line endings. (Darn. Some good must have come from living with a roomful of computers for over a 1/2 century.) Last edited by knc1; 04-24-2015 at 04:50 AM. |
|
04-24-2015, 05:49 AM | #45 | |
Wizard
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
Quote:
Last edited by thomass; 04-24-2015 at 05:52 AM. |
|
Tags |
font_ramp |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to edit margins in MOBI file? | WDeranged | Calibre | 2 | 09-03-2015 05:43 PM |
Default Edit Book Edit Window Font? | lhuxley | Editor | 2 | 03-26-2015 11:11 PM |
Kindle Paperwhite edit PDF margins? | bseos | Amazon Kindle | 8 | 02-10-2014 02:00 PM |
Edit Default Kindle PW Font Sizes | mthodmn101 | Kindle Developer's Corner | 10 | 09-20-2013 11:14 AM |
Kindle margins edit? | 3bayjunkie | Amazon Kindle | 3 | 01-01-2011 11:38 PM |