source: tags/lgt2433/CUSTOMIZE.txt @ 6565

Revision 6478, 4.5 KB checked in by pmoura, 8 months ago (diff)

Updated the version number to 2.43.3 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.43.3
4
5Copyright (c) 1998-2011 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
14a per-user basis by editing a settings file on the Logtalk user folder
15(whose path is stored on the LOGTALKUSER environment variable; this folder
16can be (re)created by running the "logtalk_user_setup" shell command). The
17default path for the Logtalk user folder is:
18
19    POSIX systems: $HOME/logtalk
20    Windows: My Documents\Logtalk
21
22
231. DEFINING A DEFAULT PROLOG BACK-END COMPILER FOR LOGTALK
24
25Users of POSIX systems may use the "logtalk_backend_select" shell command
26to define an alias, "logtalk", for one of the provided back-end Prolog
27compiler integration scripts.
28
29
302. SETTING LIBRARY PATHS
31
32In Logtalk, a library is simply a directory containing source files. Library
33paths can be declared using a dynamic, multifile predicate. This allows
34compiling and loading of libraries and library files using the library names
35instead of the full library paths.
36
37Inside your Logtalk user folder, you will find a "libpaths" folder containing
38a sample file which, when loaded, defines the library paths for the Logtalk
39standard library and for all the supplied examples. This file may need to be
40edited to match both your Logtalk installation and your Prolog compiler and
41operating-system requirements. For details, see the "libpaths/NOTES.txt" file.
42
43Library paths for your own source files directories are preferably defined in
44your settings file, described next.
45
46
473. CUSTOMIZING LOGTALK SETTINGS
48
49Logtalk interfaces with a specific Prolog compiler using a configuration file
50that can be found on the "configs" folder in the Logtalk installation folder.
51These configuration files define default values of the flags that are used by
52Logtalk when compiling source files (for a full description of these flags,
53consult the "Writing, Running, and Debugging Logtalk Programs" section of the
54User Manual).
55
56You may customize the Logtalk compiler flags by editing the "settings.lgt"
57file in the Logtalk user folder. Settings in this file override the default
58values in the configuration files. Some of the default flag values that you
59may want to change include:
60
61* "startup_message" and "report"
62- for less verbose startup and compilation reports
63* "altdirs", "tmpdir", and "xmldir"
64- to chose where to store temporary compilation files and documenting files
65* "xmldocs", "xslfile", "xmlspec", and "xmlsref"
66- to control the generation of documenting files
67* "portability" and "underscore_variables"
68- essential if you're writing portable Logtalk applications
69* "smart_compilation"
70- for avoiding recompilation of unchanged source files
71
72Be sure to read the "configs/NOTES.txt" file for Prolog specific compatibility
73notes; some back-end Prolog compilers don't support all the possible compilation
74flags values. In addition, some back-end Prolog compilers provide limited or no
75support for settings files.
76
77You may also use the "settings.lgt" file in the Logtalk user folder to define
78your own library paths. See the provided "settings.lgt" file for details.
79
80
814. CUSTOMIZING DOCUMENTATION PROCESSING SCRIPTS AND SUPPORTING FILES
82
83Inside your Logtalk user folder, you will find a "xml" folder containing a
84set of shell scripts, CSS and XSLT style-sheets, and DTD and XML Schema files
85for processing the XML documenting files that are automatically generated
86when you compile source files. You may want to customize the CSS and XSLT
87files to modify the layout or style of the resulting PDF/(X)HTML files or to
88write new scripts and transformations to generate other formats. You may also
89edit the file "custom.ent" in order to specify XML entities for your personal
90data that can be used on Logtalk documenting directives. For details, see the
91"xml/NOTES.txt" file.
92
93
945. ADDING SUPPORT TO TEXT EDITORS FOR EDITING LOGTALK SOURCE FILES
95
96Inside your Logtalk user folder, you will find a "wenv" folder, containing
97configuration files for several text editors, which add support for syntax
98highlighting and other text editing services for Logtalk source files.
99For details, see the "wenv/NOTES.txt" file.
Note: See TracBrowser for help on using the repository browser.