EPUB: reorder playorder values in NCX file


/ Published in: Perl



Copy this code and paste it in your HTML
  1. perl -pi.bak -e 'BEGIN{$num=1} s/(playOrder=.)\d*/sprintf("%s%d",$1,$num++)/e' toc.ncx

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.