I think the problem is ordering and character-set. $ comes before the number, not after. I'm not sure if the change would be trivial but there are numbers in a number of different places which would all be affected (e.g. balance checks, costs, etc.). The other is that using Flex I didn't have good support for e.g. Unicode encoding at the time (this changes in v3, as it's using Genivia's RE-Flex). Finally, when I wrote v2 I was really focused on simplifying and making everything as uniform as possible and that drove that decision at the time.
On Tue, Mar 23, 2021 at 10:02 AM Justus Pendleton <[email protected]> wrote: > On Sunday, March 21, 2021 at 1:26:56 AM UTC+7 [email protected] wrote: > >> - Any of the A-Z characters are now supported, but they require new >> syntax. >> Before this change, only the PSTCURM characters were supported. >> Now all characters are supported, BUT YOU HAVE TO QUOTE THEM, like this: >> > > Is there a reason beancount can't support non A-Z characters as well or > does that overly complicate the parser? I've always found it slightly > strange that I can't use $, €, or ¥ as a currency. I wonder if any global > exchanges use non A-Z ticker symbols or if everyone just follows ASCII to > keep compatibility with the US. The wikipedia page doesn't have a lot > detail but suggests non-Latin script exchanges often use numbers instead of > letters for tickers: https://en.wikipedia.org/wiki/Ticker_symbol > > -- > You received this message because you are subscribed to the Google Groups > "Beancount" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/e5cd3b91-81bb-4a27-b437-6d93babe739bn%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/e5cd3b91-81bb-4a27-b437-6d93babe739bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhPoFTSayOqS4q2tpjPTnuy7Yf%3DtzHExXpjngMs5kNFg4A%40mail.gmail.com.
