jamesrswift / typst-chem-par

Typst show rules for parsing IUPAC names and chemical formulae
MIT License
22 stars 4 forks source link

the n- in phrase "ten- to twenty-fold" should not be rendered italic #7

Closed tilman-schieber closed 3 weeks ago

tilman-schieber commented 9 months ago

In the sentence

This process requires a ten- to twenty-fold excess of water to suppress the formation of polyethers.

the n in ten- is rendered as italic.

SillyFreak commented 6 months ago

My naive fix would be to make the following change here:

- (exo)|[iompnNO])-
+ (exo)|\b[iompnNO])-

But I don't know enough about nomenclature to ensure this is correct and comprehensive