metanorma / metanorma-iso

Metanorma processor for ISO standards
BSD 2-Clause "Simplified" License
14 stars 5 forks source link

Issue with sorting and missing characters inside Symbols list #338

Closed ronaldtse closed 4 years ago

ronaldtse commented 4 years ago
=== Symbols and abbreviated terms

[ stem:[x] ]:: Square brackets are used to enclose IPA phonetic symbols.

{ stem:[x] }:: Curved brackets are used to enclose phoneme symbols and tones of the Jyutping system.

< stem:[x] >:: Angle brackets are used to enclose graphemes as the orthography writes them.

IPA:: International Phonetic Alphabet

LSHK:: The Linguistic Society of Hong Kong

CTL:: Chao Tone Letter

Output (HTML + Word):

Screen Shot 2020-04-04 at 3 15 45 AM

There are 2 bugs here:

If I do:

<stem:[x]>:: Angle brackets are used to enclose graphemes as the orthography writes them.

The first < will not be rendered.

opoudjis commented 4 years ago

Replaced xpath with traverse for generating sortable snippets of symbols, the xpath was clearly generating strange side-effects.

Sortable key needs to exclude brackets.

opoudjis commented 4 years ago

Greek letters also need to appear in correct sort order: they are not being converted correctly (formerly \alpha, now alpha, instead of α).