Changeset 9 for trunk/docs/manual/source/developers/guides
- Timestamp:
- 10/05/15 18:40:19 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/manual/source/developers/guides/typo.rst
r8 r9 52 52 cat ${onefile} >> ${nontypo} 53 53 done 54 sort -u ${nontypo} > ${nontypo_uniq}54 sort -u ${nontypo} | sort --ignore-case > ${nontypo_uniq} 55 55 56 56 The list ${nontypo_uniq} can also be used to check for typo in … … 124 124 listf=$(find ${dirhtml} -name "Doc*") 125 125 hunspell_out=${PROJECT_LOG}/hunspell_out 126 hunspell_ uniq_out=${PROJECT_LOG}/hunspell_uniq_out127 rm -f ${hunspell_out} ${hunspell_ uniq_out}126 hunspell_out_uniq=${PROJECT_LOG}/hunspell_out_uniq 127 rm -f ${hunspell_out} ${hunspell_out_uniq} 128 128 for onefile in ${listf} 129 129 do 130 L ANG=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} 131 131 done 132 sort -u ${hunspell_out} > ${hunspell_uniq_out}132 sort -u ${hunspell_out} | sort --ignore-case > ${hunspell_out_uniq} 133 133 134 134 .. warning:: 135 135 136 side effect of L ANG=POSIX;137 how to avoid L ANGchange after execution execution136 side effect of LC_ALL=C; 137 how to avoid LC_ALL change after execution execution 138 138 139 :file:`${hunspell_ uniq_out}` contains :139 :file:`${hunspell_out_uniq}` contains : 140 140 141 141 - typo to be fixed in wiki pages … … 146 146 .. warning:: 147 147 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}. 149 149 150 150 .. code-block :: bash 151 151 152 comm - 12 ${hunspell_uniq_out} ${nontypo_uniq}152 comm --nocheck-order -12 ${hunspell_out_uniq} ${nontypo_uniq} 153 153 154 154 If not empty, the supplemental dictionary has not being used by :command:`hunspell` … … 162 162 .. code-block:: bash 163 163 164 w=amonch # take a real one from ${hunspell_ uniq_out}164 w=amonch # take a real one from ${hunspell_out_uniq} 165 165 find ${dirhtml} -name "Doc*" -exec grep -Hi ${w} {} \; 166 166
Note: See TracChangeset
for help on using the changeset viewer.