-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Gujarati phonetic layout #562
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
577e028
Gujarati phonetic : added shift modifier characters
aa90288
Gujarati phonetic : added keyboard layout
84e2b3c
Gujarati phonetic : generated layout entry
2cfefc9
updated check_layout.output
f98277e
Gujarati phonetic : updated layout
07021eb
Add support for gujarati numerals
Julow 03287b3
Gujarati layout updated
Yogesh-B File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<keyboard name="ગુજરાતી ફોનેટિક - Gujarati Phonetic" script="gujarati"> | ||
<row> | ||
<key key0="ટ" key1="`" key2="1" key3="!" key4="esc"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The western numerals are on the keyboard instead of the gujarati ones. Is this intended ? |
||
<key key0="ડ" key1="~" key2="2" key3="\@" key4="\#"/> | ||
<key key0="ે" key1="એ" key2="3" key3="$" key4="૱"/> | ||
<key key0="ર" key1="ઋ" key2="4" key3="ૃ" key4="₹"/> | ||
<key key0="ત" key1="ટ" key2="5" key3="%"/> | ||
<key key0="ય" key2="6" key3="^"/> | ||
<key key0="ુ" key1="ઉ" key2="7" key3="&"/> | ||
<key key0="િ" key1="ઇ" key2="8" key3="*" key4="ઁ"/> | ||
<key key0="ો" key1="ઓ" key2="9" key3="(" key4=")"/> | ||
<key key0="પ" key1="૰" key2="0" key4="॒"/> | ||
</row> | ||
<row> | ||
<key shift="0.5" key0="ા" key1="tab" key3="અ"/> | ||
<key key0="સ" key1="“" key4="”"/> | ||
<key key0="દ" key1="ડ"/> | ||
<key key0="્" key1="ૠ" key3="ૄ"/> | ||
<key key0="ગ" key2="-" key3="_"/> | ||
<key key0="હ" key2="=" key3="+"/> | ||
<key key0="જ" key3="{" key4="}"/> | ||
<key key0="ક" key1="ૢ" key2="ૡ" key3="[" key4="]"/> | ||
<key key0="લ" key1="।" key2="|" key3="\\" key4="॥"/> | ||
</row> | ||
<row> | ||
<key width="1.5" key0="shift" key2="loc capslock"/> | ||
<key key0="ઞ" key1="જ્ઞ" key2="ૅ" key3="ઙ" key4="ઍ"/> | ||
<key key0="ષ" key1="ક્ષ" key2="ૉ" key3="઼" key4="ઑ"/> | ||
<key key0="ચ" key2="<" key3="."/> | ||
<key key0="વ" key2=">" key3=","/> | ||
<key key0="બ" key2="\?" key3="/"/> | ||
<key key0="ન" key2=":" key3=";"/> | ||
<key key0="મ" key1="ૐ" key2=""" key3="'" key4="॑" key6="ઽ"/> | ||
<key width="1.5" key0="backspace" key2="delete"/> | ||
</row> | ||
</keyboard> |
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.
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.
The top row doesn't look good in combination to the built-in number row (that can be enabled in the settings). Do you think every users of this layout will want to have this row ?
Also, the layout is very high due to top row. It takes almost half of the screen on my device. You can make the top row a bit smaller with
height="0.75"
(like the built-in number row).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.
we can do something like this to remove the top row. [**also as you see in the Screen Shot, numbers are shown properly in keyboard but output is not in devanagari. I feel like there is a bug. Devanagari numbers work fine in normal view, just this number view is not working proper]
normal working in below view:

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.
The devanagari digits are specified here: https://github.com/Julow/Unexpected-Keyboard/blob/master/srcs/juloo.keyboard2/KeyModifier.java#L1060
Are they wrong ?
To change the numpad digits when your layout is visible, you'd need to add a new similar map and call it from here: https://github.com/Julow/Unexpected-Keyboard/blob/master/srcs/juloo.keyboard2/KeyModifier.java#L100
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.
The first screen shot just shows the layout in Devanagari(or any other language), but when typing, it puts output as english numbers. I think it is using values from https://github.com/Julow/Unexpected-Keyboard/blob/master/res/xml/numeric.xml .
I tried adding Gujarati number in the java file you suggested, but had same issue as mentioned above.
Edit: just tested by adding Gujarati numbers to the
numeric.xml
, it is outputting values we define there. theKeyModifier.java->modify_numpad_script
is just for UI part. actual output comes from xml mapping.(Sorry but I am not a android/java/kotlin developer, just did some debugging. : )
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.
You are right, there's a serious bug in the numpad. I fixed it in 8c7559d and fixed the number row in 8b5d971.
You can now remove the number row from your layout and enable the number row in the settings.
Note that the layout must also contain the numerals for people that don't use the number row option.