Skip to content

[BUG] Display Greek small letter mu #13667

@covracer

Description

@covracer

Software versions

Python version : 3.12.0 | packaged by conda-forge | (main, Oct 3 2023, 08:36:57) [Clang 15.0.7 ]
IPython version : 8.18.1
Tornado version : 6.3.3
Bokeh version : 3.4.0.dev3+39.g885f01c2.dirty
BokehJS static path : /Users/jessicacovington/prj/bokeh/bokehjs/build
node.js version : v20.9.0
npm version : 10.1.0
jupyter_bokeh version : (not installed)
Operating system : macOS-14.1.1-arm64-arm-64bit

Browser name and version

No response

Jupyter notebook / Jupyter Lab version

No response

Expected behavior

0x03bc Greek small letter mu displayed

Characters which look the same but have different underlying codes (homographs) are problematic. The abbreviation for microvolts is best represented as μV, using the 0x03bc Greek small letter mu, instead of the 0x00b5 Latin Extended micro sign. This aligns with:

Observed behavior

0x00b5 Latin Extended micro sign displayed

Example code

cd ~/prj/ruff
cargo run -p ruff -- check --no-cache --preview --select RUF \
    ~/prj/bokeh/examples/interaction/tools/subcoordinates_zoom.py
cd ~/prj/bokeh
    Finished dev [unoptimized + debuginfo] target(s) in 0.41s
     Running `target/debug/ruff check --preview --select RUF /Users/jessicacovington/prj/bokeh/examples/interaction/tools/subcoordinates_zoom.py --no-cache`
/Users/jessicacovington/prj/bokeh/examples/interaction/tools/subcoordinates_zoom.py:22:23: RUF001 String contains ambiguous `µ` (MICRO SIGN). Did you mean `μ` (GREEK SMALL LETTER MU)?
Found 1 error.

Stack traceback or browser console output

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions