Changeset 5 for trunk/docs/manual/source/developers/guides
- Timestamp:
- 09/30/15 10:26:55 (9 years ago)
- Location:
- trunk/docs/manual/source/developers/guides
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/manual/source/developers/guides/typo.rst
r3 r5 8 8 9 9 They use dictionaries providing natural langages list of words. 10 11 Here is the flow 12 13 .. blockdiag:: typo_blockdiag.dot 10 14 11 15 Missing words in dictionaries … … 83 87 done 84 88 cat ${PROJECT_LOG}/pyigcmg_doc_var.txt >> ${nontypo} 85 sort - -ignore-case -u ${nontypo} > ${nontypo_uniq}89 sort -u ${nontypo} > ${nontypo_uniq} 86 90 87 91 Check typo in Python files … … 99 103 --reports=n \ 100 104 ${listf} | grep "Wrong spelling" | awk -F: '{print $3}' | \ 101 sort - -ignore-case -u > ${PROJECT_LOG}/typo105 sort -u > ${PROJECT_LOG}/typo 102 106 103 107 .. todo:: … … 122 126 .. tip:: 123 127 124 To see the path of existing default dict onaries of :command:`hunspell` :128 To see the path of existing default dictionaries of :command:`hunspell` : 125 129 126 130 .. code-block:: bash … … 167 171 hunspell -d en_US,nontypo_uniq --check-url -i utf-8 -l < ${onefile} >> ${hunspell_out} 168 172 done 169 sort - -ignore-case -u ${hunspell_out} > ${hunspell_uniq_out}173 sort -u ${hunspell_out} > ${hunspell_uniq_out} 170 174 171 175 .. todo:: … … 190 194 191 195 Until :ref:`tracwiki_migration` is not achieved, we have to check typo in 192 HTML files produced by trac on the <http://forge.ipsl.jussieu.fr/igcmg_doc/wiki/>_ 193 194 To get all wiki Doc* pages URI of http://forge.ipsl.jussieu.fr/igcmg_doc/ : 195 196 .. code-block:: bash 197 198 list_uri=$(xsltproc \-\-novalid ${PROJECT}/docs/manual/for_tracwiki/titleindex.xsl http://forge.ipsl.jussieu.fr/igcmg_doc/wiki/TitleIndex | \ 199 grep "/igcmg_doc/wiki/Doc" | sort -u | \ 196 HTML files produced by trac on the `<http://forge.ipsl.jussieu.fr/igcmg_doc/wiki/>`_ 197 198 By convention, it has been decided to start all |igcmg_doc| pages names by ``Doc``. 199 200 To get all wiki Doc* pages URI of `<http://forge.ipsl.jussieu.fr/igcmg_doc/>`_ [#tracoops]_: 201 202 .. code-block:: bash 203 204 excluded_uri=DocYgraphvizLibigcmprod 205 list_uri=$(xsltproc \-\-novalid \ 206 ${PROJECT}/docs/manual/for_tracwiki/titleindex.xsl http://forge.ipsl.jussieu.fr/igcmg_doc/wiki/TitleIndex | \ 207 grep "/igcmg_doc/wiki/Doc" | grep -v ${excluded_uri} |sort -u | \ 200 208 sed -e "s@^@http://forge.ipsl.jussieu.fr/@") 201 209 202 To download those URI localy: 210 .. [#tracoops] we exclude DocYgraphvizLibigcmprod because Trac detected an internal error ... some graphviz trac plugins issue 211 212 To download those URI locally: 203 213 204 214 .. code-block:: bash … … 224 234 hunspell -d en_US,nontypo_uniq --check-url -i utf-8 -l < ${onefile} >> ${hunspell_out} 225 235 done 226 sort - -ignore-case -u ${hunspell_out} > ${hunspell_uniq_out}236 sort -u ${hunspell_out} > ${hunspell_uniq_out} 227 237 228 238 To find one of the wrong spelling in downloaded HTML pages:
Note: See TracChangeset
for help on using the changeset viewer.