Welcome, Guest. Please login or register.
Did you miss your activation email?
2019-Jul-18 13:44

Login with username, password and session length

Recent

Shoutbox

break:
Mar. 24 2019 - 7:46pm
@Den Just finished 2nd playthrough and testing session. I really like the edits I have made. Going to take another week to look over things !!
break:
Mar. 11 2019 - 7:04pm
@Den Hey, thanks for all of the support. Finished with the changes and currently playing through the game !!
break:
Feb. 25 2019 - 7:31pm
@Den Yo, finishing up the bosses and will do some more testing before the big release !!
break:
Feb. 18 2019 - 10:42pm
@Den Hey, got the main bosses edited and working on the treasure chests. Getting close to finished my edits !!
break:
Feb. 10 2019 - 9:11pm
@Den Yo, got the shops edited now and will start work on the treasure edits. I bit confused on monster chests ATM...
break:
Jan. 29 2019 - 6:56pm
@Den Hey, really making progress with my Hex-Editing. Replied to my topic...a bit stuck again
break:
Jan. 23 2019 - 11:42pm
@Den  Yo, I am really getting the hang of this HEX editing stuff !! Working on figuring out the growth rate formula !!
break:
Jan. 17 2019 - 8:31pm
@Den I am starting get more understanding about Hex editing.  Thanks for taking time out for me !

Author Topic: Generating Images of Keyboard Layouts  (Read 1447 times)

Den

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1242
  • Selina is my Superstar
    • View Profile
    • Amuseum
Generating Images of Keyboard Layouts
« on: 2017-Oct-21 16:24 »
In need of fast way to generate keyboard layouts.

Given layout definition (ex. in JSON), this script should generate an image file (in PNG). Preferably executable in a browser.

Solution in KLA:
[Might not work for some browsers. Works in Vivaldi (chrome).]
In Configuration page, choose the layout, then at bottom, see Layout Image, click Generate button. An small image for the current layout appears adjacent. (The same image remains even if you change layout. So you must manually regenerate if you want another image for different layout.) The image can be clicked for direct download (probably to your browser's default download folder; filename will match layout's name), or right click on the image to open browser menu to view the image in new tab.
« Last Edit: 2017-Oct-21 17:44 by Den »
Support me on Patreon

I saw. I conquered. I came.

Den

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1242
  • Selina is my Superstar
    • View Profile
    • Amuseum
Re: Generating Images of Keyboard Layouts
« Reply #1 on: 2017-Oct-23 09:47 »
Actually the latest Firefox has the tool to take a snapshot of anything you see on the webpage. So that would be the simplest method. No coding necessary.

iandoug

  • Hero Member
  • *****
  • Posts: 949
    • View Profile
    • Keyboard Design
Re: Generating Images of Keyboard Layouts
« Reply #2 on: 2017-Oct-29 11:19 »
Actually the latest Firefox has the tool to take a snapshot of anything you see on the webpage. So that would be the simplest method. No coding necessary.

Which version? (I'm on 52.4.0 (64-bit), Gentoo tends to be a few releases behind 'Current' because they like to make sure it's stable).

As previously mentioned, I have a tool that merges KLA json onto KLE template.

In the mean time this new tool was launched:

https://kle-render.herokuapp.com/

So I'm going to write a proggie that will rewrite KLA json into KLE format (since we have limited physical layouts ATM, should not be too difficult) then can feed resulting json to this tool.

I have downloaded the repo but need to figure out how to make nginx serve python.... only ever worked with PHP and Perl.
I want to use different fonts to what he is using.

I know it's not a one-step process like you wanted....
(coincidentally my head has started pondering the possibility of merging KLE and KLA ... but suppose that won't work ... but would be cool if it did, and allowed us to evaluate the effect of different physical setups on a given logical layout. Or possibly merging this rendering into KLE. I'll let it percolate.... :-) )

If you like in the mean time I can send you my renders of the various BEAKLs for your DT page.

Still fiddling with my Layout Management System. Need to co-ordinate "all layouts" with "what should be in KLE" vs "what IS IN KLE", as well as getting the meta data sorted. I see a lot of the layouts in KLA have wrong finger allocations, eg left Control is assigned to Left Thumb, where it should be left pinky. So will have to gradually fix all those as well... has a lower priority right now.

Current screenshot (FWIW) attached. Going to add Author/Inventor/Submitter/Modded by and URLS to bottom right side. Current "Author" field is not satisfactory, hence the new ones.
The process will generate new db.js after each edit.

Cheers, Ian

iandoug

  • Hero Member
  • *****
  • Posts: 949
    • View Profile
    • Keyboard Design
Re: Generating Images of Keyboard Layouts
« Reply #3 on: 2017-Oct-29 18:00 »
So I'm going to write a proggie that will rewrite KLA json into KLE format (since we have limited physical layouts ATM, should not be too difficult) then can feed resulting json to this tool.

Decided to start with Matrix layouts...
Work in progress. Need to fix the code that handles non-chars like Alt/Ctrl etc. But need to go to bed now.
Had to set key profile to OEM, which makes the text small. The default SA profile has bigger text but switches everything to upper case.
Not running locally yet so I can't tweak those things.


iandoug

  • Hero Member
  • *****
  • Posts: 949
    • View Profile
    • Keyboard Design
Re: Generating Images of Keyboard Layouts
« Reply #4 on: 2017-Oct-29 18:33 »
Beakl 10.

Had to use words, the fonts used on server don't have all the special characters.

I know it's not 19 keys across, the renderer can't handle that many so had to make gap in middle smaller.

 

3 Guests, 2 Users