summaryrefslogtreecommitdiff
path: root/src/zope/i18n/locales/data/transforms/Any-Publishing.xml
blob: f11a28cf0f81dccd3d80d8958cab1d19efb5d83f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE supplementalData SYSTEM "http://www.unicode.org/cldr/dtd/1.5/ldmlSupplemental.dtd">
<supplementalData>
	<transforms>
		<transform source="Any" target="Publishing" direction="both">
			<comment># Test case</comment>
			<comment># &quot;The&quot; &quot;(quick)&quot; ('brown') `fox' ` jumped --     &quot;over?&quot;</comment>
			<comment># Variables</comment>
			<tRule>$single = \' ;</tRule>
			<tRule>$space = ' ' ;</tRule>
			<tRule>$double = \&quot; ;</tRule>
			<tRule>$back = \` ;</tRule>
			<tRule>$tab = '\u0008' ;</tRule>
			<tRule>$makeRight = [[:Z:][:Ps:][:Pi:]$] ;</tRule>
			<comment># fix UNIX quotes</comment>
			<tRule>$back $back → “ ;</tRule>
			<tRule>$back → ‘ ;</tRule>
			<comment># fix typewriter quotes, by context</comment>
			<tRule>$makeRight {$double} ↔ “ ;</tRule>
			<tRule>$double ↔ ” ;</tRule>
			<tRule>$makeRight {$single} ↔ ‘ ;</tRule>
			<tRule>$single ↔ ’;</tRule>
			<comment># fix multiple spaces and hyphens</comment>
			<tRule>$space {$space} → ;</tRule>
			<tRule>'--' ↔ — ;</tRule>
		</transform>
	</transforms>
</supplementalData>