[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer.changes
|
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer.spec
^
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -2,7 +2,7 @@
<service name="tar_git">
<param name="url">https://codeberg.org/nephros/neuntrainer</param>
<param name="branch"></param>
- <param name="revision">0.9.4</param>
+ <param name="revision">0.9.5</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Added |
_service:tar_git:harbour-neuntrainer-0.9.5.tar.gz/LICENSE
^
|
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2022 Peter G. (nephros)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
|
[-]
[+]
|
Added |
_service:tar_git:harbour-neuntrainer-0.9.5.tar.gz/README.md
^
|
@@ -0,0 +1,39 @@
+## Neuntrainer
+
+A little app for Sailfish OS which allows adding words to the XT9 prediction.
+
+You can get it from Sailfishos Chum (best via the app, or at [3]).
+You need a licensed version of Sailfish OS to install this, as it depends on the XT9 feature.
+
+Inspired by the thread about the same ([1]), and Pekka Vuorela's suggestion at [2].
+
+ > Learning words needs to go through the prediction library. Only interface at the moment is the qml one. If you want to hack for yourself, guess you can check Xt9InputHandler.qml and do some simple app that does acceptWord() parts.
+
+
+**NOTE**: it is unknown whether adding a large number of words to the database has a negative effect in some way. Use reponsibly.
+After all this is input text prediction, not a thesaurus or dictionary. If you need one of these, use one of these.
+
+
+
+#### Features/use cases supported at the moment:
+
+- Entering a couple of words in the text field
+- Selecting a word in the text field and learning it
+- Copypasting a phrase you have in the clipboard into the text field, and learning all words in it
+- Loading a text file from your phone and learning the words in it
+
+
+#### Features that won't be added (by me, Pull Requests are always welcome):
+
+ - loading things from the net
+ - better target language selection: I had an implementation which could detect target language from the current keyboard, but this does not work in SailJail so I dropped it
+
+### References
+
+[1] https://forum.sailfishos.org/t/q-how-can-i-bring-predictive-text-input-to-learn-a-new-word/10402
+[2] https://together.jolla.com/question/143953/question-quick-adding-a-list-of-words-as-a-learned-words-for-custom-vkb/
+[3] https://build.sailfishos.org/package/show/sailfishos:chum/neuntrainer
+
+### License
+
+licensed under the [MIT License](https://mit-license.org)
\ No newline at end of file
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer-0.9.5.tar.gz/build.sh
^
|
@@ -7,12 +7,16 @@
# gtag=$(git rev-parse --short HEAD).$(git branch --show-current | sed 's/-/_/')
# sed -i -e "s/\(Release: \).*$/\1 0\+$gtag/" rpm/*.spec
#fi
+_libdir=/usr/lib
+if [ $(getconf LONG_BIT) -eq 64 ]; then
+ _libdir=/usr/lib64
+fi
printf 'linting...\n'
for f in $(find qml -name "*.qml" ); do
- /usr/lib/qt5/bin/qmllint "$f" || exit 1
+ ${_libdir}/qt5/bin/qmllint "$f" || exit 1
done
for f in $(find qml -name "*.js" ); do
- /usr/lib/qt5/bin/qmllint "$f"
+ ${_libdir}/qt5/bin/qmllint "$f"
done
printf 'building...\n'
rpmbuild -bb --build-in-place rpm/*.spec > build.log 2>&1
|
[-]
[+]
|
Added |
_service:tar_git:harbour-neuntrainer-0.9.5.tar.gz/harbour-neuntrainer.profile
^
|
@@ -0,0 +1,15 @@
+# -*- mode: sh -*-
+
+# Firejail profile for /usr/bin/harbour-neuntrainer
+
+# x-sailjail-translation-catalog = harbour-neuntrainer
+# x-sailjail-translation-key-description = permission-la-data
+# x-sailjail-description = XT9 socket access
+# x-sailjail-translation-key-long-description = permission-la-data_description
+# x-sailjail-long-description = Store learned words
+
+### PERMISSIONS
+# x-sailjail-permission = MediaIndexing
+# x-sailjail-permission = Documents
+
+whitelist ${RUNUSER}/xt9.sock
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-neuntrainer.yaml
^
|
@@ -1,6 +1,6 @@
Name: harbour-neuntrainer
Summary: Add words to your personal XT9 word list
-Version: 0.9.4
+Version: 0.9.5
Release: 0
Group: Applications
License: MIT
@@ -13,11 +13,23 @@
%{name} lets you add words to ("train") the Xt9 input prediction engine
that comes with licensed versions of Sailfish OS.
+ You need a licensed version of Sailfish OS to install this, as it depends on the XT9 feature.
+
+ Features/use cases supported at the moment:
+
+ - Entering a couple of words in the text field
+ - Selecting a word in the text field and learning it
+ - Copypasting a phrase you have in the clipboard into the text field, and learning all words in it
+ - Loading a text file from your phone and learning the words in it
+
+ NOTE: it is unknown whether adding a large number of words to the database
+ has a negative effect in some way. Use reponsibly.
+ After all this is input text prediction, not a thesaurus or dictionary.
+
%if "%{?vendor}" == "chum"
PackageName: Neuntrainer
Type: desktop-application
- DeveloperName: Peter G.
- DeveloperLogin: nephros
+ DeveloperName: nephros
Categories:
- Utility
- TextTools
@@ -52,8 +64,10 @@
#AutoSubPackages:
# - doc
Files:
+ - '%license LICENSE'
- '%{_datadir}/applications/%{name}.desktop'
- '%{_datadir}/icons/*/*/apps/%{name}.png'
- '%{_datadir}/icons/*/*/apps/%{name}.svg'
- '%{_datadir}/%{name}/translations/*.qm'
- '%{_datadir}/%{name}/qml/*'
+ - '%{_sysconfdir}/sailjail/permissions/%{name}.profile'
|