version 2, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
defoma-subst |
|
|
2 |
!!!defoma-subst |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
EXAMPLES |
|
|
8 |
SEE ALSO |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
defoma-subst - Modify a rulefile of Defoma font substitution system. |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__defoma-subst__ [[''options''] __new-rule__ |
|
|
18 |
''rulename [[additional-lines...]''__ |
|
|
19 |
defoma-subst__ [[''options''] __edit-rule__ |
|
|
20 |
''rulename''__ |
|
|
21 |
defoma-subst__ [[''options''] __add-rule__ |
|
|
22 |
''rulename rules...''__ |
|
|
23 |
defoma-subst__ [[''options''] __remove-rule__ |
|
|
24 |
''rulename rules...''__ |
|
|
25 |
defoma-subst check-rule__ ''rulename'' |
|
|
26 |
!!DESCRIPTION |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
__defoma-subst__ is a tool to create/edit a rulefile of |
|
|
30 |
Defoma font substitution system. This system makes a certain |
|
|
31 |
font provide an user-specified id. Rulefile exists in order |
|
|
32 |
not only to specify such ids but also to have more similar |
|
|
33 |
fonts containing same characters substitute for the |
|
|
34 |
id. |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
Following is the form of rulefile. |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
# comment.. |
|
|
41 |
# comment.. |
2 |
perry |
42 |
Helvetica --!GeneralFamily !SansSerif --Shape !NoSerif \ |
1 |
perry |
43 |
Upright --Weight Medium --Charset,* ISO8859-1 |
2 |
perry |
44 |
Helvetica-Bold --!GeneralFamily !SansSerif --Shape !NoSerif \ |
1 |
perry |
45 |
Upright --Weight Medium --Charset,* ISO8859-1 |
|
|
46 |
In this example Helvetica and Helvetica-Bold are need-to-be-substituted ids, and following hints represent information of these two fonts. The asterisk added to Charset hinttype with comma means Charset is required to match. |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
SH COMMANDS |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
__new-rule__ |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
Create a new rulefile ''rulename''.subst-rule under |
|
|
56 |
/etc/defoma. ''additional-lines'' are added to the file |
|
|
57 |
as comments or default rules. Quote each rule or comment |
|
|
58 |
with single or double quotations. |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
__edit-rule__ |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
Edit the rulefile specified by ''rulename''. After |
|
|
65 |
editting, modification is reflected to the related Id cache. |
|
|
66 |
In other words, new ids would be added provided by |
|
|
67 |
substitutive fonts to the Id cache if a rule is added, and |
|
|
68 |
registered ids would be removed from the Id cache if a rule |
|
|
69 |
is removed. |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
__add-rule__ |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
Add one or more rules specified by ''rules'' to the |
|
|
76 |
specified ''rulename''. Quote each rule with single or |
|
|
77 |
double quotations. |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
__remove-rule__ |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
Remove one or more rules specified by ''rules'' from the |
|
|
84 |
specified ''rulename''. Quote each rule with sin- gle or |
|
|
85 |
double quotations. |
|
|
86 |
|
|
|
87 |
|
|
|
88 |
__check-rule__ |
|
|
89 |
|
|
|
90 |
|
|
|
91 |
Check if the rulefile specified by ''rulename'' exists. |
|
|
92 |
It returns zero when the rulefile exists, and non-zero |
|
|
93 |
(actually one) when the rulefile doesn't exist. |
|
|
94 |
!!OPTIONS |
|
|
95 |
|
|
|
96 |
|
|
|
97 |
__-t__ |
|
|
98 |
|
|
|
99 |
|
|
|
100 |
Exit with true value (0) even if error occurs. |
|
|
101 |
|
|
|
102 |
|
|
|
103 |
__-v__ |
|
|
104 |
|
|
|
105 |
|
|
|
106 |
Verbose output. |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
__-d__ |
|
|
110 |
|
|
|
111 |
|
|
|
112 |
More verbose output. |
|
|
113 |
|
|
|
114 |
|
|
|
115 |
__-q__ |
|
|
116 |
|
|
|
117 |
|
|
|
118 |
Quiet output. |
|
|
119 |
!!EXAMPLES |
|
|
120 |
|
|
|
121 |
|
|
|
122 |
1. Create foo.subst-rule with some comments and default |
|
|
123 |
rules. |
|
|
124 |
|
|
|
125 |
|
|
|
126 |
defoma-subst new-rule foo '# This is a comment. ' \ |
|
|
127 |
'# Run defoma-subst edit-rule foo to edit this file.' \ |
2 |
perry |
128 |
'Times-Roman --!GeneralFamily Roman --Charset,* ISO8859-1' \ |
|
|
129 |
'Kanji-H --!GeneralFamily Mincho --Charset,* JISX0208' |
1 |
perry |
130 |
2. Add some rules to foo.subst-rule. |
|
|
131 |
|
|
|
132 |
|
|
|
133 |
defoma-subst add-rule foo \ |
2 |
perry |
134 |
'Times-Roman --!GeneralFamily Roman --Charset,* ISO8859-1' \ |
|
|
135 |
'Kanji-H --!GeneralFamily Mincho --Charset,* JISX0208' \ |
1 |
perry |
136 |
!!SEE ALSO |
|
|
137 |
|
|
|
138 |
|
|
|
139 |
defoma(1). |
|
|
140 |
---- |