1
0
forked from aniani/vim

updated for version 7.0069

This commit is contained in:
Bram Moolenaar 2005-04-20 19:48:33 +00:00
parent 9d0ec2e49a
commit 54ff3419c7
2 changed files with 15 additions and 23 deletions

View File

@ -1,4 +1,4 @@
*todo.txt* For Vim version 7.0aa. Last change: 2005 Apr 19 *todo.txt* For Vim version 7.0aa. Last change: 2005 Apr 20
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -103,29 +103,26 @@ PLANNED FOR VERSION 7.0:
- Add SPELLCHECKER, with support for many languages. - Add SPELLCHECKER, with support for many languages.
- Use "engspchk" from Charles Campbell for ideas. - Use "engspchk" from Charles Campbell for ideas.
- Spell checking code todo's: - Spell checking code todo's:
- Can have prefixes with addstring and suffixes with leadstring. Use
separate basic word for this, like for different caps?
- Verify French spell checking works efficiently. - Verify French spell checking works efficiently.
- use BWF_ADDS and BWF_ADDSM for more than 256, only one byte for count.
- Implement user and project word lists. Commands to add words and to - Implement user and project word lists. Commands to add words and to
mark words as wrong. mark words as wrong.
- Case folding only works when locale is set properly. - Case folding only works when locale is set properly.
E.g., when C locale is active then 'enc' is "latin1" but Ångström E.g., when C locale is active then 'enc' is "latin1" but Ångström
isn't seen as a ONECAP. isn't seen as a ONECAP.
Use our own character tables for encodings used in spell files? Use our own character tables for encodings used in spell files?
Use iswupper() if possible? Use iswupper() if possible? Same locale/'encoding' problems.
Put the character tables in the .aff file? Put the character tables in the .aff file?
- Implement = flag in .dic: KEEPCASE for lower case word. - Implement = flag in .dic: KEEPCASE for lower case word.
's morgens/= does not match 'S morgens 's morgens/= does not match 'S morgens
- Implement compound words? - Implement compound words?
- remove fw_prefix and fw_suffix, use fw_len (word length) and put
prefixes and suffixes right after it.
- Make "en-rare" spell file. - Make "en-rare" spell file.
Convention: use en_US (language_region) and en-rare (language-field) Convention: use en_US (language_region) and en-rare (language-field)
Add hl groups to 'spelllang'? Add hl groups to 'spelllang'?
:set spelllang=en_us,en-rare/SpellRare,en-math/SpellMath :set spelllang=en_us,en-rare/SpellRare,en-math/SpellMath
- Polish: Anio and Hanio are wrong words, even though Myspell allows - How about making suggestions? Use an external program like aspell?
them. Problem with not ignoring case in conditions. Or include the myspell suggestion code in Vim?
- Some word lists are inefficient. Remove affixes from a word when it
results in another basic word.
- References MySpell library (in OpenOffice.org). - References MySpell library (in OpenOffice.org).
http://spellchecker.mozdev.org/source.html http://spellchecker.mozdev.org/source.html
http://whiteboard.openoffice.org/source/browse/whiteboard/lingucomponent/source/spellcheck/myspell/ http://whiteboard.openoffice.org/source/browse/whiteboard/lingucomponent/source/spellcheck/myspell/
@ -138,17 +135,12 @@ PLANNED FOR VERSION 7.0:
add word to private dict: wrong and OK (in popup menu for evim) add word to private dict: wrong and OK (in popup menu for evim)
:spell good <word> zg :spell good <word> zg
:spell wrong <word> zw :spell wrong <word> zw
[s move to previous spell error [S also rare word
]s move to next spell error ]S also rare word
(only "]s" is currently implemented)
Make this work like displaying, check @Spell in syntax.
Support a count.
- Update option window for 'spell' and 'spelllang'. - Update option window for 'spell' and 'spelllang'.
- Use an external program like aspell for suggestions to correct the
spelling? Or include the myspell suggestion code in Vim?
- Distribution: Need wordlists for many languages; "language pack" - Distribution: Need wordlists for many languages; "language pack"
Put them on the ftp site, ready to download. Include README for
copyrights.
- Work together with OpenOffice.org to update the wordlists. (Adri - Work together with OpenOffice.org to update the wordlists. (Adri
Verhoef, Aad Nales) Verhoef, Aad Nales) Setup vim-spell maillist?
- Support for approximate-regexps will help with finding similar words - Support for approximate-regexps will help with finding similar words
(agrep http://www.tgries.de/agrep/). (agrep http://www.tgries.de/agrep/).
- Charles Campbell asks for method to add "contained" groups to - Charles Campbell asks for method to add "contained" groups to

View File

@ -12996,7 +12996,7 @@ f_substitute(argvars, rettv)
} }
/* /*
* "synID(line, col, trans)" function * "synID(lnum, col, trans)" function
*/ */
/*ARGSUSED*/ /*ARGSUSED*/
static void static void
@ -13006,17 +13006,17 @@ f_synID(argvars, rettv)
{ {
int id = 0; int id = 0;
#ifdef FEAT_SYN_HL #ifdef FEAT_SYN_HL
long line; long lnum;
long col; long col;
int trans; int trans;
line = get_tv_lnum(argvars); lnum = get_tv_lnum(argvars);
col = get_tv_number(&argvars[1]) - 1; col = get_tv_number(&argvars[1]) - 1;
trans = get_tv_number(&argvars[2]); trans = get_tv_number(&argvars[2]);
if (line >= 1 && line <= curbuf->b_ml.ml_line_count if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count
&& col >= 0 && col < (long)STRLEN(ml_get(line))) && col >= 0 && col < (long)STRLEN(ml_get(lnum)))
id = syn_get_id(line, col, trans); id = syn_get_id(lnum, (colnr_T)col, trans, NULL);
#endif #endif
rettv->vval.v_number = id; rettv->vval.v_number = id;