8000 refactor(web): move `RuleBehavior` to `engine/keyboard` 🎼 by ermshiperete · Pull Request #13997 · keymanapp/keyman · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor(web): move RuleBehavior to engine/keyboard 🎼 #13997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 6, 2025

Conversation

ermshiperete
Copy link
Contributor

This requires to move some other files around. Also move finalize and mergeInDefaults methods to processor.

Test-bot: skip

@keymanapp-test-bot keymanapp-test-bot bot changed the title refactor(web): move RuleBehavior to engine/keyboard refactor(web): move RuleBehavior to engine/keyboard 🎼 May 20, 2025
@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S3 milestone May 20, 2025
Copy link
Member
@mcdurdin mcdurdin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nits only

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to move to another PR?

export type Alternate = LexicalModelTypes.ProbabilityMass<LexicalModelTypes.Transform>;

export class TextTransform implements LexicalModelTypes.Transform {
readonly insert: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tab size?

/*
* Keyman is copyright (C) SIL Global. MIT License.
*
* Defines deadkey management in a manner attachable to each element interface.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment is wrong?


private static tokenSeed: number = 0;

constructor(keystroke: KeyEvent, transform: TextTransform, preInput: OutputTargetInterface, alternates?: Alternate[] /*, removedDks: Deadkey[], insertedDks: Deadkey[]*/) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented code please

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need consistency in filename ending with systemStores.ts.

@keymanapp keymanapp deleted a comment from mcdurdin May 20, 2025
@ermshiperete ermshiperete force-pushed the refactor/web/rulebehavior branch 2 times, most recently from d895a33 to dca5edb Compare May 21, 2025 07:40
@keyman-server keyman-server modified the milestones: A19S3, A19S4 May 26, 2025
ermshiperete and others added 2 commits June 5, 2025 17:25
This requires to move some other files around. Also move `finalize`
and `mergeInDefaults` methods to processor and rename them to
`finalizeProcessorAction` and `mergeInOtherProcessorAction` (decided
8000

to directly use the term `ProcessorAction`, to which `RuleBehavior`
will be renamed to in a following PR).

Co-authored-by: Marc Durdin <marc@durdin.net>
@ermshiperete ermshiperete force-pushed the docs/web/preprocKeyEvent branch from 3018692 to 657585e Compare June 5, 2025 15:35
@ermshiperete ermshiperete force-pushed the refactor/web/rulebehavior branch from dca5edb to 1b14f5c Compare June 5, 2025 15:39
@ermshiperete ermshiperete marked this pull request as ready for review June 5, 2025 15:39
@ermshiperete ermshiperete changed the base branch from docs/web/preprocKeyEvent to refactor/web/OutputTarget June 6, 2025 08:26
Base automatically changed from refactor/web/OutputTarget to epic/web-core June 6, 2025 10:25
@ermshiperete ermshiperete merged commit 74a29c6 into epic/web-core Jun 6, 2025
15 of 16 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Keyman Jun 6, 2025
@ermshiperete ermshiperete deleted the refactor/web/rulebehavior branch June 6, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants
0