Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some formatting and grammar improvements. #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div align="center">
<img src="./data/icons/com.github.rajsolai.textsnatcher.svg" height="110px" />
<h1>TextSnatcher</h1>
<p>Copy Text from Images with ease, Perform OCR operations in seconds.</p>
<p>Copy text from images with ease; perform OCR operations in seconds.</p>
<img alt="TextSnatcher OCR App for Linux" src="https://raw.githubusercontent.com/RajSolai/TextSnatcher/master/data/screenshots/snap-default.png"/></br>
<a href="https://www.producthunt.com/posts/textsnatcher?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-textsnatcher" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=344401&theme=light" alt="TextSnatcher - How&#0032;to&#0032;copy&#0032;text&#0032;from&#0032;images&#0044;&#0032;answer&#0032;is&#0032;TextSnatcher | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
</div>
Expand All @@ -20,9 +20,9 @@
## Features

- Multiple Language Support.
- Copy Text from images with a Drag.
- Drag over any Image and Paste.
- Fast and Easy to Use.
- Copy text from images by dragging and dropping.
- Drag over any image and paste.
- Fast and easy to use.
- This application uses the Tesseract OCR 4.x for the character
recognition.
- Read more about [Tesseract](https://tesseract-ocr.github.io/tessdoc/Home.html) and Star ⭐️ [Tesseract-Project](https://github.com/tesseract-ocr/tesseract).
Expand Down
4 changes: 2 additions & 2 deletions src/components/AboutDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ class TsAboutDialog : Gtk.AboutDialog {
logo_icon_name = "com.github.rajsolai.textsnatcher" ;

program_name = "TextSnatcher" ;
comments = "Snatch Text with a Drag" ;
comments = "Snatch text with a drag" ;
copyright = null ;
version = "2.0" ;

license = null ;
wrap_license = true ;

website = "https://github.com/RajSolai/TextSnatcher" ;
website_label = "Star TextSnatcher on Github !" ;
website_label = "Star TextSnatcher on Github!" ;

response.connect ((response_id) => {
if (response_id == Gtk.ResponseType.CANCEL || response_id == Gtk.ResponseType.DELETE_EVENT) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SelectPictureDialog.vala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class SelectPictureDialog : Hdy.Window {
public SelectPictureDialog (Gtk.Label title_label) {
var dialog_handle = new Hdy.WindowHandle () ;
var pic_dialog_title = new Gtk.Label ("Where can I find the Image ?") ;
var pic_dialog_title = new Gtk.Label ("Where can I find the image ?") ;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also remove a space between word image and a question mark

var main_box = new Gtk.Box (Gtk.Orientation.VERTICAL, 10) ;
var cancel_btn = new Gtk.Button.with_label ("Cancel") ;
var take_screenshot_btn = new Gtk.Button.with_label ("Take Screenshot") ;
Expand Down
2 changes: 1 addition & 1 deletion src/screens/HomeScreen.vala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class HomeScreen : Gtk.EventBox {
main_box.row_homogeneous = true ;
main_box.margin = 10 ;
title_label.get_style_context ().add_class ("h2") ;
var start_button = new Gtk.Button.with_label ("Snatch Now !") ;
var start_button = new Gtk.Button.with_label ("Snatch Now!") ;
start_button.get_style_context ().add_class ("start-button") ;

start_button.clicked.connect (() => {
Expand Down
16 changes: 8 additions & 8 deletions src/services/TesseractTrigger.vala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TesseractTrigger : Object {
public void accept_files_fromchooser () {
portal.open_file.begin (
null,
"Select an Image to perform OCR !",
"Select an image to perform OCR !",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as in the comment above.

null,
null,
null,
Expand Down Expand Up @@ -54,7 +54,7 @@ class TesseractTrigger : Object {
async void read_image (string file_path) {
var lang_service = new LanguageService () ;
string lang = lang_service.get_pref_language () ;
label.label = "Reading Image" ;
label.label = "Reading image" ;
Idle.add (read_image.callback) ;
yield ;
try {
Expand All @@ -64,12 +64,12 @@ class TesseractTrigger : Object {
copy_to_clipboard () ;
} else {
print ("Error is " + err + " status is " + stat.to_string ()) ;
label.label = "Error Reading Image" ;
label.label = "Error reading image" ;
}
} catch (Error e) {
critical (e.message) ;
if (e.code == 8) {
label.label = "Dependencies Not Found" ;
label.label = "Dependencies not found" ;
}
}
}
Expand All @@ -80,9 +80,9 @@ class TesseractTrigger : Object {
FileUtils.get_contents (out_path + ".txt", out text_output) ;
if (text_output.length > 0) {
clipboard.set_text (text_output, text_output.length) ;
label.label = "Checkout Clipboard :)" ;
label.label = "Check out the clipboard :)" ;
} else {
label.label = "Error Reading Image" ;
label.label = "Error reading image" ;
}
} catch (Error e) {
print (e.message) ;
Expand All @@ -98,7 +98,7 @@ class TesseractTrigger : Object {
clipboard.request_image (clipboard_callback) ;
} else {
print ("no image found in clipboard") ;
label.label = "No Image found in Clipboard" ;
label.label = "No image found in clipboard" ;
}
} else {
if (session == "x11") {
Expand Down Expand Up @@ -138,7 +138,7 @@ class TesseractTrigger : Object {
uri = portal.take_screenshot.end (res) ;
string path = GLib.Filename.from_uri (uri, null) ;
read_image.begin (path, (obj, res) => {
print ("Taking Screenshot") ;
print ("Taking screenshot") ;
}) ;
} catch (Error e) {
critical (e.message) ;
Expand Down