Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jordi Pakey-Rodriguez
    @0xdec
    That obviously requires a lot of work, but I think it would be a great feature
    Ian Douglas
    @iandoug
    Ah, I was wondering what criteria you were using to separate layouts from keysets. One of the compact layouts I have is 'blank'. I guess we are coming from different places ... I was using KLE to design a keyboard from scratch, but I see many (most?) people just use it to design colour schemes etc. So yes I think it would be a good idea to have a set of 'blank' layouts to start with, eg ANSI 104, ISO, ergodox, etc. I'll take a look at what I have and see what I can do.
    Jordi Pakey-Rodriguez
    @0xdec
    Yeah I think separating layout from design is good because it's more representative of real keyboards
    Jordi Pakey-Rodriguez
    @0xdec
    any thoughts on using Polymer?
    Ian Douglas
    @iandoug
    Had a quick look at their site... do you want to basically rebuild everything from scratch? Or some other plan (sorry am rather tired ATM. Should go sleep :-).. need to do something after midnight which is almost here.
    Jordi Pakey-Rodriguez
    @0xdec
    I don't know...I mean, we still don't know if we are allowed to do this. The only license on the KLE repo is a copyright, so...
    And yikes, I forgot for a second how much later it is where you are...7hrs I think
    Ian Douglas
    @iandoug
    I wonder it Polymer will allow one to dynamically add a new font to a page (since it seems able to mess with the DOM). Since there is a need to specify a font for a key (or board), we can't provide every possible font. So perhaps the user could pick one from Google. Then you need a way of
    1) uniquely identifying it for next time
    2) the ability to dynamically add it to the page. Dunno if that's possible since fonts are usually in the HEAD or css .... don't know enough about those sorts of tricks.
    Jordi Pakey-Rodriguez
    @0xdec
    I bet there's a way...if anything can do it, Polymer can. It's pretty powerful
    Also, assuming we can contact Ian, any ideas on license? I'm thinking probably GPL
    Ian Douglas
    @iandoug
    Posted a message on Deskthority, Geekhack does not want to load. No idea about licences, but suppose GPL or similar should be fine. I THINK I have, after much fun and games, managed to upload my stuff to github. Still coming to terms with using KDevelop, git, etc etc .. so a bit messy. https://github.com/iandoug/keyboard-layout-editor If you are able to somehow check it, that would be cool. I should point my local nginx to that directory now to see if it works. Think I must go sleep now :smile:
    Jordi Pakey-Rodriguez
    @0xdec
    Oooooh looks good! I'll take a look and get back to you tomorrow. Also, I think I may have figured out how to save a .json file to the user's computer...yet to test...
    Ian Douglas
    @iandoug
    I was going to create it on the server and generate a link to it. If necessary a cron job could clean up once a day. Else you need to do force-feed downloads or somesuch? My first upload didn't include the fonts and layouts, they're there now.
    Jordi Pakey-Rodriguez
    @0xdec
    I'm using file-saver.js to save a file
    Ian Douglas
    @iandoug
    I broke something or left out a changed file so the whole display is buggered. Attempting to fix.
    Ian Douglas
    @iandoug
    Hope things are fixed. I see you've done a lot of commits, I should take a look and see how to synchronize.
    Bed NOW!!!!!!!!!!!!!!
    Jordi Pakey-Rodriguez
    @0xdec
    hahaha see you tomorrow
    Jordi Pakey-Rodriguez
    @0xdec
    I FIXED JSON
    YES
    And I added a save file button
    Jordi Pakey-Rodriguez
    @0xdec
    When you get the chance, could you add the new fonts by themselves to a PR on my repo? alerque pointed out that attribution is always key. Also, do you want to just make further changes on my repo, since we're working together on some things? I can give you write access.
    Ian Douglas
    @iandoug
    BTW how do I integrate your json fixes without causing world war 3?
    Re attributions and all that: I see from http://fadefade.com/json-comments.html that one is not supposed to add comments to Json, but can't one just add fields that whichever program uses the file, knows what to do with? Eg author, datetime, version, title, etc, and just Does Not Worry if they are missing? Beyond this, if we are going to add further data to each key field, we may need a version number on the json so that we know what fields to expect.
    Ian Douglas
    @iandoug
    Have started watching Calum's video, very educational. I've tested adding other tags to the json and it doesn't break things, as long as I put it at the bottom. eg:
    [{"Author":"Ian Douglas"},{"Title":"Programmer's KeyBoard"},{"Version":"1.85"},{"DateTime":"2015-06-30 14:33:00 GMT"},{"Public":"Yes"},{"KLEVersion":"0.001"},{"KLEKey":"jd3e9jw"}]
    Ian Douglas
    @iandoug
    The thing that so annoys me about Javascript (and made worse by all these new libraries and their own funny syntaxes) is that when, after hours of struggle and going around in circles, you finally get the damn thing to work, it looks so blindingly obvious, that you wonder why the other 500 blindingly obvious things you already tried didn't work ... I feel like Edison and his 1000 lightbulb failures before success.
    Ian Douglas
    @iandoug
    "I FIXED JSON" ... where? Like to see what you're doing and how :)
    Jordi Pakey-Rodriguez
    @0xdec
    The latest code has working, correct JSON
    go to editor.d1sc0te.ch/kb.html to see it
    As for attribution, I just meant for github commits. I’m currently working through alerque’s videos.
    And hahaha yeah, I feel you on the JS thing…it can be so frustrating.
    Ian Douglas
    @iandoug
    What I meant was in which file :-) ..... I'm asking because in my work work I've had to return json to an API from php, and php has this very nice function for doing it... just build an array, call it and you're done. Even nested arrays.
    $reply = array();
    $reply['Result'] = 'OK';
    $reply['CereliaClientTime'] = $now;
    print json_encode($reply);
    I see there is something similar for Javascript: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
    your editor. site say: 404 There isn't a GitHub Pages site here.
    Jordi Pakey-Rodriguez
    @0xdec
    As for where it is in code, take a look at kb.js and serial.js in my recent commits
    I’m using Angular.toJson() to stringify a JSON object and JSON.parse() to parse a JSON string
    Jordi Pakey-Rodriguez
    @0xdec
    Okay fixed editor.d1sc0te.ch
    The CNAME file had gone missing
    Ian Douglas
    @iandoug
    Thanks, works now. I've got urgent work work to do today, will continue with this later. First want to watch the vids, then watch them again in 'work along' mode and hopefully get my local repo and remote sorted properly. I did notice before that you had reformatted areas of kb.html that I also worked on, which is probably where the clash originated. I don't yet know how to upload the fonts to you. Last night I managed to find better alternatives to Gorton.
    Ian Douglas
    @iandoug
    We're going to have to talk to Swill... his plate creator is not expecting proper json, so results are not as expected :smile:
    Ian Douglas
    @iandoug
    Did you fixes include this item: "fix save to include rx ry rotation origin."?
    Ian Douglas
    @iandoug
    Have got that SVG thing working in my Firefox, had to upgrade to current version (38.0.5) which is still marked as "unstable" in my distro. But I think it does it slightly differently to say Windows, the top menu bar (Add key etc) gets shifted down and the svg goes above it. Now need a way to save the SVG. The conversion still has at least one issue with non-conventional layouts - the conversion is a little broken. Maybe I should talk to ajm about it. Also need a way to get this to 1:1 scale with the real world .... maybe a "scale stick" of exactly 1 or 10 cm would work?
    Jordi Pakey-Rodriguez
    @0xdec
    re: “rx ry origin”, nope, not mine. That’s from amj’s SVG code I think
    Also, I’m currently in Portugal and have crap internet, so I might not be able to do anything for a week or so. I’ll try my best.
    Ian Douglas
    @iandoug
    Presume you saw ijprest has surfaced (D1SC0tech/keyboard-layout-editor#9) , so maybe you should hang five on the work until we hear what he has to say about the licence. I see he has made some changes in the last day or so to his branch. Enjoy the holiday :-)
    Jordi Pakey-Rodriguez
    @0xdec
    I had not noticed that, I’ll take a look.
    Jordi Pakey-Rodriguez
    @0xdec
    Wow, he’s back! Crazy...
    I agree that we should wait until we hear more from him before we do any more work
    Ian Douglas
    @iandoug
    Ian must go sleep now.. cheers :-)
    Jordi Pakey-Rodriguez
    @0xdec
    Talk to you later!