Commit graph

1180 commits

Author SHA1 Message Date
Jack 4783c1ebe4 fix typo 2021-10-10 16:06:02 +01:00
Jack c80759dded missing change. 2021-10-07 19:06:24 +01:00
Jack fad01ae125 renamed layout override to layout emulator 2021-10-07 19:06:05 +01:00
Jack 6fc38b1314 updated ads.txt 2021-10-06 18:50:32 +01:00
Jack a7c882392a updated ads.txt 2021-10-06 18:49:39 +01:00
usrme 521aff2d17
Add Estonian (#1952) by usrme
* add 'estonian', 'estonian_1k', and 'estonian_10k'

* add Estonian

* add Estonian
2021-10-06 13:36:21 +01:00
Dimitri Tabatadze 2dd577220e
Add georgian (#1943)
* added georgian.json

* updated _groups.json

* updated _list.json

Co-authored-by: D-T-6 <tabatadzedima@protonmail.com>
2021-10-04 20:35:45 +01:00
Jack 30246f9f50 capital I 2021-10-03 20:41:35 +01:00
Denis Çerri e09a71e1dd
Added some Wolf of Wall Street Quotes (#1939)
* Added some Wolf of Wall Street Quotes

* Added Wolf of Wall Street Quotes [Fixed Uppercase words]
2021-10-03 20:40:58 +01:00
Sashin Exists 41362dcf4b
Deleted Katakana words (#1934)
There were a few sneaky katakana words mixed in, I went and deleted them
2021-10-03 15:02:47 +01:00
Jack f7d2be17d3 unfocusing words on test finish, focusing the result div
maybe will fix #1921
2021-10-02 00:12:43 +01:00
Jack 8fbcdaa10a added bcp code 2021-10-01 23:27:11 +01:00
Meimersdorfer dcf898b74a
Add german_250k (#1933) by Meimersdorfer
* Add German_250k

* Add 250k

* Update _list.json
2021-10-01 23:26:13 +01:00
Jack b461d3f4cd added supporter 2021-10-01 20:33:06 +01:00
Jack d131927fd6 added bcp 47 codes for all languages 2021-10-01 16:37:27 +01:00
Jack 653ae1193c moved tts into its own file, added support for bcp47 codes to enable multilanguage. closes #397 2021-10-01 16:24:50 +01:00
Jack 635e76481b Merge branches 'master' and 'master' of https://github.com/Miodec/monkey-type 2021-09-30 14:32:56 +01:00
Sashin Exists d8ad67f9df
Add Japanese as a language to Monkeytype (#1919) by sashinexists
* Added Japanese to _groups file

* Added Japanese Hiragana and Katakana to _list.json

* Create japanese_hiragana.json

A list of the most common hiragana only words. That it's only hiragana means all of Monkeytype's features should work just fine.
Tested with custom input on the Mozc and KKC keyboard layouts. You have to press enter to bypass Kanji conversion.

* Create japanese_katakana.json

A list of loan words commonly used in Japan. Everything is in Katakana. This should work with the "Japanese (kana)" keyboard layout.
2021-09-30 14:29:15 +01:00
Jack 041050c869 added osu and hitmarker sounds 2021-09-30 14:28:24 +01:00
Jack ac23609ab2 added sound on click 5 (typewriter) 2021-09-30 01:06:04 +01:00
SeerLite c323efea26
Rewrite input system to use <input> content (#1325)
* Rewrite input system to use <input> content

* Tab/Escape, Backspace and Enter are always handled by
  $(document).keydown.
* The rest of characters are handled by either $("#wordsInput").on("input")
  (default) or $(document).keydown (layout emulation).
* New special handling for dead keys, compose keys and diacritics in
  general with the new regex Misc.trailingComposeChars.

input-controller.js has been updated to use the above changes:
* handleBackspace() replaced with simplified backspaceToPrevious().
  On PC, a space is immediately re-added to the end of the input to make
  use of the browser/OS's Backspace. This lets the browser handle input-
  specific things like ctrl+backspace.
* handleSpace() refactored a bit to repeat less logic when word is correct
  or incorrect.

* test-ui.js updated to highlight the Misc.trailingComposeChars
correctly, and also refactored a bit to make logic easier to follow.

* AFK checking has also been simplified, now just set with a boolean
flag (TestStats.) setKeypressNotAfk() instead of checking every key and
modifier press (so incrementKeypressMod() was removed as it wasn't used
for anything else).

* Refactor input controller

New function isCharCorrect().

* Remove caps lock backspace setting

Not supported with the input rewrite anymore because we're relying on the
browser's/OS's actual backspace effects. There's no way to emulate this
keypress.

* Refactor input controller

* Reimplement opposite shift mode

* Reimplement the layout emulator

* Fix replay events for input rewrite

Now it's more flexible for a variable amount of backspacing or letter
replacing.

* Pad input with space to handle backspace on mobile

Backspace isn't fired as an event on current mobile browsers, so I worked
around that by adding a permanent space at the start of the input and
treating its removal as a fallback to Backspace to the previous word.

* Force caret to end of input on focus

Fixes initial selection on iOS.

* Use offsetTop from the DOM instead of TestUI

I didn't wanna mess too much with what happens in test-ui.js. Basically,
on a restart after having completed a test, TestUI.activeWordTop is always
wrong for some reason. This caused swipe/instant input after a restart to
always drop the first few characters.

* Prevent pasting on the input

* Revert "Reimplement opposite shift mode"

This reverts commit 9a716ad39b004f0719b05f486465ea03060430ca.

* Use key code to check opposite shift usage

Today I learned what closure actually meant.

* Accept all whitespace as word space
2021-09-30 00:22:38 +01:00
Jack 3d479d5eb5 reduced image size 2021-09-26 20:31:54 +01:00
Jack c1b59e9f17 updated apple touch icons 2021-09-25 14:10:24 +01:00
Miodec 5f6b6c15f8 added popup to view all personal bests 2021-09-24 20:22:08 +01:00
Miodec 53e3cea31d updated spelling 2021-09-24 17:00:50 +01:00
Jack 843bee022b removed / adjusted some quotes 2021-09-24 00:38:55 +01:00
Jack e0b0a809db Merge branch 'master' of https://github.com/Miodec/monkey-type 2021-09-23 22:56:45 +01:00
Jack 7dc91cd797 fixed indonesian quotes 2021-09-23 22:56:38 +01:00
Michael b0b48292b9
Fix spelling error in german.json (#1901) by kemonprogrammer
"Frucht" means fruit, "Furcht" means fear.
Additional source: http://www.worte-projekt.de/herbert.html
2021-09-23 22:54:47 +01:00
Jack fcbfbeb893 fixed chaos theory not working 2021-09-23 14:57:58 +01:00
Miigon 999779677a
completed lazy mode for chinese pinyin (#1866) by Miigon
* completed lazy mode for chinese pinyin

* lazy-mode accent override for pinyin 'ü'

* lazy-mode accent override for chinese pinyin
2021-09-22 14:37:42 +01:00
Jack c337eac37c balanced words history button spacing 2021-09-21 22:14:16 +01:00
Jack 30a268cd02 added sewing tin light 2021-09-20 22:21:47 +01:00
mTopy 4cc9de70c3
Chaos Theory Theme (#1887) by mTopy
* chaos Theory

* update

* removed footer logo

Co-authored-by: Andrew <acs@jls.cx>
Co-authored-by: Jack <bartnikjack@gmail.com>
2021-09-20 21:35:05 +01:00
minicap-cat 007aba99bd
Add Sewing Tin themes (#1890) by minicap-cat
* Add Sewing Tin themes

* add eof newline

* removed light theme

Co-authored-by: Jack <bartnikjack@gmail.com>
2021-09-20 21:31:39 +01:00
Ren Blanding 7b97298f08
added theme colors for KAM Soaring Skies (#1889) by Hakata-jpn
* added theme colors for KAM Soaring Skies

* updated text color

Co-authored-by: Jack <bartnikjack@gmail.com>
2021-09-20 21:25:52 +01:00
HasanTheSyrian a96ae52454
Arabic and Turkish quotes (#1888) by HasanTheSyrian 2021-09-20 21:20:44 +01:00
Philipp Lühmann 7304d51e59
add JetBrains Mono font (#1886) by luehmann
Co-authored-by: Philipp Lühmann <mail@philipp.lu>
2021-09-20 21:19:59 +01:00
zer0-x d7505dd990
Adding diarcitis to arabic_10k.json (#1878) by ZER0-X 2021-09-19 00:02:56 +01:00
Aaron 971afec8be
Made sure alternate command line shortcut is visible (#1883) by UnrealApex
* Renamed command line setting timer-progress bar

* Made ctrl+shift+p shortcut visible to the user
2021-09-19 00:01:22 +01:00
Miodec 3a83792683 fixed german quotes not working 2021-09-17 13:15:20 +01:00
driazati 0c55dc792f
Remove extra space in "Sign In" link (#1867)
HTML treats newlines as whitespace and collapses it + the spaces down to
a single space which has the underline. This fixes this by tightening up
the `<span>`s

Co-authored-by: driazati <driazati@users.noreply.github.com>
2021-09-17 13:06:26 +01:00
Meimersdorfer 94ae92ec0b
Possible German Quotes fix... (#1870)
* Possible German Quotes fix...

I don't know if this is the problem that caused the quotes not to work, but fixed it anyways.

* Update german.json
2021-09-17 13:05:09 +01:00
Mustafa 68bdb6f083
add diarcitis to arabic.json (#1871) by Mustafa-Asaad-iq 2021-09-17 13:04:39 +01:00
Neris 5df773f63f
Correcting quote (#1875)
* Corrected quote

* Fixed formatting (my bad)
2021-09-17 13:03:51 +01:00
Miodec c240c84b7f typo 2021-09-17 13:01:45 +01:00
Meimersdorfer 6054511647
New German Quotes (#1865) by Meimersdorfer
Added another 70 new quotes to put it to a total of 500 over all. Don't know whether or not it is all in the right format, but I hope so. Also fixed some typos as I was already on it.
2021-09-15 23:51:03 +01:00
Banzobotic 9c7f455e4c
Added words to british english and removed hyphens (#1864) by Banzobotic
* Many corrections to british english

* Sulfur and gram changes

* Removed accidental whitespace

* Added words from #958

* Removed hyphonated words

* Removed duplicate neighbours
2021-09-15 20:34:05 +01:00
Jack 7df64007fe added neighbors 2021-09-15 14:54:20 +01:00
Jack c42e30f81f unused file 2021-09-15 13:26:47 +01:00