File: boldquot.sed

package info (click to toggle)
dpkg 1.23.7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 59,240 kB
  • sloc: ansic: 40,221; perl: 30,884; sh: 18,742; cpp: 6,054; makefile: 5,227; sed: 127
file content (21 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (43)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Sed script that converts quotations, by replacing ASCII quotation marks
# with Unicode quotation marks and highlighting the quotations in bold face.
#
# Copyright (C) 2001 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This file is offered as-is, without any warranty.
#
# Written by Bruno Haible <bruno@clisp.org>, 2001.
#
s/"\([^"]*\)"/“\1”/g
s/`\([^`']*\)'/‘\1’/g
s/ '\([^`']*\)' / ‘\1’ /g
s/ '\([^`']*\)'$/ ‘\1’/g
s/^'\([^`']*\)' /‘\1’ /g
s/“”/""/g
s/“/“/g
s/”/”/g
s/‘/‘/g
s/’/’/g