Ubuntu :: Removing Headers And Page Numbers From A Txt Ebook And Retain Formatting With Vim

Jul 9, 2010

I have a text file of a book I want to read on an ereader. The problem is that within the file there are page numbers and headers that make it look like this: Code: But then, getting into the heat of the work, 580 ANNA KARENINA and seeing how diligently and zealously Veslovsky pulled the cart by the splash-board, so that he even broke it off... o as you can see the header and page numbers break up sentences which makes it annoying to read.

I managed to use the find a replace tool in VIM to remove the page numbers and the header and join the lines together (If anyone is interested how I did it, let me know and I can post this. Although I admit that I probably did it in a very convoluted way). So now it looks like this:

Code: But then, getting into the heat of the work, seeing how diligently and zealously Veslovsky pulled the cart by the splash-board, so that he even broke it off... But now it has joined some lines I didn't want joined (ie lines where a page break fell at the same place as a paragraph break). So some parts look like this (the XI being the number of the next section):

Code: 'A fine marsh! Veslovsky must have hampered you. It's inconvenient for two with one dog,' said Stepan Arkadyich, softening his triumph.XI When Levin and Stepan Arkadyich came to the cottage of the muzhik with whom Levin always stayed... My question is: is there a way to use an if statement or something to ensure that it formats the book correctly. For example, could I get vim (or something else for that matter) to check to see whether the line ends with a period or a quotation mark, and next line begins with a capital letter or another quotation mark and exempt those lines from the join command?

View 2 Replies


ADVERTISEMENT

Server :: How To Redirect From One Page To Another Using Apache And Still Retain Original Url?

Apr 3, 2011

quesiton is how I can redirect http://www.thispage.com to http://my.page.com and still retail displaying http://www.thispage.com.The issue is if I point in httpd.conf to directory where my.page.com it doesnt work because it knows it address.

View 4 Replies View Related

Ubuntu :: Reset Apparent Pdf Page Numbers In Evince?

Jan 13, 2011

how to re-set the page numbers of a pdf file within evince (without modifiying the pdf file). The point is that I am reading an article, and I would like the set "page 1" as "page 43". modifying page numbers of a pdf file is a bit tricky. So, I want to avoid that. What I wanna do is to make evince "think" page 1 is page 43.

View 2 Replies View Related

Ubuntu :: After Update Openoffice Documents Page Numbers And Other References Are Destroyed

Sep 27, 2010

I use Ubuntu 10.04 2.6.32-25-generic kernel After I did some automatic updates, in my Openoffice documets page numbers and other references are destroyed. Example, only "pagenumber" is written instead of page number.

View 1 Replies View Related

Applications :: Printing Support (line Numbers - Syntax Highlighting - Multiple Columns Per Page - Customizable Fonts And Sizes) Not Available

Jun 17, 2010

I've been looking though different editors for one that has good printing support. Ideally it should be able to print C++ code with line numbers, syntax highlighting, multiple columns per page, customizable fonts and sizes and a print preview feature so that I can make sure it looks right before sending it to the printer. It appears that notepad++ had at least some of these features, but it is not available on linux. The best I could do so far is to copy/paste the output of 'cat -n foo.cpp' into oowriter and format it into two colums. I don't get synax highlighting though and I have to manually replace tabs with a few spaces as well as some excessive leading spaces before the line numbering.

View 1 Replies View Related

General :: Man Pages Not Displayed / Saying Formatting Pages And Then It Is Displaying Blank Page?

Sep 9, 2009

when i input man <cmd>.....it's saying formatting pages....n then it is displaying blank page.

View 6 Replies View Related

Programming :: Create Inverted Files To Associate Files To Numbers ( Numbers Being The Index Of My Paths )?

Apr 4, 2011

am writing a small search program for my class. I have decided to use indexing for my program. Ive researched online about indexing and how search engines do it. If im gonno do that I need to create inverted files to associate files to numbers ( numbers being the index of my paths ) . Now I was wondering what would be the best way to create an inverted file ? I was going to create sql tables using mysql api in C but then again there is no array data type or vectors to store few numbers in a single column in mysql and it is not advised to use Enum or SET

