-
• #28
That's great! Thanks for all the testing and reporting back!
This isn't just Korean but should have improved the situation for anyone with a non-english Language that wants notifications too
-
• #29
@Gordon, in your reply in the post #10, you said:
It should be possible to (very easily) clone fontall into fontkorean and use the utility to make a new font with just korean symbols in, but until we're sure everything works I'd rather not have too much duplication
Could you let me know how to run the fontconverter to create a new font file to include only ASCii and Korean? I have some experiences with other languages like Arduino, but I'm very new to JavaScript, so I have no idea where to start. I took a look at the github pages, but still no clue where/how to run. If there is an instruction or guide, please let me know the link.
Thanks.
-
• #30
Ok, basically:
- Checkout https://github.com/espruino/BangleApps onto your PC (with submodules)
- Copy https://github.com/espruino/BangleApps/tree/master/apps/fontext to
fontkorean
- Rename
fontext
tofontkorean
inboot.js
andmetadata.json
- Run
./font_creator.js "Extended" ../apps/fontkorean/font.pbf
in thebin
directory of BangleApps (ideally update the README if you're going to publish it too)
and you're done. But you may need to install Node.js and NPM, run
npm install pngjs
and also download the plane0 font from https://unifoundry.com/unifont/index.html and convert it topng
fileI can't really provide help if you hit issues with that though - after all, literally all it's going to do is save you 0.5-1MB of flash, it won't provide extra functionality
- Checkout https://github.com/espruino/BangleApps onto your PC (with submodules)
-
• #32
@Gordon, thanks to your instruction, I could successfully reduce the file size. It's now 420kB for Korean and ASCii.
At first, it didn't work and the file size was too small, 17kB, so I took a look at theunifont-15.1.05.png
image and I found that the range for Korean in thefontconverter.js
was wrong. The line #701 should be replaced with"Korean": {range : [{ min : 32, max : 255 }, { min : 0x1100, max : 0x11FF }, { min : 0x3130, max : 0x318F }, { min : 0xA960, max : 0xA97F }, { min : 0xAC00, max : 0xD7FF }] }, //0xAC00 was 0xDCB0
Thanks.
-
• #33
Great! Thanks for tracking that down - i've just put that change in.
It'd be great if you could do a PR for that new font
-
• #35
Yes, I meant pull request - there's a tutorial on it here, showing you how to set up your own personal app loader, and then add an app to it: https://www.espruino.com/Bangle.js+App+Loader
You can ignore most of the stuff about metadata as you've already got the app set up - it's just a matter of uploading your files and then making a pull request.
You can always try and get it set up in your own personal app loader and then send us the link to try out first
-
• #36
@Gordon, thank you for your detailed explanation as always.
I was trying to make (copy parts of other's) a clock app and plan to make a golf GPS app soon (months or years?? :-)), so I made a fork of the App Loader already, but there hasn't been any progress since then.
Thanks again and I hope I can contribute more actively to this amazing community. -
• #37
@Gordon, could you please review following two apps I have added to my forked repository and let me know if I need to correct anything? I have tested both apps on my Bangle and worked fine.
https://jeonlab.github.io/BangleApps/?q=font_korean
https://jeonlab.github.io/BangleApps/?q=jclock -
• #38
Thanks - yes, this looks good, but it'd be nice if the filename followed the same style as the other font apps like
fontall
andfontext
- so justfontkorean
and notfont_Korean
? It'd be nice if the README included the same text about how to recreate the font too.Basically the more similar you can make all the apps (same filenames/etc) the easier it'll be to maintain/compare them for other users.
jclock
seems really neat - all I'd say is as you have screenshots there it'd be nice to add them to the metadata so they show up in the app loader and not just the readme: https://github.com/espruino/BangleApps?tab=readme-ov-file#screenshots -
• #39
@Gordon, as always, thank you so much for your review and good advice. I will make the changes and open a PR.
Is there an easy way to change the filename from
font_Korean
tofontKorean
other than creating a new folder and adding files in there and delete the old one?One more question: I know this is a question about Github, but couldn't find a good answer from Google. For those two apps I made (copied from others :)) have so many commits while I was testing, adjusting, etc. I wonder if I need to clean up those commits before opening a PR. If so, how do you do that in web browser based Github?
-
• #40
Thanks - the PR looks great!
If you're working with the repository in your PC itself then you can use the
git mv apps/font_Korean apps/fontkorean
command - but I'm not sure what's available on the Github website I'm afraid.Generally I'm not too bothered about having extra commits showing in the repo - but I guess if there are a bunch of single "rename X to Y" commits it's not ideal. I'm not sure if you can do it at your side, but it's just a quick button press when I click merge, so I just did it anyway.
-
• #41
Thanks again, Gordon.
I'm currently using web browser based Github so can't use the commands. Can I?
So, I just created a new folder and manually rename and move those files. It was not a big deal since there were not that many files to move.
I really appreciate all your patient help and suggests. -
• #42
I'm currently using web browser based Github so can't use the commands. Can I?
No, I'm pretty sure you can't - and it doesn't look like there's anything built in for renaming folders (at least at first glance)
-
• #43
You should be able to do all that in a github codespace which is free to use for personal accounts for some time and data limits. But at that point I would probably install a VSCode or similar locally instead.
-
• #44
@Gordon and @halemmerich, thank you for your replies.
-
• #45
@Gordon Hello. In 150+ languages fonts for Ukrainian language there are three lowercase letters missing. It is necessary to change the range from 1103 to 1111. Thank you very much for your work!
"Extended": {range : [{ min : 32, max : 1111 }], text: "Thís îs ã tést" }, // 150 languages + Cyrillic
1 Attachment
-
• #46
Thanks - I'll update that!
Ok, that's great - thanks!
So I think the iPhone is sending the right UTF8 text - it's formatted as
\u00XX
because the code I sent output it as JSON, but if I put it intoE.asUTF8
which is what the iOS app should do, it looks ok:I just realised I made a stupid mistake - originally I'd named the font library
fonts
but I renamed it tofont
, but the iOS app still checks to see if a library calledfonts
is enabled before passing UTF8 through!If you update with the dev app loader to iOS 0.18 now it should work! And you might as well remove 'custom boot code' to stop all your messages needing to get stored as well :)