I've not much to say on the thermal printer part of this but the extensions they did to markdown are great. They had me double taking for a few seconds thinking they might be real markdown because they make so much sense.
[align=center] Center-align the following text (also left, right)
[qr=https://...] Generate and print a QR code
It’s funny, after all the work that was done to decouple content from presentation, 90% of the markup I’ve seen in every codebase this decade is using Styled Components anyway, which commingles them in the source code anyway.
I think this further proves that the hypothesis of decoupling content from presentation is flawed. The question is how many more data points do we need before we admit that?
Yes, iirc the concept wasn't to decouple content and presentation but to decouple semantics from presentation in order to re-present content in different media in that medium's native representation of a particular semantic. However, many things are not much different in different media, a headline is a headline. And other things like "emphasis" can have cultural differences even within the same media, like being bold, italicized or even double-quotes.
I suppose to a limited extent, that being “articles” in the typical sense, the strategy might be said to have some modicum of success. I’m sure many CMSs store articles as mostly “plain” HTML and regurgitate the same, directly into a part of the final HTML document, with actual normal CSS rules styling that.
Oh man... the popularity of the tailwind css framework. I have big-o Opinions on that, but screw it, if it helps people get things done quickly, then I'm all for it. The semantic xml/html dweebs set us back a solid decade.
Since align is only deprecated and not removed, and Markdown is a superset of HTML (at least for CommonMark and GFM), it would be valid markdown to just use
to center text (not like there's such a thing as invalid Markdown)
I actually use my printers thank you very much. Even bought one of those bank teller slip printer things and a few boxes check-sized slips. I use them for time tracking and todo list.
I didn't go totally crazy, though, and stopped before getting too deep into "...and then OCR them using the check scanner" because I remembered I was already keeping track of start/stop times in a database when printing the slips.
This rules! I've been working on a similar project where friends DM a discord bot and it prints out a "fax" on my thermal printer.
One thing I solved differently: I rendered the fax as an image using PIL and then I just print the image. That way I can support arbitrary Unicode and can lay things out independently of what my printer is capable of.
This comes so timely. I bought the receipt printer last week and a large metal sheet to hold them magnetically to the wall for a real life todo kanban board
I had started working on something similar a few months back but as a collection of CLI utilities.
The first was a todo list printer where the todos are written in a YAML file.
It includes fields for the name of the list and the date.
I also started working on a Sudoku printer (which I think is only possible on 80mm paper).
But I completely forgot about the entire thing after coming back from vacation.
You've inspired be to get back to working on it :D
As an aside, are there any good recommendations for a wifi/bluetooth printer using 80mm paper that doesn't break the bank? I initially bought the Munbyn ITPP098P but it being USB only is a bit unergonomic.
these things seem like too much fun, someone made a gleam printer library (https://hexdocs.pm/escpos/) and suddenly everyone on the discord is buying a printer...
I troubleshoot thermal printers for work and the error is rarely in the hardware. I have no issue with this work request; TPs are deterministic and predictable.
48 comments
I didn't go totally crazy, though, and stopped before getting too deep into "...and then OCR them using the check scanner" because I remembered I was already keeping track of start/stop times in a database when printing the slips.
One thing I solved differently: I rendered the fax as an image using PIL and then I just print the image. That way I can support arbitrary Unicode and can lay things out independently of what my printer is capable of.
Example rendered fax: https://github.com/frizzle-chan/fax.frizzle.lol/blob/main/fa...
[1]: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...
The first was a todo list printer where the todos are written in a YAML file. It includes fields for the name of the list and the date.
I also started working on a Sudoku printer (which I think is only possible on 80mm paper). But I completely forgot about the entire thing after coming back from vacation.
You've inspired be to get back to working on it :D
As an aside, are there any good recommendations for a wifi/bluetooth printer using 80mm paper that doesn't break the bank? I initially bought the Munbyn ITPP098P but it being USB only is a bit unergonomic.
I wanted to setup https://www.colonnes.com but their recommendations were quite expensive.
I just bought one a couple weeks ago actually.
Settings