Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-01-2024, 12:57 PM   #1
d3m0sth3n3s
Member
d3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toys
 
d3m0sth3n3s's Avatar
 
Posts: 23
Karma: 5854
Join Date: Jun 2012
Location: Spain
Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe
Automatic title sort update when adding a foreign book

Hi! I know there is an option named Update title sort in the Edit metadata in bulk dialog that performs this exact operation, but I’d like to know whether it is possible to achieve this automatically AT BOOK IMPORT not just for English titles but for every other language defined in the tweak variable
Code:
per_language_title_sort_articles
d3m0sth3n3s is offline   Reply With Quote
Old 08-01-2024, 01:30 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,451
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
It doesn't?
Is the Language properly set at the Import time??

GIGO
theducks is offline   Reply With Quote
Advert
Old 08-01-2024, 02:08 PM   #3
d3m0sth3n3s
Member
d3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toys
 
d3m0sth3n3s's Avatar
 
Posts: 23
Karma: 5854
Join Date: Jun 2012
Location: Spain
Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe
Quote:
Originally Posted by theducks View Post
It doesn't?
Is the Language properly set at the Import time??
GIGO
No, it doesn’t for me. And I have tried in a fresh calibre installation within a virtual machine for testing purposes with the same result.

For example, I’ve got a book in ePub format with the following metadata fields defined in its content.opf file:
Code:
[…]
<dc:title>El libro de la selva (Ilustrado)</dc:title>
<dc:creator opf:file-as="Kipling, Rudyard" opf:role="aut">Rudyard Kipling</dc:creator>
<dc:language>es</dc:language>
[…]
Its title sort field is not automatically set as libro de la selva (Ilustrado), El, as it should be for a Spanish title. It is just left with the same value as the main title field, El libro de la selva (Ilustrado).
d3m0sth3n3s is offline   Reply With Quote
Old 08-01-2024, 02:49 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,451
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I wonder if this tweak info applies?
Quote:
ID: locale_for_sorting

Setting this tweak will force sorting to use the collating order for the specified language. This might be useful if you run calibre in English but want sorting to work in the language where you live. Set the tweak to the desired ISO 639-1 language code, in lower case. You can find the list of supported locales at https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes Default: locale_for_sorting = '' -- use the language calibre displays in Example: locale_for_sorting = 'fr' -- sort using French rules. Example: locale_for_sorting = 'nb' -- sort using Norwegian rules.
theducks is offline   Reply With Quote
Old 08-01-2024, 06:08 PM   #5
d3m0sth3n3s
Member
d3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toys
 
d3m0sth3n3s's Avatar
 
Posts: 23
Karma: 5854
Join Date: Jun 2012
Location: Spain
Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe
Quote:
Originally Posted by theducks View Post
I wonder if this tweak info applies?
No, this tweak variable does not apply to title sort when adding new books to calibre.
d3m0sth3n3s is offline   Reply With Quote
Advert
Old 08-01-2024, 07:31 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,451
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by d3m0sth3n3s View Post
No, this tweak variable does not apply to title sort when adding new books to calibre.
It implies the sort is based upon the CALIBRE Language setting. That implies only 1 sort rule is active.

It might be a nice option, to allow use the Books Language.
But what happens, when there isn't a sort rule for the character set. WORMS
theducks is offline   Reply With Quote
Old 08-02-2024, 03:23 AM   #7
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: 44,560
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As I recall, if title-sort metadata if not present in epub 3 files it is unset and calibre then sets it automatically based on the book language. Dont recall if EPUB2 does that as well. Attach a book where you are having issues and I will check.
kovidgoyal is online now   Reply With Quote
Old 08-02-2024, 12:17 PM   #8
d3m0sth3n3s
Member
d3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toys
 
d3m0sth3n3s's Avatar
 
Posts: 23
Karma: 5854
Join Date: Jun 2012
Location: Spain
Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe
Quote:
Originally Posted by kovidgoyal View Post
Attach a book where you are having issues and I will check.
Ok, I have added a Spanish classic book as an attachment to this thread. It was published on 1884, so no copyright involved. It’s a book in ePub v2 format.
Attached Files
File Type: epub Alas Clarin, Leopoldo - La Regenta [7052] (r1.1).epub (8.74 MB, 60 views)

Last edited by d3m0sth3n3s; 08-02-2024 at 12:26 PM.
d3m0sth3n3s is offline   Reply With Quote
Old 08-02-2024, 01:07 PM   #9
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: 44,560
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...e4d4c43bfb3754
kovidgoyal is online now   Reply With Quote
Old 08-02-2024, 03:27 PM   #10
d3m0sth3n3s
Member
d3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toys
 
d3m0sth3n3s's Avatar
 
Posts: 23
Karma: 5854
Join Date: Jun 2012
Location: Spain
Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe
Thank you!

I’ll wait for the next release to try it.
d3m0sth3n3s is offline   Reply With Quote
Old 08-27-2024, 06:03 PM   #11
d3m0sth3n3s
Member
d3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toysd3m0sth3n3s shares his or her toys
 
d3m0sth3n3s's Avatar
 
Posts: 23
Karma: 5854
Join Date: Jun 2012
Location: Spain
Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe
I forgot to confirm but here I am.

Now it works as it should for all the book languages I have in my library.

Thanx!
d3m0sth3n3s is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet one more way Automatic book Update can't Little.Egret Amazon Kindle 2 11-04-2016 05:44 PM
Update 'title sort' and 'author sort' through CLI wladdy Library Management 1 07-16-2015 06:12 PM
Automatic Book Adding Turtle91 Calibre 4 04-21-2015 10:15 AM
Is there a quick way to update title-sort? cager Library Management 5 04-09-2014 07:06 AM
Title Sort in Book Details Agama Calibre 2 09-29-2011 04:04 PM


All times are GMT -4. The time now is 04:17 AM.


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