[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/doc-toc f7aacf7e77 25/84: Set encoding and cleanup line
From: |
ELPA Syncer |
Subject: |
[elpa] externals/doc-toc f7aacf7e77 25/84: Set encoding and cleanup linefeeds |
Date: |
Mon, 26 Sep 2022 13:58:35 -0400 (EDT) |
branch: externals/doc-toc
commit f7aacf7e77bd48e7847c556ba1c4db2e6e53424e
Author: Daniel Nicolai <dalanicolai@gmail.com>
Commit: Daniel Nicolai <dalanicolai@gmail.com>
Set encoding and cleanup linefeeds
---
toc-mode.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/toc-mode.el b/toc-mode.el
index ab8ae220bc..852f5f6f1a 100644
--- a/toc-mode.el
+++ b/toc-mode.el
@@ -70,7 +70,7 @@ For DJVU the old DJVU file is replaced by default"
;; (re-search-forward "^ *[ivx0-9\\.]+ *$" nil t)
;; (replace-match "")
(while (not (eobp))
- (re-search-forward "^ *[ivx0-9\\.]* *$")
+ (re-search-forward "^[\f ]*[ivx0-9\\.]* *$")
(replace-match "")
(forward-line 1))
)
@@ -99,9 +99,9 @@ For DJVU the old DJVU file is replaced by default"
(if arg
(toc-cleanup-dots-ocr)
(toc-cleanup-dots))
- ;; (toc-cleanup-lines-roman-string)
+ (toc-cleanup-lines-roman-string)
(toc-cleanup-blank-lines)
- (toc-join-next-unnumbered-lines)
+ ;; (toc-join-next-unnumbered-lines)
)
(defun get-index-levels (seperator)
@@ -136,7 +136,8 @@ For DJVU the old DJVU file is replaced by default"
;;; toc extract
(defun document-extract-pages-text (startpage endpage)
- (let* ((source-buffer (current-buffer))
+ (let* ((default-process-coding-system '(windows-1252-unix . utf-8-unix))
+ (source-buffer (current-buffer))
(ext (url-file-extension (buffer-file-name (current-buffer))))
(shell-command (cond ((string= ".pdf" ext) "pdftotext -f %s -l %s
-layout %s -")
((string= ".djvu" ext) "djvutxt --page=%s-%s %s")
@@ -532,5 +533,5 @@ Use with the universal argument (C-u) omits cleanup to get
the unprocessed text.
(provide 'toc-mode)
-;;; document-outliner.el ends here
+;;; toc-mode.el ends here
- [elpa] branch externals/doc-toc created (now b4bb748aa3), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 7c4eef518e 02/84: initial upload, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc fdb66ff587 04/84: delete old file(name) document-outliner, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 4c98932c65 05/84: create first version README, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 32803571a6 06/84: delete README.md, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc bcf2348d28 03/84: rename file to toc-mode, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 34d16c6c06 07/84: implement pdf navigation from TOC-tabular-mode, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 56218310ba 08/84: fix funcitons and update docs for djvu, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc b869d9c888 14/84: Update README with tesseract ocr info, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc f7aacf7e77 25/84: Set encoding and cleanup linefeeds,
ELPA Syncer <=
- [elpa] externals/doc-toc d1cc2e950c 26/84: UPDATE README add extract screencast, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc b22f6f0a2d 28/84: add golden-ratio-mode to toc-tablist, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc caa066b67d 29/84: Add spell check and correct start pagenumber, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 81f58d0871 35/84: Fix double-dash function names, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 36b7f88d6a 39/84: Declare more functions (for MELPA), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 7208f4a987 40/84: Add featurep checks for publish on MELPA, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 3c7efe78d2 61/84: Implement pdf.tocgen functionality, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc c86a72abda 12/84: Implement replace original or ad toc to copy of pdf, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 0d5ef18820 01/84: Initial commit, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 22174d1a0f 10/84: Update README, ELPA Syncer, 2022/09/26