Debian Codegraph @

tables/quotation-marks.uti

raw
1 # Copyright (C) 2025 by Bert Frees
2 #
3 # This file is part of liblouis.
4 #
5 # liblouis is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation, either version 2.1 of the
8 # License, or (at your option) any later version.
9 #
10 # liblouis is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with liblouis. If not, see
17 # <http://www.gnu.org/licenses/>.
18 #
19 # Include this table to detect pairs of quotation marks and replace
20 # them with opening and closing variants in the `correct' phase.
21
22 # replace APOSTROPHE with RIGHT SINGLE QUOTATION MARK when it marks the end of a quotation
23
24 noback correct "‘" *#1=2
25 noback correct "’" *#1=0
26 noback correct #1=0`["'"]!$sp "'"#1=1
27 noback correct #1=0_$sp["'"]!$sp "'"#1=1
28 noback correct #1=1_!$sp["'"]$sp "’"#1=0
29 noback correct #1=1_!$sp["'"]~ "’"#1=0
30