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