PSPELL_CONFIG_SAVE_REPL(3) 1 PSPELL_CONFIG_SAVE_REPL(3)pspell_config_save_repl - Determine whether to save a replacement pairs list along with the wordlistSYNOPSIS
bool pspell_config_save_repl (int $dictionary_link, bool $flag)
DESCRIPTION pspell_config_save_repl(3) determines whether pspell_save_wordlist(3) will save the replacement pairs along with the wordlist. Usually
there is no need to use this function because if pspell_config_repl(3) is used, the replacement pairs will be saved by
pspell_save_wordlist(3) anyway, and if it is not, the replacement pairs will not be saved.
pspell_config_save_repl(3) should be used on a config before calling pspell_new_config(3).
PARAMETERS
o $dictionary_link
-
o $flag
- TRUE if replacement pairs should be saved, FALSE otherwise.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
NOTES
Note
This function will not work unless you have pspell .11.2 and aspell .32.5 or later.
PHP Documentation Group PSPELL_CONFIG_SAVE_REPL(3)
Check Out this Related Man Page
PSPELL_CONFIG_REPL(3) 1 PSPELL_CONFIG_REPL(3)pspell_config_repl - Set a file that contains replacement pairsSYNOPSIS
bool pspell_config_repl (int $dictionary_link, string $file)
DESCRIPTION
Set a file that contains replacement pairs.
The replacement pairs improve the quality of the spellchecker. When a word is misspelled, and a proper suggestion was not found in the
list, pspell_store_replacement(3) can be used to store a replacement pair and then pspell_save_wordlist(3) to save the wordlist along with
the replacement pairs.
pspell_config_repl(3) should be used on a config before calling pspell_new_config(3).
PARAMETERS
o $dictionary_link
-
o $file
- The file should be writable by whoever PHP runs as (e.g. nobody).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
pspell_config_repl(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);
pspell_check($pspell_link, "thecat");
?>
NOTES
Note
This function will not work unless you have pspell .11.2 and aspell .32.5 or later.
PHP Documentation Group PSPELL_CONFIG_REPL(3)
Hi all,
Thanks in advanced.
This question really bothered me much. What i want is to replace any times of repeated 'TB' to 'T', below is example.
It can be fullfil by AWK and perl, but my desire is using SED to realize it.
So here means we treat TB as a whole part, which means 's/TB*/T/'... (4 Replies)
Hi to all. I've looked for this, and haven't found it, but please pardon me if I've overlooked something. I'm trying to come up with a relatively simple command line search and replace from and to which I can easily pipe. In particular, let's suppose there are 2 lists, A and B. If a string... (4 Replies)
I use OSX as my primary OS, but find more and more that I stay on my Ubuntu derivative. There is really only one application that I can't seem to replace, and that is Devonthink Pro Office. This there a open format database app on the linux side that replaces it. I use it as a depository for my... (1 Reply)
Hi, I need to do a global search and replacement of a non-ascii character. Let me first give the background of my problem.
Very frequently, I need to copy set of references from different sources. Typically, a reference would like this:
Banumathy et al., 2002 G. Banumathy, V. Singh and U.... (1 Reply)
Dear all thanks for helping in advance.. Know this should be fairly simple but I failed in searching for an answer.
I have a file (replacement table) containing two columns, e.g.:
ACICJ ACIDIPHILIUM
ACIF2 ACIDITHIOBACILLUS
ACIF5 ACIDITHIOBACILLUS
ACIC5 ACIDOBACTERIUM
ACIC1 ACIDOTHERMUS... (10 Replies)
Hello everyone,
I have a problem with awk replacement... I need to replace "|\n" for "\n"
I tried thisawk '{ sub(/\|\\n/, "\\n"); print }'
but it seems like it doesn't work properly. Can anyone help with that? (4 Replies)
I been trying to figure out how to use element of array as a replacement pattern. This works as I expected:
$ echo "one two three" | awk '{
gsub(/wo/,"_BEG_&_END_",$2);
print }'
one t_BEG_wo_END_ three
$ echo "one two three" | awk '{
tmp="foo";
gsub(/wo/,"_BEG_" tmp "_END_",$2);... (5 Replies)
I am using SED to edit a file (called file)
the file contains the word "ERROR"
and I want to use SED to:
1. Search for text "ERROR"
If found,
2. Append new line with text "hoi"
I tried:
sed 's/ERROR/ a\hoi' file
sed 's/ERROR/ a\ hoi' file
I get all the time the error
sed:... (7 Replies)
Hi friends
Hope, you all are doing well
I need your help for doing multiple strings replacement. I have a file with more than 1000 lines and I want to replace several elements in the same run. I have the equivalences written in another file.
Example: target file
Start (bp) End (bp) ... (6 Replies)
Hi All,
I am having an Sun fire X4600 M2 server where one of the interfaces is down.
I had requested for the replacement but had a bit problem in identifying the port.
As per the server service module, there are 4 NIC ports and one port is not flashing (e1000g0) but as per server, the port... (8 Replies)