PSPELL_ADD_TO_PERSONAL(3) 1 PSPELL_ADD_TO_PERSONAL(3)pspell_add_to_personal - Add the word to a personal wordlistSYNOPSIS
bool pspell_add_to_personal (int $dictionary_link, string $word)
DESCRIPTION pspell_add_to_personal(3) adds a word to the personal wordlist. If you used pspell_new_config(3) with pspell_config_personal(3) to open the
dictionary, you can save the wordlist later with pspell_save_wordlist(3).
PARAMETERS
o $dictionary_link
-
o $word
- The added word.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
pspell_add_to_personal(3)
<?php
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
$pspell_link = pspell_new_config($pspell_config);
pspell_add_to_personal($pspell_link, "Vlad");
pspell_save_wordlist($pspell_link);
?>
NOTES
Note
This function will not work unless you have pspell .11.2 and aspell .32.5 or later.
PHP Documentation Group PSPELL_ADD_TO_PERSONAL(3)
Check Out this Related Man Page
PSPELL_NEW_CONFIG(3) 1 PSPELL_NEW_CONFIG(3)pspell_new_config - Load a new dictionary with settings based on a given configSYNOPSIS
int pspell_new_config (int $config)
DESCRIPTION pspell_new_config(3) opens up a new dictionary with settings specified in a config, created with pspell_config_create(3) and modified with
pspell_config_*(3) functions. This method provides you with the most flexibility and has all the functionality provided by pspell_new(3)
and pspell_new_personal(3).
PARAMETERS
o $config
- The $config parameter is the one returned by pspell_config_create(3) when the config was created.
RETURN VALUES
Returns a dictionary link identifier on success.
EXAMPLES
Example #1
pspell_new_config(3)
<?php
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
pspell_config_repl($pspell_config, "/var/dictionaries/custom.repl");
$pspell_link = pspell_new_config($pspell_config);
?>
PHP Documentation Group PSPELL_NEW_CONFIG(3)
I'm trying to replace the word "core3" with the word "core2" across too many scripts which they all contain that word "core3" (Shell & XML scripts) all at once. Is there easy way with "sed" to do it?
Thanks Folks. (2 Replies)
there are 300 files in a directory , some of these files has a word "error" , I word to change this word to "message" , can advise what can i do ? thx. (5 Replies)
Hi
I want to read a flat file and add a word/value at the end of each line in the file and store the output in a temporary file. How can i do this? Plz help me with this.
Regards,
Saurabh (6 Replies)
Hi All,
I am encountering a problem while removing a string from a file. Actually, i have done this thing before using sed to replace the word but this time word is not specfic. its value is changing with each file.
e.g.
%HD% Serial Number list per DN required. +3... (2 Replies)
i want to create the known game hangman
wordlist=./hangmanword //hangman word is my text file which include words
i use this code to generate a random number corresponding to a word in our file
and works fine calculate and generate a right number
wordline=$( wc -l ${wordlist} | awk '{print... (9 Replies)
Hi,
I want to replace a word in a file which occurs after a particular word.
For example :
$cat file.txt
CASE
WHEN
AND c1 = 'I'
AND c2= '2'
THEN 1
WHEN
AND c1= 'I'
AND c2= '0'
THEN 2
So in this example i want to replace... (4 Replies)
Hello Exprets,
I have a requirement where i have to subtitue a word with another word.
$eachline| sed 's/*$//'
a) $eachline will hold a value a path
for example
user/oracle/Test_admin/myfolder/bakup/part_bkptemp_part_bkp_repeated/list.txt
b)
$eachline| sed 's/*$//'
will give me the... (3 Replies)
Hi
can we grep for a word and print the next word of the greped word?
ex:- create or replace function function_name
create function function_name
we should search for word "function" and output next word "function_name" from both lines. (3 Replies)
Hi all,
When i open a file (*.SUM*), I want the cursor to go to a line having a particular word (: ERROR). and that line should have the first occurrence word(: ERROR) from the beginning of the gvim file(*.SUM*)
Presently iam using the following command in my .gvimrc, but the cursor is going to... (2 Replies)
Hi,
When i open a file (*.SUM*), I want the cursor to go to a line having a particular word (: ERROR). and that line should have the first occurrence word(: ERROR) from the beginning of the gvim file(*.SUM*)
Presently iam using the following command in my .gvimrc, but the cursor is going to the... (4 Replies)
Hi,
var=QSB SBD SDN SGJ SJP SKB SKD SLP SML SNB SRE SRG STP TAJ UMP UNO VKS VND VNS WAH ZRR
I have to put *.sql after every word
What I did
echo $var>/root/file1.sql
sed -i 's/ /*.sql /g' file1.sql
cat file1.sql
Output
QSB*.sql SBD*.sql SDN*.sql SGJ*.sql SJP*.sql SKB*.sql... (9 Replies)
I sux at this type of stuff. I have a huge wordlist. I want to get rid of everything in each word except the letters. I want to remove numbers and all special characters. And since this list was created using cewl I some how picked up something like so Latin characters and would like to remove them... (6 Replies)
Hello there
so i have a txt file containing word like "one two three four plus four five six".
I want to save every word in the file into a variable, and then use that variable to generate real numbers and apply the arithmetic value on them.
example: the txt files becomes 123 + 456 and... (10 Replies)
im trying to find the best way to match an expression using grep.
input file is
<html>word word word word.</a>
<html>word word word word word word .</a>
<html>word word word word word word word word .</a>
<html>word word word word word word word word word word word word word word word word... (4 Replies)