Comments (1)
Sure it is possible.
The way to add spell-check is quite straightforward in some sense, but comes with a twist!
Let's say we have the infrastructure in place (i.e. a class/object that does the check and returns a list of errors). In that case we only need to edit inspector.gd
file for any node that needs to check spelling. It can be done easily through signals that text-inputs emit. A handler for a signal such as text_changed, gets the text, passes it through that infrastructure, receives the errors list and somehow informs users of those errors (using a GUI in the node's inspector.tscn
or set_line_as_breakpoint
for example).
That's the easy part.
The more resource consuming part is the infrastructure itself.
Godot (the engine on which Arrow is based), does not expose such a feature. I guess it is understandably not a priority, which means if we need it, we should make it ourselves. GDScript is a wholesome language and in many ways similar to Python. But thanks to GDNative, it can be done in other languages too. The good news here is that you can also use a third-party open-source library in that context, to speed up the whole process.
But there is also another way to look at this.
The real need here is to make sure that our content is correct, in terms of spelling and grammar.
You can solve this with other non-integrated approaches as well. Arrow docs are textual JSON, clean and tidy. You can pass them through any other tool that you find easier to work with, or a custom one created in any other language you prefer.
Note also that when proofreading and internationalization steps start, you most-likely have other people working on your project with tools that they are more familiar with, not necessarily Arrow itself. Editors, translators, etc. Sometimes a project needs to be edited even in the original language, depending on a project's necessities (e.g. for historical accuracy, accessibility, etc.).
This is actually why I never prioritized features such as spell-checking and i18n. At the end of the day, people use spread-sheets or dedicated i18n tools and services they already know better, where you can find built-in grammar and spell check features as well. Such steps are intertwined and need their own solutions (see also: #43 ).
I close this for now, because the feature is not planned;
but feel free to continue the conversation if I can help with any more information.
from arrow.
Related Issues (20)
- Jump node clicking HOT 2
- Zooming In/Out with only WHEEL HOT 2
- Save window state in config.arrow HOT 1
- Use arrow keys to move nodes HOT 1
- Select a Chain of Nodes with MAJ/Shift HOT 2
- Export to HTML seems broken HOT 3
- Remember window size HOT 1
- Quick Export key HOT 1
- Splitter (Iterator) Node HOT 11
- Ctrl + S not working (on Mac) HOT 1
- Render `{ Rich text with BBCode Content}` HOT 2
- Add real world examples / include example .arrow files in the repo. HOT 1
- Multi-Language support HOT 1
- New feature: `Tag Match` node HOT 2
- Enhancement: Allow updating several Variables / Character-tag-values in one node HOT 1
- New feature: `Event Emitter` node HOT 3
- Enhancement: Optionally reset/unset key after checking the value in `Tag Pass` HOT 3
- Enhancement: Support parsing Variables and Character-tag-values HOT 1
- Enhancement: Dialog with Monolog option HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arrow.