https://github.com/settinger/selectric_typeballs Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. {{ message }} settinger / selectric_typeballs Public * Notifications * Fork 4 * Star 40 How to make your own Selectric Typeballs License BSD-3-Clause license 40 stars 4 forks Star Notifications * Code * Issues 2 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights settinger/selectric_typeballs This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/s] Use Git or checkout with SVN using the web URL. [gh repo clone settin] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @settinger settinger Widened the base of each letter a bit ... e8b1816 Apr 12, 2023 Widened the base of each letter a bit e8b1816 Git stats * 12 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time img another picture for readme April 1, 2023 22:26 .gitignore Better manifoldness with minkowski! April 11, 2023 09:35 LICENSE Initial commit March 31, 2023 17:34 README.md Merge branch 'main' of github.com:settinger/selectric_typeballs April 11, 2023 09:36 glyph_tables.py Better manifoldness with minkowski! April 11, 2023 09:35 oneletter.scad Widened the base of each letter a bit April 12, 2023 16:56 selectric_generator.py Better manifoldness with minkowski! April 11, 2023 09:35 typeball_blank.STL Improve readme and blank ball April 1, 2023 22:19 View code How to make your own Selectric Typeballs March 31, 2023 How to use the code Acknowledgements EXPLAINING HOW THE GEOMETRY WORKS, BECAUSE I'M REALLY QUITE PROUD OF IT (BUT YOU CAN SKIP THIS SECTION, IT WON'T HURT MY FEELINGS) Extra thoughts README.md How to make your own Selectric Typeballs March 31, 2023 A 3D printed typeball for the IBM Selectric. The font is Comic Sans. There is ink on most of the letters. A sheet of lined paper in a typewriter with several lines of Cherokee text; the 3d printed typeball that made the text is visible in the lower left. The IBM Selectric typewriter uses an instantly-recognizable "ball" of type instead of a fanned-out array of arms like a conventional typewriter. These typeballs could be swapped out, meaning you could easily write documents with different fonts, font sizes, special characters, or different writing systems altogether. IBM and some other vendors made lots of different typeballs, but most of them are 40-50 years old and no one has been making new typeballs for a long time. 3D printing is a natural fit for making new typeballs, but most printers still don't have the ability to produce the sharp details necessary on a sufficiently-resilient material. So it's understandable that no one made a really functional 3D-printable typeball. Until now, that is! How to use the code Things you need before getting started: * OpenSCAD * A Python installation with the pymeshlab package 1. Open oneletter.scad and change lines 11 and 12, the ones that specify the font height (in millimeters) and the font name/style for OpenSCAD to use. 2. Open selectric_generator.py and change line 5, the one that says PATH TO OPENSCAD = r"{something}" so that it points to your installation of openscad.com (not openscad.exe! They are in the same folder probably, but the .com is meant to be run from command line, which is what we'll be doing. 3. If you want to change the characters on the balls, edit glyph_tables.py. This contains a multi-dimensional array of the characters as they are arrayed on the typeball, not as they are laid out on the keyboard. If you want to use a different character set than the standard Latin, you'll have to find a correspondence between the new set and your preexisting keyboard layout. Sorry this part may be extra-confusing. 4. Run selectric_generator.py. On my machine, each character takes between 1 and 30 seconds to generate, depending on their complexity. So 88 characters will take a while, be patient! Acknowledgements The blank typeball is based on 1944GPW's typeball on Thingiverse, which is released under a Creative Commons-Attribution license. I suspect that my project wouldn't exist if it weren't for this one. I had to change most of their typeball dimensions, and there are major issues with the way their characters are generated, but I sure as heck would have made those same errors myself, so I'm infinitely grateful for the people before me who documented their processes! Another project that deserves a lot of credit is The Sincerity Machine by Jesse England. Jesse is a delight and a constant source of creative inspiration for me, and it brings me great joy to watch this project evolve with him. EXPLAINING HOW THE GEOMETRY WORKS, BECAUSE I'M REALLY QUITE PROUD OF IT (BUT YOU CAN SKIP THIS SECTION, IT WON'T HURT MY FEELINGS) A Meshlab render of the octothorpe symbol with lofted edges Getting those nice lofted edges on each glyph was not easy! I came up with a rather elaborate way that worked pretty well, but then got an excellent suggestion from Kris Slyka that works so, so much better. This is truly a community effort. I'd be very curious to hear how you would have approached it!! The OpenSCAD Typeball by 1944GPW attempts to loft the shapes by scaling the letterform. This was my first thought, as well, but since the letters scale around a specific point, it means the lofted sides won't all spread out evenly. Instead you get unhelpful overhangs: An OpenSCAD render of the letter "N" with steeply slanted edges that would not print well Instead of a scaled extrusion, we need the base to be a puffed-out offset version of the original letterform. It's not trivial to do that in an automated fashion, especially if there are small holes that will close up (like in the middle of the # character). The method I came up with uses a command-line script to extrude the letter in OpenSCAD and then displace one layer of vertices by their normal vectors. This means the vertex will always be pushed out away from the body of the STL. [pvgm1] [pvgm2] If you look at the underside of each letter, you'll see a that this method leaves a lot of topological scars from attempts to re-mesh this self-intersecting shape. But it turned out to be pretty printable, so I released the project with this approach. [loft_nonma] After seeing the discussion about typeballs on Mastodon, Kris Slyka approached me to suggest using OpenSCAD's minkowski() function. It has a reputation for being agonizingly slow, and trying to generate all the glyphs at once would exhaust my PC's memory, but with the batch-script, one-letter-at-a-time method, it can work! I highly recommend getting a recent build of OpenSCAD nightly; the fast-csg setting makes minkowski() operations so, so much faster. Extra thoughts I put some typeballs on Printables! They are also available on Shapeways (links in the Printables descriptions) if you don't want to print them yourself. To affix the typeball to the typewriter, you will need a bent wire or a small clip such as this one from Dave Hayden. Thank you Dave for encouraging me to pick up the Selectric project again! I had been testing on a not-fully-functional Selectric I, which I think was set to 12 characters per inch. Knowing characters per inch is important for joined/cursive scripts like Mongolian. It would really help if I knew how to change the writing direction, I know some Selectrics had an RTL/LTR switch... Other right-to-left scripts to try: Thaana, N'ko Other typeballs to try: Osage, Tifinagh, various runes, emoji, Avoiuli, um......what else? About How to make your own Selectric Typeballs Resources Readme License BSD-3-Clause license Stars 40 stars Watchers 1 watching Forks 4 forks Report repository Releases No releases published Packages 0 No packages published Languages * Python 74.5% * OpenSCAD 25.5% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time.