Git Product home page Git Product logo

plover_stroke's People

Contributors

benoit-pierre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mawillcockson

plover_stroke's Issues

Some RTF outlines with implicit hyphens considered invalid

From Jeff on the Plover Discord:

The machine is translating everything as expected, but Plover is mistranslating (or not translating) a number of briefs. Most simply, the FPLT brief shows up as "-FPLT" in Word, rather than a period.

Dictionary manager window showing various outlines for {.}, none of them with hyphens

Aerick's response:

I think what's happening here is Plover expects -FPLT but the period stroke is defined as FPLT
so any entries that only use the right side keys will have to be reassigned


After reading the RTF/CRE spec, it seems to be much more lenient about including hyphens in outlines where the keys are already unambiguous:

A hyphen is used in cases where there may be confusion between an initial and final consonant. For instance, to differentiate between the strokes /RBGS [Plover: R-BGS] and /-RBGS [Plover: -RBGS].


After some regex magic Jeff returned with not quite everything resolved:

So my regex approach corrected about 6,000 entries, and things in Plover are way better now--but still not perfect, because this dictionary is also missing hyphens in many left+right strokes, like THR-R for "there are" ...nuts.
An except from an RTF dictionary

In this case we see the same issue, in which both Rs are there and so the hyphen isn't strictly necessary, but the outline isn't getting parsed correctly.

We should be able to handle these cases as well, in order for RTF (and others) dictionaries from professionals and CAT systems to work without needing major changes. Plover's steno notation as implemented in this library is unambiguous, yes, but the input dictionaries with not-quite-canonical outlines should be considered valid as well and normalized into our notation.

TL;DR: plover_stroke is too strict about hyphen usage, and some RTF/CRE dictionaries are failing to validate because of it.

Normalized RTFCRE stroke is inconsistent with Plover for `#H-B`

#H-B doesn't work in Plover, only 4-B does.

However this plugin reports the normalized form of 4-B as #H-B.

(it could also be a Plover bug for not recognizing #H-B; however making the normalized RTFCRE form different between Plover and this library is not a good idea)

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.