• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /usr/bin/sed -f
2#
3# Copyright (C) 2006 Free Software Foundation, Inc.
4# Written by Bruno Haible <bruno@clisp.org>, 2006.
5#
6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program.  If not, see <https://www.gnu.org/licenses/>.
18#
19#
20# Each line of the form ^...   .* contains the code for a language.
21# The categorization in column 60 should be a space, denoting a living language,
22# or an U.
23# The speakers number in columns 62..69 should be at least a million.
24#
25/^...   ......................................................[ U]..[^ ]/ {
26  h
27  s/^...   \(.*[^ ]\)   .*$/\1./
28  s/ç/@,{c}/g
29  s/´/'/g
30  x
31  s/^\(...\).*/@item \1/
32  G
33  p
34}
35#
36# delete the rest
37#
38d
39