kprussing / pandoc-acro

Pandoc filter for managing acronyms
BSD 2-Clause "Simplified" License
9 stars 4 forks source link

Add support for first usage distinctions #5

Closed kprussing closed 3 years ago

kprussing commented 3 years ago

Section 8 of the acro documentation describes how the first or full appearance should be handled.

This is also a chance to resolve the fact that the filter outputs the short form on the second usage if the first usage was explicitly set to long

---
acronyms:
  mwe:
    short: short
    long: long
...
[+mwe]{.long} +mwe

Yields

long long (short)

not

long short
kprussing commented 3 years ago

The merge solves the problem mentioned above, but the real point is to handle the first-style and single options from sections 8 and 9 respectively of the acro documentation. This probably means I need to add an acronyms-options field to the metadata (or possibly nest options under the top level acronyms).