ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_gedcom.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_gedcom extends HFile{
6  function HFile_gedcom(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Gedcom
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array();
28 $this->unindent = array();
29 
30 // String characters and delimiters
31 
32 $this->stringchars = array("@");
33 $this->delimiters = array(",", "/", "#", " ", "!", ">", "<", " ", ".", "?");
34 $this->escchar = "";
35 
36 // Comment settings
37 
38 $this->linecommenton = array("");
39 $this->blockcommenton = array("");
40 $this->blockcommentoff = array("");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "ABBR" => "1",
46  "ADDR" => "1",
47  "ADR1" => "1",
48  "ADR2" => "1",
49  "ADOP" => "1",
50  "AFN" => "1",
51  "AGE" => "1",
52  "AGNC" => "1",
53  "ALIA" => "1",
54  "ANCE" => "1",
55  "ANCI" => "1",
56  "ANUL" => "1",
57  "ASSO" => "1",
58  "AUTH" => "1",
59  "BAPL" => "1",
60  "BAPM" => "1",
61  "BARM" => "1",
62  "BASM" => "1",
63  "BIRT" => "1",
64  "BLES" => "1",
65  "BLOB" => "1",
66  "BURI" => "1",
67  "CALN" => "1",
68  "CAST" => "1",
69  "CAUS" => "1",
70  "CENS" => "1",
71  "CHAN" => "1",
72  "CHAR" => "1",
73  "CHIL" => "1",
74  "CHR" => "1",
75  "CHRA" => "1",
76  "CITY" => "1",
77  "CONC" => "1",
78  "CONF" => "1",
79  "CONL" => "1",
80  "CONT" => "1",
81  "COPR" => "1",
82  "CORP" => "1",
83  "CREM" => "1",
84  "CTRY" => "1",
85  "DATA" => "1",
86  "DATE" => "1",
87  "DEAT" => "1",
88  "DESC" => "1",
89  "DESI" => "1",
90  "DEST" => "1",
91  "DIV" => "1",
92  "DIVF" => "1",
93  "DSCR" => "1",
94  "EDUC" => "1",
95  "EMIG" => "1",
96  "ENDL" => "1",
97  "ENGA" => "1",
98  "EVEN" => "1",
99  "FAM" => "1",
100  "FAMC" => "1",
101  "FAMF" => "1",
102  "FAMS" => "1",
103  "FCOM" => "1",
104  "FILE" => "1",
105  "FORM" => "1",
106  "GEDC" => "1",
107  "GIVN" => "1",
108  "GRAD" => "1",
109  "HEAD" => "1",
110  "HUSB" => "1",
111  "IDNO" => "1",
112  "IMMI" => "1",
113  "INDI" => "1",
114  "LANG" => "1",
115  "LEGA" => "1",
116  "MARB" => "1",
117  "MARC" => "1",
118  "MARL" => "1",
119  "MARR" => "1",
120  "MARS" => "1",
121  "MEDI" => "1",
122  "NAME" => "1",
123  "NATI" => "1",
124  "NATU" => "1",
125  "NCHI" => "1",
126  "NICK" => "1",
127  "NMR" => "1",
128  "NOTE" => "1",
129  "NPFX" => "1",
130  "NSFX" => "1",
131  "OBJE" => "1",
132  "OCCU" => "1",
133  "ORDI" => "1",
134  "ORDN" => "1",
135  "PAGE" => "1",
136  "PEDI" => "1",
137  "PHON" => "1",
138  "PLAC" => "1",
139  "POST" => "1",
140  "PROB" => "1",
141  "PROP" => "1",
142  "PUBL" => "1",
143  "QUAY" => "1",
144  "REFN" => "1",
145  "RELA" => "1",
146  "RELI" => "1",
147  "REPO" => "1",
148  "RESI" => "1",
149  "RESN" => "1",
150  "RETI" => "1",
151  "RFN" => "1",
152  "RIN" => "1",
153  "ROLE" => "1",
154  "SEX" => "1",
155  "SLGC" => "1",
156  "SLGS" => "1",
157  "SOUR" => "1",
158  "SPFX" => "1",
159  "SSN" => "1",
160  "STAE" => "1",
161  "STAT" => "1",
162  "SUBM" => "1",
163  "SUBN" => "1",
164  "SURN" => "1",
165  "TEMP" => "1",
166  "TEXT" => "1",
167  "TIME" => "1",
168  "TITL" => "1",
169  "TRLR" => "1",
170  "TYPE" => "1",
171  "VERS" => "1",
172  "WIFE" => "1",
173  "WILL" => "1",
174  "APR" => "2",
175  "AUG" => "2",
176  "bmp" => "2",
177  "DEC" => "2",
178  "FEB" => "2",
179  "gif" => "2",
180  "jpeg" => "2",
181  "JAN" => "2",
182  "JUL" => "2",
183  "JUN" => "2",
184  "MAR" => "2",
185  "MAY" => "2",
186  "NOV" => "2",
187  "OCT" => "2",
188  "ole" => "2",
189  "pcx" => "2",
190  "SEP" => "2",
191  "tiff" => "2",
192  "wav" => "2",
193  "adopted" => "3",
194  "birth" => "3",
195  "foster" => "3",
196  "sealing" => "3",
197  "ABT" => "3",
198  "AFT" => "3",
199  "AND" => "3",
200  "BEF" => "3",
201  "BET" => "3",
202  "BIC" => "3",
203  "BOTH" => "3",
204  "CAL" => "3",
205  "CANCELED" => "3",
206  "CHILD" => "3",
207  "CLEARED" => "3",
208  "COMPLETED" => "3",
209  "EST" => "3",
210  "FROM" => "3",
211  "INFANT" => "3",
212  "INT" => "3",
213  "PRE-1970" => "3",
214  "QUALIFIED" => "3",
215  "STILLBORN" => "3",
216  "SUBMITTED" => "3",
217  "TO" => "3",
218  "UNCLEARED" => "3");
219 
220 // Special extensions
221 
222 // Each category can specify a PHP function that returns an altered
223 // version of the keyword.
224 
225 
226 
227 $this->linkscripts = array(
228  "1" => "donothing",
229  "2" => "donothing",
230  "3" => "donothing");
231 }
232 
233 
234 function donothing($keywordin)
235 {
236  return $keywordin;
237 }
238 
239 }?>