clippy-kindle icon indicating copy to clipboard operation
clippy-kindle copied to clipboard

Handle clippings from pdfs with roman numeral pages

Open dangbert opened this issue 2 years ago • 0 comments

Highlights made in the beginning of certain pdf files may record the page number as a roman numeral e.g. 'V'. We need to consider how to handle this:

  • maybe mapping it to a negative number that corresponds to the roman numeral (e.g. -5) in this case, or just to 0.
Parsing file: 'My Clippings.txt'                                                                                                                                                                                                  
ERROR: unable to parse highlight (in unexpected/unsupported format)                                                                                                                                                               
problem section in file (lines 43739 - 43743) >>>                                                                                                                                                                                 
  '2015_Book_IntroductionToEvolutionaryComp  '                                                                                                                                                                                    
  '- Your Highlight on page V-V | Added on Friday, September 9, 2022 1:40:06 AM'                                                                                                                                                  
  ''                                                                                                                                                                                                                              
  'This book has a supporting website at www.evolutionarycomputation.org which ofers additional information'                                                                                                                      
<<<                                                                                                         

Exact section of file causing issue:

2015_Book_IntroductionToEvolutionaryComp  
- Your Highlight on page V-V | Added on Friday, September 9, 2022 1:40:06 AM

This book has a supporting website at www.evolutionarycomputation.org which ofers additional information
==========

dangbert avatar Sep 12 '22 10:09 dangbert