Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dictation-toolbox/unimacro
Browse files Browse the repository at this point in the history
struggling with website unimacro
  • Loading branch information
quintijn committed Nov 27, 2024
2 parents 4ecffa8 + 9b40ae7 commit bb46d9b
Show file tree
Hide file tree
Showing 61 changed files with 172 additions and 849 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ __pycache__/
/src/unimacro/UnimacroGrammars/rememberdialog.py
/website unimacro/xxx.txt
/website unimacro/source/sitemap.html
/src/unimacro/UnimacroGrammars/rememberdialog.py
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ with the following.

But... when you install Natlink via the natlink installer, and proceed with "Configure Natlink via GUI" or "Configure Natlink via CLI", and choose to activate Unimacro, this "pip" action is automatically performed.

If you want to install directly from github (say to install something between releases a developer is working on).

```
pip uninstall unimacro
pip install unimacro@git+https://github.com/dougransom/unimacro@d1cbfb0d9559b9ba656a1d1bb1579f1c2b2562ae
```
replacing "https://github.com/dougransom/unimacro" with the repository in github you wish to install from and "d1cbfb0d9559b9ba656a1d1bb1579f1c2b2562ae" with the version commit you wish to install.


# Location of Grammars
Expand Down
14 changes: 10 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,24 @@ build-backend = "flit_core.buildapi"
[project]
name = "unimacro"
authors = [{name = "Quintijn Hoogenboom (maintainer)", email = "q.hoogenboom@antenna.nl"}]
dynamic = ["version", "description"]
dynamic = ["description"]
version = "4.1.7.dev2"
requires-python = ">=3.10"
readme = "README.md"

#"dtactions = ^1.6.4" means anything >= 1.6.4.dev1 and less than 1.7. A breaking change in dtactions
#will mean an update the version specifier below.
#https://packaging.python.org/en/latest/specifications/version-specifiers/#id5
#note you have to put in .dev1 to take the earliest dev release.

