BrunoBonacci / mulog

μ/log is a micro-logging library that logs events and data, not words!
https://cljdoc.org/d/com.brunobonacci/mulog/
Apache License 2.0
490 stars 48 forks source link

Character code for `µ` #100

Closed piotr-yuxuan closed 2 years ago

piotr-yuxuan commented 2 years ago

Hello, thank you for this great project. I've noticed something I didn't expect while pasting code from the documentation:

(def µ-as-in-docs \μ)
(def µ-as-from-keyboard \µ)

(= µ-as-in-docs µ-as-from-keyboard) => false
(int µ-as-in-docs) => 956
(int µ-as-from-keyboard) => 181
Code Glyph Decimal Description
U+03BC μ 956 Greek Small Letter Mu
U+00B5 µ 181 Micro sign

I have a mac laptop with some standard layout. When following keyboard chord to type µ I get a micro sign, not a Greek letter. Notwithstanding any holiday plans, I think the micro sign would be more accessible.

BrunoBonacci commented 2 years ago

Thank @piotr-yuxuan,

I didn't know there were two types of μ. I personally meant the Greek Small Letter, so i guess the doc is correct in that respect. However, you are free to use the micro sign, if that suits better to you.

Out of curiosity, what key-chord are you using on the Mac to type the Micro sign?

piotr-yuxuan commented 2 years ago

Ha, I guess it's a benefit of using Emacs key-chord to type this symbol 😅. I just use regular keyboard modifier: m.