root/tags/lgt2372/CUSTOMIZE.txt

Revision 5003, 3.9 KB (checked in by pmoura, 9 months ago)

Updated version number to 2.37.2 in preparation for the next stable release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1================================================================
2Logtalk - Open source object-oriented logic programming language
3Release 2.37.2
4
5Copyright (c) 1998-2009 Paulo Moura.        All Rights Reserved.
6Logtalk is free software.  You can redistribute it and/or modify
7it under the terms of the "Artistic License 2.0" as published by
8The Perl Foundation. Consult the "LICENSE.txt" file for details.
9================================================================
10
11
12This file contains detailed instructions for customizing your Logtalk
13installation and working environment. Customization is mostly done on a
14per-user basis by editing configuration files on the Logtalk user folder
15(whose path is stored on the LOGTALKUSER environment variable; this folder
16can be (re)created by running the "cplgtdirs" shell command). The default
17paths for the Logtalk user folder are:
18
19    POSIX systems: $HOME/logtalk
20    Windows: My Documents\Logtalk
21
22
231. SETTING LIBRARY PATHS
24
25In Logtalk, a library is simply a directory containing source files. Library
26paths can be declared using a dynamic predicate. This allows compiling and
27loading of libraries and library files using the library names instead of the
28full library paths.
29
30Inside your Logtalk user folder, you will find a "libpaths" folder containing
31a sample file which, when loaded, defines the library paths for the Logtalk
32standard library and for all the supplied examples. This file may need to be
33edited to match both your Logtalk installation and your Prolog compiler and
34operating-system requirements. For details, see the "libpaths/NOTES.txt" file.
35
36
372. CUSTOMIZING LOGTALK SETTINGS
38
39Logtalk interfaces with a specific Prolog compiler using a configuration file
40that can be found on the "configs" folder in the Logtalk installation folder.
41These configuration files define default values of the flags that are used by
42Logtalk when compiling source files. For a full description of these flags,
43consult the "Writing, Running, and Debugging Logtalk Programs" section of the
44User Manual.
45
46You may customize the Logtalk compiler flags by editing the "settings.lgt"
47file in the Logtalk user folder. Settings in this file override the default
48values in the configuration files. Some of the default flag values that you
49may want to change include:
50
51* "startup_message" and "report"
52- for less verbose startup and compilation reports
53* "altdirs", "tmpdir", and "xmldir"
54- to chose where to store temporary compilation files and documenting files
55* "xmldocs", "xslfile", "xmlspec", and "xmlsref"
56- to control the generation of documenting files
57* "portability" and "underscore_variables"
58- essential if you're writing portable Logtalk applications
59* "smart_compilation"
60- for avoiding recompilation of unchanged source files
61
62Be sure to read the "configs/NOTES.txt" file for Prolog specific compatibility
63notes; some Prolog compilers do not support some of the possible compilation
64flags values.
65
66
673. CUSTOMIZING DOCUMENTATION PROCESSING SCRIPTS AND SUPPORTING FILES
68
69Inside your Logtalk user folder, you will find a "xml" folder containing a
70set of shell scripts, CSS and XSLT style-sheets, and DTD and XML Schema files
71for processing the XML documenting files that are automatically generated
72when you compile source files. You may want to customize the CSS and XSLT
73files to modify the layout or style of the resulting PDF/(X)HTML files or to
74write new scripts and transformations to generate other formats. You may also
75edit the file "custom.ent" in order to specify XML entities for your personal
76data that can be used on Logtalk documenting directives. For details, see the
77"xml/NOTES.txt" file.
78
79
804. ADDING SUPPORT FOR EDITING LOGTALK SOURCE FILES TO TEXT EDITORS
81
82Inside your Logtalk user folder, you will find a "wenv" folder, containing
83configuration files for several text editors, which add support for syntax
84highlighting and other text editing services for Logtalk source files.
85For details, see the "wenv/NOTES.txt" file.
Note: See TracBrowser for help on using the browser.