Home    General Stuff    General Chat
#1

Automated text entry

Archive: 3 posts


Short version: is there a text editor or other program that has similar functionality to Notepad's "replace" only it detects either linebreaks or the start of paragraphs?

Long version: a friend of mine is transcribing a series of books using OCR software and a text editor and wants to upload the resultant text as static HTML pages. At the start of each paragraph then there needs to be a tag, otherwise outside of using something like the <pre> tags the text will lack any paragraph formatting. Notepad has a command called "replace" which is handy for this sort of thing and was the first thing that came to mind, but as far as I know it can't be used to insert a set of characters at the start of new paragraphs.

If there are any clever tricks using divs/css/tables/javascript for this kind of thing that's welcome too.
2011-06-17 05:11:00

Author:
Ayneh
Posts: 2454


Short version: is there a text editor or other program that has similar functionality to Notepad's "replace" only it detects either linebreaks or the start of paragraphs?

Any text editor with regular expression (http://en.wikipedia.org/wiki/Regular_expression) support should do the trick.

Personally, I use vim (http://en.wikipedia.org/wiki/Vim_(text_editor)), but it has pretty unusual key bindings.
2011-06-21 19:12:00

Author:
Aya042
Posts: 2870


Any text editor with regular expression (http://en.wikipedia.org/wiki/Regular_expression) support should do the trick.

Personally, I use vim (http://en.wikipedia.org/wiki/Vim_(text_editor)), but it has pretty unusual key bindings.
I can't thank you enough.
2011-06-22 01:23:00

Author:
Ayneh
Posts: 2454


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.