Cthulhu is no longer a fork. Now it is a screen reader written in Golang.

This commit is contained in:
Storm Dragon committed 2026-10-14 00:16:34 -04:00
1 parent a998fe67de
commit 069fc674dc
708 files changed
+112482 -532

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
// Copyright (c) 2026 Storm Dragon
// Authors: Storm Dragon, Angus Kola
// SPDX-License-Identifier: GPL-3.0-or-later
package atspi
// TextAttributesMisspelled recognizes provider spelling markers for native
// snapshots, character-attribute speech, and braille. Python Cthulhu also
// recognizes the error/spelling underline values used by some toolkits.
func TextAttributesMisspelled(values map[string]string) bool {
for _, key := range []string{"invalid", "invalid-spelling", "text-spelling", "spelling"} {
value := values[key]
if value == "spelling" || key != "invalid" && (value == "true" || value == "misspelled") {
return true
}
}
return values["underline"] == "error" || values["underline"] == "spelling"
}