07-12-2013, 04:27 PM | #226 | |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Quote:
First I guess I should see how Koreader reacts to folders with a leading dot, in a FAT file system. It should have no special meaning, unless Koreader is doing something similar, which it appears it is not. Thanks, Ken Last edited by Ken Maltby; 07-12-2013 at 04:43 PM. |
|
07-12-2013, 06:21 PM | #227 |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Well the dot foldername does keep nickel from Processing the files in the folder (it did put
a KoboExternalStorage folder in the SD root though) But Koreader doesn't show the dotfolders either. I was able to insert the SD card while in Koreader and see the folders with the leading dot removed. I also could remove the card and reboot back to Nickel with no problems. So, my "last resort" works, although I am concerned what effect using that procedure will have over time. (The external card reading hardware was a little flakey from the start.) Well for this approach to work, Koreader needs to be made able to see .folders. I don't see why Koreader is ignoring the files, unless it is because it is not a valid FAT 32 folder naming. Luck; Ken |
Advert | |
|
07-12-2013, 09:44 PM | #228 |
Nameless Being
|
Corrected idea:
You can try adding a line between lines 20 and 21 of frontend/ui/widget/filechooser.lua. These lines are: Code:
for f in lfs.dir(self.path) do if self.show_hidden or not string.match(f, "^%.[^.]") then Code:
for f in lfs.dir(self.path) do self.show_hidden = true if self.show_hidden or not string.match(f, "^%.[^.]") then I haven't had a chance to test it since I haven't managed to get koreader to work after a factory reset (!), but there is no reason why it shouldn't work. (Just keep a backup of the original file to be safe.) Last edited by BWinmill; 07-12-2013 at 09:53 PM. |
07-12-2013, 10:57 PM | #229 | |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Quote:
Wondering why not change the earlier "show_hidden = false" to true? Luck; Ken Last edited by Ken Maltby; 07-12-2013 at 11:03 PM. |
|
07-12-2013, 11:59 PM | #230 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
As to nickel, it isn't mounting the SD card. That is done in scripts at startup and when the card is detected. If you removed the mount commands from the scripts, it should solve it. The thread that PeterT pointed to should have everything. I think removing the mount commands where that thread was changing them to allow mounting ext3 file system cards. |
|
Advert | |
|
07-13-2013, 12:05 AM | #231 | ||
Nameless Being
|
Quote:
I'm guessing that your observation is valid and is a better solution than mine. It's just a guess because I don't know much about Lua and I'm using my knowledge of other programming languages here. On the other hand, I only received two results (both in filechooser.lua) when I searched the entire directory tree for "show_hidden". I don't see how changing it in the constructor will be overridden by anything else. Quote:
Actually, the following line alludes to that: Code:
if self.show_hidden or not string.match(f, "^%.[^.]") then Last edited by BWinmill; 07-13-2013 at 12:18 AM. Reason: added comment on hidden files, then added more ramblings on the conditional. |
||
07-13-2013, 12:16 AM | #232 |
Grand Sorcerer
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
And of course a directory entry is just another type of file, so .... it's just being consistent in treating all entries that start with a period as hidden.
|
07-13-2013, 12:33 AM | #233 | |
Nameless Being
|
Quote:
It also sort-of explains why you can do something like this: Code:
$ mkdir -p 1/2/3 $ chmod 100 1 $ ls 1 ls: 1: Permission denied $ cd 1 $ ls ls: .: Permission denied $ ls 2 3 |
|
07-13-2013, 12:48 AM | #234 |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Well that change does let Koreader's File Manager see hidden files/folders and those with .Filename format. Nickel doesn't try to process the files on the test SD card that are in a .folder. So, it works! Now I will have to try and make a full sized uSD card with the folders behind/under a .folder.
We may finally have an AuraHD that can have a truly large collection of ebooks in defined category folders, that can contain files in a larger number of formats, all readable with Koreader. At the same time we can use calibre to load the internal uSD card with files easily processed by Nickel. The best of both worlds and with your hack their will be no conflicts. Thanks; Ken OK, it is working fine with a larger file structure. All good to go. If only the File Manager had larger text and larger easier to select active points. It would be just right, for me. Last edited by Ken Maltby; 07-13-2013 at 01:49 AM. |
07-13-2013, 02:01 AM | #235 |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
I had to Google around to find out how to get win7 "Rename" to allow me to create a folder with a leading dot. It turns out that if you put a dot in front and one in back of your folder name, it will accept it and the dot in back will be removed, leaving you with a ".folder".
Luck; Ken |
07-13-2013, 02:23 AM | #236 |
Nameless Being
|
Try changing line 96 of frontend/ui/widget/menu.lua from:
Code:
face = Font:getFace("cfont", 22), Code:
face = Font:getFace("cfont", 28), |
07-13-2013, 04:34 AM | #237 | |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Quote:
Thanks, again; Ken |
|
07-13-2013, 05:54 AM | #238 | |
Guru
Posts: 897
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
Quote:
It works, but you get the same empty line through your letters as you would get when you change the return dpi for the Aura to 265 (in screen.lua, line 101). Even after changing the menutitle to 35( menu.lua, after line 210) I seldom get the filemanager dropdown menu. Even after changing the -[X]- font to 32 (menu.lua, after 70) it does not exit reader.lua. Anyone have an idea how to get rid of the inverse strikeout? Any idea how to get the Aura more responsive to tapping the text? |
|
07-13-2013, 04:17 PM | #239 | |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Quote:
I tried a larger -[X]- too and it didn't change how I had to poke the screen to get it to work. I still had to roll my digit off the edge of the Bezel and push up into the bezel, to shape my fingertip or edge of my thumb into what was needed to activate that selection. I have to do much the same between "File" and "Manager" of the title to some times get the dropdown menu. I think I remember Giorgio saying that he had changed dpi in his latest port, posted in the first post of this thread. I have that one running now and it is functioning very well. I used the koreader_kobo.sh that Giorgio posted to Koreader Github, before he went on holiday. Luck; Ken |
|
07-13-2013, 05:03 PM | #240 | |
Wizard
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
Quote:
Yes, there is a post which explains this, but it is older than subsequent modifications (I think..) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1268 | 02-27-2024 11:49 AM |
Touch Using two Kobos | tkavan | Kobo Reader | 4 | 06-23-2017 02:47 AM |
2 kobos at once | tsarinaerika | Kobo Reader | 14 | 06-03-2013 04:13 AM |
Syncing between two Kobos | fx3000se | Kobo Reader | 4 | 01-24-2013 02:10 PM |
2 kobos 1 account | retired05 | Kobo Reader | 9 | 05-05-2012 08:25 AM |