View 14 Replies View Related

Ubuntu :: Where To Get Ebook Writer?

Dec 9, 2010

I was wondering if there is/are any software for ubuntu using which i can write ebooks? Or the only way is write it on the Word Processor and then export to PDF?

View 2 Replies View Related

Ubuntu :: Converting Documents Into Ebook Format?

Aug 23, 2010

I am currently looking for an app that can enable me to convert ms word and/or openoffice docs into an ebook format compatible with Kindle (I have been using mobipocket creator on Windows to convert to .mobi but I am now trying to get rid of Windows completly), so far the only possibility I have found is Calibre and it wont allow me to cnvert Word docs into another format.

View 3 Replies View Related

Fedora :: Can't Install Ebook Reader?

Oct 3, 2010

I'M trying to install a e-book reader called Caliber Ebook managment using the info they have on the HP: wget -O- http://status.calibre-ebook.com/dist/src | tar xvz cd calibre* sudo python setup.py install

And get this message

[sudo] password for zoku:
Sorry, try again.
[sudo] password for zoku:

zoku is not in the sudoers file. This incident will be reported. I have no Idea what the SUdoers are and why i'm not in them.

View 10 Replies View Related

Debian :: Ebook Conversion Application Program?

Jul 14, 2011

Does anyone know of a linux app that will convert ebooks from the nook format to either the kindle format or to a pdf?

View 9 Replies View Related

Software :: Looking For EBook Reader With Highlight Function?

Feb 28, 2009

I'm looking for a eBook Reader in which I can highlight selected text. Is there anything like this available?

View 7 Replies View Related

CentOS 5 :: Can't Install Kernel-headers Glibc And Glibc-headers?

May 11, 2010

Yesterday, I think I did something stupid: I removed kernel-headers, gcc, glibc-devel and glibc-headers. My box is a CentOS 5.4 webserver (it has loads of packages installed, but that was done through Virtualmin config, so it's quite coherent all in all). The thing is that now I need to reinstall at least the headers and glibc, but hey! this is what I get :

[Code]...

View 19 Replies View Related

Debian :: Calibre Ebook Software Freezes When Trying To Convert

Feb 25, 2011

I just updated to Calibre version 0.7.44 in Debian testing, on an amd64 system. Conversion worked with previous version, but now Calibre freezes as soon as I choose convert individual book. When I run top, I see that python is taking 100% of the cpu. The only way to stop calibre, which shows a grey screen, is to kill python. I got this message in the terminal after it shuts down;

[Code]...

If there is not way to fix this, Is there a way I can just reinstall the previous version of Calibre, even though only the new version is listed when I check in synaptic?

View 2 Replies View Related

General :: Free Ebook Link To Study Fedora12?

Oct 25, 2010

I am new to linux and am using fedora12 someone post me a good and free ebook link to study fedora.

View 2 Replies View Related

Hardware :: Charge A Prestigio Libretto Per3362b Ebook Reader?

Apr 29, 2011

I've just bought a Prestigio Libretto Per3362b Ebook Reader from Amazon. According to the instruction sent with it I am supposed to connect it to a computer via a usb port and to press the power button to turn on/off the device. It is supposed to take 12 hours for the first time. These instructions make no sense to me (do I turn it on or off and how do I know if it's on or off?) and pushing the button seems to have no visible effect on the reader (no lights go on, etc.). Charging the thing for 12 hours has no obvious effect. Can anyone walk me through the initial charging operation?

View 4 Replies View Related

General :: Edit LaTex Files On A Tablet / Ebook Device?

Oct 31, 2010

Reading and revising LaTex 20-page documents seems to be much more easier with a printout (hardcopy) then reading them off a screen. However, I cannot edit the document in real-time (just scrabble comments on the paper) which is cumbersome.

So it there a tablet or even better an ebook device (with e-ink which is easier on the eyes) where I can read document similarly to a printout and edit them in real-time?

View 5 Replies View Related

