Giter VIP home page Giter VIP logo

Comments (4)

jdkato avatar jdkato commented on June 25, 2024

This is an issue because MyST is not one of Vale's supported formats. As a result, your options are limited (most of Vale's scope-related features will not work) but you could do this:

\sPlone\s
\sVolto\s

This will generally only flag instances that occur in a "prose-like" context. In any case, I'd say that your expectations when using Vale with unsupported formats should be fairly low when it comes to ignoring markup.

from vale.

stevepiercy avatar stevepiercy commented on June 25, 2024

Thanks for the suggestion. In accept.txt, I tried replacing:

Plone
Volto

with

\sPlone\s
\sVolto\s

but that generated over 600 additional errors. Here's example source and result:

- `mywebsite.com-volto` starts the Node.js process that's responsible for Volto {term}`server-side rendering`.
 57:75  error  Did you really mean 'Volto'?  Vale.Spelling 

It appears that this kind of regular expression is not supported in our custom accept.txt. It supports Plone[a-z]{4} and accepts Plonetest.

Aha! This worked:

-{0,1}plone-{0,1}
-{0,1}vlone-{0,1}

There's more than one way to skin a regular expression!

I am still concerned that neither of our earlier regexes worked. Should I keep this issue open or close it?

from vale.

jdkato avatar jdkato commented on June 25, 2024

but that generated over 600 additional errors. Here's example source and result ...

Ah, it likely "solved" the issue with Vale.Terms but caused another one with Vale.Spelling.

I would say that what we're doing here is generally a misuse of vocabulary files: they're designed to work with supported markup formats, not workaround false positives caused by unrecognized ones.

The real solution here would be to add support for MyST, but I can't put a timetable on that.

from vale.

stevepiercy avatar stevepiercy commented on June 25, 2024

Thanks for the explanation. I'm happy to help bring MyST support to Vale to the best of my ability. A cursory look at support for reStructuredText as an example to adapt for MyST was over my head.

from vale.

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.