2007-06-12 11:39:47 +01:00
|
|
|
================================================================
|
|
|
|
Logtalk - Open source object-oriented logic programming language
|
2007-11-09 19:05:00 +00:00
|
|
|
Release 2.30.8
|
2006-11-07 18:11:49 +00:00
|
|
|
|
2007-01-10 12:46:10 +00:00
|
|
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
2007-06-12 11:39:47 +01:00
|
|
|
================================================================
|
2006-11-07 18:11:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
This file contains detailed instructions for customizing your Logtalk
|
|
|
|
installation and working environment. Customization is mostly done on
|
|
|
|
a per-user basis by editing files on the Logtalk user folder (whose
|
2006-12-28 13:03:34 +00:00
|
|
|
path is stored on the LOGTALKUSER environment variable; the folder itself
|
|
|
|
can be created by running the "cplgtdirs" shell command).
|
2006-11-07 18:11:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
1. SETTING LIBRARY PATHS
|
|
|
|
|
|
|
|
In Logtalk, a library is simply a directory containing source files. Library
|
|
|
|
paths can be declared using a dynamic predicate. This allows compiling and
|
|
|
|
loading of libraries and library files to be performed without worries about
|
|
|
|
library paths.
|
|
|
|
|
|
|
|
Inside your Logtalk user folder, you will find a "libpaths" folder containing
|
|
|
|
a sample file which, when loaded, defines the library paths for the Logtalk
|
|
|
|
standard library and for all the supplied examples. This file may need to be
|
|
|
|
edited to match both your Logtalk installation and your Prolog compiler and
|
2007-03-28 23:44:31 +01:00
|
|
|
operating-system requirements. For details, see the "libpaths/NOTES.txt" file.
|
2006-11-07 18:11:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
2. CUSTOMIZING PROLOG CONFIGURATION FILES
|
|
|
|
|
|
|
|
Logtalk interfaces with a specific Prolog compiler via a configuration file
|
|
|
|
that can be found on the "configs" folder inside your Logtalk user folder.
|
2007-06-12 11:39:47 +01:00
|
|
|
These configuration files can be customized by changing the default values
|
|
|
|
of the flags that are used by Logtalk when compiling source files. For a
|
|
|
|
full description of these flags, consult the "Running and debugging Logtalk
|
|
|
|
programs" section of the User Manual. Some of the default flags that you may
|
|
|
|
want to change include: "smart_compilation", "startup_message", "altdirs",
|
2007-11-06 01:50:09 +00:00
|
|
|
"tmpdir", "portability", "underscore_variables", and the documentation-related
|
2007-06-12 11:39:47 +01:00
|
|
|
flags ("xmldocs", "xmldir", "xslfile", "xmlspec", and "xmlsref"). Be sure
|
|
|
|
to read the "configs/NOTES.txt" file for Prolog specific notes; some Prolog
|
2007-03-28 23:44:31 +01:00
|
|
|
compilers do not support the whole range of compilation flag values.
|
2006-11-07 18:11:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
3. CUSTOMIZING DOCUMENTATION PROCESSING SCRIPTS AND SUPPORTING FILES
|
|
|
|
|
|
|
|
Inside your Logtalk user folder, you will find a "xml" folder containing a
|
|
|
|
set of shell scripts, CSS and XSLT style-sheets, and DTD and XML Schema files
|
|
|
|
for processing the XML documenting files that are automatically generated
|
|
|
|
when you compile source files. You may want to customize the CSS and XSLT
|
|
|
|
files to modify the layout or style of the resulting PDF/(X)HTML files or to
|
|
|
|
write new scripts and transformations to generate other formats. You may also
|
|
|
|
edit the file "custom.ent" in order to specify XML entities for your personal
|
|
|
|
data that can be used on Logtalk documenting directives. For details, see the
|
2007-03-28 23:44:31 +01:00
|
|
|
"xml/NOTES.txt" file.
|
2006-11-07 18:11:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
4. ADDING SUPPORT FOR EDITING LOGTALK SOURCE FILES TO TEXT EDITORS
|
|
|
|
|
|
|
|
Inside your Logtalk user folder, you will find a "wenv" folder, containing
|
|
|
|
configuration files for several text editors, which add support for syntax
|
2007-03-28 23:44:31 +01:00
|
|
|
highlighting and other text editing services for Logtalk source files.
|
|
|
|
For details, see the "wenv/NOTES.txt" file.
|