Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Dec 2014, 23:38
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars ) » Usuarios de habla Hispana
Ciao Prolog and Yap
Moderators: rarsa
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
oui

Joined: 20 May 2005
Posts: 2169
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Tue 08 Jul 2014, 04:24    Post_subject:  Ciao Prolog and Yap
Sub_title: two very good Spanish and Portuguese Prolog software able to run in Puppy
 

Hi

Both are very compact compared with SWI Prolog (Nederlands) and easy to install (Ciao: own depository / Yap: Debian or ubuntu)

Is someone knowing / using it? How to use words with Unicode characters (ñçãõ German ß, Turkish ı , French æ œ) as arguments?

bye
Back to top
View user's profile Send_private_message 
oui

Joined: 20 May 2005
Posts: 2169
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Sun 20 Jul 2014, 16:10    Post_subject:  

Hi

I have a big part of the answer! I did ask the same or somewhat as the same at the blackboard of Ciao Prolog (Ciao invite you to subscribe to that list before you try to download the binaries if you are willing to communicate with the Ciao community),

I did receive today following very interesting answer:

On Fri, Jul 18, 2014 at 3:27 PM, oui wrote:

> Hi
>
> I am searching for exemples for using CIAO Prolog with unicode contents.
>
> Are they possible in atoms and variables or only in variables?
>
>
>
> How to elaborate unicode contents for HTML?
>
>
>
> Is there somewhere a bibliothek online for Proloog applications using both?

Hi,

You can use Unicode characters (UTF-Cool in the code as long as it is
part of a string or a quoted atom. For example, the following code is
valid:

p(Z) :- X = '☆'('☀ ☆ ☂'), Y = '☆'(Z), X=Y.

q(Z) :- X = '☆'("☀ ☆ ☂"), Y = '☆'(Z), X=Y.

It is even possible to define operators:

:- op(100,xfy,'☆').

r(Z,M) :- X = '☀' '☆' '☂', Y = '☆'(Z,M), X=Y.

There are some limitations. First, unquoted characters cannot be used
neither as part of atoms nor variables names. Secnod, there is no
support for Unicode manipulation (unicode strings are represented as
code of 1-byte characters). You may translate the sequence of bytes in
UTF-8 to UTF-32. Ciao does not provide any functionality to do that,
but we may add it if there is interest.

However, if you only need to read and write back Unicode strings
without any manipulation, there should not be many problems.

Bests,

--
Jose
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars ) » Usuarios de habla Hispana
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0393s ][ Queries: 12 (0.0040s) ][ GZIP on ]