Skip to content

Commit

Permalink
Replace not sign with hyphen in CP Char Subs (#1260)
Browse files Browse the repository at this point in the history
Hyphens with specks are sometimes mis-OCRed as Not signs `¬`.
Add to the list of replacements made in File->Content Providing->
CP Character Substitutions.

Fixes #1256
  • Loading branch information
windymilla authored Oct 14, 2023
1 parent d036742 commit aef8a56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/Guiguts/FileMenu.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,7 @@ sub cpcharactersubs {
$textwindow->addGlobStart;
$textwindow->FindAndReplaceAll( '-exact', '-nocase', "\x{0009}", " " ); # tab --> space
$textwindow->FindAndReplaceAll( '-exact', '-nocase', "\x{2014}", "--" ); # emdash --> double hyphen
$textwindow->FindAndReplaceAll( '-exact', '-nocase', "\x{00ac}", "-" ); # not sign --> hyphen
$textwindow->FindAndReplaceAll( '-exact', '-nocase', "\x{2018}", "'" ); # left single quote --> straight
$textwindow->FindAndReplaceAll( '-exact', '-nocase', "\x{2019}", "'" ); # right single quote --> straight
$textwindow->FindAndReplaceAll( '-exact', '-nocase', "\x{201c}", "\"" ); # left double quote --> straight
Expand Down

0 comments on commit aef8a56

Please sign in to comment.