JuliaPhysics / JuliaPhysics/Unitful.jl

Option to Output Lowercase `l` Symbol for Liters

Open
#220 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
675
Forks
124
Avg merge
3h 38m
Merged PRs (30d)
1

Description

I would like to be able to switch the output of units to use a lowercase `l` for Liters.

The lowercase `l` is already supported for input (but I cannot seem to find the code for it, only a comment). I suppose I only need to define a new unit, but I would like to know the recommended way and how it would interplay with existing code for accepting `l` so that a) I don't break anything and b) my "implementation" reflects a recommended way to handle this with a view to potentially publishing my code some day.

Hence my questions:
1) Where in the code are `l` handled as input units?
2) What is the recommended way to change output units for `u"l"` from `L` to `l`?
3) Wouldn't this presumeably frequent desire make for a good example for the documentation?

#18 may be related, but that may also be in the eye of the beholder.

Thank you for your help and the very useful package.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the input-unit handling for lowercase `l` and the existing output symbol definition for liters. Review issue #18 for related context and determine how an output preference could interact with current parsing. Done means the recommended implementation path is established, with documentation covering the lowercase-liter example.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.