mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	revisions for annotations
This commit is contained in:
		
							parent
							
								
									b86b7a9a80
								
							
						
					
					
						commit
						9a1b49e7af
					
				@ -274,7 +274,7 @@ class Bookmark():
 | 
				
			|||||||
                stream = StringIO(f.read())
 | 
					                stream = StringIO(f.read())
 | 
				
			||||||
                data = StreamSlicer(stream)
 | 
					                data = StreamSlicer(stream)
 | 
				
			||||||
                self.last_read = int(unpack('>I', data[5:9])[0])
 | 
					                self.last_read = int(unpack('>I', data[5:9])[0])
 | 
				
			||||||
                self.last_read_location = self.last_read/33
 | 
					                self.last_read_location = self.last_read/33.33 + 1
 | 
				
			||||||
                entries, = unpack('>I', data[9:13])
 | 
					                entries, = unpack('>I', data[9:13])
 | 
				
			||||||
                current_entry = 0
 | 
					                current_entry = 0
 | 
				
			||||||
                e_base = 0x0d
 | 
					                e_base = 0x0d
 | 
				
			||||||
@ -296,7 +296,7 @@ class Bookmark():
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                    if self.book_format in ['tpz','azw1']:
 | 
					                    if self.book_format in ['tpz','azw1']:
 | 
				
			||||||
                        # *** This needs fine-tuning
 | 
					                        # *** This needs fine-tuning
 | 
				
			||||||
                        displayed_location = location/33
 | 
					                        displayed_location = location/33.33 + 1
 | 
				
			||||||
                    elif self.book_format == 'pdf':
 | 
					                    elif self.book_format == 'pdf':
 | 
				
			||||||
                        # *** This needs testing
 | 
					                        # *** This needs testing
 | 
				
			||||||
                        displayed_location = location
 | 
					                        displayed_location = location
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user