/
example_lexicon_config.py
37 lines (36 loc) · 2.07 KB
/
example_lexicon_config.py
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
settings = {
"language": "Kovol",
"spreadsheet_name": "/home/steve/Documents/Computing/Python_projects/Lexicon/local_data/Kovol_lexicon.ods",
"verb_spreadsheet": "/home/steve/Documents/Computing/Python_projects/Lexicon/local_data/Kovol_verbs.ods",
# the abs path to the spreadsheet used as a data source
"sheet_name": "Sheet1", # Name of the sheet containing data
"target_folder": "/home/steve/Documents/Computing/Python_projects/Lexicon/local_output",
# the folder the web page should be created in,
"log_file": "/home/steve/Documents/Computing/Python_projects/Lexicon/local_output/Lexicon_error.log",
# the abs path for the log file
# 'sort': 'phonetics', # order dictionary by 'phonetics' or 'orthography'
"bootstrap": "/home/steve/Documents/Computing/Python_projects/Lexicon/stylesheets/",
"jquery": "/home/steve/Documents/Computing/Python_projects/Lexicon/stylesheets/",
"fontawesome": "/home/steve/Documents/Computing/Python_projects/Lexicon/stylesheets/",
# the path to the stylesheet folder
}
spreadsheet_config = {
"id_col": "A", # Column containing id number
"orth_col": "B", # Column containing orthographic text
"phon_col": "C", # Column containing phonetics
"dial_col": "D", # Column containing dialect variant phonetics
"sense_col": "E", # Column containing sense number
"pos_col": "F", # Column containing part of speech
"eng_col": "G", # Column containing English translation
"tpi_col": "H", # Column containing Tok Pisin translation
"def_col": "I", # Column containing a definition
"ex_col": "J", # Column containing example(s)
"trans_col": "K", # Column containing example translation
"date_col": "L", # Column containing entry date
"enter_col": "M", # Column containing team member who entered data
"check_col": "N", # Column containing team member who checked
"syn_col": "O", # Column containing synonyms
"ant_col": "P", # Column containing antonyms
"link_col": "Q", # Column containing links,
"tag_col": "R", # Column containing semantic tags
}