feat: Add Kaomoji Support with Dedicated Palette Toggle, Emotion Categories, and Recent History - #677
Open
prince-0408 wants to merge 3 commits into
Open
feat: Add Kaomoji Support with Dedicated Palette Toggle, Emotion Categories, and Recent History#677prince-0408 wants to merge 3 commits into
prince-0408 wants to merge 3 commits into
Conversation
…ering, and recent history
Member
|
Hey @prince-0408 👋 We'll discuss this and get back to you on it, but I'm not sure if we'll bring this in before the MVP release. |
Collaborator
Author
No problem @andrewtavis, by the way, thank you for the heads-up. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #676
Summary
This PR introduces full Kaomoji support into Scribe-Android, featuring a side-by-side top bar toggle button group, 8 emotion-filtered categories, 80+ curated Kaomojis, and automatic Recent History persistence.
Files Modified & Created
New Files Created
app/src/main/assets/kaomoji_spec.txt: Added 80+ curated Kaomojis across 8 categories (Joy,Love,Cool,Sad,Angry,Surprised,Shrug,Animals).app/src/main/java/be/scri/helpers/KaomojiHelper.kt: CreatedKaomojiDatamodel, asset file parser, andsaveRecentKaomoji/getRecentKaomojisSharedPreferences history helpers.app/src/main/res/drawable/ic_emoji_kaomoji.xml: Created vector drawable for Kaomoji category icon.app/src/main/res/drawable/kaomoji_chip_background.xml: Created rounded pill selector background for active/inactive category text chips.app/src/main/res/layout/item_kaomoji.xml: Created layout for individual Kaomoji cells in RecyclerView.app/src/test/kotlin/be/scri/helpers/KaomojiHelperTest.kt: Added unit tests for Kaomoji data model, asset parsing, and category mapping.Existing Files Modified
app/src/main/res/layout/input_method_view.xml: Added side-by-side top bar toggle group (top_bar_emoji_toggle&top_bar_kaomoji_toggle) and wrapped category strip in aHorizontalScrollView.app/src/keyboards/java/be/scri/helpers/ui/KeyboardUIManager.kt: Implemented palette mode switching, strict per-category Kaomoji filtering, and recent history integration.app/src/main/java/be/scri/helpers/EmojiAdapter.kt: Extended adapter to supportItem.KaomojiandKaomojiViewHolder.app/src/main/java/be/scri/helpers/EmojiHelper.kt: Added category icon mapping for Kaomoji categories.app/src/keyboards/java/be/scri/helpers/english/ENInterfaceVariables.kt: Added English header string constants (Joy,Love,Cool,Sad,Angry,Surprised,Shrug,Animals,Recent).app/src/keyboards/java/be/scri/helpers/KeyboardLanguageMappingConstants.kt: Mapped Kaomoji category keys to header string constants.app/src/main/java/be/scri/helpers/KeyboardBase.kt: Fixed"conjugate_mode_type"preference default to"none"to preserve standard keyboard height (R.dimen.key_height).app/src/keyboards/java/be/scri/services/GeneralKeyboardIME.kt: FixedsaveConjugateModeTypesignature and callers to avoid overriding standard keyboard height during normal typing.app/src/keyboards/java/be/scri/helpers/KeyHandler.kt: Reset conjugate mode to"none"when selection completes.app/src/main/res/drawable/ic_emoji_vector.xml: Restored single-path outlined smiley vector matchingic_emoji_smileys.xmlso the bottom row emoji key renders cleanly.Feature Highlights
Side-by-Side Top Bar Toggles:
[😃 Emoji Icon]and[(^_^) Kaomoji Badge]sit side-by-side next to the back arrow<-for seamless one-tap switching.Strict Category Filtering:
Recent History Persistence:
Recentcategory chip.Preview