Ubuntu Installation :: Removing Evolution From Synaptic Vs Just Removing The Applet

Feb 27, 2011

what i did was, remove evolution mail from synaptic, what i wanted to do was just remove the indicator applet from the task bar. i read a bunch of bad stuff about removing evolution from synaptic vs just removing the applet.

im worried. did i break anything or put my security at risk. after, i used a command (older) (sudo apt-get install ubuntu-desktop)to install ubuntu desktop. because i thought that it would fix evolution. then i went to synaptic and installed a package called evolution. i rechecked evolution in applications menu. however, i notice that i have both a checkable evolution and two evolution icons. nothing 'seems' broken. im not sure if it ever was. and evolution calender pops up as normal, as does the the installed plain evolution. they both seems to be an exact copy of the other.

all i really wanted to do was remove the indicator applet. did i make a serious mistake. since ive had ubuntu, ive reformatted a lot because i was worried i made a mistake of some kind. however now im into the more "make a mistake and fix it stage' as im pretty happy with my current desktop and have worked hard to customize it. the command, sudo apt-get remove indicator-messages removed the mail icon. i still am worried that i broke something, or put my security at risk. also, now i have two mail icons. evolution mail and calendar, and another just called evolution.

View 1 Replies View Related

Ubuntu Installation :: 10.10 Netbook / Hitting Next On First Page Mouse Icon Changes But Next Page Never Loads?

Oct 12, 2010

i am able to try ubuntu and everything works fine until i try to install. the menu comes up to the first page where it tells you to plug in your machine and make sure there is enough disk space and network connectivity. when i hit next on this page the mouse icon changes but the next page never loads. the longest i let it hang there was 2 hours. ive tried multiple times with the same result.

im running from a flash drive on an ASUS Eee PC 1001P-PU17

View 4 Replies View Related

Debian Multimedia :: Removing Epiphany Without Removing Half The System?

May 31, 2011

I know a bunch of commands and I am comfortable using the terminal, I even set a powerpc server but I can't figure out how to remove epiphany on this new computer I'm setting up. I didn't install anything with tasksel. I installed gnome and xorg afterwards... I load it up and 'startx' just fine. then I check around for the programs that were installed. I lik'em gimp, lot's of utilities. gedit. anyway I find epiphany, which I have already established that I dislike, I immediately go to the root terminal (another nice program that comes with gnome) and type apt-get remove epiphany-browser-data the output says it will be deleting gnome... however I have researched and found these are simpy meta packages that don't really matter.... however under the section that states all the packages that will be removed by autoremove there is a huge list... I doubt these packages are safe to remove. how to remove epiphany without removing a huge amount of probably needed software

View 14 Replies View Related

Ubuntu :: Firefox Font Sizes Vary From Page To Page?

Jul 11, 2010

10.04; 64 bit In Firefox, the size of the fonts varies greatly from site to site. Some are too small to read, others huge. Some headings and menus overlap.Screen size: 1152 x 864

My settings are:
Proportional: serif 14
Serif: Times New Roman
Sans serif: Arial
Monospace: Courier New 14

View 1 Replies View Related

Fedora :: Removing Notifications And Safely Removing Drives?

Aug 25, 2010

These should be my last pleas for help with regard to Fedora 13. I've been unable to turn off the notifications that appear in the top right corner, despite a decent amount of searching on google. I can't remove any notifications package without removing a bunch of important software along with it. Also, F13 refuses to "Safely Remove" either of my external disks. I have to yank out the usb cord, touching wood each time.

View 5 Replies View Related

Ubuntu :: How To Name Page Up & Page Down Buttons In Global-keybindings

Mar 26, 2011

Can anyone tell me how to name Page up & Page down buttons in global-keybindings to use the custom commands with these buttons?

View 1 Replies View Related

Ubuntu :: How To Retain Mounted Drives In 9.10

Jan 25, 2010

