Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > Non-English Discussions > Deutsches Forum > Software

Notices

Reply
 
Thread Tools Search this Thread
Old 09-17-2010, 02:41 PM   #1
gucky
Member
gucky began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Sep 2010
Device: galaxy
Zeilenumbrüche entfernen

Hallo,

ich habe mehrere PDFs in Text Dateien umgewandelt. Nun möchte ich aus diesen textdateien zumindest die überflüssigen Zeilenumbrüche entfernen. Wie mache ich das am besten? Ich frage da es anscheinend Unterschiede gibt wie Zeilen gefunden werden. Z.b. arbeitet sed Zeilenbabasiert? Zumindest laut diverser Internet Seiten. Damit kann ich also kein \r\n entfernen?
Die geht das am besten?


grüße

Gucky
gucky is offline   Reply With Quote
Old 09-18-2010, 06:19 PM   #2
bear4hunter
Addict
bear4hunter rocks like Gibraltar!bear4hunter rocks like Gibraltar!bear4hunter rocks like Gibraltar!bear4hunter rocks like Gibraltar!bear4hunter rocks like Gibraltar!bear4hunter rocks like Gibraltar!bear4hunter rocks like Gibraltar!bear4hunter rocks like Gibraltar!bear4hunter rocks like Gibraltar!bear4hunter rocks like Gibraltar!bear4hunter rocks like Gibraltar!
 
bear4hunter's Avatar
 
Posts: 248
Karma: 100148
Join Date: Jul 2010
Location: Germany, Munich
Device: Kindle 3 & DX Graphite, PocketBook 302 & Pro 603
Wenn's HTML ist, versuch's mal mit Notepad++
http://notepad-plus-plus.org/de/node/56
bear4hunter is offline   Reply With Quote
Advert
Old 09-19-2010, 08:16 AM   #3
rem
Connoisseur
rem began at the beginning.
 
Posts: 68
Karma: 10
Join Date: Sep 2008
Device: keines
auf dieser seite findest du einige erweiterungen bzw. makros für openoffice.

http://luke.simplicissimus.it/
rem is offline   Reply With Quote
Old 09-20-2010, 01:01 PM   #4
Hokuspokus
Fidibus
Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.
 
Posts: 440
Karma: 2246533
Join Date: Feb 2010
Device: none
Mit Open Office geht das auch ganz ohne Makros oder Erweiterungen. Einfach mit Suche und Ersetze und Regulären Ausdrücken.

Suche "$", ersetze mit nichts -> alle weg. Wirklich alle.
Suche "^$", ersetze mit nichts -> Leerzeilen weg.
Hokuspokus is offline   Reply With Quote
Old 09-20-2010, 04:19 PM   #5
K-Thom
The one and only
K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.
 
Posts: 3,302
Karma: 535819
Join Date: Oct 2008
Location: Berlin, Germany
Device: yup!
Es geht hier aber nicht um Leerzeilen, sondern um harte Zeilenumbrüche, wenn ich das richtig verstanden habe.

@ gucky: mit welchem Programm arbeitest du denn?
K-Thom is offline   Reply With Quote
Advert
Old 09-21-2010, 03:03 AM   #6
Hokuspokus
Fidibus
Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.Hokuspokus ought to be getting tired of karma fortunes by now.
 
Posts: 440
Karma: 2246533
Join Date: Feb 2010
Device: none
Das kommt davon, wenn man sich nicht genug Zeit nimmt zum schreiben. Sorry.

"$" ist der "Reguläre Ausdruck" für Zeilenumbruch.
"^" steht für Zeilenanfang. "^$" wäre ein Beispiel für die Kombination zweier regulärer Ausdrücke, um die Sache weiter einzugrenzen.
So weit ich weiß, kann das die Suche und Ersetze Funktion in Word nicht so differenziert.

Hat der Text z.B. nach jedem Absatz eine Leerzeile, kann man diese durch irgendeine Zeichenkombination ersetzen, die im normalen Text nicht vorkommt. z.B. xxx
Dann entfernt man alle Zeilenumbrüche, oder ersetzt in einem Zwischenschritt durch ein Leerzeichen und ersetzt dann alle Umbrüche.
Um die Umbrüche am Absatzende wieder zu erhalten, ersetzt man xxx durch einen Zeilenumbruch "\n".

Mehr Info: http://www.ooowiki.de/Regul%C3%A4rerAusdruck
Hokuspokus is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre: Seitenzahlen von pdf in epub/mobi entfernen Zel Software 30 11-20-2019 09:44 AM
Entfernen von DRM bei Kindle eBooks klappt! K-Thom Amazon Kindle 3 01-14-2010 12:00 PM
Calibre: Header entfernen nicht mit aktueller Version ?? KimJ Software 5 01-06-2010 12:39 AM
Deutsche Software entfernen Vauh Sony Reader 9 12-22-2009 12:02 PM


All times are GMT -4. The time now is 07:32 AM.


MobileRead.com is a privately owned, operated and funded community.