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
Bengali Probhat layout #8887
Bengali Probhat layout #8887
Conversation
We'll have a look, but I don't have time to right now. :-) |
Just curious: do you get all your bengali glyphs displayed correctly? |
No, Noto Sans Bengali is the font we need: https://fonts.google.com/noto/specimen/Noto+Sans+Bengali |
Should I add Noto Sans Bengali In the fallback fonts? |
@uroybd From your question thread:
Probably yes, because KOReader is supported not only on Androids. |
Bengali speakers are virtually everywhere, tropical reproduction is to be blamed. ;) I've added a PR to add font in the font repo koreader/koreader-fonts#16 |
You haven't answered if the FreeSans/FreeSerif are good enough or not. (We have a Hebrew UI language, and we don't even ship a Hebrew font - FreeSans or FreeSerif seems fine enough.) |
Sorry, missed that. It is not good enough. Bengali has a complex rendering system. In your examples, many conjunction glyphs are not rendering properly. I'm adding an example to show how it should be using a proper font: The rendering is not a system issue for kindle or kobo because I've seen users using these devices to read Bengali. So I believe, with proper fonts everything will be fine. |
Btw, since #8722, if a user drops (or already has) a Noto Sans Bengali UI font in there, it will be automatically used as a fallback font. |
I don't really recall the discussion around Myanmar but some 180 kB isn't the worst. That being said also compare that abandoned PR @pazos did a while back. |
Shipping this font is not an absolute necessity. We have seen that the FreeSans and FreeSerif already provide the glyphs. We don't use complex Conjunction glyphs on the keyboard. They get generated automatically by the font. So, we don't need Noto Sans Bengali for the keyboard itself. However, considering the userbase and file size, you can add this font. Like Devanagari, Bengali script is also being used by Asaamia and some other languages. |
Yeah, Bengali probably makes sense, especially given the potential user base ;). |
1. Fixed bug that was force closing the keyboard. 2. Fixed key sizes. 3. Added appropriate alt label. 4. Rename Locale label for 'bn' from 'বাঙালি' to 'বাংলা'.
I've setup a dev environment and fixed all the bugs related to this PR. Tested it for some hours. Everything seems to be fine. Tweaked the key sizes and alt labels. |
Is there anything else I can do before you can merge this? |
Bump the koreader-fonts submodule, in this PR as it is quite related :) |
Done. :) |
Something yet to fix to avoid CI failures on later unrelated PRs:
|
Should I Squash these commits for cleanliness? |
We will squash them when merging, so no need for you to do it (and we keep the history of the work in there with the individual commits). Unless you prefer to have more than one commit in what we merge if you think they deserved to be multiple individual unrelated ones ? Still an issue with CI:
(Looks like there's some kind of alphabetical ordering somewhere, and you added Bengali after Devanagari like you did good in other places - but it should be before somewhere in there :) |
Fixed the font ordering. :) |
You changed more places than were needed (it was only need in spec/, for the test itself). Dunno the differences in the amount of readers and content for Devanagari vs. Bengali, and which deserves to be first in the various lists. (If in doubt, let Bengali be polite and place itself after long-time-there Devangari :) |
I intended to do this in alphabetical order. I personally have no problem having Bengali after Devanagari. I've added Bengali after Devanagari in all Lua files for consistency this time. |
Now, this is weird. I've searched the codebase. Nowhere is |
This PR contains codes for a popular Bengali keyboard layout named Probhat.
However, I don't really know how to register this in the app to be able to use this.
This change is