Browse Source

Merge latex and make_html2text into textproc

Matteo Cypriani 1 year ago
parent
commit
cf6c8d2c63
7 changed files with 29 additions and 20 deletions
  1. 1
    1
      bin/latexd
  2. 1
    1
      bin/make_html2text
  3. 0
    9
      latex/README
  4. 0
    9
      make_html2text/README
  5. 27
    0
      textproc/README.md
  6. 0
    0
      textproc/latexd.sh
  7. 0
    0
      textproc/make_html2text.sh

+ 1
- 1
bin/latexd View File

@@ -1 +1 @@
1
-../latex/latexd.sh
1
+../textproc/latexd.sh

+ 1
- 1
bin/make_html2text View File

@@ -1 +1 @@
1
-../make_html2text/make_html2text.sh
1
+../textproc/make_html2text.sh

+ 0
- 9
latex/README View File

@@ -1,9 +0,0 @@
1
-latexd.sh watches a file and calls make when it is changed. This is
2
-useful to automatically compile a LaTeX document when saved.
3
-To detect a change, a MD5 sum of the file is computed.
4
-
5
-This script works well (at least) on GNU/Linux and FreeBSD.
6
-
7
-Limitations :
8
-- Handles only a single file.
9
-- The delay between two checks is not configurable.

+ 0
- 9
make_html2text/README View File

@@ -1,9 +0,0 @@
1
-make_html2text.sh converts all HTML (.html and .htm) files in the
2
-current directory into text files (.txt). For each HTML file, it
3
-verifies that the text file does not exists, or is older than the
4
-corresponding HTML file; if the text file is more recent, nothing is
5
-done.
6
-
7
-To use this script, you will have to install the program html2text.
8
-The option -nobs is used to avoid output of formatting sequences (bold,
9
-italic, etc.).

+ 27
- 0
textproc/README.md View File

@@ -0,0 +1,27 @@
1
+latexd.sh
2
+=========
3
+
4
+`latexd.sh` is a quick and dirty script that watches a file and calls `make`
5
+whenever a change is detected. This is useful to automatically compile a LaTeX
6
+document when saved, but can actually be used in any case where you have to
7
+call `make` regularly. To detect a change, a MD5 sum of the file is computed.
8
+
9
+This script works well (at least) on GNU/Linux and FreeBSD.
10
+
11
+Limitations :
12
+
13
+- Handles only a single file.
14
+- The delay between two checks is not configurable.
15
+
16
+
17
+make_html2text.sh
18
+=================
19
+
20
+`make_html2text.sh` converts all HTML (`.html` and `.htm`) files in the current
21
+directory into text files (.txt). For each HTML file, it verifies that the text
22
+file does not exists, or is older than the corresponding HTML file; if the text
23
+file is more recent, nothing is done.
24
+
25
+To use this script, you will have to install the program `html2text`. The
26
+option `-nobs` is used to avoid output of formatting sequences (bold, italic,
27
+etc.).

latex/latexd.sh → textproc/latexd.sh View File


make_html2text/make_html2text.sh → textproc/make_html2text.sh View File


Loading…
Cancel
Save