| ▲ | Overlapping Markup(en.wikipedia.org) | ||||||||||||||||
| 53 points by ripe 14 hours ago | 10 comments | |||||||||||||||||
| ▲ | tannhaeuser 13 hours ago | parent | next [-] | ||||||||||||||||
FIY the Wikipedia article rightfully says SGML CONCUR usage is uncommon, but compared to the stated alternatives for overlapping markup, it's basically the only one that is tolerable to use as actual markup language for use with a text editor. This is what it looks like:
where the third "bla" span is marked up with overlap.Basically, in case you've ever wondered, SGML CONCUR is the only reason that the element name in end-element tags needs to be specified. In strictly nested markup (XML) it always must refer to the most recently opened start-element tag hence it's redundant. SGML actually has "</>" but it didn't make it into XML. | |||||||||||||||||
| ▲ | dejj an hour ago | parent | prev | next [-] | ||||||||||||||||
Multi-paragraph quotation repeats the opening quote in every paragraph, but closes the quote only once.[0] Traffic signs repeat after every intersection, similarly. It's a great help in recovering the "parser state" in my mind. [0]: https://en.wikipedia.org/wiki/Quotation_marks_in_English#Quo... | |||||||||||||||||
| ▲ | frizlab 2 hours ago | parent | prev | next [-] | ||||||||||||||||
Wow I did not know this thing that was a bit hard to implement in my project[0] had a name! Basically you can, with my lib, define the tokens `*` and `_` (or anything else) to resp. make text go bold and italic, and use it as such:
[0] https://github.com/Frizlab/XibLoc (Readme is lacking…) | |||||||||||||||||
| ▲ | bfgeek 5 hours ago | parent | prev | next [-] | ||||||||||||||||
HTML parsing supports some of this, e.g: | |||||||||||||||||
| |||||||||||||||||
| ▲ | jancsika 6 hours ago | parent | prev | next [-] | ||||||||||||||||
Music has a lot of these. A fugue subject may traverse the boundaries between two metric groupings, and between two clear sections of the form. There are also non-contiguous examples. Smack in the middle of Wagner's Tristan und Isolde you hear the final theme that signals they are about to win the main boss battle. Then one of the NPCs screams right before the final chord. The audience instead hears the danger signal and realizes it was a fake boss and there's another two hours of game play. Only when Isolde beats the final boss at the end do we get the final chord. | |||||||||||||||||
| |||||||||||||||||
| ▲ | gegtik 3 hours ago | parent | prev [-] | ||||||||||||||||
Naturally this makes me think of the brilliant Justine Tunney's https://justine.lol/ape.html / https://github.com/jart/cosmopolitan / https://redbean.dev/ | |||||||||||||||||