Logtalk 2.25.0 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1288 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.24.0
|
||||
Release 2.25.0
|
||||
|
||||
Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@@ -13,8 +13,23 @@ directive, which is fully based on the directive with the same name found
|
||||
on recent development releases of SWI-Prolog. Currently, this example
|
||||
requires Logtalk to be run with the SWI-Prolog compiler.
|
||||
|
||||
The "babel.lgt" source file uses UTF-8 encoding. When browsing its code,
|
||||
be sure to use a text editor that supports this encoding. In addition,
|
||||
you may need to configure your text editor to open the source file using
|
||||
this encoding. If you are using the SWI-Prolog GUI application on Windows,
|
||||
be sure to select a font which supports Unicode characters.
|
||||
The "babel.lgt" source file uses UTF-8 encoding. The "latin.lgt" source
|
||||
file uses ISO-8859-1 (Latin 1) encoding. Be sure to use a text editor that
|
||||
supports these encodings when opening these files. In addition, you may
|
||||
need to configure your text editor to open the source file using the
|
||||
declared encoding. If you are using the SWI-Prolog GUI application on
|
||||
Windows, be sure to select a font which supports Unicode characters.
|
||||
|
||||
Currently, Logtalk accepts any atom is an argument for the encoding/1
|
||||
directive. As, by default, Logtalk automatically generates a XML documenting
|
||||
file for each compiled entity, the following table is used to set the
|
||||
encoding of the XML file:
|
||||
|
||||
Logtalk source file XML file
|
||||
ascii us-ascii
|
||||
iso_latin_1 iso-8859-1
|
||||
unicode_be utf-16
|
||||
unicode_le utf-16
|
||||
utf8 utf-8
|
||||
|
||||
Note that the values on the left column are the ones recognized by SWI-Prolog.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.24.0
|
||||
Release 2.25.0
|
||||
|
||||
Copyright (c) 1998-2005 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@@ -44,3 +44,18 @@ Code = zh
|
||||
Text = '你好世界!'
|
||||
|
||||
Yes
|
||||
|
||||
|
||||
% query the table of names:
|
||||
|
||||
| ?- latin::name(Name).
|
||||
|
||||
Name = 'António Simões' ;
|
||||
|
||||
Name = 'Cátia Conceição' ;
|
||||
|
||||
Name = 'João Raínho' ;
|
||||
|
||||
Name = 'Luís Araújo'
|
||||
|
||||
Yes
|
||||
|
24
Logtalk/examples/encodings/latin.lgt
Normal file
24
Logtalk/examples/encodings/latin.lgt
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
:- encoding(iso_latin_1).
|
||||
|
||||
|
||||
:- object(latin).
|
||||
|
||||
:- info([
|
||||
version is 1.0,
|
||||
author is 'Paulo Moura',
|
||||
date is 2005/04/24,
|
||||
comment is 'Simple test of the encoding/1 directive.']).
|
||||
|
||||
:- public(name/1).
|
||||
:- mode(name(?atom), zero_or_more).
|
||||
:- info(name/1, [
|
||||
comment is 'Table of person names.',
|
||||
argnames is ['Name']]).
|
||||
|
||||
name('Ant<6E>nio Sim<69>es').
|
||||
name('C<>tia Concei<65><69>o').
|
||||
name('Jo<4A>o Ra<52>nho').
|
||||
name('Lu<4C>s Ara<72>jo').
|
||||
|
||||
:- end_object.
|
@@ -1,4 +1,5 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
babel])).
|
||||
babel,
|
||||
latin])).
|
||||
|
Reference in New Issue
Block a user