Skip to content
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

Create flexible "ketiv/qere" features #170

Open
charlesLoder opened this issue May 1, 2024 · 0 comments
Open

Create flexible "ketiv/qere" features #170

charlesLoder opened this issue May 1, 2024 · 0 comments

Comments

@charlesLoder
Copy link
Owner

charlesLoder commented May 1, 2024

Create a syllabification option that allows for ketiv/qere like options. See initial discussion.

Users should be able to give an input (the ketiv) and the .text property should be the output (the qere). Example:

const text = new Text("הִ֖וא בֵּֽית־אֵ֑ל ה֖וּא וְכׇל־הָעָ֥ם אֲשֶׁר־עִמּֽוֹ׃", {
    ketivQeres: [
        {
            input: "הִוא",
            output: "הִ֖וא",
            ignoreTaamim: true // idk about this settings
        }
    ]    
});

text.word[0].original // הִ֖וא
text.word[0].text // הִ֖וא

Input should be a string or regex, and output should be a string or function. The ignoreTaamim option could be useful — it should default to true though.

Performance should be taken into consideration too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant