Skip to content

Commit 9fa9694

Browse files
author
Steffen Macke
committed
Split README into individual files, include in zips, updated build files.
1 parent 96f68e4 commit 9fa9694

File tree

8 files changed

+140
-110
lines changed

8 files changed

+140
-110
lines changed

Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ SUBDIRS = po samples sheets shapes src
22

33
ACLOCAL_AMFLAGS = -I m4
44

5-
EXTRA_DIST = config.rpath README.Electrical.md
5+
EXTRA_DIST = config.rpath README.md README.Automata.md README.AUTOSAR.md \
6+
README.Electrical.md README.Racks.md

README

-104
This file was deleted.

README.Automata.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
AUTOMATA
2+
========
3+
4+
This package provides basic dia shapes for modelling Automata (/ creating State Transition Diagrams for State Machines).
5+
6+
Copy shapes and sheets directories to your ~/.dia directory and restart Dia to use the shapes.
7+
8+
The shapes provided are as follows:
9+
10+
1. Start State: The initial(/start) state of the automata - marked by a circle with a single arrow pointing into it.
11+
Files: shapes/Automata/startstate.shape, shapes/Automata/sstate.png
12+
13+
2. Final State: The accepting(/final) state - indicated by a double (concentric) circles with the state-label.
14+
Files: shapes/Automata/finalstate.shape, shapes/Automata/fstate.png
15+
16+
3. Intermediate State: Any state which is neither Start nor Final will be an intermediate state - indicated by a single circle with the state label.
17+
Files: shapes/Automata/startstate.shape, shapes/Automata/istate.png
18+
19+
4. Start/Final State: A state which is both initial and accepting - marked by double concentric circles with a single inbound arrow.
20+
21+
Only the nodes in the Transition graph are provided. Use standard Dia arrows to create the transition edges.
22+
Hint: For best results attach the transition symbol to the corresponding connection arrow.
23+
24+
Created by Faconvert sy4p.24.png -alpha on -channel RGBA -fuzz 8% -fill none -draw 'color 0,0 floodfill' sy4p.t.png
25+
raz Shahbazker (faraz shahbazker gmail com)
26+
Edited by Minh, Le Ngoc ([email protected])

