1 /**
2  * @file   constants.h
3  * @brief  Constants used throughout the program
4  *
5  * Copyright (C) 2009 Gummi Developers
6  * All Rights reserved.
7  *
8  * Permission is hereby granted, free of charge, to any person
9  * obtaining a copy of this software and associated documentation
10  * files (the "Software"), to deal in the Software without
11  * restriction, including without limitation the rights to use,
12  * copy, modify, merge, publish, distribute, sublicense, and/or sell
13  * copies of the Software, and to permit persons to whom the
14  * Software is furnished to do so, subject to the following
15  * conditions:
16  *
17  * The above copyright notice and this permission notice shall be
18  * included in all copies or substantial portions of the Software.
19  *
20  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
22  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
25  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27  * OTHER DEALINGS IN THE SOFTWARE.
28  */
29 
30 #include "utils.h"
31 
32 #ifndef __GUMMI_CONSTANTS_H__
33 #define __GUMMI_CONSTANTS_H__
34 
35 // Gummi defs:
36 #define C_PACKAGE "gummi"
37 #define C_PACKAGE_NAME "Gummi"
38 #define C_PACKAGE_VERSION "0.8.1"
39 #define C_PACKAGE_COMMENTS "Simple LaTeX Editor for GTK+"
40 #define C_PACKAGE_COPYRIGHT "Copyright \xc2\xa9 2009\n\n"\
41                             "Alexander van der Meij\n"\
42                             "Wei-Ning Huang\n"\
43                             "and past contributors"
44 #define C_PACKAGE_URL "https://gummi.app"
45 #define C_PACKAGE_GUIDE "https://github.com/alexandervdm/gummi/wiki"
46 
47 // Project license:
48 #define C_PACKAGE_LICENSE \
49 "Copyright (C) 2009 Gummi Developers\n" \
50 "All Rights reserved.\n" \
51 "\n" \
52 "Permission is hereby granted, free of charge, to any person\n" \
53 "obtaining a copy of this software and associated documentation\n" \
54 "files (the \"Software\"), to deal in the Software without\n" \
55 "restriction, including without limitation the rights to use,\n" \
56 "copy, modify, merge, publish, distribute, sublicense, and/or sell\n" \
57 "copies of the Software, and to permit persons to whom the\n" \
58 "Software is furnished to do so, subject to the following\n" \
59 "conditions:\n" \
60 "\n" \
61 "The above copyright notice and this permission notice shall be\n" \
62 "included in all copies or substantial portions of the Software.\n" \
63 "\n" \
64 "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" \
65 "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n" \
66 "OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n" \
67 "NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n" \
68 "HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n" \
69 "WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n" \
70 "FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n" \
71 "OTHER DEALINGS IN THE SOFTWARE.\n"
72 
73 // Credits:
74 #define C_CREDITS_DEVELOPERS \
75 "Alexander van der Meij", \
76 "Wei-Ning Huang", \
77 "", \
78 "with contributions by:", \
79 "Dion Timmermann", \
80 "Robert Schroll", \
81 "Thomas van der Burgt", \
82 "Cameron Grout", \
83 "Arnaud Loonstra", \
84 "Florian Begusch", \
85 "Daniel Hershcovich", \
86 "bobi32", \
87 "Benny Siegert", \
88 "scarlehoff"
89 
90 #define C_CREDITS_DOCUMENTERS \
91 "Guy Edwards"
92 
93 #define C_CREDITS_TRANSLATORS \
94 "Arabic: Hamad Mohammad\n" \
95 "Brazilian-Portugese: Fernando Cruz, Alexandre Guimarães\n" \
96 "Catalan: Marc Vinyals\n" \
97 "Chinese (Simplified): Mathlab pass\n" \
98 "Chinese (Traditional): Wei-Ning Huang\n" \
99 "Czech: Přemysl Janouch\n" \
100 "Danish: Jack Olsen\n" \
101 "Dutch: Alexander van der Meij\n" \
102 "French: Yvan Duron, Olivier Brousse\n" \
103 "German: Thomas Niederprüm\n" \
104 "Greek: Dimitris Leventeas\n" \
105 "Hungarian: Balázs Meskó\n" \
106 "Italian: Salvatore Vassallo\n" \
107 "Polish: Hubert Kowalski\n" \
108 "Portugese: Alexandre Guimarães\n" \
109 "Romanian: Alexandru-Eugen Ichim\n" \
110 "Russian: Kruvalig, Max Musatov\n" \
111 "Swedish: Kess Vargavind\n" \
112 "Spanish: Carlos Salas Contreras, Francisco Javier Serrador\n"
113 
114 // Default paths:
115 #define C_GUMMI_CONFDIR g_build_path (G_DIR_SEPARATOR_S, g_get_user_config_dir(), "gummi", NULL)
116 #define C_GUMMI_TEMPLATEDIR g_build_path (G_DIR_SEPARATOR_S, C_GUMMI_CONFDIR, "templates", NULL)
117 
118 // Default documents:
119 #define C_WELCOMETEXT g_build_filename (C_GUMMI_CONFDIR, "welcome.tex", NULL)
120 #define C_DEFAULTTEXT g_build_filename (GUMMI_DATA, "misc", "default.tex", NULL)
121 
122 // LaTeX definitions
123 #define C_LATEX "latex"
124 #define C_PDFLATEX "pdflatex"
125 #define C_XELATEX "xelatex"
126 #define C_LUALATEX "lualatex"
127 #define C_RUBBER "rubber"
128 #define C_LATEXMK "latexmk"
129 
130 // Path definitions:
131 #define C_CD_TMPDIR g_strdup_printf ("cd \"%s\"%s%s",C_TMPDIR,C_CMDSEP,C_TEXSEC)
132 #define C_DIRSEP G_DIR_SEPARATOR_S
133 
134 // Platform dependent path definitions:
135 #ifdef WIN32
136     #define C_TMPDIR utils_get_tmp_tmp_dir()
137     #define C_CMDSEP "&&"
138     #define C_TEXSEC ""
139 #else
140     #define C_TMPDIR g_build_path(G_DIR_SEPARATOR_S, g_get_user_cache_dir(), "gummi", NULL)
141     #define C_CMDSEP ";"
142     #define C_TEXSEC "env openout_any=a"
143 #endif
144 
145 #endif /* __GUMMI_CONSTANTS_H__ */
146