summaryrefslogtreecommitdiff
path: root/filegraph.dot
blob: 9eccd80e8900631bded7c6af83d727d37cc80315 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
strict digraph luaotfload_files { //looks weird with circo ...
    compound       = true;

//  label          = "Schematic of the files included in Luaotfload.";
//  labelloc       = "b";

    fontsize       = "14.4";
    labelfontname  = "Iwona Medium Regular";
    fontname       = "Iwona Light Regular";
    size           = "21cm";

    rankdir        = LR;
    ranksep  = 0.618;
    nodesep  = 1.618;

    edge [
        arrowhead = onormal,
        fontname  = "Iwona Cond Regular",
        penwidth  = 1.0,
    ];
    node [
        //penwidth = 0.7,
        fontname = "Liberation Mono",
        fontsize = 12,
    ];

/* ····································································
 * file structure
 * ································································· */
    fontdbutil  -> font_names   [label="--update",
                                 style=dashed]

    luaotfload -> otfl_fonts_merged   [label="merged"]
    luaotfload -> merged_lua_libs     [label="unmerged", style=solid]
    luaotfload -> merged_luatex_fonts [label="unmerged", style=solid]
    luaotfload -> merged_context_libs [label="unmerged", style=solid]

    luaotfload -> luaotfload_libs
    luaotfload -> otfl_blacklist_cnf

    otfl_fonts_merged -> merged_lua_libs     [label="merged",
                                              style=dotted,
                                              lhead=cluster_merged]
    otfl_fonts_merged -> merged_luatex_fonts [label="merged",
                                              style=dotted,
                                              lhead=cluster_merged]
    otfl_fonts_merged -> merged_context_libs [label="merged",
                                              style=dotted,
                                              lhead=cluster_merged]

    merged_luatex_fonts -> font_age [label="luatex-fonts-enc.lua",
                                     ltail=cluster_merged]

    fontdbutil -> fontdbutil_diagnostics [label="--diagnose"]

    fontdbutil -> status [label="version information"]

    fontdbutil_diagnostics -> status [constraint=no, label="hash files"]

    merged_luatex_fonts -> characters [label="luaotfload-auxiliary.lua",
                                       ltail=cluster_merged]

    luaotfload_libs -> font_names [label="luaotfload-database.lua"]

    mkstatus    -> status     [label="generates from distribution files",
                               style=dashed]

    mkglyphlist -> font_age     [label="generates from glyphlist.txt",
                                 style=dashed]

    mkcharacters -> characters     [label="generates from Context’s char-def.lua",
                                    style=dashed]

    subgraph { rank = same;
               mkcharacters;
               mkglyphlist;
               mkstatus;
               fontdbutil;
               luaotfload }

/* ····································································
 * main files
 * ································································· */

    fontdbutil        [label  = "luaotfload-tool.lua",
                       shape  = rect,
                       width  = "3.2cm",
                       height = "1.2cm",
                       color  = "#01012222",
                       style  = "filled,rounded",
                       penwidth=2]

    fontdbutil_diagnostics [label  = "luaotfload-diagnostics.lua",
                            shape  = rect,
                            width  = "3.2cm",
                            height = "1.2cm",
                            color  = "#01012222",
                            style  = "filled,rounded",
                            penwidth=2]

    mkstatus          [label  = "mkstatus",
                       shape  = rect,
                       width  = "3.2cm",
                       height = "1.2cm",
                       color  = "#01012222",
                       style  = "filled,rounded",
                       penwidth=2]

    mkglyphlist       [label  = "mkglyphlist",
                       shape  = rect,
                       width  = "3.2cm",
                       height = "1.2cm",
                       color  = "#01012222",
                       style  = "filled,rounded",
                       penwidth=2]

    mkcharacters      [label  = "mkcharacters",
                       shape  = rect,
                       width  = "3.2cm",
                       height = "1.2cm",
                       color  = "#01012222",
                       style  = "filled,rounded",
                       penwidth=2]

    luaotfload        [label  = "luaotfload.lua",
                       shape  = rect,
                       width  = "3.2cm",
                       height = "1.2cm",
                       color  = "#01012222",
                       style  = "filled,rounded",
                       penwidth=2]
    /*
     *otfl_fonts        [label = "luaotfload-fonts.lua",
     *                   shape = rect,
     *                   width  = "3.2cm",
     *                   height = "1.2cm",
     *                   color  = "#01012222",
     *                   style  = "filled,rounded",
     *                   penwidth=2]
     */
    otfl_fonts_merged [label = "luaotfload-fontloader.lua",
                       shape = rect,
                       width  = "3.2cm",
                       height = "1.2cm",
                       color  = "#01012222",
                       style  = "filled,rounded",
                       penwidth=2]

/* ····································································
 * luaotfload files
 * ································································· */

    characters [style      = "filled,dashed",
                shape      = rect,
                width      = "3.2cm",
                fillcolor  = "#01012222",
                color      = grey40,
                style      = "filled,dotted,rounded",
                label      = "luaotfload-characters.lua"]

    font_age [style      = "filled,dashed",
              shape      = rect,
              width      = "3.2cm",
              fillcolor  = "#01012222",
              color      = grey40,
              style      = "filled,dotted,rounded",
              label      = "luaotfload-glyphlist.lua"]

    font_names [style      = "filled,dashed",
                shape      = rect,
                width      = "3.2cm",
                fillcolor  = "#01012222",
                color      = grey40,
                style      = "filled,dotted,rounded",
                label      = "luaotfload-names.lua.gz\nluaotfload-names.luc"]

    status [style      = "filled,dashed",
            shape      = rect,
            width      = "3.2cm",
            fillcolor  = "#01012222",
            color      = grey40,
            style      = "filled,dotted,rounded",
            label      = "luaotfload-status.lua"]

    otfl_blacklist_cnf [style      = "filled,dashed",
                        shape      = rect,
                        width      = "3.2cm",
                        fillcolor  = "#01012222",
                        color      = grey40,
                        style      = "filled,dotted,rounded",
                        label      = "luaotfload-blacklist.cnf"]

    luaotfload_libs [
        shape      = box,
        style      = "filled,rounded",
        color      = "grey90:goldenrod4",
        fontsize   = 10,
        label      = <
            <table cellborder="0" bgcolor="#FFFFFFAA">
                <th> <td colspan="2"> <font point-size="12" face="Iwona Italic">Luaotfload Libraries</font> </td> </th>
                <tr> <td>luaotfload-auxiliary.lua</td>    <td>luaotfload-features.lua</td>    </tr>
                <tr> <td>luaotfload-override.lua</td>     <td>luaotfload-loaders.lua</td>     </tr>
                <tr> <td>luaotfload-database.lua</td>     <td>luaotfload-color.lua</td>       </tr>
                <tr> <td>luaotfload-letterspace.lua</td>                                      </tr>
            </table>
        >,
    ]

/* ····································································
 * merged files
 * ································································· */

   subgraph cluster_merged {
       node [style=filled, color=white];
       style     = "filled,rounded";
       color     = "grey90:dodgerblue4";
       //nodesep   = "3.0";
       rank      = same;
       label     = "Merged Libraries";
       gradientangle=0;
       merged_lua_libs;
       merged_luatex_fonts;
       merged_context_libs;
   }

    otfl_fonts_merged -> merged_lua_libs
    otfl_fonts_merged -> merged_luatex_fonts
    otfl_fonts_merged -> merged_context_libs

    merged_lua_libs [
        shape      = box,
        style      = "filled,rounded",
        color      = "#FFFFFFAA",
        fontsize   = 10,
        label      = <
            <table border="0">
                <th> <td colspan="3"> <font point-size="12" face="Iwona Italic">Lua Libraries from Context</font> </td> </th>
                <tr> <td>l-lua.lua</td>     <td>l-lpeg.lua</td>    <td>l-function.lua</td>  </tr>
                <tr> <td>l-string.lua</td>  <td>l-table.lua</td>   <td>l-io.lua</td>        </tr>
                <tr> <td>l-file.lua</td>    <td>l-boolean.lua</td> <td>l-math.lua</td>      </tr>
                <tr> <td>util-str.lua</td>                                                  </tr>
            </table>
        >,
    ]

    merged_luatex_fonts [
        shape      = box,
        style      = "filled,rounded",
        color      = "#FFFFFFAA",
        fontsize   = 10,
        label      = <
            <table border="0">
                <th> <td colspan="2"> <font point-size="12" face="Iwona Italic">Font Loader (LuaTeX-Fonts)</font> </td> </th>
                <tr> <td>luatex-basics-gen.lua</td> <td>luatex-basics-nod.lua</td> </tr>
                <tr> <td>luatex-fonts-enc.lua</td>  <td>luatex-fonts-syn.lua</td>  </tr>
                <tr> <td>luatex-font-tfm.lua</td>   <td>luatex-font-afm.lua</td>   </tr>
                <tr> <td>luatex-font-afk.lua</td>   <td>luatex-fonts-tfm.lua</td>  </tr>
                <tr> <td>luatex-fonts-chr.lua</td>  <td>luatex-fonts-lua.lua</td>  </tr>
                <tr> <td>luatex-fonts-def.lua</td>  <td>luatex-fonts-ext.lua</td>  </tr>
                <tr> <td>luatex-fonts-cbk.lua</td>                                 </tr>
 
 
 
            </table>
        >,
    ]

    merged_context_libs [
        shape      = box,
        style      = "filled,rounded",
        color      = "#FFFFFFAA",
        fontsize   = 10,
        label      = <
            <table border="0">
                <th> <td colspan="3"> <font point-size="12" face="Iwona Italic"> Font and Node Libraries from Context </font> </td> </th>
                <tr> <td>data-con.lua</td> <td>font-ini.lua</td> <td>font-con.lua</td> </tr>
                <tr> <td>font-cid.lua</td> <td>font-map.lua</td> <td>font-oti.lua</td> </tr>
                <tr> <td>font-otf.lua</td> <td>font-otb.lua</td> <td>node-inj.lua</td> </tr>
                <tr> <td>font-ota.lua</td> <td>font-otn.lua</td> <td>font-def.lua</td> </tr>
            </table>
        >,
    ]
}

// vim:ft=dot:sw=4:ts=4:expandtab