ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_ged2html.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_ged2html extends HFile
8  {
9  public function HFile_ged2html()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // GED2HTML
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("{");
32  $this->unindent = array("}");
33 
34  // String characters and delimiters
35 
36  $this->stringchars = array();
37  $this->delimiters = array("&", "(", ")", "*", "+", ",", "-", ".", "/", ";", "<", "=", ">", "|", "[", "]", "%", "~", " ", "^", " ", " ", "{", "}");
38  $this->escchar = "";
39 
40  // Comment settings
41 
42  $this->linecommenton = array("#");
43  $this->blockcommenton = array("");
44  $this->blockcommentoff = array("");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "define" => "1",
50  "do" => "1",
51  "else" => "1",
52  "elseif" => "1",
53  "end" => "1",
54  "for" => "1",
55  "if" => "1",
56  "in" => "1",
57  "include" => "1",
58  "local" => "1",
59  "print" => "1",
60  "set" => "1",
61  "then" => "1",
62  "to" => "1",
63  "while" => "1",
64  "do_families" => "2",
65  "do_gendex" => "2",
66  "do_index" => "2",
67  "do_individuals" => "2",
68  "do_initialize" => "2",
69  "do_notes" => "2",
70  "do_sources" => "2",
71  "do_surnames" => "2",
72  "abbreviation" => "3",
73  "address" => "3",
74  "adoption" => "3",
75  "afn" => "3",
76  "age" => "3",
77  "agency" => "3",
78  "aliases" => "3",
79  "anci" => "3",
80  "associations" => "3",
81  "attributes" => "3",
82  "author" => "3",
83  "birth" => "3",
84  "caln" => "3",
85  "cause" => "3",
86  "change" => "3",
87  "children" => "3",
88  "conc" => "3",
89  "cont" => "3",
90  "copr" => "3",
91  "data" => "3",
92  "date" => "3",
93  "day" => "3",
94  "death" => "3",
95  "description" => "3",
96  "desi" => "3",
97  "event" => "3",
98  "events" => "3",
99  "exact" => "3",
100  "families" => "3",
101  "family" => "3",
102  "father" => "3",
103  "filename" => "3",
104  "first" => "3",
105  "fullname" => "3",
106  "gedcom" => "3",
107  "husband" => "3",
108  "index" => "3",
109  "isfemale" => "3",
110  "ismale" => "3",
111  "last" => "3",
112  "living" => "3",
113  "lower" => "3",
114  "marriages" => "3",
115  "month" => "3",
116  "mother" => "3",
117  "name" => "3",
118  "names" => "3",
119  "nchildren" => "3",
120  "next" => "3",
121  "note" => "3",
122  "notes" => "3",
123  "number" => "3",
124  "objects" => "3",
125  "ordinances" => "3",
126  "page" => "3",
127  "parent" => "3",
128  "phone" => "3",
129  "place" => "3",
130  "pred" => "3",
131  "prev" => "3",
132  "publication" => "3",
133  "quay" => "3",
134  "refns" => "3",
135  "repository" => "3",
136  "rfn" => "3",
137  "rin" => "3",
138  "serial" => "3",
139  "sources" => "3",
140  "status" => "3",
141  "string" => "3",
142  "submitters" => "3",
143  "succ" => "3",
144  "surname" => "3",
145  "tagcode" => "3",
146  "tagname" => "3",
147  "temple" => "3",
148  "text" => "3",
149  "texts" => "3",
150  "title" => "3",
151  "type" => "3",
152  "upper" => "3",
153  "url" => "3",
154  "value" => "3",
155  "wife" => "3",
156  "xref" => "3",
157  "year" => "3",
158  "HEADER" => "4",
159  "NUMBER_OF_FAMILIES" => "4",
160  "NUMBER_OF_NOTES" => "4",
161  "NUMBER_OF_SOURCES" => "4",
162  "OSTYPE" => "4",
163  "PATH_TO_ROOT" => "4",
164  "PERSONS_URL" => "4",
165  "SURNAMES_URL" => "4",
166  "TODAY" => "4",
167  "VERSION" => "4",
168  "CASE_FOLD_LINKS" => "5",
169  "CHARACTER_SET" => "5",
170  "DESTINATION_DIRECTORY" => "5",
171  "DOS_CODE_PAGE" => "5",
172  "ERROR_FILE" => "5",
173  "FILENAME_TEMPLATE" => "5",
174  "FILES_PER_DIRECTORY" => "5",
175  "GENERATE_GENDEX" => "5",
176  "GENERATE_INDEX" => "5",
177  "GENERATE_INDIVIDUALS" => "5",
178  "GENERATE_NOTES" => "5",
179  "GENERATE_SOURCES" => "5",
180  "INDEX_WIDTH" => "5",
181  "INDIVIDUALS_PER_FILE" => "5",
182  "LANGUAGE" => "5",
183  "LIVING_CUTOFF_YEAR" => "5",
184  "LIVING_IGNORE_DEATH" => "5",
185  "LOCALE" => "5",
186  "NOTES_PER_FILE" => "5",
187  "NUMBER_OF_DIRECTORIES" => "5",
188  "OUTPUT_PROGRAM" => "5",
189  "PEDIGREE_DEPTH" => "5",
190  "SOURCES_PER_FILE" => "5",
191  "STABLE_FILENAMESSURNAME_WIDTH" => "5",
192  "UPPER_CASE_SURNAMES" => "5",
193  "USE_LOCAL_TIME" => "5",
194  "BACKGROUND_COLOR" => "6",
195  "BACKGROUND_IMAGE" => "6",
196  "CONT_MEANS_BREAK" => "6",
197  "FAMILY_GROUPS" => "6",
198  "HOMEPAGE" => "6",
199  "INLINE_NOTES" => "6",
200  "INLINE_SOURCES" => "6",
201  "LINK_COLOR" => "6",
202  "MAILTO" => "6",
203  "NO_ALPHABET_TABS" => "6",
204  "OMIT_META" => "6",
205  "TEXT_COLOR" => "6",
206  "VISITED_COLOR" => "6");
207 
208  // Special extensions
209 
210  // Each category can specify a PHP function that returns an altered
211  // version of the keyword.
212 
213 
214 
215  $this->linkscripts = array(
216  "1" => "donothing",
217  "2" => "donothing",
218  "3" => "donothing",
219  "4" => "donothing",
220  "5" => "donothing",
221  "6" => "donothing");
222  }
223 
224 
225  public function donothing($keywordin)
226  {
227  return $keywordin;
228  }
229  }
$BEAUT_PATH
donothing($keywordin)
Create styles array
The data for the language used.
Definition: HFile.php:21