Git Product home page Git Product logo

anki-touchscreen's Introduction

anki-touchscreen's People

Contributors

krassowski avatar lauciank avatar spenhouet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

anki-touchscreen's Issues

just a reminder

in order for add-ons to work you have to close and reopen anki
would be nice if it was mentioned in the add-on description page

Stack touchpad buttons vertically

As it stands, the touchpad buttons (pen, undo, delete all) are rather large, and at least on my device (Surface pro 6) they overlap with the card title. Could you stack them vertically on the right side of the screen to reduce overlap?

Thanks for the useful addon, and all your hard work!

Text input!

Text-input would be an amazing feature here! I am in medical school and would love a way to quickly type out some thoughts on a card before seeing the answer.

Windows blue screen "WHEA UNCORRECTABLE ERROR"

This began happening after using this feature on my Lenovo L13 Yoga. It has happened 3 times that I am writing notes on my Anki cards with my stylus when my computer freezes then goes into the blue screen with the "WHEA UNCORRECTABLE ERROR" at the bottom. I turn the computer off and on with the power button and everything seems to go back to normal.

I continue to use it and it crashes the same. It happens when at the moment I touch my touch screen with the stylus after writing notes on my Anki for a while.

Could you please look into this and let me know if you find anything on your end? Thank you!

Touch Screen Response Lags

Using this add-on my screen lags, rendering the addon useless.
I touch the screen and start drawing, little or nothing draws, perhaps it it picks up the last point of the line.
I pick up my finger and start a new line elsewhere, but I get a line from where I lifted my finger to where I then placed it.
The screen is so unresponsive that I cannot get the 3 control buttons to respond.
I am using a new Dell XPS 13 2-in-1 and have Ubuntu installed.
When I touch the screen elsewhere, the response is good.
When I load in LibreOffice Draw, the ability to draw is good.
It was working reasonably well in the previous version, but even there, some of these issues were apparent.

Windows Pen

No support for Windows pen when using Surface products, have to keep button pressed and there is a small lag.

The lines aren't drawn under the cursor as intended.

On Windows 10, with Anki 2.1.8 (71e0c880), even with windows DPI scaling disabled and using the programs scaling, the lines drawing appear far off to the side of where they should be, the further away from the top left that the cursor gets.

In the top left corner it is mostly accurate but the further way from the corner, the further away the point of drawing becomes. This implies to me that it is some sort of high DPI display issue. I am using a 2560x1440p display.

After a small amount of drawing, it begins to lag very badly and a sad square face appears in the top left. At this point the card or drawing stretches out horizontally past where it can be seen (to the right) however this begins immediately after the card has been opened.

Here is a link to a video of the issue:
https://my.mixtape.moe/dwgvdj.mp4

Please fix the problem

When it comes to Anki 2.0, writing on my surface pro 4 works great. But everything is becoming abnormal, when I switch to Anki 2.1. I can't write anything on it. Please fix it. Thanks a million.

[Anki 23.10 beta 6] No module named 'PyQt5'

The Qt5 compatibility code is now off by default, which may break some add-ons that haven't been updated to support Qt6 in the last 2 years. If you find any have broken, please report the issues to the add-on author, and start Anki after setting the env var ENABLE_QT5_COMPAT to 1 to temporarily restore the compatibility code.

Error
Un complemento que has instalado ha fallado al cargarse. Si los problemas persisten, por favor ve a Herramientas> Menú de complementos o deshabilita este complemento.

Mientras cargando '⁨Touch Screen - draw and write on your cards⁩':
⁨Traceback (most recent call last):
  File "aqt.addons", line 239, in loadAddons
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\1631622775\__init__.py", line 31, in <module>
    from PyQt5.QtWidgets import QAction, QMenu, QColorDialog, QMessageBox, QInputDialog
ModuleNotFoundError: No module named 'PyQt5'

1631622775_init_.py

#from PyQt5.QtWidgets import QAction, QMenu, QColorDialog, QMessageBox, QInputDialog
#from PyQt5 import QtCore
#from PyQt5.QtGui import QKeySequence
#from PyQt5.QtGui import QColor
#from PyQt5.QtCore import pyqtSlot as slot
try:
    from PyQt6.QtWidgets import QMenu, QColorDialog, QMessageBox, QInputDialog
    from PyQt6.QtGui import QAction
    from PyQt6 import QtCore
    from PyQt6.QtGui import QKeySequence
    from PyQt6.QtGui import QColor
    from PyQt6.QtCore import pyqtSlot as slot
except ImportError:
    from PyQt5.QtWidgets import QAction, QMenu, QColorDialog, QMessageBox, QInputDialog
    from PyQt5 import QtCore
    from PyQt5.QtGui import QKeySequence
    from PyQt5.QtGui import QColor
    from PyQt5.QtCore import pyqtSlot as slot

Canvas blocks button interaction

The main canvas is currently covering the entire screen, so hint buttons cannot be interacted with. A hack is to just change the top of the canvas so that it leaves some room on the top, but that may not work depending the size of the notecard. Is a more permanent workaround possible?

Anki 2.0

Hello there,
does the addon not work with Anki 2.0 anymore?
About 30 minutes ago Anki crashed when I tried to use the addon. Now if I activate the touch screen the card "resets" like usual, but apart from that nothing happens

Windows Compatibility

I just wanted to ask/confirm that this addon is only compatible with Linux? Is there anything similar that runs on Windows?

Anki 2.1.53 (96bacf79) Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-02-11 20:46:05

