3 # make-Rproto -- script for creating an R.proto file
5 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
6 # Written by Werner Lemberg <wl@gnu.org>
8 # This file is part of groff.
10 # groff is free software; you can redistribute it and/or modify it under
11 # the terms of the GNU General Public License as published by the Free
12 # Software Foundation, either version 3 of the License, or (at your
13 # option) any later version.
15 # groff is distributed in the hope that it will be useful, but WITHOUT
16 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 # You should have received a copy of the GNU General Public License
21 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 # make-Rproto R.proto.in < uniuni.cpp > R.proto
28 # 'R.proto.in' contains the device specific part of the R.proto file; it
29 # should end with a line containing the word 'charset'.
31 # 'uniuni.cpp' is located in directory 'src/libs/libgroff'.
35 if test $# -ne 1; then
36 echo "usage: $0 R.proto.in < uniuni.cpp > R.proto"
43 # Extract composite characters.
44 grep '^ { ".*", ".*_.*" },' \
45 | sed 's/ { "\(.*\)", ".\(.*\)" },/u\2 24 0 0x\1/'