Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1009 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 1009 Bytes

formatting-tools

This is very... miscellaneous repo. Basically, random one-off scripts that do something small enough that it doesn't make sense to create an entirely different repository for it.

All tools are explained by a second level header.

replace-bad-characters

This script removes common bad characters from the pdftotext tool. It does not catch them all though.

Usage

$ replace-bad-characters test.txt

format-paragraph.vim

This vim script defines a function that will (mostly) format sentences on one line. It screws up on colons and and question marks if text is after it, but otherwise is fairly accurate.

Usage

:call FormatSentence()

To attach it to a key sequence, for example Ctrl+Shift+p

nnoremap <C-S-p> :call FormatSentence()<CR>

Contribution

If you'd like to contribute, please open a pull require on the Github unless you work for Bytetools and have permissions.