Skip to content

Commit 025169b

Browse files
Merge pull request #38 from rlskoeser/patch-1
Minor documentation edits
2 parents e23f79a + 101ae76 commit 025169b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ The inscript.py command line client supports the following parameters::
150150
-l, --display-link-targets
151151
Display link targets (default:false).
152152
-a, --display-anchor-urls
153-
Deduplicate image captions (default:false).
153+
Display anchor urls (default:false).
154154
-r ANNOTATION_RULES, --annotation-rules ANNOTATION_RULES
155155
Path to an optional JSON file containing rules for annotating the retrieved text.
156156
-p POSTPROCESSOR, --postprocessor POSTPROCESSOR
@@ -172,14 +172,16 @@ convert the file to text and save the output to output.txt::
172172
173173
convert HTML provided via stdin and save the output to output.txt::
174174

175-
$ echo '<body><p>Make it so!</p>></body>' | inscript.py -o output.txt
175+
$ echo '<body><p>Make it so!</p></body>' | inscript.py -o output.txt
176176

177177

178178
HTML to annotated text conversion
179179
---------------------------------
180-
convert and annotate HTML from a Web page using the provided annotation rules::
180+
convert and annotate HTML from a Web page using the provided annotation rules.
181+
182+
Download the example `annotation-profile.json <https://github.com/weblyzard/inscriptis/blob/master/examples/annotation-profile.json>`_ and save it to your working directory::
181183

182-
$ inscript.py https://www.fhgr.ch -r ./examples/annotation-profile.json
184+
$ inscript.py https://www.fhgr.ch -r annotation-profile.json
183185

184186
The annotation rules are specified in `annotation-profile.json`:
185187

scripts/inscript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_parser():
5555
help='Display link targets (default:false).')
5656
parser.add_argument('-a', '--display-anchor-urls',
5757
action='store_true', default=False,
58-
help='Deduplicate image captions (default:false).')
58+
help='Display anchor urls (default:false).')
5959
parser.add_argument('-r', '--annotation-rules', default=None,
6060
help='Path to an optional JSON file containing rules '
6161
'for annotating the retrieved text.')

0 commit comments

Comments
 (0)