Ignore:
Timestamp:
09/25/15 19:00:49 (9 years ago)
Author:
pinsard
Message:

add some supplemental dictionaries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/manual/source/developers/guides/typo.rst

    r2 r3  
    6868dictionaries used in an spelling check of all :file:`*.py` via :command:`pylint`. 
    6969 
    70 This supplemental dictionary will also be the base of the one used by 
    71 :command:`hunspell`. 
     70They also will be the base of the one used by :command:`hunspell`. 
     71 
     72They must be encoded in UTF-8. 
    7273 
    7374.. code-block:: bash 
     
    8283   done 
    8384   cat ${PROJECT_LOG}/pyigcmg_doc_var.txt >> ${nontypo} 
    84    sort -u ${nontypo} > ${nontypo_uniq} 
     85   sort --ignore-case -u ${nontypo} > ${nontypo_uniq} 
    8586 
    8687Check typo in Python files 
     
    9899   --reports=n \ 
    99100   ${listf} | grep "Wrong spelling" | awk -F: '{print $3}' | \ 
    100    sort -u > ${PROJECT_LOG}/typo 
     101   sort --ignore-case -u > ${PROJECT_LOG}/typo 
    101102 
    102103.. todo:: 
     
    166167      hunspell -d en_US,nontypo_uniq --check-url -i utf-8 -l < ${onefile} >> ${hunspell_out} 
    167168   done 
    168    sort -u ${hunspell_out} > ${hunspell_uniq_out} 
     169   sort --ignore-case -u ${hunspell_out} > ${hunspell_uniq_out} 
    169170 
    170171.. todo:: 
     
    223224      hunspell -d en_US,nontypo_uniq --check-url -i utf-8 -l < ${onefile} >> ${hunspell_out} 
    224225   done 
    225    sort -u ${hunspell_out} > ${hunspell_uniq_out} 
    226  
    227 Correction have to be done via the wiki interface of the forge. 
     226   sort --ignore-case -u ${hunspell_out} > ${hunspell_uniq_out} 
     227 
     228To find one of the wrong spelling in downloaded HTML pages: 
     229 
     230.. code-block:: bash 
     231 
     232   w=amonch 
     233   find ${dirhtml} -name "Doc*" -exec grep -Hi ${w} {} \; 
     234 
     235.. warning: 
     236 
     237   Correction have to be done via the wiki interface of the forge. 
Note: See TracChangeset for help on using the changeset viewer.