blob: a0e533f62636a47dc84caec9623cdc6a650d443e (
about) (
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
|
#include "paper.hh"
#include "debug.hh"
#include "lookupsyms.hh"
#include "dimen.hh"
#include "textdb.hh"
Paperdef::Paperdef()
{
linewidth = convert_dimen(15,"cm"); // in cm for now
whole_width= convert_dimen(2,"cm");
lookup_ = new Lookup();
parse();
}
void
Paperdef::parse()
{
Text_db symini("symbol.ini");
while (!symini.eof()) {
Text_record r( symini++);
if (r[0] == "symboltables")
lookup_->parse(symini);
}
}
Paperdef::~Paperdef()
{
delete lookup_;
}
Real
Paperdef::interline() const
{
return lookup_->ball(4).dim.y.length();
}
Real
Paperdef::note_width()const
{
return lookup_->ball(4).dim.x.length( );
}
Real
Paperdef::standard_height() const
{
return convert_dimen(20,"pt");
}
void
Paperdef::print() const
{
#ifndef NPRINT
mtor << "Paper {width: " << print_dimen(linewidth);
mtor << "whole: " << print_dimen(whole_width);
mtor << "out: " <<outfile;
mtor << "}\n";
#endif
}
|