2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4 ;; MODULE : build-glue-basic.scm
5 ;; DESCRIPTION : Building basic glue
6 ;; COPYRIGHT : (C) 1999 Joris van der Hoeven
8 ;; This software falls under the GNU general public license version 3 or later.
9 ;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
10 ;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
12 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
14 (output-copyright "build-glue-basic.scm")
18 "initialize_glue_basic"
20 (texmacs-version-release texmacs_version (string string))
21 (version-before? version_inf (bool string string))
22 (os-win32? os_win32 (bool))
23 (os-mingw? os_mingw (bool))
24 (os-macos? os_macos (bool))
25 (x-gui? gui_is_x (bool))
26 (qt-gui? gui_is_qt (bool))
27 (tm-output tm_output (void string))
28 (tm-errput tm_errput (void string))
29 (win32-display win32_display (void string))
30 (scheme-dialect scheme_dialect (string))
31 (get-texmacs-path get_texmacs_path (string))
32 (plugin-list plugin_list (scheme_tree))
33 (get-font-type get_font_type (int))
34 (set-font-type set_font_type (void int))
35 (font-exists-in-tt? tt_font_exists (bool string))
36 (eval-system eval_system (string string))
37 (var-eval-system var_eval_system (string string))
38 (get-locale-language get_locale_language (string))
39 (texmacs-time texmacs_time (int))
40 (texmacs-memory mem_used (int))
41 (bench-print bench_print (void string))
42 (bench-print-all bench_print (void))
43 (system-wait system_wait (void string string))
44 (set-bibtex-command set_bibtex_command (void string))
45 (math-symbol-group math_symbol_group (string string))
46 (math-group-members math_group_members (array_string string))
47 (math-symbol-type math_symbol_type (string string))
48 (object->command as_command (command object))
49 (exec-delayed exec_delayed (void object))
50 (exec-delayed-pause exec_delayed_pause (void object))
51 (set-input-language set_input_language (void string))
52 (get-input-language get_input_language (string))
53 (set-output-language gui_set_output_language (void string))
54 (get-output-language get_output_language (string))
55 (translate translate (string string string string))
56 (color named_color (int string))
57 (new-author new_author (double))
58 (set-author set_author (void double))
59 (get-author get_author (double))
60 (debug-set debug_set (void string bool))
61 (debug-get debug_get (bool string))
63 ;; routines for images
64 (image->psdoc image_to_psdoc (string url))
67 (tree->stree tree_to_scheme_tree (scheme_tree tree))
68 (stree->tree scheme_tree_to_tree (tree scheme_tree))
69 (tree->string coerce_tree_string (string tree))
70 (string->tree coerce_string_tree (tree string))
71 (tm->tree tree (tree content))
72 (tree-atomic? is_atomic (bool tree))
73 (tree-compound? is_compound (bool tree))
74 (tree-label L (tree_label tree))
75 (tree-children A (array_tree tree))
76 (tree-arity N (int tree))
77 (tree-child-ref tree_ref (tree tree int))
78 (tree-child-set! tree_set (tree tree int content))
79 (tree-child-insert tree_child_insert (tree content int content))
80 (tree-ip obtain_ip (path tree))
81 (tree-active? tree_active (bool tree))
82 (tree-eq? strong_equal (bool tree tree))
83 (subtree subtree (tree tree path))
84 (tree-range tree_range (tree tree int int))
85 (tree-copy copy (tree tree))
86 (tree-append tree_append (tree tree tree))
87 (tree-right-index right_index (int tree))
88 (tree-label-extension? is_extension (bool tree_label))
89 (tree-multi-paragraph? is_multi_paragraph (bool tree))
90 (tree-simplify simplify_correct (tree tree))
91 (tree-accessible-child? is_accessible_child (bool tree int))
92 (tree-accessible-children accessible_children (array_tree tree))
93 (tree-load-inclusion load_inclusion (tree url))
94 (tree-as-string var_as_string (string tree))
95 (tree-extents tree_extents (tree content))
96 (tree-empty? is_empty (bool content))
98 (tree-assign tree_assign (tree tree content))
99 (tree-var-insert tree_insert (tree tree int content))
100 (tree-remove tree_remove (tree tree int int))
101 (tree-split tree_split (tree tree int int))
102 (tree-join tree_join (tree tree int))
103 (tree-assign-node tree_assign_node (tree tree tree_label))
104 (tree-insert-node tree_insert_node (tree tree int content))
105 (tree-remove-node tree_remove_node (tree tree int))
108 (path-inf? path_inf (bool path path))
109 (path-inf-eq? path_inf_eq (bool path path))
110 (path-less? path_less (bool path path))
111 (path-less-eq? path_less_eq (bool path path))
112 (path-start start (path content path))
113 (path-end end (path content path))
114 (path-next next_valid (path content path))
115 (path-previous previous_valid (path content path))
116 (path-next-word next_word (path content path))
117 (path-previous-word previous_word (path content path))
118 (path-next-node next_node (path content path))
119 (path-previous-node previous_node (path content path))
120 (path-next-tag next_tag (path content path scheme_tree))
121 (path-previous-tag previous_tag (path content path scheme_tree))
122 (path-next-tag-same-argument next_tag_same_argument
123 (path content path scheme_tree))
124 (path-previous-tag-same-argument previous_tag_same_argument
125 (path content path scheme_tree))
126 (path-next-argument next_argument (path content path))
127 (path-previous-argument previous_argument (path content path))
130 (tree->ids get_ids (list_string tree))
131 (id->trees get_trees (list_tree string))
132 (vertex->links get_links (list_tree content))
133 (tree->tree-pointer tree_pointer_new (observer tree))
134 (tree-pointer-detach tree_pointer_delete (void observer))
135 (tree-pointer->tree obtain_tree (tree observer))
136 (current-link-types all_link_types (list_string))
137 (get-locus-rendering get_locus_rendering (string string))
138 (set-locus-rendering set_locus_rendering (void string string))
139 (declare-visited declare_visited (void string))
140 (has-been-visited? has_been_visited (bool string))
142 ;; routines for strings
143 (string-number? is_double (bool string))
144 (string-search-forwards search_forwards (int string int string))
145 (string-search-backwards search_backwards (int string int string))
146 (string-replace replace (string string string string))
147 (string-locase-alpha? is_locase_alpha (bool string))
148 (upcase-first upcase_first (string string))
149 (locase-first locase_first (string string))
150 (upcase-all upcase_all (string string))
151 (locase-all locase_all (string string))
152 (string-union string_union (string string string))
153 (string-minus string_minus (string string string))
154 (string-encode tm_encode (string string))
155 (string-decode tm_decode (string string))
156 (escape-generic escape_generic (string string))
157 (escape-verbatim escape_verbatim (string string))
158 (escape-shell escape_sh (string string))
159 (string-convert convert (string string string string))
160 (utf8->cork utf8_to_cork (string string))
161 (cork->utf8 cork_to_utf8 (string string))
162 (utf8->html utf8_to_html (string string))
163 (tm->xml-name tm_to_xml_name (string string))
164 (old-tm->xml-cdata old_tm_to_xml_cdata (string string))
165 (tm->xml-cdata tm_to_xml_cdata (object string))
166 (xml-name->tm xml_name_to_tm (string string))
167 (old-xml-cdata->tm old_xml_cdata_to_tm (string string))
168 (xml-unspace xml_unspace (string string bool bool))
170 ;; Packrat grammar and parsing tools
171 (define-grammar-rule define_grammar_rule (void tree tree))
172 (grammar-parse grammar_parse (int tree string))
174 ;; further conversion routines for trees and strings
175 (parse-texmacs texmacs_document_to_tree (tree string))
176 (serialize-texmacs tree_to_texmacs (string tree))
177 (parse-texmacs-snippet texmacs_to_tree (tree string))
178 (serialize-texmacs-snippet tree_to_texmacs (string tree))
179 (texmacs->stm tree_to_scheme (string tree))
180 (stm->texmacs scheme_document_to_tree (tree string))
181 (stm-snippet->texmacs scheme_to_tree (tree string))
182 (cpp-texmacs->verbatim tree_to_verbatim (string tree bool string))
183 (cpp-verbatim-snippet->texmacs verbatim_to_tree (tree string bool string))
184 (cpp-verbatim->texmacs verbatim_document_to_tree (tree string bool string))
185 (parse-latex parse_latex (tree string))
186 (parse-latex-document parse_latex_document (tree string))
187 (latex->texmacs latex_to_tree (tree tree))
188 (parse-xml parse_xml (scheme_tree string))
189 (parse-html parse_html (scheme_tree string))
190 (parse-bib parse_bib (tree string))
191 (upgrade-tmml tmml_upgrade (tree scheme_tree))
194 (string->url url (url string))
195 (url url (url string string))
196 (url-system url_system (url string))
197 (url-none url_none (url))
198 (url-any url_wildcard (url))
199 (url-wildcard url_wildcard (url string))
200 (url-parent url_parent (url))
201 (url-append url_concat (url url url))
202 (url-or url_or (url url url))
203 (url->string as_string (string url))
204 (url-none? is_none (bool url))
205 (url-rooted-web? is_rooted_web (bool url))
206 (url-concat? is_concat (bool url))
207 (url-or? is_or (bool url))
208 (url-ref url_ref (url url int))
209 (url-tail tail (url url))
210 (url-suffix suffix (string url))
211 (url-glue glue (url url string))
212 (url-unglue unglue (url url int))
213 (url-relative relative (url url url))
214 (url-expand expand (url url))
215 (url-factor factor (url url))
216 (url-delta delta (url url url))
217 (url-secure? is_secure (bool url))
218 (url-descends? descends (bool url url))
220 (url-complete complete (url url string))
221 (url-resolve resolve (url url string))
222 (url-resolve-in-path resolve_in_path (url url))
223 (url-exists? exists (bool url))
224 (url-exists-in-path? exists_in_path (bool url))
225 (url-exists-in-tex? exists_in_tex (bool url))
226 (url-concretize concretize (string url))
227 (url-materialize materialize (string url string))
228 (url-test? is_of_type (bool url string))
229 (url-regular? is_regular (bool url))
230 (url-directory? is_directory (bool url))
231 (url-link? is_symbolic_link (bool url))
232 (url-newer? is_newer (bool url url))
233 (url-last-modified last_modified (int url))
234 (url-temp url_temp (url))
235 (url-scratch url_scratch (url string string int))
236 (url-scratch? is_scratch (bool url))
237 (string-save string_save (void string url))
238 (string-load string_load (string url))
239 (system-move move (void url url))
240 (system-copy copy (void url url))
241 (system-remove remove (void url))
242 (system-mkdir mkdir (void url))
243 (system-search-score search_score (int url array_string))
244 (system-1 system (void string url))
245 (system-2 system (void string url url))
247 ;; TeXmacs file system
248 (tmfs-set tmfs_set (void string collection))
249 (tmfs-reset tmfs_reset (void string collection))
250 (tmfs-get tmfs_get (collection string))
251 (tmfs-new-save tmfs_save (void string string))
252 (tmfs-new-remove tmfs_remove (void string))
253 (tmfs-new-load tmfs_load (string string))
255 (tmfs-create-ressource tmfs_create_ressource (string))
256 (tmfs-ressource-head tmfs_get_head (string string))
257 (tmfs-ressource-versions tmfs_get_versions (collection string))
258 (tmfs-save-ressource tmfs_save_ressource (void string string properties))
259 (tmfs-load-ressource-file tmfs_load_ressource_file (string string))
260 (tmfs-load-ressource-properties tmfs_load_ressource_properties
263 (tmfs-create-user tmfs_create_user (string string))
264 (tmfs-search-user tmfs_search_user (collection string))
265 (tmfs-set-user tmfs_set_user (void string))
266 (tmfs-get-user tmfs_get_user (string))
267 (tmfs-allows? tmfs_allows (bool string string))
268 (tmfs-set-attributes tmfs_set_attributes (void string properties))
269 (tmfs-get-attributes tmfs_get_attributes (properties string))
270 (tmfs-add-attributes tmfs_add_attributes (void string properties))
271 (tmfs-remove-attributes tmfs_remove_attributes (void string properties))
272 (tmfs-change-attributes tmfs_change_attributes (void string properties))
273 (tmfs-query tmfs_query (solutions properties))
274 (solutions->collection as_collection (collection solutions string))
276 (tmfs-create-file tmfs_create_file (string string string))
277 (tmfs-create-file-in tmfs_create_file (string string string string))
278 (tmfs-search-file tmfs_search_file (collection string))
279 (tmfs-save-file tmfs_save_file (void string string))
280 (tmfs-load-file tmfs_load_file (string string))
281 (tmfs-create-project tmfs_create_project (string string))
282 (tmfs-search-project tmfs_search_project (collection string))
283 (tmfs-get-file-projects tmfs_get_file_projects (collection string))
284 (tmfs-get-project-files tmfs_get_project_files (collection string))
285 (tmfs-create-branch tmfs_create_branch (string string string))
287 (tmfs-set-root tmfs_set_root (void string url))
288 (tmfs-get-root tmfs_get_root (url string))
289 (tmfs-import tmfs_import (void url))
290 (tmfs-export tmfs_export (void url))
292 ;; TeXmacs servers and clients
293 (server-start server_start (void))
294 (server-stop server_stop (void))
295 (server-read server_read (string int))
296 (server-write server_write (void int string))
297 (client-start client_start (void string))
298 (client-stop client_stop (void))
299 (client-read client_read (string))
300 (client-write client_write (void string))
301 (enter-secure-mode enter_secure_mode (void))
303 ;; connections to extern systems
304 (connection-start connection_start (string string string))
305 (connection-status connection_status (int string string))
306 (connection-write-string connection_write (void string string string))
307 (connection-write connection_write (void string string content))
308 (connection-cmd connection_cmd (tree string string string))
309 (connection-eval connection_eval (tree string string content))
310 (connection-interrupt connection_interrupt (void string string))
311 (connection-stop connection_stop (void string string))
314 (widget-hmenu horizontal_menu (widget array_widget))
315 (widget-vmenu vertical_menu (widget array_widget))
316 (widget-tmenu tile_menu (widget array_widget int))
317 (widget-separator menu_separator (widget bool))
318 (widget-menu-group menu_group (widget string string))
319 (widget-pulldown-button pulldown_button (widget widget promise_widget))
320 (widget-pullright-button pullright_button (widget widget promise_widget))
321 (widget-menu-button menu_button (widget widget command string string bool))
322 (widget-balloon balloon_widget (widget widget widget))
323 (widget-empty empty_widget (widget))
324 (widget-text text_widget (widget string int bool string))
325 (widget-xpm xpm_widget (widget url))
326 (widget-box box_widget (widget scheme_tree string int bool bool))
327 (object->promise-widget as_promise_widget (promise_widget object))
329 ;; routines for BibTeX
330 (bib-add-period bib_add_period (scheme_tree scheme_tree))
331 (bib-upcase-first bib_upcase_first (scheme_tree scheme_tree))
332 (bib-locase bib_locase (scheme_tree scheme_tree))
333 (bib-upcase bib_upcase (scheme_tree scheme_tree))
334 (bib-default bib_default (scheme_tree scheme_tree))
335 (bib-purify bib_purify (string scheme_tree))
336 (bib-text-length bib_text_length (int scheme_tree))
337 (bib-prefix bib_prefix (string scheme_tree int))
338 (bib-empty? bib_empty (bool scheme_tree string))
339 (bib-field bib_field (scheme_tree scheme_tree string))
340 (bib-abbreviate bib_abbreviate (scheme_tree scheme_tree scheme_tree scheme_tree))