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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-20-2015, 01:01 AM   #1
crissman
Connoisseur
crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.
 
Posts: 77
Karma: 3090
Join Date: Apr 2013
Location: California
Device: Kobo Aura One, Kobo Aura H20,Kindle PW1
Tags Column - Left Alignment not maintaining adjustment

I am not sure if it has always been this way or not, but I just recently realized that the Tags Column is center justified,

I prefer it to be left justified as all the other columns are. Except when I choose to re-adjust it to left alignment it is not retaining the chosen setting after a calibre restart.

Is this working as intended or is it a bug?

Thanks
crissman
crissman is offline   Reply With Quote
Old 02-20-2015, 03:57 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by crissman View Post
I am not sure if it has always been this way or not, but I just recently realized that the Tags Column is center justified,

I prefer it to be left justified as all the other columns are. Except when I choose to re-adjust it to left alignment it is not retaining the chosen setting after a calibre restart.

Is this working as intended or is it a bug?

Thanks
crissman
For me the tags column is left justified and stays that way. If I change it to center, it stays that way until I change it back.

It sounds like your calibre configuration directory is read only, preventing calibre from saving the change to left justified. Another possibility: something is overwriting the configuration directory, such as some cloud sync.
chaley is offline   Reply With Quote
Advert
Old 02-20-2015, 10:43 AM   #3
crissman
Connoisseur
crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.
 
Posts: 77
Karma: 3090
Join Date: Apr 2013
Location: California
Device: Kobo Aura One, Kobo Aura H20,Kindle PW1
Quote:
Originally Posted by chaley View Post
For me the tags column is left justified and stays that way. If I change it to center, it stays that way until I change it back.

It sounds like your calibre configuration directory is read only, preventing calibre from saving the change to left justified. Another possibility: something is overwriting the configuration directory, such as some cloud sync.
Thanks chaley! The calibre directory and library both have full access to read and write, but you are correct in that I am running Aerofs (It is like dropbox but not in the cloud it stays behind your firewall) on one of the library folders. It does seem to coincide with around the same time-frame that I using the started to use the sync program. Ironic that it is just the Tags column and not any of the rest?
crissman is offline   Reply With Quote
Old 02-20-2015, 11:43 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I looked at the code and the column alignment is stored in the metadata.db file in the library. You can see the saved alignment by looking at the metadata_db_prefs_backup.json file in your library, searching for "column_alignment". The information is saved in both the metadata.db and the .json file when calibre exits. The .json file is a backup.

If Aerofs is overwriting your metadata.db then you might be in a world of hurt. I suggest that you run check library to be sure that books you have added are really in the db.

An easy test: start calibre, change the alignment for tags, and quit calibre. Look at the .json file to see if the alignment is changed. Note that a column is listed only if its alignment is not "left". If the alignment is "left" then start calibre. If it becomes "center" then something, such as a plugin, is changing it at startup.
chaley is offline   Reply With Quote
Old 02-20-2015, 02:54 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
I looked at the code and the column alignment is stored in the metadata.db file in the library.
- that confirms what I thought I had seen. When in your initial response you indicated it was in configuration folder, I assumed I must be misremembering or misinterpreting what I saw.

When I started using calibre I had the idea to use the alignment of Title and Author as a means of giving me a spatial clue as to the current library, - eg left/left would be Main (regular books), left/centre would be Journals, centre/centre would be Media etc.

But I found that if I changed the alignment of Authors in Journals to 'centre', the realignment of the Authors column propagated itself to Main and Media etc. So I gave up on the idea, on the assumption that the alignment must be a global setting rather than a library setting - despite what my eyes were telling me.

The propagation seems to occurs if I switch from a library where Author column_alignment has a value (centre or right) in its library preferences to a library where the Author column has no value - i.e. it's left-aligned by default.

I can avoid the propagation if I forego use of the library switch feature, and instead always open calibre using the --with-library option and stop it before opening with another library - but I choose not to do that

Perhaps this is another defect that's been lurking long since

BR
BetterRed is offline   Reply With Quote
Advert
Old 02-20-2015, 03:48 PM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Perhaps this is another defect that's been lurking long since

BR
It is a bug, and I suspect it has been there since multiple libraries were introduced.

The bug: when you first open calibre it builds a map of column keys to alignment. Only the exceptions from "left" are stored in the DB. When you switch libraries, calibre again builds the map, but this time the old non-left values are still there because nothing restored the map to its default values.

I have submitted a fix.
chaley is offline   Reply With Quote
Old 02-20-2015, 04:14 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
It is a bug, and I suspect it has been there since multiple libraries were introduced.

I have submitted a fix.
That's the second long standing bug you've had to swat in as many weeks.

BR
BetterRed is offline   Reply With Quote
Old 02-20-2015, 10:49 PM   #8
crissman
Connoisseur
crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.crissman could sell banana peel slippers to a Deveel.
 
Posts: 77
Karma: 3090
Join Date: Apr 2013
Location: California
Device: Kobo Aura One, Kobo Aura H20,Kindle PW1
Quote:
Originally Posted by chaley View Post
I looked at the code and the column alignment is stored in the metadata.db file in the library. You can see the saved alignment by looking at the metadata_db_prefs_backup.json file in your library, searching for "column_alignment". The information is saved in both the metadata.db and the .json file when calibre exits. The .json file is a backup.

If Aerofs is overwriting your metadata.db then you might be in a world of hurt. I suggest that you run check library to be sure that books you have added are really in the db.

An easy test: start calibre, change the alignment for tags, and quit calibre. Look at the .json file to see if the alignment is changed. Note that a column is listed only if its alignment is not "left". If the alignment is "left" then start calibre. If it becomes "center" then something, such as a plugin, is changing it at startup.

Ok tried the "test" and your right I changed the alignment to left, quit calibre opened the .json did show "center alignment.

exited Aerofs, reopened calibre, changed the alignment again closed calibre, opened .json it showed nothing, no "center" So assumed it Aerofs overwriting the .json as you suggested.

Figured I would see if it was for sure by doing the "Test" agaiin.

Restarted Aerofs, Opened Calibre, verified in the Aerofs log that the .json files was updated. Tags still showed left alignment.. Hmm, closed calibre exited Aerofs opened the .json, still was left as "center was not there.

Opened Calibre yet again (without Aerofs) still left justified, started Aerofs, No matter which sequence I opened and closed both programs it stayed left justified!!

Not sure what fixed it or if it just temporary, but it is now left justified.
crissman is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Author tag column on left jmccall93 Library Management 2 09-30-2013 03:17 PM
Maintaining Device Column Settings? JeffGeorge Devices 4 08-07-2013 10:57 AM
Paperwhite: left alignment per default? Analogus Kindle Developer's Corner 0 01-24-2013 03:36 AM
left alignment speakingtohe Calibre 2 08-13-2010 10:39 AM
left alignment revisited jlinden Amazon Kindle 15 02-22-2010 02:41 AM


All times are GMT -4. The time now is 05:42 PM.


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