-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/TR-5014/Text converter #163
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! It's very good designed in that pluggable way.
I have doubts about merging of configs, could you please add test case to test/util/converter/factory/test.js
for the case when we have two processors having same config property (what will be result of their merge).
…gistered() API instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice! Good job, adorable code.
Version
There are 0 BREAKING CHANGE, 5 features, 1 fix |
Related to: https://oat-sa.atlassian.net/browse/TR-5014
Summary
Add a text converter for sanitizing text.
This first version includes a converter for replacing ambiguous symbols with plain ASCII chars.
Details
Several components have been added:
'util/converter/factory'
a converter factory, registering a list of processors for converting the text'util/converter/ambiguousSymbols'
an ambiguous symbols processor for replacing Japanese number with ASCII numbers'util/converter'
a default converter bundled with the builtin converted (for now only theambiguousSymbols
processor)Note: the list of ambiguous symbols to replace might not be finalized yet. Additions may be done soon if we get the final list.
How to test
npm ci
npm test
npm run test:keepAlive