-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
85 lines (59 loc) · 1.61 KB
/
Copy pathREADME.Rmd
File metadata and controls
85 lines (59 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
title: "docxviewer"
output: github_document
---
Copyright (c) 2018-2019 Eunhou Esther Song
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
This is a simple document previewer which allows users to preview multiple .docx documents at once. The options and flags include number of paragraphs to preview and number of documents to preview in a directory. The output prints the file name and paragraphs in each .docx file.
### Python Package Index
https://pypi.org/project/docxviewer/
### Installation
```
pip3 install docxviewer
```
### Dependencies
* Python 3
* Click
* ipython
* docx
### Command Line Options
* --help: see help page
* --see: raise flag to view the name of all .docx files in a directory
* --p_num: set number of paragraphs to preview, the default is 3
* --select: set number of documents to preview, the default is 3
* --all: raise flag to display preview of all documents in a directory
### Examples
Displays names of all .docx files in a directory
```
docxviewer --see
```
Displays the first three paragraphs of three documents in a directory, selected by alaphabetical order.
```
docxviewer
```
Displays the first three paragraphs of all documents in a directory.
```
docxviewer --all
```
Displays the first six paragraphs of five documents in a directory.
```
docxviewer --p_num 6 --select 5
```
### Output
```
>>docxviewer
125syllabus18fal.docx
现代中国小说选读
Chinese through Modern Fiction
MWF 12:30pm -1:20pm
FieldTrip01Overview(2018-10-13)-v02.docx
Urban Studies 20
LOGISTICAL SUMMARY
for
ch4.docx
Memo on Data and Prelim Analysis
Data Collection
Background
```