From bc8e0686b7193af36b08e780a0c895ad0083fe85 Mon Sep 17 00:00:00 2001 From: Gert Van den Eyne Date: Thu, 19 Mar 2026 14:28:10 +0100 Subject: [PATCH 1/2] Allow reactions with neutrons and other particles --- src/parse-formula-intermediate-representation.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse-formula-intermediate-representation.typ b/src/parse-formula-intermediate-representation.typ index 3f52e6a..e79b01c 100644 --- a/src/parse-formula-intermediate-representation.typ +++ b/src/parse-formula-intermediate-representation.typ @@ -13,7 +13,7 @@ // 5: count2 6: charge2 // 7: oxidation (^^...) "^(\^\d+)?(_\d+)?" + - "([A-Z][a-z]?)" + + "([A-Za-z][A-Za-zα-ωΑ-Ω]?)" + // suffix #1: count-or-charge (optional) "(?:" + // count: _?digits OR _( ... ) (kept for custom count expr) From ac4aa08650006b6574637bf3c7923dd113f04fc7 Mon Sep 17 00:00:00 2001 From: Gert Van den Eynde Date: Thu, 19 Mar 2026 14:40:43 +0100 Subject: [PATCH 2/2] Update parse-formula-intermediate-representation.typ --- src/parse-formula-intermediate-representation.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse-formula-intermediate-representation.typ b/src/parse-formula-intermediate-representation.typ index e79b01c..4124515 100644 --- a/src/parse-formula-intermediate-representation.typ +++ b/src/parse-formula-intermediate-representation.typ @@ -13,7 +13,7 @@ // 5: count2 6: charge2 // 7: oxidation (^^...) "^(\^\d+)?(_\d+)?" + - "([A-Za-z][A-Za-zα-ωΑ-Ω]?)" + + "([A-Za-zα-ωΑ-Ω][A-Za-z]?)" + // suffix #1: count-or-charge (optional) "(?:" + // count: _?digits OR _( ... ) (kept for custom count expr)