On my computer I have one IDE drive that is my boot drive and a mirrored SATA raid set. When I login as "root" and mount the SATA volume it's always there. When I logout or shutdown if I login as root it's always mounted. I want to do the same thing for my own user ID. I did a search on having volumes mounted when I boot but they seem related to older versions of Ubuntu. It almost seems like a permissions problem since the "root" ID mounts the volume when I boot and my user ID does not.

View 6 Replies View Related

Ubuntu :: Get Rid Of Compiz But Still Retain Compositing

May 23, 2010

Ive been having some really severe problems with compiz on my computer, and Im at a point of utter frustration.

I want to take compiz off of my computer, but I do not want to lose compositing effects, because I run docky (which needs it to run)

Essentially, the problem with compiz, in a nutshell, is that it continually freezes on me when I try to scroll a webpage too fast, or if a fast-paced flash video plays, or anything that might choke up the window manager does. I end up having to pull up a terminal, killall compiz, then restart it manually; it works again until I try to scroll too quickly or something and then it will lock up again.

I know I could run compiz on this computer, but I dont know why this current version will not cooperate, so in lieu of finding a solution, I kinda want to just purge it.

View 4 Replies View Related

Ubuntu :: Visual Effects Don't Retain.

Aug 30, 2010

My Acer laptop Travelmate 290 was fine till yesterday (ie) before full update.No Error.I have the recent Ubuntu. Later When I boot I can't find my cursor but I could randomly see pop up notification of Application----Places--- System could be read.When I open any folder its fixed to top of the screen and no button for minimise,max and close.When I dig thro all the forums and solved by reinstalling metacity and change the setting of Appearance-Visual Effects to Normal.When I set to Normal it scans for the driver and asking me to confirm the setting.Once confirmed all the above problems solved but it don't reatain it,it is jump back to none. I need to do this on every boot.Is any way to avoid this? Is anyway to clean all the compiz files and setting from the PC?I vaguely remember it may be because of uninstall of compiz.

View 2 Replies View Related

Ubuntu :: Unity Launcher Does Not Retain Changes ?

Jul 14, 2011

I installed Natty Narwhal on a brand new Ideapad Z570 and everything worked out of the box except wifi for which I had to blacklist acer_wmi.

I installed Google Chrome and replaced firefox with chrome in the launcher. So everything works fine until I reboot. Firefox is back. I saw this a couple of times so I though why not just get rid of firefox. Unfortunately now there's nothing in place of firefox.

I tried unity --reset but that just shows a bunch of errors. I have dconf-tools and libdconf0 installed.

View 2 Replies View Related

Fedora :: Npviewer Segfaults - Firefox Sometimes Shows The Title Of A Page In A Tab But The Page Is Blank

Nov 23, 2009

On FC11 64 bit with Adobe flash plugin for Linux installed, I see segfault errors from "npviewer" in /var/log/messages. The only browser I have tried yet, Firefox, has glitches every now and then. Sometimes it shows the title of a page in a tab, but the page is blank. This can even happen when I try the Google main page. Is it true that npviewer has something to do with Adobe flash? Is there a way to fix the problem? If it is caused by Adobe flash, is there a different plugin that will replace Adobe flash player?

View 1 Replies View Related

General :: Find Page Hit And Page Miss Ratio In Fedora Core 12?

May 10, 2010

How can I find page hit and page miss ratio in linux fedora core 12?

View 3 Replies View Related

Hardware :: HP Deskjet 940c On Linksys Printserver Prints Alternating Good Page And Bad Page

Mar 9, 2011

I have a problem printing to my HP printer.

What is my problem? I have a page (one page - text an graphic) to print. When I sent it to my printer it prints OK. When I sent it agian, the output is totally garbled. When I sent it again (a third time) it is OK. Sent it again (4th time) it is garbled. Sent it again ... you get the picture ;-). Alternating good and bad pages.

What is my setup? I run Fedora 14 with Cups 1.4.6. The printer is a HP Deskjet 940C. It is connected to a linksys wireless print server. It is configured in CUPS to use ipp printing. The driver I use in Cups is 'CUPS+Gutenprint v5.2.6 Simplified (color, 2-sided printing)'.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved