Skip to content

Commit

Permalink
Removed warning about ligatures and fixed root font dir
Browse files Browse the repository at this point in the history
  • Loading branch information
theraysmith committed Jul 10, 2015
1 parent 4412269 commit 19c26f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion training/tesstrain_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ FONTS=(
if [ "$(uname)" == "Darwin" ];then
FONTS_DIR="/Library/Fonts/"
else
FONTS_DIR="/usr/share/fonts/truetype/"
FONTS_DIR="/usr/share/fonts/"
fi
OUTPUT_DIR="/tmp/tesstrain/tessdata"
OVERWRITE=0
Expand Down
1 change: 0 additions & 1 deletion training/text2image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ void ExtractFontProperties(const string &utf8_text,
// API.
// Safeguard against these cases here by just skipping the bigram.
if (IsWhitespaceBox(boxes[b+1])) {
tprintf("WARNING: Found unexpected ligature: %s\n", ch0.c_str());
continue;
}
int xgap = (boxes[b+1]->box()->x -
Expand Down

0 comments on commit 19c26f0

Please sign in to comment.