View Single Post
Old 07-02-2013, 02:56 PM   #8
Steadyhands
Connoisseur
Steadyhands began at the beginning.
 
Steadyhands's Avatar
 
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
Ok, here's some of mine. Remember you'll have to tweak these before use most times.

Code:
52\Name=TOC & Metadata/Part
52\Find="<p class=\".*?\">(?:(Part|PART)) (?:(One|Two|Three|Four|Five|Six|ONE|TWO|THREE|FOUR|FIVE|SIX))</p>"
52\Replace="<hr class=\"sigilChapterBreak\" /><h1>\\1 \\2</h1><hr class=\"sigilChapterBreak\" />"
53\Name=TOC & Metadata/Chapter Finder
53\Find="<p class=\".*?\">(Prologue|PROLOGUE|Epilogue|EPILOGUE|Chapter|CHAPTER)([^>]*)</p>"
53\Replace="<hr class=\"sigilChapterBreak\" /><h2>\\1 \\2</h2>"
55\Name=TOC & Metadata/Numbered Chapters
55\Find="<p class=\".*?\">(\\d+)</p>"
55\Replace="<hr class=\"sigilChapterBreak\" /><h2>\\1</h2>"
56\Name=TOC & Metadata/Roman Chapters
56\Find="<p class=\".*?\">([XVI]+)</p>"
56\Replace="<hr class=\"sigilChapterBreak\" /><h2>\\1</h2>"
57\Name=TOC & Metadata/Numbers
57\Find="<p class=\".*?\">(?:(ONE|TWO|THREE|FOUR|FIVE|SIX|SEVEN|EIGHT|NINE|TEN|ELEVEN|TWELVE|THIRTEEN|FOURTEEN|FIFTEEN|SIXTEEN|SEVENTEEN|EIGHTEEN|NINETEEN|TWENTY|TWENTY-ONE|TWENTY-TWO|TWENTY-THREE|TWENTY-FOUR|TWENTY-FIVE|TWENTY-SIX|TWENTY-SEVEN|TWENTY-EIGHT|TWENTY-NINE|THIRTHY|THIRTY-ONE|THIRTY-TWO|THIRTY-THREE|THIRTY-FOUR|THIRTY-FIVE|THIRTY-SIX|THIRTY-SEVEN|THIRTY-EIGHT|THIRTY-NINE|FORTY|FORTY-ONE|FORTY-TWO|FORTY-THREE|FORTY-FOUR|FORTY-FIVE|FORTY-SIX|FORTY-SEVEN|FORTY-EIGHT|FORTY-NINE|FIFTY|FIFTY-ONE|FIFTY-TWO|FIFTY-THREE|FIFTY-FOUR|FIFTY-FIVE|FIFTY-SIX|FIFTY-SEVEN|FIFTY-EIGHT|FIFTY-NINE|SIXTY|SIXTY-ONE|SIXTY-TWO|SIXTY-THREE|SIXTY-FOUR|SIXTY-FIVE|SIXTY-SIX|SIXTY-SEVEN|SIXTY-EIGHT|SIXTY-NINE|SEVENTY|SEVENTY-ONE|SEVENTY-TWO|SEVENTY-THREE|SEVENTY-FOUR|SEVENTY-FIVE|SEVENTY-SIX|SEVENTY-SEVEN|SEVENTY-EIGHT|SEVENTY-NINE|EIGHTY|EIGHTY-ONE|EIGHTY-TWO|EIGHTY-THREE|EIGHTY-FOUR|EIGHTY-FIVE|EIGHTY-SIX|EIGHTY-SEVEN|EIGHTY-EIGHT|EIGHTY-NINE|THIRTHY|NINETY-ONE|NINETY-TWO|NINETY-THREE|NINETY-FOUR|NINETY-FIVE|NINETY-SIX|NINETY-SEVEN|NINETY-EIGHT|NINETY-NINE))</p>"
57\Replace="<hr class=\"sigilChapterBreak\" /><h2>\\1</h2>"
58\Name=TOC & Metadata/Numbers2
58\Find="<p class=\".*?\">(?:(One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten|Eleven|Twelve|Thirteen|Fourteen|Fifteen|Sixteen|Seventeen|Eighteen|Nineteen|Twenty|Twenty-One|Twenty-Two|Twenty-Three|Twenty-Four|Twenty-Five|Twenty-Six|Twenty-Seven|Twenty-Eight|Twenty-Nine|Thirthy|Thirty-One|Thirty-Two|Thirty-Three|Thirty-Four|Thirty-Five|Thirty-Six|Thirty-Seven|Thirty-Eight|Thirty-Nine|Forty|Forty-One|Forty-Two|Forty-Three|Forty-Four|Forty-Five|Forty-Six|Forty-Seven|Forty-Eight|Forty-Nine|Fifty|Fifty-One|Fifty-Two|Fifty-Three|Fifty-Four|Fifty-Five|Fifty-Six|Fifty-Seven|Fifty-Eight|Fifty-Nine|Sixty|Sixty-One|Sixty-Two|Sixty-Three|Sixty-Four|Sixty-Five|Sixty-Six|Sixty-Seven|Sixty-Eight|Sixty-Nine|Seventy|Seventy-One|Seventy-Two|Seventy-Three|Seventy-Four|Seventy-Five|Seventy-Six|Seventy-Seven|Seventy-Eight|Seventy-Nine|Eighty|Eighty-One|Eighty-Two|Eighty-Three|Eighty-Four|Eighty-Five|Eighty-Six|Eighty-Seven|Eighty-Eight|Eighty-Nine|Thirthy|Ninety-One|Ninety-Two|Ninety-Three|Ninety-Four|Ninety-Five|Ninety-Six|Ninety-Seven|Ninety-Eight|Ninety-Nine))</p>"
58\Replace="<hr class=\"sigilChapterBreak\" /><h2>\\1</h2>"
Like theducks did, I've just cut this from the sigil saved searches file, so in a lot of cases it can't just be cut and pasted into a find replace dialog as there will be extra \ in there. I imagine it could be pasted into the bottom of the sigil_searches file, adjust the numbers and it would be fine.

I agree, a saved searches sticky would be very handy.
Steadyhands is offline   Reply With Quote