<?xml version="1.0" encoding="UTF-8"?>
<patterns type="Common Error">
<pattern _name="Leading and trailing spaces" _description="Remove spaces from the beginning and end of lines" classes="Human;OCR;">
<rule regex="^ +" flags="DOTALL;MULTILINE;UNICODE;" replacement="" repeat="False"/>
<rule regex=" +$" flags="DOTALL;MULTILINE;UNICODE;" replacement="" repeat="False"/>
</pattern>
<pattern _name="Multiple consecutive spaces" _description="Replace multiple consecutive spaces with only one" classes="Human;OCR;">
<rule regex=" {2,}" flags="DOTALL;MULTILINE;UNICODE;" replacement="\040" repeat="False"/>
</pattern>
<pattern _name="Space between digits" _description="Remove space between digits of a number" classes="OCR;">
<rule regex="(\b\d+) +(\d+\b)(?![-/])" flags="DOTALL;MULTILINE;UNICODE;" replacement="\1\2" repeat="True"/>
</pattern>
</patterns>
|