Did you know ... | Search Documentation: |
Pack logtalk -- logtalk-3.86.0/examples/encodings/SCRIPT.txt |
This file is part of Logtalk https://logtalk.org/ SPDX-FileCopyrightText: 1998-2023 Paulo Moura <pmoura@logtalk.org> SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
% start by loading the example:
| ?- logtalk_load(encodings(loader))
.
...
% query the table of "Hello world!" messages:
| ?- babel::hello_world(Code, Text)
.
Code = el Text = 'ÎειάÏÎ¿Ï ÎºÏÏμοÏ!' ;
Code = en Text = 'Hello world!' ;
Code = es Text = '¡Hola mundo!' ;
Code = ja Text = 'ããã«ã¡ã¯ä¸ç!' ;
Code = ko Text = 'ì¬ë³´ì¸ì ì¸ê³!' ;
Code = nl Text = 'Hallo wereld!' ;
Code = pt Text = 'Olá mundo!' ;
Code = ru Text = 'ÐдÑавÑÑвÑлÑе! миÑ!' ;
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
% query the table of countries:
| ?- asian::country(Country, Name, Capital)
.
Name = 'ä¸å½' Capital = 'å京' Country = china ;
Name = 'æ¥æ¬' Capital = 'æ±äº¬' Country = japan ;
Name = 'Ðонгол УлÑ' Capital = 'УлаанбаÑааÑ' Country = mongolia ? ;
Name = 'èºç£' Capital = 'èºå' Country = taiwan ;
Name = 'ТоҷикиÑÑон' Capital = 'ÐÑÑанбе' Country = tajikistan
Yes
% query the table of greek mythology divinities:
| ?- mythology::divinity(English, Greek)
.
Greek = 'ÎÏα'
English = hera ? ;
Greek = 'ÎÎ±Î»Ï ÏÏ' English = kalypso ? ;
Greek = 'ÎοÏÏÎµÏ Ï' English = morpheus ? ;
Greek = 'ΠοÏειδÏν' English = poseidon ? ;
Greek = 'ÎÎµÏ Ï' English = zeus
Yes