Commit 476335d6dc461eb8d68a1c3c4d992000ff5e5eea
- Diff rendering mode:
- inline
- side by side
conv-specchars
(16 / 3)
|   | |||
| 45 | 45 | # - other capitals should not have been used (no S^, no C^ and no plain capitals); | |
| 46 | 46 | # - more? | |
| 47 | 47 | /\$Date.*\$$/ n # skip the 'preamble' | |
| 48 | /\^/ { | ||
| 49 | w /dev/stderr | ||
| 50 | q 56;} # (mostly GNU sed extensions) | ||
| 48 | 51 | /\^\|\(^\|[^\\]\)[[:upper:]]/ { # [^\\] -- a workaround for grammatical terms, | |
| 49 | 52 | # to escape these restrictions on Latin characters: write them like \Pres, \Gen etc. | |
| 53 | # FIXME: I also use this workaround for filenames, e.g.: \Komi_rus_slovar1.pdf, but | ||
| 54 | # this should be replaced for the sake of universality with smth like | ||
| 55 | # \url{Komi_rus_slovar1.pdf}. | ||
| 50 | 56 | w /dev/stderr | |
| 51 | 57 | q 57;} # (mostly GNU sed extensions) | |
| 52 | 58 | " | |
| 53 | 59 | ||
| 60 | # FIXME: A "keep-going" mode: detect all the non-well-formednesses, and accumulate all | ||
| 61 | # the error codes in the exitCode (say, as bits). | ||
| 62 | |||
| 54 | 63 | exitCode="$?" | |
| 55 | if [[ "$exitCode" == 57 ]]; then | ||
| 56 | echo $"-- error: non well-formed input!" >/dev/stderr | ||
| 57 | fi | ||
| 64 | case "$exitCode" in | ||
| 65 | 56) echo $"-- error: non well-formed input (a left-over '^')!" >/dev/stderr | ||
| 66 | ;; | ||
| 67 | 57) echo $"-- error: non well-formed input (a left-over capital Latin char)!" >/dev/stderr | ||
| 68 | ;; | ||
| 69 | esac | ||
| 58 | 70 | exit "$exitCode" | |
| 59 | 71 | ||
| 72 | # Relevant for Mordvin: | ||
| 60 | 73 | # Check that I have marked softenss? E.g., : | |
| 61 | 74 | # |ti|t'i| |

