View Single Post
Old 03-06-2010, 03:52 AM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
With vim you can use this single command:

Code:
let n=1 | g/playOrder/s/playOrder="\d\+"/\='playOrder="'.n.'"'/ | let n=n+1
To automatically generate a correct sequence of playOrder.

In future versions of the ePUB spec, the playOrder attribute will probably be made optional, though.
Jellby is offline   Reply With Quote