Mercurial > octave-nkf
view doc/interpreter/doccheck/add_to_aspell_dict @ 20521:4bb41929286b
Deprecate bitmax.
* NEWS: Announce deprecation and replacement functions.
* scripts/deprecated/bitmax.m: New function. Add deprecation message to
docstring. Add deprecation warning to m-file.
* scripts/deprecated/module.mk: Add deprecated versions to build system.
* libinterp/corefcn/bitfcns.cc: Remove build-in function. Remove function
from docstrings.
* libinterp/corefcn/data.cc: Remove function from docstrings.
* scripts/general/bitcmp.m: Replace bitmax function calls with flintmax.
Remove function from docstrings.
* scripts/general/bitget.m: Replace bitmax function calls with flintmax.
Remove function from docstrings.
* scripts/general/bitset.m: Replace bitmax function calls with flintmax.
Remove function from docstrings.
* scripts/specfun/factor.m: Replace bitmax function calls with flintmax.
Remove function from docstrings.
* scripts/statistics/distributions/unidpdf.m: Remove function from docstrings.
* scripts/general/num2str.m: Replaced function in comment.
* doc/interpreter/doccheck/aspell-octave.en.pws: Remove functions from list.
* doc/interpreter/numbers.txi: Remove function from manual.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Wed, 09 Sep 2015 18:43:52 +0200 |
parents | 0306e572c686 |
children |
line wrap: on
line source
#!/usr/bin/perl -w ################################################################################ # File : add_to_aspell_dict # Purpose: Merges a file of new words into an existing dictionary file. # The resulting file is uniquified and sorted before being written out. # Usage : add_to_aspell_dict <filename_of_new_words> ################################################################################ # Initialize variables # Private Octave dictionary for Aspell $octdict_fname = './doccheck/aspell-octave.en.pws'; ################################################################################ # Parse command line arguments if (@ARGV != 1) { die "USAGE: add_to_aspell_dict <filename_of_new_words>\n"; } $new_words_fname = shift(@ARGV); if (!-r $new_words_fname) { die "Unable to read input file: $new_words_fname\n"; } ################################################################################ # Add new words to a dictionary database open (FH, "<$new_words_fname") or die "Unable to open file: $new_words_fname\n"; while (<FH>) { $dict_db{$_} = 1; } close (FH); # Add words from existing dictionary to dictionary database open (FH, "<$octdict_fname") or die "Unable to open Octave dictionary: $octdict_fname\n"; $header = <FH>; while (<FH>) { $dict_db{$_} = 1; } close (FH); # Remove old dictionary file and write out new one unlink ($octdict_fname) or die "Unable to delete Octave dictionary: $octdict_fname\n"; open (FH, ">$octdict_fname") or die "Unable to open file for writing: $octdict_fname\n"; print FH $header; print FH sort { uc($a) cmp uc ($b) } keys(%dict_db); close (FH);