README.Racks.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Racks - Dia Shapes for 19" Racks and Rack Equipment
2+
===================================================
3+
4+
Copyright (C) 2008 by Jaroslav Benkovsky, <[email protected]>
5+
Licensed under GNU General Public License (GPL), see file COPYING for details.
6+
7+
These shapes are for drawing schemas of 19" racks, rack accessories and
8+
rack mounted equipment. Only few items are done so far, but you may try
9+
to use shapes from sheets by other authors, notably Central Data Processing sheet
10+
by Leonardo O. Martins.
11+
12+
Latest versions are available at http://www.eowyn.cz/dia
13+
14+
15+
Size and Units
16+
--------------
17+
18+
Dimensions used in the shape files are in decimeters, i.e. 1 == 100mm. All standardized
19+
dimensions are represented (I hope) exactly, with the exception that equipment height is
20+
in exact multiplies of rack unit (0.4445) and the 1/32" gap used to prevent binding
21+
is ignored.
22+
23+
24+
Shapes
25+
------
26+
27+
rack_42u
28+
...
29+
rack_12u - 600mm racks in some common sizes (as offered by Schroff(tm))
30+
31+
equipment_1u
32+
...
33+
equipment_12u - stylised equipment boxes of sizes from 1U to 12U
34+
35+
power_strip_ute_8 - power strip with 8 Type E or Type E+F sockets, the most common in Europe.
36+
power_strip_schuko_8 - power strip with 8 Type F sockets (Germany?)
37+
power_strip_bs_7 - power strip with 7 Type G (British standard) sockets
38+
39+
rack_label_anchors_42u - 42U high measure with anchors for labels etc.
40+
41+
TODO
42+
----
43+
44+
- more rack accessories (patch panels, fiber organizers, shelves, kbd, monitor, ...)
45+
- more power socket types (American, ...)
46+
- some recognizable devices (server, router, switch, ...)
47+
- rails and equipment with holes
48+
- rack door (glass, perforated)
49+
- 800mm racks
50+
- it would be better to generate appropriate rack and equipment sizes instead
51+
52+
53+
Comments are welcome
54+
--------------------
55+
56+
Send your comments, criticism, ideas and patches to <[email protected]>

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
dia-shapes
2+
==========
3+
4+
These are additional shapes for Dia.
5+
6+
More information is available from [dia-installer.de/shapes](http://dia-installer.de/shapes)
7+
8+
The build system allows to package the shapes for use with [Diashapes](http://dia-installer.de/diashapes).
9+
10+
This package was previously named dia-additional-shapes.
11+
12+
Like Dia, this package is licensed under the terms of the [GNU General Public License, version 2](COPYING).
13+
14+
Sheets
15+
------
16+
17+
Detailed information for some of the included sheets:
18+
19+
* [Automata](README.Automata.md)
20+
* [AUTOSAR](README.AUTOSAR.md)
21+
* [Electrical](README.Electrical.md)
22+
* [Racks](README.Racks.md)
23+
24+
25+
Shape processing
26+
----------------
27+
28+
To turn all white pixels in a PNG icon transparent, use ImageMagick:
29+
30+
convert -alpha on -channel RGBA -fuzz 8% -fill none -opaque "#ffffff" \
31+
+repage foo.png foo.png
32+
33+
src/floodfillicon.sh can be used to To floodfill all white areas from the outside.
34+

TODO

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
Split up README for the individual packages and clean up.
21
Don't repeat yourself in Makefiles.
32
Add test target to all Makefiles.

shapes/Automata/Makefile.am

+11-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,19 @@ Automata-zip: $(SHAPES) ../../sheets/Automata.sheet
2222
-(cd ../.. && \
2323
mkdir -p website/Automata/images && \
2424
zip website/Automata/Automata.zip COPYING sheets/Automata.sheet \
25-
shapes/Automata/*.png shapes/Automata/*.shape && \
25+
shapes/Automata/*.png shapes/Automata/*.shape README.$(SHEET).md && \
2626
cp shapes/Automata/*.png website/Automata/images )
2727

28-
all: Automata-zip
28+
all: $(SHEET)-zip
29+
30+
test:
31+
mkdir -p ~/.dia/shapes/$(SHEET)
32+
cp * ~/.dia/shapes/$(SHEET)
33+
cp ../../sheets/$(SHEET).sheet ~/.dia/sheets
34+
35+
clean-test:
36+
-rm ~/.dia/sheets/$(SHEET).sheet
37+
-rm -Rf ~/.dia/shapes/$(SHEET)
2938

3039
clean-local:
3140
-rm ../../website/$(SHEET)/$(SHEET).zip

shapes/Racks/Makefile.am

+11-2
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,19 @@ Racks-zip: $(SHAPES) ../../sheets/Racks.sheet
5656
-(cd ../.. && \
5757
mkdir -p website/Racks/images && \
5858
zip website/Racks/Racks.zip COPYING sheets/Racks.sheet \
59-
shapes/Racks/*.png shapes/Racks/*.shape && \
59+
shapes/Racks/*.png shapes/Racks/*.shape README.Racks.md && \
6060
cp shapes/Racks/*.png website/Racks/images )
6161

6262
all: Racks-zip
6363

64+
test:
65+
mkdir -p ~/.dia/shapes/$(SHEET)
66+
cp * ~/.dia/shapes/$(SHEET)
67+
cp ../../sheets/$(SHEET).sheet ~/.dia/sheets
68+
69+
clean-test:
70+
-rm ~/.dia/sheets/$(SHEET).sheet
71+
-rm -Rf ~/.dia/shapes/$(SHEET)
72+
6473
clean-local:
65-
-rm ../../website/$(SHEET)/$(SHEET).zip
74+
-rm ../../website/$(SHEET)/$(SHEET).zi

0 commit comments

Comments
 (0)