Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into Text-Wrapping
- Loading branch information
Showing
8 changed files
with
1,561 additions
and
1,369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
mpackage = [[enable-accessibility]] | ||
author = [[Mudlet]] | ||
title = [[Enables better accessibility on demand]] | ||
description = [[`mudlet accessibility on` will toggle a few settings for a better visually impaired experience: | ||
* auto clear input line after sent text | ||
* disable showing sent text | ||
* hide blank lines (on windows) | ||
* offer workaround VoiceOver announce issue (on macOS) | ||
* set Ctrl+Tab as a shortcut to enable caret mode]] | ||
version = [[1.0]] | ||
created = "2022-07-31T19:25:07+02:00" |
51 changes: 51 additions & 0 deletions
51
src/mudlet-lua/lua/enable-accessibility/enable-accessibility.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE MudletPackage> | ||
<MudletPackage version="1.001"> | ||
<TriggerPackage /> | ||
<TimerPackage /> | ||
<AliasPackage> | ||
<Alias isActive="yes" isFolder="no"> | ||
<name>mudlet accessibility on</name> | ||
<script>echo("Welcome to Mudlet!\n") | ||
echo("Let's adjust a few preferences to improve the visually impaired experience:\n") | ||
|
||
setConfig("autoClearInputLine", true) | ||
echo("Text will now be removed from the input line after it was sent ✓\n") | ||
setConfig("showSentText", false) | ||
echo("Text sent to the game will not appear in the main window ✓\n") | ||
|
||
setConfig("caretShortcut", "ctrltab") | ||
echo("Shortcut to switch between input line and main window set to Ctrl+Tab. You can also change it to either Tab or F6 in settings.\n") | ||
|
||
if getOS() == "windows" then | ||
setConfig("blankLinesBehaviour", "hide") | ||
echo("Blank lines will be removed from the output ✓\n") | ||
end | ||
|
||
if getOS() == "mac" then | ||
echo("\nYou're on a mac and VoiceOver will skip reading text when there's lots of it coming in. Would you like to install a third-party TTS plugin to alleviate this issue?\n") | ||
echo("Type 'mudlet access reader' if so.\n") | ||
echo("See https://wiki.mudlet.org/w/Accessibility_on_OSX if you'd like to learn more.\n") | ||
end | ||
|
||
echo("\nThat's all, enjoy Mudlet!\n")</script> | ||
<command></command> | ||
<packageName></packageName> | ||
<regex>^mudlet access(?:ibility)? on$</regex> | ||
</Alias> | ||
<Alias isActive="yes" isFolder="no"> | ||
<name>mudlet accessibility reader</name> | ||
<script>uninstallPackage"reader" | ||
installPackage"https://github.com/tspivey/mudlet-reader/releases/latest/download/reader.mpackage"</script> | ||
<command></command> | ||
<packageName></packageName> | ||
<regex>^mudlet access(?:ibility)? reader$</regex> | ||
</Alias> | ||
</AliasPackage> | ||
<ActionPackage /> | ||
<ScriptPackage /> | ||
<KeyPackage /> | ||
<VariablePackage> | ||
<HiddenVariables /> | ||
</VariablePackage> | ||
</MudletPackage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.