Caught exception:
Traceback (most recent call last):
File "C:\Users\chide\AppData\Roaming\Anki2\addons21\1631622775_init_.py", line 89, in ts_about
ts_about_box.setText(addon_name + " " + version + doc)
TypeError: can only concatenate str (not "NoneType") to str

Conflict between Night Mode and Touch screen

My computer is running Ubuntu 18.04.4, and I use a Wacom One drawing tablet, with the input-wacom driver from: https://github.com/linuxwacom/input-wacom
The night mode is from: https://github.com/krassowski/Anki-Night-Mode
My Anki is Version 2.1.15 (442df9d6) with Qt 5.9.2 PyQt 5.9.

I can't use both night mode and touch screen simultaneously. Anki crashes the studying screen printing the following error:

Debug info:
Anki 2.1.15 (442df9d6) Python 3.6.2 Qt 5.9.2 PyQt 5.9
Platform: Linux
Flags: frz=True ao=True sv=1
Add-ons possibly involved: Touch Screen - draw and write on your cards, 1496166067

Caught exception:
File "aqt/webview.py", line 27, in cmd
File "aqt/webview.py", line 87, in _onCmd
File "aqt/webview.py", line 368, in _onBridgeCmd
File "aqt/overview.py", line 37, in _linkHandler
File "aqt/main.py", line 485, in moveToState
File "aqt/main.py", line 515, in _reviewState
File "aqt/reviewer.py", line 46, in show
File "aqt/reviewer.py", line 95, in nextCard
File "aqt/reviewer.py", line 137, in _initWeb
File "", line 2, in custom
File "anki/hooks.py", line 74, in decorator_wrapper
File "anki/hooks.py", line 71, in repl
File "/home/kaio/.local/share/Anki2/addons21/1496166067/internals.py", line 218, in raw_new
File "/home/kaio/.local/share/Anki2/addons21/1496166067/stylers.py", line 157, in revHtml
File "/home/kaio/.local/share/Anki2/addons21/1631622775/init.py", line 393, in custom
default = ts_default_review_html(*args, **kwargs)
<class 'TypeError'>: revHtml() takes 1 positional argument but 2 were given

Doesn't work for Ipad

This add on is working for my Mac but not my Ipad. Is there a way to make it work with the ipad?

Mouse click results in continuous drawing, even once mouse is released?

Description

I used to use this addon for practicing drawing Chinese characters and Hindi letters. It worked great. I took a month or two off from doing this type of study, but I just resumed it today. I tried to reactivate this addon, and now I find that its functionality seems to have completely changed. Rather than clicking and holding down the mouse to draw, as soon as I click once, the pen starts permanently drawing and cannot be turned off. Was this change intentional, or was it a bug?

Reproduce

Expected behavior

Click once, hold the mouse down to draw, release mouse to stop drawing.

Context

The current behavior (click once, mouse draws continuously no matter what) makes it impossible to draw Chinese / Hindi writing effectively.

  • Operating System and version:
  • Browser and version:
  • JupyterLab version:
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.

When enabling touchscreen or disabling touchscreen, switches automatically to next learncard.

When i am using Anki, ich have different type of cards. For some i need to enable or disable the touchscreen for better functionality. It is not very helpful when i need for the actual card the touchscreen and i enable it, than the card switches to the next card automatically. Offen, on the next card i don´t need the touchscreen.

Hopefully you can fix this. thank you.

Imports are not compatible with Anki 23.10.1

When trying to run this add-on on Anki 23.10.1, I get the following error message:

Anki 23.10.1 (fac9e0e) Python 3.11.6 Qt 6.6.1 PyQt 6.6.1
Platform: Linux-6.6.7-arch1-1-x86_64-with-glibc2.38
Flags: frz=False ao=True sv=3
Add-ons, last update check: 2023-12-23 08:19:36

When loading Write on your screen:
Traceback (most recent call last):
  File "/home/gb/.local/share/Anki2/addons21/567651868/__init__.py", line 481, in ts_setup_menu
    mw.addon_view_menu
AttributeError: 'AnkiQt' object has no attribute 'addon_view_menu'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/aqt/addons.py", line 245, in loadAddons
    __import__(addon.dir_name)
  File "/home/gb/.local/share/Anki2/addons21/567651868/__init__.py", line 519, in <module>
    ts_onload()
  File "/home/gb/.local/share/Anki2/addons21/567651868/__init__.py", line 183, in ts_onload
    ts_setup_menu()
  File "/home/gb/.local/share/Anki2/addons21/567651868/__init__.py", line 483, in ts_setup_menu
    mw.addon_view_menu = QMenu(_(u"&View"), mw)
                         ^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
  QMenu(parent: Optional[QWidget] = None): argument 1 has unexpected type 'str'
  QMenu(title: Optional[str], parent: Optional[QWidget] = None): argument 2 has unexpected type 'AnkiQt'

EFDRC is not defined

I have a laptop with Windows 10 and get this error: "Invalid HTML on card: ReferenceError: EFDRC is not defined".

Thank you so much for your help. I really appreciate it. :)

Some Issues With Touchscreen

Hello,
Thanks for providing touch functionality to anki on desktop, it is really helpful and sometimes necessary.
As medical student, I use anki with the addon AMBOSS. It is very helpful addon which saves us lots of time.
There is an issue when I enable Anki-TouchScreen, it behaves the text of the Question and also first choice as picture, and I can not check words with Amboss.
I think the reason is the layer.
I will add some pictures to show you how is my problem.
Thanks


correct behavior:

when the mouse cursor goes on the word on the last line, it works fine.
image


incorrect behavior:

the word on the question or a line after that (first choice) it shows nothing. I am even not able to select the text behind that for google search.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.