-
Notifications
You must be signed in to change notification settings - Fork 30
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
Japanese text conversion input #107
base: master
Are you sure you want to change the base?
Conversation
please clean up - lots of files are not necessary - follow the best practices and look at other components |
overall - you should remove the other components like password input or mask input and follow the same practice |
interface PegaExtensionsJapaneseInputProps { | ||
// If any, enter additional props that only exist on TextInput here | ||
hasSuggestions?: boolean; | ||
variant?: any; |
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.
Provide appropriate types in the place of any
import '../create-nonce'; | ||
|
||
// interface for props | ||
interface PegaExtensionsJapaneseInputProps { |
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.
export the interface incase we need it.
import '../create-nonce'; | ||
|
||
// interface for props | ||
interface PegaExtensionsJapaneseInputProps { |
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.
extend InputProps from @pega/cosmos-react-core. In that case, you can remove duplicate types.
Add an input with the following 3 features. All of them convert characters with onBlur.
Converts Lowercase to Uppercase, for when the client inputs lowercase and the internal character handles it as uppercase.
Japanese has two types of characters, Hiragana and Katakana, which correspond one-to-one. Hiragana input is converted to Katakana.
In Japanese, characters are generally handled as multi-byte full-width characters rather than single-byte half-width characters, and for this reason Japanese keyboards have a function to input characters in full-width. Some full-width characters have the same meaning in half-width, and these are converted from full-width to half-width.