Skip to content

Commit

Permalink
Merge pull request #165 from IITB-OpenOCRCorrect/global-replace
Browse files Browse the repository at this point in the history
Global replace
  • Loading branch information
0singh-ajit0 authored Aug 5, 2022
2 parents 7d5f9fc + d89b845 commit 9f94851
Show file tree
Hide file tree
Showing 41 changed files with 18,011 additions and 13,081 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
*.o
*.dll
qpadfinal
FrameWorkCode/.qtc_clangd/
FrameWorkCode/application_log.txt

# Build results
[Dd]ebug/
Expand Down
Binary file modified FrameWorkCode/HtmlToPdfUtil
Binary file not shown.
25,592 changes: 13,184 additions & 12,408 deletions FrameWorkCode/Makefile

Large diffs are not rendered by default.

Binary file removed FrameWorkCode/SimpleMail2Qt5.dll
Binary file not shown.
3,854 changes: 3,854 additions & 0 deletions FrameWorkCode/application_log.txt

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions FrameWorkCode/globalreplaceworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,14 @@ void GlobalReplaceWorker::saveBboxInfo(QString htmlFile){
gfile.close();
QString bboxfile = gfile.fileName();
bboxfile = bboxfile.replace(".html", ".bbox");


if(!QDir(gDirTwoLevelUp+"/bboxf").exists())
QDir().mkdir(gDirTwoLevelUp+"/bboxf");

bboxfile=bboxfile.replace("CorrectorOutput","bboxf");


QFile bbox_file(bboxfile);
if(initial.contains("bbox") && !bbox_file.exists())
{
Expand Down Expand Up @@ -546,6 +554,8 @@ void GlobalReplaceWorker::bboxInsertion(QString f){
QRegularExpression rex2("(<p[^>]*>|<span[^>]*>)");
QString fBbox = f;
fBbox.replace(".html",".bbox");
fBbox.replace("CorrectorOutput","bboxf");
//qDebug()<<"file = "<<fBbox;
QFile bbox_file(fBbox);
if(bbox_file.exists())
{
Expand Down
Binary file removed FrameWorkCode/libc.a
Binary file not shown.
5 changes: 0 additions & 5 deletions FrameWorkCode/libc.so

This file was deleted.

Binary file removed FrameWorkCode/libc.so.6
Binary file not shown.
2 changes: 1 addition & 1 deletion FrameWorkCode/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int main(int argc, char *argv[])
a.setWindowIcon(QIcon("./logonew.png")); //Sets icon of the GUI window.
a.setStyleSheet("QMessageBox{font: 15px \"Work Sans\"; background:rgb(32, 33, 72);} QMessageBox QLabel{color:white;} QMessageBox QPushButton{background-color:rgb(227, 228, 228);border:0px; color: rgb(32, 33, 72); height:26.96px; width: 113.5px; padding-top:1px; border-radius:4.8px; padding-left:1.3px; selection-color: rgb(32, 33, 72); selection-background-color: rgb(136, 138, 133);} QMessageBox QPushButton:checked{background-color: rgb(136, 138, 133);} QMessageBox QPushButton:pressed {background-color: rgb(136, 138, 133);}");
a.setApplicationName( QStringLiteral( "OpenOCRCorrect" ) );
a.setApplicationVersion("v2.9.8");
a.setApplicationVersion("v2.9.9");

//! Writing Log Files
QFile logFile(QString::fromStdString(qApp->applicationDirPath().toStdString())+"/application_log.txt");
Expand Down
Loading

0 comments on commit 9f94851

Please sign in to comment.