ENCHANT_BROKER_REQUEST_DICT(3) 1 ENCHANT_BROKER_REQUEST_DICT(3)enchant_broker_request_dict - create a new dictionary using a tagSYNOPSIS
resource enchant_broker_request_dict (resource $broker, string $tag)
DESCRIPTION
create a new dictionary using tag, the non-empty language tag you wish to request a dictionary for ("en_US", "de_DE", ...)
PARAMETERS
o $broker
- Broker resource
o $tag
- A tag describing the locale, for example en_US, de_DE
RETURN VALUES
Returns a dictionary resource on success or FALSE on failure.
EXAMPLES
Example #1
A enchant_broker_request_dict(3) example
Check if a dictionary exists using enchant_broker_dict_exists(3) and request it.
<?php
$tag = 'en_US';
$broker = enchant_broker_init();
if (enchant_broker_dict_exists($broker,$tag)) {
$dict = enchant_broker_request_dict($r, $tag);
}
?>
SEE ALSO enchant_dict_describe(3), enchant_broker_dict_exists(3), enchant_broker_free_dict(3).
PHP Documentation Group ENCHANT_BROKER_REQUEST_DICT(3)
Check Out this Related Man Page
ENCHANT_BROKER_DESCRIBE(3) 1 ENCHANT_BROKER_DESCRIBE(3)enchant_broker_describe - Enumerates the Enchant providersSYNOPSIS
array enchant_broker_describe (resource $broker)
DESCRIPTION
Enumerates the Enchant providers and tells you some rudimentary information about them. The same info is provided through phpinfo().
PARAMETERS
o $broker
- Broker resource
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
List the backends provided by the given broker
<?php
$r = enchant_broker_init();
$bprovides = enchant_broker_describe($r);
echo "Current broker provides the following backend(s):
";
print_r($bprovides);
?>
The above example will output something similar to:
Current broker provides the following backend(s):
Array
(
[0] => Array
(
[name] => aspell
[desc] => Aspell Provider
[file] => /usr/lib/enchant/libenchant_aspell.so
)
[1] => Array
(
[name] => hspell
[desc] => Hspell Provider
[file] => /usr/lib/enchant/libenchant_hspell.so
)
[2] => Array
(
[name] => ispell
[desc] => Ispell Provider
[file] => /usr/lib/enchant/libenchant_ispell.so
)
[3] => Array
(
[name] => myspell
[desc] => Myspell Provider
[file] => /usr/lib/enchant/libenchant_myspell.so
)
)
PHP Documentation Group ENCHANT_BROKER_DESCRIBE(3)
Hello,
Can you tell me why the last command(echo) in this script does not execute?
In the command line I have to hit control -d to terminate this tag but I dont know how to do it in a shell script.
sqlplus -s <<EOF
connect / as sysdba
select sysdate from dual;
quit;
EOF
echo... (13 Replies)
I need scan through some files, then open the file one by one and scan inside the file using perl to see if it contain a start tag and end tag which the end tag is the mirror image of the start tag, the start tag and end tag only have 5 char. And inside the file there is "http://". It is just a... (5 Replies)
I have a file where in some records are having the <Start> and <End> tag. There is data before the start tag , between the tages and after the End tag. I want to replace everything between the start & end tag with equivalent spaces.
Input File
afsdfaksddfs<start>12678<end>sgdfgdfsf... (6 Replies)
All,
I stuck up for the logic, how to implement the below thing in script.
-Search for <a class="string-array"> line and in next line of search string append with <string>java</string> in a xml file
The problem here is, <a class="string-array"> occurs multiple places in the xml. I just... (13 Replies)
Hi, I'm doing my thesis on the NS3 environment. I need to integrate it with mqtt. Mqtt provides a (mosquitto) broker / server, and it expects to have clients connect to it. A client could be a publisher (publishes data on the broker) or a subscriber (receives data from the broker it has subscribed... (4 Replies)
Does anybody know how i can remove string from <a> tag?
There are several hundred posts in a few forums that need to be cleaned up.
The precise situation is
----------
<a href="http://mydomain.com/cgi-bin/anyboard.cgi?fvp=/family/sexuality_and_spirituality/&cmd=rA&cG=43">
-------------
my... (6 Replies)
i have a text file consists of different file names like:
line 1: lib/libIMb.so message broker file
line 2: lil/imbdfg.lil message broker file
i need to extract libIMb.so and imbdfg.lil files from those lines and save them in a variable. so that i can search for... (9 Replies)
Hi
I am new to string extractions in shell script... I am trying to extract a string such as #1753 from html tag looks like below.
<a class="model-link tl-tr" href="lastSuccessfulBuild/">Last successful build (#1753), 40 min ago</a>
and want the value as
1753
Could someone help me to... (3 Replies)
I want to print from <fruits> to </fruits> tag which have <fruit> as mango. Also i want both <fruits> and </fruits> in output. Please help
eg.
<fruits>
<fruit id="111">mango<fruit>
.
another 20 lines
.
</fruits> (3 Replies)
Upon doing an lslpp -L | grep ssh I notice the following package is missing:
openssh\.msg\.en_US - Open Secure Shell Messages
I would like to know what exactly does this package do, and is it needed.
It does not appear to be necessary as I can connect to my AIX boxes just fine without it.
... (4 Replies)
Hi Guys
Here is my Input :
<?xml version="1.0" encoding="UTF-8"?>
<xn:MeContext id="01736">
<xn:VsDataContainer id="01736">
<xn:attributes>
<xn:vsDataType>vsDataMeContext</xn:vsDataType>
... (12 Replies)
I want to basically do the below thing. Suppose there is a tag called object1. I want to display an output for all similar tag values under heading of Object 1 and the count of the xmls. Please help
File:
<xml><object1>house</object1><object2>child</object2>... (9 Replies)
Hi All,
I am having a file like below. The file will having information about the records.If you see the file the file is header and data. For example it have 1 men tag and the tag id will be come after headers. The change is I want to convert All pets tag from P to X. I did a sed like below... (5 Replies)
Hi wisecracker,
Thank you for posting this.
Reference: Q: Is SQRT(n) possible in a POSIX...
I think I will create a new tag for these kind of "tutorials" or "fun projects" similar to the "solved" tag which changes the color to blue; but the "member_project" tag would turn the color to... (14 Replies)