Debian Codegraph @

importers/ding2tei/todo/parsing.elimination

raw
1 Elimination of certain parts of the input
2 =========================================
3
4 Ex.: "Der Apfel {m} ist grün" -> "Der Apfel ist grün"
5 . not yet decided whether such a case in particular should be handled like
6 this.
7
8 If it is to be done, it remains the question which spacing to keep.
9 ? Remove the spacing preceding the removed element.
10 . Matches the idea of a removed element becoming a neutral element, since
11 spacing is stored as an attribute of the succeding token.
12 . Works fine with commata.
13 . ex.: "Der Apfel {m}, der ..."
14 . This makes sense for removed postfix annotations.
15 . Prefix annotations may be problematic, iff the annotation is not at the
16 very beginning of a unit, i.e. inline.
17 . ex. "..., (grüne) Äpfel"
18 ? I cannot think of a case where this causes a single space being swapped
19 for an empty string.
20 ? Remove the spacing succeding the removed element.
21 . Conversely to the former.
22 ? Just assume a single space.
23 . Usually breaks with commata.