Ignore:
Timestamp:
10/05/15 18:40:19 (9 years ago)
Author:
pinsard
Message:

add some supplemental dictionaries; more human readable result

File:
1 edited

Legend:

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

    r8 r9  
    5252      cat ${onefile} >> ${nontypo} 
    5353   done 
    54    sort -u ${nontypo} > ${nontypo_uniq} 
     54   sort -u ${nontypo} | sort --ignore-case > ${nontypo_uniq} 
    5555 
    5656The list ${nontypo_uniq} can also be used to check for typo in 
     
    124124   listf=$(find ${dirhtml} -name "Doc*") 
    125125   hunspell_out=${PROJECT_LOG}/hunspell_out 
    126    hunspell_uniq_out=${PROJECT_LOG}/hunspell_uniq_out 
    127    rm -f ${hunspell_out}  ${hunspell_uniq_out} 
     126   hunspell_out_uniq=${PROJECT_LOG}/hunspell_out_uniq 
     127   rm -f ${hunspell_out}  ${hunspell_out_uniq} 
    128128   for onefile in ${listf} 
    129129   do 
    130       LANG=POSIX;hunspell -d en_US,nontypo_uniq --check-url -i utf-8 -l < ${onefile} >> ${hunspell_out} 
     130      LC_ALL=C;hunspell -d en_US,nontypo_uniq --check-url -i utf-8 -l < ${onefile} >> ${hunspell_out} 
    131131   done 
    132    sort -u ${hunspell_out} > ${hunspell_uniq_out} 
     132   sort -u ${hunspell_out} | sort --ignore-case > ${hunspell_out_uniq} 
    133133 
    134134.. warning:: 
    135135 
    136    side effect of LANG=POSIX; 
    137    how to avoid LANG change after execution execution 
     136   side effect of LC_ALL=C; 
     137   how to avoid LC_ALL change after execution execution 
    138138 
    139 :file:`${hunspell_uniq_out}` contains : 
     139:file:`${hunspell_out_uniq}` contains : 
    140140 
    141141- typo to be fixed in wiki pages 
     
    146146.. warning:: 
    147147 
    148    The following command print only lines present in both ${hunspell_uniq_out} ${nontypo_uniq}. 
     148   The following command print only lines present in both ${hunspell_out_uniq} ${nontypo_uniq}. 
    149149 
    150150   .. code-block :: bash 
    151151 
    152       comm -12 ${hunspell_uniq_out} ${nontypo_uniq} 
     152      comm --nocheck-order -12 ${hunspell_out_uniq} ${nontypo_uniq} 
    153153 
    154154   If not empty, the supplemental dictionary has not being used by :command:`hunspell` 
     
    162162.. code-block:: bash 
    163163 
    164    w=amonch # take a real one from ${hunspell_uniq_out} 
     164   w=amonch # take a real one from ${hunspell_out_uniq} 
    165165   find ${dirhtml} -name "Doc*" -exec grep -Hi ${w} {} \; 
    166166 
Note: See TracChangeset for help on using the changeset viewer.