Online IDE + local modules? #6266
Replies: 1 comment
-
Posted at 2020-05-17 by @MaBecker Check this section of module documentation. http://www.espruino.com/Modules#from-a-local-folder. Or save the font on storage and then use require. http://www.espruino.com/Modules#from-storage Take a look into this sample it was written before font size factor was available and a larger font was needed. https://gist.github.com/MaBecker/dfcd3908005f3cafa2b9a5ab5156e3d8 Posted at 2020-05-17 by @allObjects ...more recently someone posted abut an 8 bit font... which means that it would include Français,
The third one already touched on this - and is also one éric ( @mrbbp ) started. Btw, comment allez-vous, éric? Are you working on a contemporary - literal COVID19 - installation d'art? - m Posted at 2020-05-17 by Mrbbp ok sorry, i was not really clear about the accents prob the accent problem occur when i load a script in the online IDE (not in the chrome app) é. Attachments: Posted at 2020-05-17 by Mrbbp @allObjects hello Markus, the confinement of COVID gave me time to write texts and now is the time to port them to my favorite microcontroller. I also received a ZD915 desoldering station and I try my and zd915 abilities on a 20mm led matrix replacement on the wemos module. I hope you are in good health and stay careful with this terrifying COVID. best regards Posted at 2020-05-17 by Mrbbp Thanks @MaBecker for pointing urls, i will try to store the font as you show. Posted at 2020-05-17 by Mrbbp about the font. I worked from the @dennis file (thank you @dennis for the great work) and I redesigned the uppercase letters a little narrower by one pixel and reviewed the accented lowercase and some other lowercase letters. I find it more pleasant to read on a matrix... i put in attachment the 2 Dennis's file and my fork. i think i need a more work, but it's good for me. if you want i can provide the converted file. é. Attachments: Posted at 2020-05-18 by @gfwilliams For local modules I'm afraid there is no solution yet since the web browser doesn't give full access to the filesystem. When things calm down I'll be adding a login to the Web IDE and you'll be able to upload 'local' modules there. For the text, you may be hitting an issue with the unicode font conversion. There's some code at https://github.com/espruino/EspruinoTools/blob/gh-pages/plugins/unicode.js which has been a constant source of pain for me. The idea was any strings get converted to a UTF8 sequence of chars. While that's great for serving websites, it's not what you want for on-espruino graphics. I'd be interested to know what your thoughts are on that - I guess I could make it configurable (eg. you could set which codepage you want to use). I guess the terminal could also be configured to interpret incoming text from that codepage as well. Posted at 2020-05-20 by Mrbbp Thanks @gordon for you explanations In fact, I am really sad to have to abandon the ide in chromeApp, it was very practical and had fewer limitations than the online ide. é. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-05-17 by Mrbbp
Hello,
i do not find how to add a custom local modules with the online IDE (not the Chrome app)!
Is it possible?
i use a custom font but can't use the online ide with it! (I'm not proud enough of my work to inflict it on everyone and push it on the git :/)
@gfwilliams, by the way, my uploaded scripts in utf-8 have accents problem in the Online IDE!
For diacritic langages as mine it's really annoying. do i have to encode my scripts in an other way?
regards
éric
Beta Was this translation helpful? Give feedback.
All reactions