Nauka programowania php
Prosty kurs dla amatorów
XXXII. enchant Functions
Wstęp
Enchant is the PHP binding for the Enchant library. Enchant steps in to provide uniformity and conformity on top of all spelling libraries, and implement certain features that may be lacking in any individual provider library. Everything should "just work" for any and every definition of "just working."
Enchat supports the following backends:
Aspell/Pspell (intends to replace Ispell)
Ispell (old as sin, could be interpreted as a defacto standard)
MySpell/Hunspell (an OOo projects, also used by Mozilla)
Uspell (primarily Yiddish, Hebrew, and Eastern European languages - hosted in AbiWord's CVS under the module "uspell")
Hspell (Hebrew)
AppleSpell (Mac OSX)
Wymagania
This version uses the functions of the Enchant library by Dom Lachowicz. You need Enchant 1.2.4 or later.
Instalacja
Informacje na temat instalacji tego rozszerzenia PECL można znaleźć w podręczniku w rozdziale zatytułowanym Instalacja rozszerzeń PECL. Dodatkowe informacje, takie jak nowe wersje, pliki do pobrania, pliki źródłowe, informacje o opiekunach czy rejestr zmian, można znaleźć tutaj: http://pecl.php.net/package/enchant.
Konfiguracja uruchomieniowa
To rozszerzenie nie definiuje posiada żadnych dyrektyw konfiguracyjnych w pliku php.ini.
Typy zasobów
There are two types of resources in this extension. The first one is the broker (backends manager) and the second is for the dictionary.
Przykłady
- Spis treści
- enchant_broker_describe -- Enumerates the Enchant providers
- enchant_broker_dict_exists -- Wether a dictionary exists or not. Using non-empty tag
- enchant_broker_free_dict -- Free a dictionary resource
- enchant_broker_free -- Free the broker resource and its dictionnaries
- enchant_broker_get_error -- Returns the last error of the broker
- enchant_broker_init -- create a new broker object capable of requesting
- enchant_broker_list_dicts -- Returns a list of available dictionaries
- enchant_broker_request_dict -- create a new dictionary using a tag
- enchant_broker_request_pwl_dict -- creates a dictionary using a PWL file. A PWL file is personal word file one word per line.
- enchant_broker_set_ordering -- Declares a preference of dictionaries to use for the language
- enchant_dict_add_to_personal -- add a word to personal word list
- enchant_dict_add_to_session -- add 'word' to this spell-checking session
- enchant_dict_check -- Check whether a word is correctly spelled or not.
- enchant_dict_describe -- Describes an individual dictionary
- enchant_dict_get_error -- Returns the last error of the current spelling-session
- enchant_dict_is_in_session -- whether or not 'word' exists in this spelling-session
- enchant_dict_quick_check -- Check the word is correctly spelled and provide suggestions
- enchant_dict_store_replacement -- add a correction for a word.
- enchant_dict_suggest -- Will return a list of values if any of those pre-conditions are not met.
| Poprzedni | Spis treści | Następny |
| xptr_new_context | Początek rozdziału | enchant_broker_describe |
Newsy:
Nowości z listy dyskusyjnej
Witam,
Nie potrafiê programowaæ w ¿adnym jêzyku a jest mi potrzebny taki ma³y programik, oto opis:
Wyglada³by mniej wiêcej tak:

I chodzi o to zeby w miejsce A wpisac jak±¶ dowoln± liczbe,
W miejscu B powinna siê od razu pojawiæ liczba [A+(A*0,1)]*1,22 zaokr±glone do czê¶ci setnych,
W miejscu C powinna siê od razu pojawiæ liczba [A+(A*0,2)]*1,22 zaokr±glone do czê¶ci setnych,
W miejscu D powinna siê od razu pojawiæ liczba [A+(A*0,3)]*1,22 zaokr±glone do czê¶ci setnych,
I dzia³a³by w systemie windows.
Mam taki test i co prawa ju¿ go pisa³em ale nie wiem jakie s± dobre odpowiedzi moze kto¶ mi pomo¿e??
http://www.kolejland.rail.pl/iz/Forum%20-%...wania/jipp2.jpg
Moje odpowiedzi to:
1. a
2. abc
3. bc
4. d
5. ad
Plisss bardzo potrzebny nam jest taki program!!!
Witam,
Jak w temacie zlecê napisanie od nowa lub zmodyfikowanie istniej±cej ju¿ wersji programu do obliczania sum md5. Zainteresowanych proszê o kontakt.
Autor strony Polishwords rozwa¿a przej¶cie na model Open Source. Aby u³atwiæ sobie decyzjê umie¶ci³ ankietê, w której mo¿na zag³osowaæ za albo przeciwko przej¶ciu na Open Source. Pomó¿my autorowi!
Strona Polishwords jest przeznaczona dla programistów i ogó³ informatyków. Zawiera filmy instrukta¿owe z programowania i zarz±dzania baz± danych. Autor rozwa¿a obecnie przej¶cie na model Open Source i opublikowanie kodu strony. Chcia³by przez to osi±gn±æ szybszy rozwój strony i zaanga¿owanie wiêkszej liczby programistów PHP.
W umieszczonej ankiecie mo¿na zag³osowaæ czy autor powinien przej¶æ na model Open Source. Pomó¿ podj±æ dobr± decyzjê autorowi.
Wiêcej na: http://polishwords.com.pl/blog/2008/polishwords-open-source/
Jak nie znasz jezyka C++ i wskaznikow i programowania obiektowego
Kurs
Kurs powstał w celu nauki podstawowych zagadnień z dziedziny php.
Losowe tagi:
oopmagicquotes
mhas
semo
pfpro