austinhasten / ankirandomfont Goto Github PK
View Code? Open in Web Editor NEWRandomize fonts in AnkiSRS
Randomize fonts in AnkiSRS
Hey, wondering if you can help me with this problem.
I've downloaded some Japanese and Chinese fonts from adobe and after installing them, when I want to select the ones I want in your addon, I can only see the system fonts. The ones I installed don't show up either in Japanese nor Chinese but in Latin. Is this a problem of Linux (Manjaro), a QT problem or an addon problem?
Font manager also shows them all under Latin. They're correctly installed, just not under the right category.
Maybe you could point me in the right direction?
Thanks so much!
For SimplifiedChinese/TraditionalChinese, disable Malgun Gothic/Malgun Gothic Semilight. It's a Korean font that only has some of the characters, so for the sentence 你为什么那么做?, __什_那_做? shows as thick sans and 你为_么_么_ shows as thin serif.
You can test which characters it supports here https://catalog.monotype.com/family/microsoft-corporation/malgun-gothic
This can be done through the addon settings, but having it disabled/removed by default saves having to track it down with AnkiWebView Inspector.
When selecting RandomLatin most fonts don't support the extra characters that Danish and Swedish use, for example ø
Is there a way to circumvent this?
When using anki qt6 version I get this error:
When loading 'Randomize Fonts':
Traceback (most recent call last):
File "/home/yaoberh/pyenv/lib/python3.10/site-packages/aqt/addons.py", line 239, in loadAddons
__import__(addon.dir_name)
File "/home/yaoberh/.local/share/Anki2/addons21/1603486068/__init__.py", line 212, in <module>
allInstalledFonts = QFontDatabase().families()
TypeError: QFontDatabase(QFontDatabase): not enough arguments
Hi,
I get the following error message when starting 2.1.53 after install of the add-on:
An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.
When loading 'Randomize Fonts':
Traceback (most recent call last):
File "aqt.addons", line 244, in loadAddons
File "C:\Users\perai\AppData\Roaming\Anki2\addons21\1603486068_init_.py", line 187, in
allInstalledFonts = QFontDatabase().families()
TypeError: QFontDatabase(QFontDatabase): not enough arguments
Any idea?
Thanks.
Edited: Fixed hideous formatting
Hey!
Was wondering if it's possible to preview the font one wants to add or remove from a specific language list.
This would be especially useful for languages like japanese or chinese where some fonts are calligraphic and others more for daily reading.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.