User:Gorok/PP/Checklist/Fix Markup
From DPWiki
< User:Gorok | PP | Checklist
- Use the Search menu to step through all /* */ blocks.
- check for a blank line before and after markup
- make sure correct type of markup used
- close-up where broken at page boundaries
- apply specific indent value if desired
- convert poetry from /*..*/ to /P..P/
- make sure poetry line numbers are at least two spaces to the right of the line.
- Use the Search menu to step through all /#..#/ blocks
- check for a blank line before and after markup
- make sure correct type of markup used
- close-up where broken at page boundaries
- check consistent indentation of block text
- apply specific margin values if desired
- Use Orphaned Markup dialog to check and correct orphans of each type in turn. Do not omit the lowly parenthesis, often mis-scanned as curly-brace.
- Check balanced markup
- Search for
\<(\w+)>\n?[^<]+<(?!/\1>)
(any markup starting in <..> that doesn't end in an identical closing markup). (Note: this regular expression sees <tb> as unbalanced, and shows the text from the <tb> to the next markup as an error. If you can devise a better regex please do!) Because it includes a newline, the search may take several seconds to return the first result. - Correct the error and click search until no more are found
- Search for