From bf39a5eb529b6d239a6a9abf640c997b5c6c913e Mon Sep 17 00:00:00 2001 From: Krishi Jain Date: Mon, 2 Sep 2024 09:55:04 +0530 Subject: [PATCH] Adding new Readme functionality with readme.html --- lios/macros.py | 2 + lios/main.py | 31 +++++++------ lios/readme.html | 118 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 137 insertions(+), 14 deletions(-) create mode 100644 lios/readme.html diff --git a/lios/macros.py b/lios/macros.py index cf9643c..adbfe44 100644 --- a/lios/macros.py +++ b/lios/macros.py @@ -63,6 +63,8 @@ def get_list_of_mixed_case_combinations(list_items): home_page_link = "http://sourceforge.net/projects/lios/" +readme_page_link="readme.html" + video_tutorials_link = "https://www.youtube.com/playlist?list=PLn29o8rxtRe1zS1r2-yGm1DNMOZCgdU0i" major_character_encodings_list = [ 'us_ascii', 'utf-8', 'iso_8859_1','latin1', diff --git a/lios/main.py b/lios/main.py index 064aab2..bc409c2 100755 --- a/lios/main.py +++ b/lios/main.py @@ -1068,21 +1068,24 @@ def stop_all_process(self,widget): self.available_ocr_engine_list[self.preferences.ocr_engine].cancel() self.notify_information(_("Terminated"),0) + # def open_readme(self,*data): + # if(self.textview.get_modified()): + # dlg = dialog.Dialog(_("Warning!"), + # (_("No"),dialog.Dialog.BUTTON_ID_1,_("Yes"),dialog.Dialog.BUTTON_ID_2)) + # label = widget.Label(_("Current text not saved! do you want to load readme without saving?")) + # label.show() + # dlg.add_widget(label) + # response = dlg.run() + # if response == dialog.Dialog.BUTTON_ID_2: + # with open(macros.readme_file) as file: + # self.textview.set_text(file.read()) + # dlg.destroy() + # else: + # with open(macros.readme_file) as file: + # self.textview.set_text(file.read()) def open_readme(self,*data): - if(self.textview.get_modified()): - dlg = dialog.Dialog(_("Warning!"), - (_("No"),dialog.Dialog.BUTTON_ID_1,_("Yes"),dialog.Dialog.BUTTON_ID_2)) - label = widget.Label(_("Current text not saved! do you want to load readme without saving?")) - label.show() - dlg.add_widget(label) - response = dlg.run() - if response == dialog.Dialog.BUTTON_ID_2: - with open(macros.readme_file) as file: - self.textview.set_text(file.read()) - dlg.destroy() - else: - with open(macros.readme_file) as file: - self.textview.set_text(file.read()) + webbrowser.open(macros.readme_page_link) + @on_thread diff --git a/lios/readme.html b/lios/readme.html new file mode 100644 index 0000000..03c4ed5 --- /dev/null +++ b/lios/readme.html @@ -0,0 +1,118 @@ + + + + + + Linux-Intelligent-OCR-Solution (Lios) + + + +

Linux-Intelligent-OCR-Solution (Lios)

+ + +

What is Lios?

+

Lios is a free and open source software for converting print into text using either a scanner or a camera. It can also produce text out of scanned images from other sources such as PDF, Image, Folder containing Images or screenshot. The program is given total accessibility for visually impaired. Lios is written in Python 3 and released under the GPL-3 license.

+ + +

Features of Lios

+
+ +
+ + +

Opening and Closing

+

To open Lios, launch Application menu > Graphics > Lios. Or search in the dashboard and start Lios from there. To close, select Quit from File menu or press Ctrl+Q.

+ + +

Importing Images

+

Lios supports importing images from various sources, including:

+ + + +

OCR and Text Manipulation

+

Lios offers various OCR options and text manipulation tools, including:

+ + + +

Utilities

+

Lios includes several useful utilities:

+ + + +
+

Disclaimer

+

Lios is free software released under the GPL-3 license. It is distributed without any warranty. For full license details, please refer to the GNU General Public License version 3.

+
+ + +