Readit News logoReadit News
Posted by u/MagneLauritzen 25 days ago
Show HN: Mathpad – Physical keypad for typing math symbolscrowdsupply.com/summa-cog...
Here's something different than your usual fare: A physical keypad that lets you directly type math!

Ever tried typing mathematical equations in your code IDE, email, or on Slack? You might know it can be tricky. Mathpad solves this with dedicated keys for Greek letters, calculus symbols, and more. Press the ∫ key and get ∫, in any application that accepts text. It uses Unicode composition, so it works everywhere: Browsers, chat apps, code editors, Word, you name it. Basically, anywhere you can type text, Mathpad lets you type mathematics.

I built Mathpad after getting frustrated with the friction of typing equations in e.g. Word, and what a pain in the ass it was to find the specific symbols I needed. I assumed that a product like Mathpad already existed, but that was not true and I had to build it myself.

It turned out to be pretty useful! Three years of solo development later, I'm launching on Crowd Supply. One of the trickiest parts of this project was finding someone who could manufacture custom keycaps with mathematical symbols. Shoutout to Loic at 3dkeycap.com for making it possible!

Fully open source (hardware + software): https://github.com/Summa-Cogni/Mathpad Campaign: https://www.crowdsupply.com/summa-cogni/mathpad Project log: https://hackaday.io/project/186205-mathpad-the-math-keypad

RossBencina · 23 days ago
That looks very cool. I wonder how hard it was to get those printed keycaps made.

Ideally you want access to everything without moving your hands off the keyboard. The DIY keyboard scene makes a lot of use of layered keymaps. It seems like the endgame for this kind of thing is not separate "keypads," but rather wider support, standardisation and adoption of multiple-layer keymaps. Half the problem is designing good maps and the other half is learning them. Sharing maps, and better software for learning/practicing the maps would help. Then you might need a few more keys to select layers. A minimum implementation might be adding a two thumb buttons below the space bar to select layers.

EDIT: inserted more text

throwaway81523 · 23 days ago
$140, lol. How about just selling the keycaps for an existing numeric pad or even small mech keyboard, and that's only if the physical keys are really needed.

The main slowdown I face as an occasional TeX user is remembering the TeX names of less frequently used symbols. For that purpose there is detexify (draw the character and find the name, doesn't work all that well) but a popup graphical menu or (if you must) a phone app would be fine.

crinkly · 23 days ago
Low tech solution here. Found a cheat sheet and printed it and stuck it on the wall next to my monitor.
volemo · 23 days ago
Low² tech solution here: just google it.

(Or use Unicode search extension for Raycast—like I do—which is fundamentally the same as googling, but with fewer key presses.)

darthoctopus · 23 days ago
As an intermediate alternative between a hardware keyboard and a graphical symbol picker, I use an .XCompose file with contents that look like this:

    # GREEK
    <Multi_key> <g> <A>    : "Α"   U0391    # GREEK CAPITAL LETTER ALPHA
    <Multi_key> <g> <a>    : "α"   U03B1    # GREEK SMALL LETTER ALPHA
    <Multi_key> <g> <B>    : "Β"   U0392    # GREEK CAPITAL LETTER BETA
    <Multi_key> <g> <b>    : "β"   U03B2    # GREEK SMALL LETTER BETA
    <Multi_key> <g> <D>    : "Δ"   U0394    # GREEK CAPITAL LETTER DELTA
    <Multi_key> <g> <d>    : "δ"   U03B4    # GREEK SMALL LETTER DELTA
    <Multi_key> <g> <E>    : "Ε"   U0395    # GREEK CAPITAL LETTER EPSILON
    <Multi_key> <g> <e>    : "ε"   U03B5    # GREEK SMALL LETTER EPSILON

    ...

    # Math Symbols
    <Multi_key> <i> <n>    : "∈"   U2208 # IN
    <Multi_key> <f> <a>    : "∀"   U2200 # FOR ALL
    <Multi_key> <t> <e>    : "∃"   U2203 # THERE EXISTS
    <Multi_key> <a> <n> <d>    : "∧"   U2227 # AND
    <Multi_key> <o> <r>    : "∨"   U2228 # OR
    <Multi_key> <less> <parenleft>  : "⟨" U27E8     # MATHEMATICAL LEFT ANGLE BRACKET
    <Multi_key> <greater> <parenright>: "⟩" U27E9   # MATHEMATICAL RIGHT ANGLE BRACKET
    <Multi_key> <d> <d>    : "∂" U8706 # DEL
    <Multi_key> <n> <b>    : "∇" U8711 # NABLA
I've used this for perhaps the last 10 years now and I don't think I could go back to working on a machine without configurable compose key functionality at this point.

layer8 · 23 days ago
This. Using a Compose key [0] covers a vast range of input use cases and is eminently customizable. For Windows there is WinCompose [1]. For macOS there is [2].

[0] https://en.wikipedia.org/wiki/Compose_key

[1] https://github.com/SamHocevar/wincompose

[2] https://github.com/Granitosaurus/macos-compose

delusional · 23 days ago
Compose functionality is absolutely awesome. I don't understand why it's not more widespread. I use it for all sorts of stuff, from emojis, to symbols, to diacretics. It's great!
eviks · 23 days ago
> and what a pain in the ass it was to find the specific symbols I needed.

But that's exactly the same issue with the hardware solution - you can't use Ctrl+F to find by name and you can't see all the many symbols on the keyboard itself. You'd need a software solution to show a visual searchable "cheat sheet", and also you can map more mathy keys to an existing bigger keyboard, where entering some symbols will be way more natural, e.g., for greeks you can map most of them to different A and B latin keys instead of having both αβ on the same key. Similarly, you could do map ℤ to Z and ℕ to N, so these would be simpler to remember/input than using a dedicated keypad, so the printed symbols on the keypad aren't that useful anymore.

zokier · 23 days ago
my 2c

* the way unicode input works in qmk is pretty janky imho. this is not something you can plug into any random computer and expect to always work perfectly without doing any configuring.

* you can accomplish the same thing if you have qmk (or similar) based keyboard by throwing the symbols on another layer or whatever you prefer. for $140 you can get a whole keyboard.

the keycaps are a nice touch though

eviks · 23 days ago
QMK won't allow you to search for the symbols, which is a big limitation since there are hundreds of them
staplung · 23 days ago
Very cool. I've long wanted something that's a bit of a cross between a calculator and a numpad; something that could be used as a calculator or just to send symbols to the computer that are easier to type on such a device.

Question: the description says it has access to all the Greek alphabet letters but only the lower case ones are shown on the keypad: do you get (e.g. ∆) by using the shift key on the regular keyboard plus δ on the Mathpad?

Deleted Comment

burnt-resistor · 23 days ago
So, like a scaled down space-cadet keyboard. ;) Looks neat for people who write a lot of scientific papers.

With 3 modifier keys, this offers 8 potential modes. What's done with the other 2?

Why only 12 keys and 3 modifier keys? Granted, 6+ modifier keys of the SCK is probably 1 or 2 too many.

Also, I miss graphing calculators / CAS like the HP 48 where math symbols were (usually) easier-ish to access.