-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
## Development Lead | ||
|
||
* Mufeed Ali <mufeed[email protected]> | ||
* Mufeed Ali <mufeed@kumo.foo> | ||
|
||
## Contributors | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
</description> | ||
|
||
<developer_name>Mufeed Ali</developer_name> | ||
<update_contact>mufeed[email protected]</update_contact> | ||
<update_contact>mufeed@kumo.foo</update_contact> | ||
|
||
<url type="homepage">https://github.com/mufeedali/Wordbook</url> | ||
<url type="bugtracker">https://github.com/mufeedali/Wordbook/issues</url> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed[email protected]> | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed@kumo.foo> | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
"""Top-level package for wordbook. Empty because everything is in sub-modules.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed[email protected]> | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed@kumo.foo> | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
""" | ||
|
@@ -244,7 +244,7 @@ def get_fortune(mono=True): | |
return fortune_out | ||
|
||
|
||
@lru_cache(maxsize=None) | ||
@lru_cache(maxsize=128) | ||
def get_pronunciation(term, accent="us"): | ||
"""Get the pronunciation from espeak and process it.""" | ||
try: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed[email protected]> | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed@kumo.foo> | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
import gi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed[email protected]> | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed@kumo.foo> | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
import configparser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed[email protected]> | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed@kumo.foo> | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
import os | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed[email protected]> | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed@kumo.foo> | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
"""utils contains a few global variables and essential functions.""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed[email protected]> | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed@kumo.foo> | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
import os | ||
|
@@ -47,7 +47,7 @@ class WordbookWindow(Adw.ApplicationWindow): | |
|
||
_style_manager: Adw.StyleManager | None = None | ||
|
||
_wn_downloader = base.WordnetDownloader() | ||
_wn_downloader: base.WordnetDownloader = base.WordnetDownloader() | ||
_wn_future = None | ||
|
||
_doubled = False | ||
|
@@ -84,6 +84,7 @@ def setup_widgets(self): | |
self._def_ctrlr.connect("pressed", self._on_def_press_event) | ||
self._def_ctrlr.connect("stopped", self._on_def_stop_event) | ||
self._def_view.connect("activate-link", self._on_link_activated) | ||
|
||
self.search_button.connect("clicked", self.on_search_clicked) | ||
self._search_entry.connect("changed", self._on_entry_changed) | ||
self._speak_button.connect("clicked", self._on_speak_clicked) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!@PYTHON@ | ||
|
||
# -*- coding: utf-8 -*- | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed[email protected]> | ||
# SPDX-FileCopyrightText: 2016-2024 Mufeed Ali <mufeed@kumo.foo> | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
import gettext | ||
|