Skip to content

Instantly share code, notes, and snippets.

@srl295
Last active May 9, 2022 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srl295/79df4ff82fcce18b617d8eab6b2f480c to your computer and use it in GitHub Desktop.
Save srl295/79df4ff82fcce18b617d8eab6b2f480c to your computer and use it in GitHub Desktop.
teletype.xml
<!-- KSR teletype in xml -->
<keyboard>
<keys>
<key id="figs" shift="figs" />
<key id="ltrs" shift="base" />
<key id="linefeed" to="\u000A" />
<key id="bell" to="\u0007" />
<key id="hyphen" to="-" />
<key id="gap" gap="1.0" />
<key id="gap2" gap="1.5" />
</keys>
<layerMaps form="hardware">
<layerMap id="base">
<row keys="Q W E R T Y U I O P gap2"/>
<row keys="gap A S D F G H J K L enter gap"/>
<row keys="figs Z X C B V N M ltrs linefeed null"/>
<row keys="gap space gap" stretch="space"/>
</layerMap>
<layerMap id="figs">
<row keys="1 2 3 4 5 6 7 8 9 0 gap gap"/>
<row keys="gap hyphen bell dollar bang and hash quote leftparen rightparen enter gap"/>
<row keys="figs doublequote slash colon question semicolon comma period ltrs linefeed null"/>
<row keys="gap space gap" stretch="space"/>
</layerMap>
</layerMaps>
</keyboard>
@mcdurdin
Copy link

mcdurdin commented May 6, 2022

Query: <key id="ltrs" shift="ltrs" /> what is the shift="ltrs" doing?

@srl295
Copy link
Author

srl295 commented May 7, 2022 via email

@mcdurdin
Copy link

mcdurdin commented May 7, 2022

It shifts back to the base layer.

How? The base layer is called 'base'? Shouldn't it be: <key id="ltrs" shift="base" />

@mcdurdin
Copy link

mcdurdin commented May 7, 2022

Also looks like the ltrs key is duplicated on lines 5 and 9

@srl295
Copy link
Author

srl295 commented May 9, 2022

It shifts back to the base layer.

How? The base layer is called 'base'? Shouldn't it be: <key id="ltrs" shift="base" />

right! fixed. also deduplicated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment