| 
			
			 | 
		#1 | 
| 
			
			
			
			 Member 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | |
| 
			
			
			
			 Member 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23 
				Karma: 5854 
				Join Date: Jun 2012 
				Location: Spain 
				
				
				Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 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> […]  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | |
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				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: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Member 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23 
				Karma: 5854 
				Join Date: Jun 2012 
				Location: Spain 
				
				
				Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | |
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 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  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Member 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23 
				Karma: 5854 
				Join Date: Jun 2012 
				Location: Spain 
				
				
				Device: Kindle DX, Kindle Paperwhite, and Kindle Scribe 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			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.
		 
		
	
		
		
			Last edited by d3m0sth3n3s; 08-02-2024 at 12:26 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Member 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 Member 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Thread Tools | Search this Thread | 
            
  | 
    
			 
			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 |