From 795185608f02594d52756e269539513f87238966 Mon Sep 17 00:00:00 2001 From: triallax Date: Thu, 26 Sep 2024 09:49:56 +0100 Subject: [PATCH] Add lowercase alias for EUR Missed in https://github.com/sharkdp/numbat/pull/571 --- book/src/list-units.md | 2 +- numbat/modules/units/currency.nbt | 2 +- numbat/src/lib.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/book/src/list-units.md b/book/src/list-units.md index e3210c36..e0d81319 100644 --- a/book/src/list-units.md +++ b/book/src/list-units.md @@ -130,7 +130,7 @@ and — where sensible — units allow for [binary prefixes](https://en.wikipedi | `Money` | [Czech koruna](https://en.wikipedia.org/wiki/Czech_koruna) | `czech_koruna`, `czech_korunas`, `CZK`, `czk`, `Kč` | | `Money` | [Danish krone](https://en.wikipedia.org/wiki/Danish_krone) | `danish_krone`, `danish_kroner`, `DKK`, `dkk` | | `Money` | [US dollar](https://en.wikipedia.org/wiki/United_States_dollar) | `$`, `dollar`, `dollars`, `USD`, `usd` | -| `Money` | [Euro](https://en.wikipedia.org/wiki/Euro) | `EUR`, `euro`, `euros`, `€` | +| `Money` | [Euro](https://en.wikipedia.org/wiki/Euro) | `EUR`, `eur`, `euro`, `euros`, `€` | | `Money` | [Hong Kong dollar](https://en.wikipedia.org/wiki/Hong_Kong_dollar) | `HK$`, `hk$`, `HKD`, `hkd`, `hong_kong_dollar`, `hong_kong_dollars` | | `Money` | [Hungarian forint](https://en.wikipedia.org/wiki/Hungarian_forint) | `Ft`, `HUF`, `huf`, `hungarian_forint`, `hungarian_forints` | | `Money` | [Icelandic króna](https://en.wikipedia.org/wiki/Icelandic_króna) | `icelandic_krona`, `icelandic_kronur`, `icelandic_króna`, `icelandic_krónur`, `ISK`, `isk` | diff --git a/numbat/modules/units/currency.nbt b/numbat/modules/units/currency.nbt index acc9f347..88ae12e7 100644 --- a/numbat/modules/units/currency.nbt +++ b/numbat/modules/units/currency.nbt @@ -3,7 +3,7 @@ dimension Money @name("Euro") @url("https://en.wikipedia.org/wiki/Euro") -@aliases(euros, EUR, €: short) +@aliases(euros, EUR, eur, €: short) unit euro: Money # See currencies.nbt for non-Euro currencies diff --git a/numbat/src/lib.rs b/numbat/src/lib.rs index e4dbc398..f0ed51df 100644 --- a/numbat/src/lib.rs +++ b/numbat/src/lib.rs @@ -635,6 +635,7 @@ impl Context { "renminbi", "元", "EUR", + "eur", "euro", "euros", "€",