dependencies = ["dtactions >= 1.6.2",

dependencies = ["dtactions ~= 1.6.4.dev3",
"debugpy >= 1.2.0",
"pywin32 >= 304",
"natlinkcore >= 5.4.1",
"natlinkcore ~= 5.4.2.dev1",
"FreeSimpleGUI>=5.1.0"]

classifiers=[ "Development Status :: 4 - Beta",
classifiers=[ "Development Status :: 2 - Pre-Alpha",
"Topic :: Multimedia :: Sound/Audio :: Speech",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Environment :: Win32 (MS Windows)",
Expand Down
71 changes: 0 additions & 71 deletions pyproject.toml.orig

This file was deleted.

6 changes: 3 additions & 3 deletions src/unimacro/OtherUnimacroGrammars/_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
the grammars _number simple and _number extended.
"""
import copy
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacroactions import doAction as action

from natlinkcore import natlinkutils as natut
from dtactions.unimacro import unimacroutils
from dtactions.unimacro import unimacroutils
from dtactions import unimacroutils
from dtactions import unimacroutils
import unimacro.natlinkutilsbj as natbj

ancestor = natbj.IniGrammar
Expand Down
8 changes: 4 additions & 4 deletions src/unimacro/OtherUnimacroGrammars/_keystrokes.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

import sys
import copy
from dtactions.unimacro import inivars
from dtactions.unimacro.unimacroactions import doKeystroke as keystroke
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacro import unimacroutils
from dtactions import inivars
from dtactions.unimacroactions import doKeystroke as keystroke
from dtactions.unimacroactions import doAction as action
from dtactions import unimacroutils
from unimacro import natlinkutilsbj as natbj
from natlinkcore import nsformat
from natlinkcore import loader
Expand Down
4 changes: 2 additions & 2 deletions src/unimacro/OtherUnimacroGrammars/_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import natlink
from natlinkcore import nsformat
from natlinkcore import natlinkstatus
from dtactions.unimacro import unimacroutils
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions import unimacroutils
from dtactions.unimacroactions import doAction as action
from dtactions.sendkeys import sendkeys as keystroke
import unimacro.natlinkutilsbj as natbj

Expand Down
8 changes: 4 additions & 4 deletions src/unimacro/OtherUnimacroGrammars/_number extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
"""
#pylint:disable=C0209, R0904, R0912, R0915
import natlink
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacro.unimacroactions import doKeystroke as keystroke
from dtactions.unimacro.unimacroactions import getMetaAction
from dtactions.unimacro import unimacroutils
from dtactions.unimacroactions import doAction as action
from dtactions.unimacroactions import doKeystroke as keystroke
from dtactions.unimacroactions import getMetaAction
from dtactions import unimacroutils

import unimacro.natlinkutilsbj as natbj

Expand Down
2 changes: 1 addition & 1 deletion src/unimacro/OtherUnimacroGrammars/_oops.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
import natlink
from natlinkcore import natlinkstatus
from natlinkcore import loader
from dtactions.unimacro import unimacroutils
from dtactions import unimacroutils
import unimacro.natlinkutilsbj as natbj

logHour = -1
Expand Down
4 changes: 2 additions & 2 deletions src/unimacro/OtherUnimacroGrammars/_repeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
import os
import os.path
from dtactions.sendkeys import sendkeys
from dtactions.unimacro import unimacroutils
# from dtactions.unimacro.unimacroactions import doAction as action
from dtactions import unimacroutils
# from dtactions.unimacroactions import doAction as action
import unimacro.natlinkutilsbj as natbj
from natlinkcore import natlinkutils
from natlinkcore import natlinktimer
Expand Down
6 changes: 3 additions & 3 deletions src/unimacro/OtherUnimacroGrammars/_unimacrotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
import natlink
from natlinkcore import natlinkstatus
import unimacro.natlinkutilsbj as natbj
from dtactions.unimacro import unimacroutils
from dtactions.unimacro import utilsqh
from dtactions.unimacro import unimacroactions as actions
from dtactions import unimacroutils
from dtactions import utilsqh
from dtactions import unimacroactions as actions

status = natlinkstatus.NatlinkStatus()

Expand Down
10 changes: 5 additions & 5 deletions src/unimacro/OtherUnimacroGrammars/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@


import natlink
from dtactions.unimacro import unimacroutils
from dtactions import unimacroutils
from natlinkcore import natlinkutils
from dtactions.unimacro import unimacroutils
from dtactions import unimacroutils
import unimacro.natlinkutilsbj as natbj
import pprint
import types
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacro import unimacroactions as actions
from dtactions.unimacroactions import doAction as action
from dtactions.unimacroactions import doAction as action
from dtactions import unimacroactions as actions
import win32com

#
Expand Down
10 changes: 5 additions & 5 deletions src/unimacro/OtherUnimacroGrammars/frescobaldi.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
"""

from dtactions.unimacro import unimacroutils
from dtactions import unimacroutils
import unimacro.natlinkutilsbj as natbj
from natlinkcore import natlinkutils
from dtactions.unimacro import unimacroutils
from dtactions import unimacroutils
import unimacro.natlinkutilsbj as natbj
import natlink
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacroactions import doAction as action
from dtactions.unimacroactions import doAction as action
from itertools import cycle
from dtactions.unimacro import unimacroactions as actions
from dtactions import unimacroactions as actions
import re
import copy
import time
Expand Down
2 changes: 1 addition & 1 deletion src/unimacro/OtherUnimacroGrammars/solitaire.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

import win32gui
from natlinkcore import natlinktimer
from dtactions.unimacro import unimacroutils
from dtactions import unimacroutils
import unimacro.natlinkutilsbj as natbj

#aantal carden en aantal stapelplaatsen:
Expand Down
2 changes: 1 addition & 1 deletion src/unimacro/OtherUnimacroGrammars/xxxxnatspeak_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# interaction with grammar _folders.
#
#pylint:disable=
from dtactions.unimacro import unimacroutils
from dtactions import unimacroutils
from dtactions.sendkeys import sendkeys as keystroke
import unimacro.natlinkutilsbj as natbj

Expand Down
6 changes: 3 additions & 3 deletions src/unimacro/UnimacroGrammars/_brackets.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"""
#pylint:disable=C0115, C0116, W0201, W0613
from natlinkcore import nsformat
from dtactions.unimacro import unimacroutils
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacro.unimacroactions import doKeystroke as keystroke
from dtactions import unimacroutils
from dtactions.unimacroactions import doAction as action
from dtactions.unimacroactions import doKeystroke as keystroke
# from dtactions.natlinkclipboard import Clipboard
import unimacro.natlinkutilsbj as natbj
import natlink
Expand Down
6 changes: 3 additions & 3 deletions src/unimacro/UnimacroGrammars/_clickbyvoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"""
import natlink
from unimacro import natlinkutilsbj as natbj
from dtactions.unimacro import unimacroutils
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacro.unimacroactions import doKeystroke as keystroke
from dtactions import unimacroutils
from dtactions.unimacroactions import doAction as action
from dtactions.unimacroactions import doKeystroke as keystroke

# use extension Click by Voice
visiblePause = 0.4
Expand Down
4 changes: 2 additions & 2 deletions src/unimacro/UnimacroGrammars/_debug_natlink.py.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ from natlinkcore import nsformat

# import unimacro.natlinkutilsbj as natbj

# from dtactions.unimacro import unimacroutils
# from dtactions.unimacro.unimacroactions import doAction as action
# from dtactions import unimacroutils
# from dtactions.unimacroactions import doAction as action

# ancestor = natbj.IniGrammar #QH1
class DebugGrammar(natlinkutils.GrammarBase):
Expand Down
18 changes: 9 additions & 9 deletions src/unimacro/UnimacroGrammars/_folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@
from natlinkcore import readwritefile
from natlinkcore import natlinktimer
from natlinkcore import natlinkstatus
from dtactions.unimacro import extenvvars
from dtactions import extenvvars
from dtactions import messagefunctions as mess
from dtactions import natlinkclipboard
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacro.unimacroactions import doKeystroke as keystroke
# from dtactions.unimacro.unimacroactions import do_YESNO as YesNo
from dtactions.unimacro.unimacroactions import UnimacroBringUp
from dtactions.unimacro.unimacroactions import Message
from dtactions.unimacro import unimacroutils
# from dtactions.unimacro.unimacroactions import Message
# from dtactions.unimacro import unimacroactions as actions
from dtactions.unimacroactions import doAction as action
from dtactions.unimacroactions import doKeystroke as keystroke
# from dtactions.unimacroactions import do_YESNO as YesNo
from dtactions.unimacroactions import UnimacroBringUp
from dtactions.unimacroactions import Message
from dtactions import unimacroutils
# from dtactions.unimacroactions import Message
# from dtactions import unimacroactions as actions
from unimacro import natlinkutilsbj as natbj
# from unimacro.unimacro_wxpythondialogs import InputBox
# import natlinkcore.natlinkutils as natut
Expand Down
8 changes: 4 additions & 4 deletions src/unimacro/UnimacroGrammars/_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
from unimacro import natlinkutilsbj as natbj
from unimacro import namelist # for name phrases

from dtactions.unimacro.unimacroactions import doAction as action
from dtactions.unimacro.unimacroactions import doKeystroke as keystroke
from dtactions.unimacro import unimacroactions as actions
from dtactions.unimacro import unimacroutils
from dtactions.unimacroactions import doAction as action
from dtactions.unimacroactions import doKeystroke as keystroke
from dtactions import unimacroactions as actions
from dtactions import unimacroutils

# taskswitching moved to _tasks.py (july 2006)

Expand Down
8 changes: 4 additions & 4 deletions src/unimacro/UnimacroGrammars/_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
import natlink
from natlinkcore import natlinkutils
import unimacro.natlinkutilsbj as natbj
from dtactions.unimacro import inivars
from dtactions.unimacro import unimacroutils
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions import inivars
from dtactions import unimacroutils
from dtactions.unimacroactions import doAction as action
from dtactions.sendkeys import sendkeys as keystroke
from dtactions.unimacro import unimacroactions as actions
from dtactions import unimacroactions as actions

class LinesError(Exception):
pass
Expand Down
2 changes: 1 addition & 1 deletion src/unimacro/UnimacroGrammars/_number simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
further comments in _number extended.py. Also see the page "number grammar" on the Unimacro we
"""
#pylint:disable=C0115, C0116, W0613
from dtactions.unimacro import unimacroutils
from dtactions import unimacroutils
from dtactions.sendkeys import sendkeys as keystroke
import unimacro.natlinkutilsbj as natbj
import natlink
Expand Down
6 changes: 3 additions & 3 deletions src/unimacro/UnimacroGrammars/_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
#pylint:disable=C0116, W0603, W0613, W0201, R0912
import natlink
import unimacro.natlinkutilsbj as natbj
from dtactions.unimacro import unimacroutils
from dtactions.unimacro.unimacroactions import doKeystroke as keystroke
from dtactions.unimacro.unimacroactions import doAction as action
from dtactions import unimacroutils
from dtactions.unimacroactions import doKeystroke as keystroke
from dtactions.unimacroactions import doAction as action
# from dtactions.natlinkclipboard import Clipboard
# natlinkclipboard is not safe at the moment.

Expand Down
Loading

0 comments on commit bb46d9b

Please sign in to comment.