![]() | Multilingual Support
![]() |
Jpgfdraw's file format is an ASCII format written primarily to assist file format conversion.
The current AJR file format version is 1.3.
If you use the uk.ac.uea.cmp.nlct.jdr package, you can load and save an
file using the AJR.load()
and AJR.save()
methods. Notes:
" SansSeri"
.
The only exceptions are strings that are guaranteed never to
contain spaces (such as the file type identifier AJR
and paper size textual identifiers.)
9 SansSerifto
11 Lucida Sans
The AJR file format is as follows:
AJR
followed by white
space and the version. For example:
AJR 1.1indicates the version 1.1 format.
If a 2 is found, it should be followed by the paper size (see below), otherwise if a 1 is found, all the settings information must follow:
AJR1.0-1.2 |
---|
The paper size is specified by: <id> [<w> <h> <orient>] The paper size is indicated by an integer <id> which must be in the range 0 to 18. The corresponding paper sizes are listed in Table A.2. The width <w>, height <h> and orientation <orient> should only be present when <id> is 18. The orientation is indicated by 0 (portrait) or 1 (landscape). |
AJR1.0-1.2 |
AJR1.3 onwards |
---|
The paper size is specified by: <id> [<w> <h>] The paper identifier <id> may be either an integer in the range 0 to 72 or a string. Tables A.2 and A.3 list the paper sizes that correspond to an integer <id>. Table 3.1 indicate the allowed values where <id> is a string. The width <w> and height <h> should only be present when <id> is 18 or is the string "user". |
AJR1.3 onwards |
AJR 1.2 1 0 1 1 0 10 14 3 100 10indicates: AJR v1.2 file (first line), all settings provided (1), don't show the grid (0), lock the grid (1), show rulers (1), select tool (0), the normal font size is 10 (10), A5 landscape (14), use PostScript points in the rulers and grid (3), with each major division of width 100bp with 10 subdivisions.
AJR 1.3 2 a4rindicates: AJR v1.3 file (first line), only the paper size is specified (2), A4 landscape paper (a4r)
AJR 1.3 2 user 3in 4inindicates: AJR v1.3 file (first line), only the paper size is specified (2), the paper size is a custom size with width 3 inches and height 4 inches.
Each has the following format:
AJR1.0 & 1.1 |
---|
<id-char> <object-specs> <fflag> [<flowframe-specs>] |
AJR1.0 & 1.1 |
AJR1.2 onwards |
---|
<id-char> <object-specs> <fflag> [<flowframe-specs>] <description-specs> |
AJR1.2 onwards |
The object specifications <object-specs> vary according to the object type and are described below. <fflag> must be either 1 or 0 indicating whether or not this object has flowframe data associated with it. If 1, then the flowframe specifications <flowframe-specs> should follow (see below), otherwise <flowframe-specs> should be omitted. Note that AJR version 1.2 onwards contains <description-specs>, which was omitted in earlier versions.
AJR1.0-1.2 |
---|
<line colur> <fill color> <line style> O|C <n> <segment data>+ |
AJR1.0-1.2 |
AJR1.3 onwards |
---|
<line color> <fill color> <line style> O|C <n> <start point> <segment data>+ |
AJR1.3 onwards |
AJR1.0 |
---|
<linewidth> <dash> <cap> <join> [<miter-limit>] <winding> <start arrow> <end arrow> |
AJR1.0 |
AJR1.1 onwards |
---|
<linewidth> <dash> <cap> <join> [<miter-limit>] <winding> <start arrow> <mid marker> <end arrow> |
AJR1.1 onwards |
AJR1.0 |
---|
<id> [<size> <is double> <is reversed>]
where <id> is an integer identifying the arrow type. This may be one of: 0 (none), 1 (pointed), 2 (triangle), 3 (circle), 4 (diamond), 5 (square), 6 (bar) or 7 (single). <size> is a number representing the arrow size. (Some arrows only have a fixed size, but a size must still be present.) <is double> is an integer indicating whether the arrow head is a double arrow (2) or a single arrow (1). <is reversed> indicates whether the arrow head has been reversed, and should be either 1 (reversed) or 0 (not reversed). The values <size> <is double> <is reversed> are omitted if <id> equals 0 (no arrow head). |
AJR1.0 |
AJR1.1-1.3 |
---|
<id> [<marker data> ]
where <id> is an integer identifying the marker type. If <id> is 0, then <marker data> should be omitted, otherwise it should be present. Valid <id> values are listed in Table A.5.
The <marker data> is stored as follows:
|
AJR1.1-1.3 |
AJR1.4 |
---|
<id> [<marker data> ]
where <id> is an integer identifying the marker type. If <id> is 0, then <marker data> should be omitted, otherwise it should be present. Valid <id> values are listed in Table A.5 and Table A.6.
The <marker data> is stored as follows:
|
AJR1.4 |
AJR1.0-1.2 |
---|
<c0x> <c0y> <c1x> <c1y> <c2x> <c2y> <c3x> <c3y> |
AJR1.0-1.2 |
AJR1.3 onwards |
---|
<c1x> <c1y> <c2x> <c2y> <c3x> <c3y> |
AJR1.3 onwards |
AJR1.0-1.2 |
---|
<x0> <y0> <x1> <y1> |
AJR1.0-1.2 |
AJR1.3 onwards |
---|
<x1> <y1> |
AJR1.3 onwards |
<imgcmd-length> is an integer indicating the number of characters in <imgcmd>, where <imgcmd> is a string containing the LaTeX command name to include the bitmap (e.g. \pgfimage.) If <imgcmd-length> is 0, <imgcmd> is omitted.
![]() | Multilingual Support
![]() |