-
With its long history, the dozenal number base is more useful for many things than binary, decimal, or hexadecimal, mostly because it is a superabundant and superior highly composite number. Its 3 factor is a significant component of that.
This project is developing a dozenal watch, with a calendar, clock, and weather data. Because the calendar starts from basics, it uses an epoch, year starting point, and monthly and weekly divisions that are more sensible than what's in the irregular Gregorian and Julian calendars and are based on astronomy rather than politics or religion, and the dozenal number base. The time of day is based on successive negative powers of a dozen, an improvement over the current conglomeration of base two, ten, twelve, and sixty.
The clock and calendar already exist, the former for various analog and digital clocks on a website as well as for an obsolete watch, the latter on an interactive website for scheduling appointments and other events.
Attached is the current state of the watch's first screen. Improvements in the display are coming, along with importation of many weather data on a second screen. The final code will be made available.
-
-
-
-
Thanks—I've forwarded that to my colleague. It would still be welcome to see a sample input in the font converter field that you've found will produce code that works (that the emulator uses to show the two rotated numerals)—because my inputting just the URL for the OTF still brings the wrong results, a font with no rotated characters.
-
While waiting for my coder to work on this, would you print here the exact link href that you put into the font converter to get the resulting code that works correctly? I probably don't have the correct input, and we'll need to try other fonts as well. Thank you!
I assume you used size 16, 2 bpp, and ASCII 32–127 capitals only.
-
-
-
Thanks for all that. The code you include there doesn't produce the characters for A and B in my emulator, just A and B themselves. Did it do something different when you tried it?
We need both 2 and 3 in their usual positions and also rotated in other positions, preferably ASCII 174 and 169, or 65 and 66 if higher ASCII doesn't work. In the font I posted, the rotated characters are in all those positions.
I'll pass your note about rotation to my coder. I don't know how to do any of this myself.
But: is it possible to load the font and have the substituted characters read correctly?
-
At present the code is the attachment, with ASCII 32–127 and 1 bpp. (ASCII 32–255 will be preferable, and higher bpp if that makes sense.) The g.setFontCustom statement is in two places, with better results in the first. You'll see my coder has included a different g.setFontCustom statement, which does not work with this font. Of course, only one such statement is active at a time.
We'll certainly appreciate your suggestions.
-
I've spent much of the last four days trying to get the converter and emulator (and watch) to do what I need, working with my webmaster. I've tried many fonts in four formats and have placed the two characters I need in many places in the fonts, in high and low ASCII. My font editor now shows the characters in the attached font in the positions of A (65) and B (66), as well as in ASCII 174 and 169. In the converter I've specified all ASCII, lower ASCII, and ASCII capitals; 1 bpp, 2 bpp, and 4 bpp. The emulator and watch running the javascript with the converter's data still show the characters A and B, not the characters that replaced them.
Are we doing something fundamentally wrong? Perhaps the font simply isn't being loaded? (I realize that would be hard for you to know. But if you can load it and see the correct characters, then we'll know something.)
We have 2v08 on the watch.
-
Another question is why an installed font's specially created characters (in one case, well under ASCII 100) don't appear in the emulator or on the watch. The font has been converted in the Font+Converter and installed in the Espruino IDE. Is further action required? (Using an Apple computer and Chrome.)
Thanks for the help!
-
-
-
-
-
Thanks! I did mean the Brailsford converter. The other is easier but I must have a font in which two characters (ASCII 255 or lower) are changed to something else. (So I can't use Google fonts.) I can easily do that in a font editor but then how do I convert the altered font using atob or whatever Espruino can use?
I've been using my own correctly altered font for years and can use that if I can figure the Brailsford out, including creating an image for OpenGameArt to analyze. All of that entails further problems/questions.
Alternatively, I could try to extract a font from the Bangle, alter it, and put it back, although I don't know how to get it and replace it.
Further help is requested! I just need a way to produce the code Espruino needs, from my own font or from another that I can alter in the two simple ways.
-
The posted Espruino font converter asks for a "first character," a width, and a height. The information and format for that information are not readily apparent for the font as it appears in a good font creation application that I have. Is there a guide to using the converter for a non-expert?
Or another way to get a font into the format that Espruino/Bangle requires?
-
-
Thanks for your answer! I have no Android device, only an iPhone (and portable Apple computer). Pebble put its app in the app store; it worked very well, including with weather APIs. I'm hoping you'll do the same eventually, also that ANCS goes into firmware, as you indicated, soon. That would be much appreciated.
What's the minimal Android device that may be used for Gadgetbridge?
I'm working on re-creating the few apps I produced for Pebble. A professional is doing the work, because I'm not a programmer. We'll proceed to try weather when you think we should.
-
Earlier I mentioned errors trying to run the project mentioned here on the watch. The errors do not appear when running the emulator, which works well.
The errors showing up for the watch are rarely the same. Examples below seem odd, because what is being claimed as undefined is in fact defined, as the emulator recognizes!
If you have a general comment on why this may be happening, it will be welcome. Many thanks.
Uncaught ReferenceError: “A1” is not defined
at line 42 col 15
buildSequence(A1);
Uncaught ReferenceError: “B1” is not defined
at line 43 col 15
buildSequence(B1);
[with these repeated for subsequent occurrences]
——
Uncaught ReferenceError: “timeLoop” is not defined
at line 1 col 1
timeLoop();
^
in function called from system
Uncaught ReferenceError: “showDateTime” is not defined
at line 1 col 171
…tiveUntil.getSeconds()+15);showDateTime();
^
in function “timeLoop” called from line 1 col 10
timeLoop();
in function called from system