Giter Club home page Giter Club logo

Comments (1)

mhgolkar avatar mhgolkar commented on May 27, 2024

Hey @HypocriticalLemur

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.