~ubuntu-branches/ubuntu/karmic/openoffice.org-l10n/karmic

« back to all changes in this revision

Viewing changes to ooo-build/bin/help-font-munge

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-04-27 19:29:22 UTC
  • Revision ID: james.westby@ubuntu.com-20060427192922-2dburxv3b63f8v0u
Tags: 2.0.2-2ubuntu5
* Copy of the openoffice.org source.
  - debian/control.in: Change source name.
  - debian/changelog: Change source name.
  - debian/control: Regenerate control file.
* Add kurdish translations exported from Rosetta (2006-04-18).
* Workaround bad message strings in recently included GSI files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# This does a partial substitution of the really
6
6
# mechanical bits of our fonts in help content.
7
7
 
8
 
    # add URW fonts
9
 
    s/Arial,/Arial,\"Nimbus Sans L\",/g;
10
 
    s/\"Courier New\",/\"Courier New\",\"Nimbus Mono L\",/g;
11
 
    s/\"Times New Roman\",/\"Times New Roman\",\"Nimbus Roman No9 L\",/g;
12
 
 
13
 
    # make sure Albany, Cumberland, and Thorndale are there
14
 
    s/Arial,/Albany,Arial,/g;
15
 
    s/\"Courier New\",/Cumberland,\"Courier New\",/g;
16
 
    s/\"Times New Roman\",/Thorndale,\"Times New Roman\",/g;
17
 
 
18
 
    # make sure that Albany and Arial are preferred over Helvetica
19
 
    s/(Helvetica\,.*)Albany\,/Albany\,$1/;
20
 
    s/(Helvetica\,.*)Arial\,/Arial\,$1/;
21
 
 
22
 
    # add AMT fonts
23
 
    s/Albany,/\"Albany AMT\",Albany,/g;
24
 
    s/Cumberland,/\"Cumberland AMT\",Cumberland,/g;
25
 
    s/Thorndale,/\"Thorndale AMT\",Thorndale,/g;
26
 
 
27
8
    # move Bitstream Vera fonts after better fonts
28
9
    s/\"Bitstream Vera Sans\"\,(.*Albany\,)/$1\"Bitstream Vera Sans\"\,/;
29
10
    s/\"Bitstream Vera Sans\"\,(.*\"Albany AMT\"\,)/$1\"Bitstream Vera Sans\"\,/;
40
21
    s/\"Bitstream Vera Serif\"\,(.*\"Times New Roman\"\,)/$1\"Bitstream Vera Serif\"\,/;
41
22
    s/\"Bitstream Vera Serif\"\,(.*\"Nimbus Roman No9 L\"\,)/$1\"Bitstream Vera Serif\"\,/;
42
23
 
 
24
    # make sure Albany, Cumberland, and Thorndale are there
 
25
    (m/Albany,/)     || s/Arial,/Albany,Arial,/g;
 
26
    (m/Cumberland,/) || s/\"Courier New\",/Cumberland,\"Courier New\",/g;
 
27
    (m/Thorndale,/)  || s/\"Times New Roman\",/Thorndale,\"Times New Roman\",/g;
 
28
 
 
29
    # add AMT fonts
 
30
    (m/\"Albany AMT\",/)     || s/Albany,/\"Albany AMT\",Albany,/g;
 
31
    (m/\"Cumberland AMT\",/) || s/Cumberland,/\"Cumberland AMT\",Cumberland,/g;
 
32
    (m/\"Thorndale AMT\",/)  || s/Thorndale,/\"Thorndale AMT\",Thorndale,/g;
 
33
 
 
34
    # add URW fonts
 
35
    (m/\"Nimbus Sans L\",/)      || s/Arial,/Arial,\"Nimbus Sans L\",/g;
 
36
    (m/\"Nimbus Mono L\",/)      || s/\"Courier New\",/\"Courier New\",\"Nimbus Mono L\",/g;
 
37
    (m/\"Nimbus Roman No9 L\",/) || s/\"Times New Roman\",/\"Times New Roman\",\"Nimbus Roman No9 L\",/g;
 
38
 
43
39
    # prune duplicates
44
40
    s/Albany,(.*)Albany,/Albany,$1/;
45
41
    s/Cumberland,(.*)Cumberland,/Cumberland,$1/;
53
49
    s/\"Nimbus Mono L\",(.*)\"Nimbus Mono L\",/\"Nimbus Mono L\",$1/;
54
50
    s/\"Nimbus Roman No9 L\",(.*)\"Nimbus Roman No9 L\",/\"Nimbus Roman No9 L\",$1/;
55
51
 
 
52
    # sort fonts AMT over Albany... over MS over Nimbus over bitmap
 
53
    s/(Helvetica\,.*)\"Nimbus Sans L\"\,/\"Nimbus Sans L\"\,$1/;
 
54
    s/(\"Nimbus Sans L\"\,.*)Arial\,/Arial\,$1/;
 
55
    s/(Arial\,.*)Albany\,/Albany\,$1/;
 
56
    s/(Albany\,.*)\"Albany AMT\"\,/\"Albany AMT\"\,$1/;
 
57
 
 
58
    s/(Times\,.*)\"Nimbus Roman No9 L\"\,/\"Nimbus Roman No9 L\"\,$1/;
 
59
    s/(\"Nimbus Roman No9 L\"\,.*)\"Times New Roman\"\,/\"Times New Roman\"\,$1/;
 
60
    s/(\"Times New Roman\"\,.*)Thorndale\,/Thorndale\,$1/;
 
61
    s/(Thorndale\,.*)\"Thorndale AMT\"\,/\"Thorndale AMT\"\,$1/;
 
62
 
 
63
    s/(Courier\,.*)\"Nimbus Mono L\"\,/\"Nimbus Mono L\"\,$1/;
 
64
    s/(\"Nimbus Mono L\"\,.*)\"Courier New\"\,/\"Courier New\"\,$1/;
 
65
    s/(\"Courier New\"\,.*)Cumberland\,/Cumberland\,$1/;
 
66
    s/(Cumberland\,.*)\"Cumberland AMT\"\,/\"Cumberland AMT\"\,$1/;
 
67
 
56
68
    # push SansSerif to the end of the list, some Tamil fonts don't
57
69
    # have all ISO-8859-1 characters defined
58
70
    s/sans-serif,(.*);/$1,sans-serif;/;