Create file fb2. How to make fb2 from txt: online services and converters for PC. FBI - preliminary editing of fb2 file

95 57 617 0

Modern reader programs are able to recognize more than twenty different text formats: from the simplest txt to djvu and many others. But in order not to confuse users in various formats and extensions, most layout designers and compilers of electronic versions of books began to use the relatively new fb2 format, which can rightfully be considered universal and one of the most popular. In this article we will figure out how to convert doc, pdf and txt into fb2.

You will need:

Advantages

The fb2 format has many advantages, for example:

  • Displays all illustrations perfectly;
  • Easily saves large files;
  • In practice, it allows you to recreate the original book on the screen of a PC, laptop, or e-reader.

Flaws

But, at the same time, this format has a very significant drawback - it cannot be opened with standard text viewing tools. That is, if you wanted to read an e-book on a regular phone, without built-in software, then you will have to convert fb2 to txt.


Or another case - you have a huge text document from which you want to make an e-book. And if you don’t know how to convert doc to fb2, then you’re unlikely to be able to do it. Therefore, today we will tell you how to convert fb2 files, as well as how to create them yourself.

Create fb2 from doc, pdf or txt document

There are several special services that will make an fb2 file online from almost any text format. You can use one of the available services.

For example, ebook.online-convert.com, which is a fairly powerful tool for working with e-books, and has many other equally useful functions.

Or convertfileonline.com. It is Russian-language, has a simpler interface (but at the same time, fewer functions), so we will choose it.

This method will be an excellent solution if the file is small in size and does not require additional formatting. So if you need to convert pdf to fb2, follow the instructions.

We open the main page and see the work area in front of us. Using the “Select file” button, we indicate the path to our pdf, txt, or docx file.

In the window, select the FictionBook2 (FB2) item - this means that the book will be created in a “pure” format, completely corresponding to the source.

Click “Convert”, and in a moment your browser will begin downloading the finished book in fb2 format.

Making a txt, pdf or doc document from an fb2 file

The process is the reverse of the above. Let's say you are, but it is in fb2 format, but you want to read it on your mobile phone, which, besides txt, simply does not recognize other formats (at best, if it is a smartphone, then doc/docx). Converting fb2 to txt is no more difficult than doing the opposite.

The same service convertfileonline.com will help us with this. In the main window, we indicate the path to the file in a familiar way, after which in the working window we select the required format of the final file - EPUB, RTF, DOC, DOCX, PDF or TXT.

Learning C# while sitting in front of a computer monitor is convenient (and necessary) only when you need to open Visual Studio and look at sample programs “in practice.” But it is much more convenient to read the theory from the screen of an e-book, lying on the couch or somewhere on a trip. But in this case, you have to face much larger problems, one of which is the lack of the necessary books in fb2 format.
Through a search, I found an article on the Habrahabr website, where the author proposed automatic conversion of books into graphic format. But this would not help me, because... The book I needed was optimized for approximately A4 format, and the PocketBook 626 screen size is only 6 inches. So I had to create a book in fb2 format. Long, but in principle necessary, because... I didn’t find any normal alternatives (it was possible to read directly in pdf format, but it was displayed very poorly on the reader, and without hyphenation).

To create fb2, in addition to having the source text of the book, you need to install an extension for OpenOffice:
1. Download and install OpenOffice (if it is not on your computer).
2. Download and unpack
3. In OpenOffice, go to the Menu and select Tools -> Manage extensions... -> Add...
4. Select the file OOoFBTools.oxt and install it. After OpenOffice restarts, the menu item should appear OOoFBTools

Once all the tools for creating a book are prepared, you can begin creating it. I’ll note right away that this process is not at all fast, but with some practice you can create several hundred A4 pages over the weekend, which in principle is quite enough to prepare reading material for the whole week.
(For starters, you can practice on one page.)
1. For convenience, create your own page format in OpenOffice.Writer, which is more similar to the screen of an e-book: Format -> Page... -> Paper size"Custom..." - approximately 8.80cm by 12.50cm and margins 0.30cm on the right and left and 0.50cm on the top and bottom.
2. Copy the text from the PDF file and paste it into a new OpenOffice Writer document. It is better to paste through “Paste as...” or using the key combination Ctrl + Shift + V and select "Text without formatting"
3. Next, call the FB2 Styles Panel: Menu -> OOoFBTools -> “Fb2 Styles Panel...”
4. Launch Menu -> OOoFBTools -> “Text proofreader...”
In this version of fb2tools, the corrector is also applied to a block of text selected as a listing (code), so to avoid unnecessary deletions, it is better to remove the checked items (I also removed the removal of page breaks):

5. To reduce manual labor, launch the menu item OOoFBTools -> Joining line breaks and paragraphs…

6. Now you need to manually go through the text to identify missing line breaks.
7. After this, you can use the style panel to highlight parts of the text:

  • Book - Title
  • Book - Author
  • Heading 1 (for the title of the Chapters of the book)
  • Heading 2 (for the names of subsections)
  • Quote - Subtitle (to highlight the word Note)
  • Quote (to highlight Note text)
  • code (for highlighting program listings)

8. If the book contains code fragments (listings), then you need to select the menu item OOoFBTools -> Automatic markup of program listings
9. After all the necessary styles have been applied to the text, you can create a “Table of Contents” using OpenOffice. All text highlighted in the “Heading” style will be automatically added to it and page numbers will be added.
10. Before launching Export to FB2 for the first time, you need to configure the following parameters: Menu -> OOoFBTools -> Export2FB21 Settings…

11. In addition, you will need to fill out the “Fb2 Properties Editor...” once.
12. Now choose Menu -> OOoFBTools -> Export to fb2 format… and click the “Export” button.
Result of the page with table and note:

With program listing:

On PocketBook:

P.S. Unfortunately, OOoFBTools is just a Visual Basic script, so it won’t be possible to automatically correct the text 100% correctly and you will have to manually remove paragraph symbols ¶ or insert it where needed. For convenience, you need to enable the display of Non-printing characters in OpenOffice.Writer (Ctrl + F10).
Example with paragraph characters BEFORE manual editing.

Example with paragraph characters AFTER manual editing.

You need to remove ALL paragraph characters followed by text that begins with a small (lowercase) letter. There are, of course, exceptions, for example, when the text begins with numbers, but this happens extremely rarely.

FB2 books, which have become popular especially among PDA owners, are available for download from numerous online libraries. And each user is quite capable of creating an FB2 book on their own. There are already many tools for this. We will look at one of them, Fiction Book Designer, in today's review. This utility allows you to create FB2 books, edit text and tags.

After installing and launching Fiction Book Designer, a small sample text with short instructions opens in the editor window.

If we have our own text, then upload it ( File – Open Book) and start formatting. When preparing an FB2 book, it is advisable to highlight entire paragraphs (lines) double click, this allows you to save a little time and accurately select text.

Any work begins with titles. Click on the line with the name (it will be highlighted), then right-click to call up the context menu (or menu Format) and select the item book title. Thus, we indicate the name of the FB2 book in tags, and the selected text is automatically formatted, for example, it is centered, highlighted in a different color, the font is changed, etc.

To see all the tags of an FB2 book, click the button . Save the changes and check in the window that opens make Fiction Book file. In field book title the name we recently highlighted should be listed. Similarly, we add all other important parts of the text into tags, for example, chapter titles, subheadings, annotations, etc.

Now let's note author and add it to the tags. Select the line and select from the context menu book author. When creating an FB2 book, it is necessary that the author's name be indicated in the tags in the following format: first name, patronymic (if any), last name. If the text is in the wrong order, you can quickly correct it by selecting the menu item more transformations - shift selected words. In any case, full name. the author of the work should appear in the tags, and the text will be formatted.

Further in our example follows book title and number(or the title and number of the book series). In order for the program for reading FB2 books to display the text correctly, in this case it is necessary to correct the title and number of the book in the following format: (Book title – book number) . Be sure to indicate in parentheses separated by a dash. Then, as usual, select the line and in the context menu (or in the menu Format) select the item subtitle. In tags, this data needs to be checked in the field sequence.

If the text contains annotation, then select it and select it in the context menu annotation.

Epigraph at the beginning of the book, also highlight and select the item in the menu epigraph(together with the author, if indicated). Then, if there is a link to the author at the end, mark it as text author. If the line with the author is the last in the epigraph, the same can be done faster by selecting epigraph+text author.

Poetry format in the text with the command verse.

TO headings use the command title, and to the subheadings subtitle.

To select several lines in Fiction Book Designer, double-click on the first one, then together with the key Shift on the last line of text.

Formatting Text in Fiction Book Designer

Finally, let’s look at a few useful techniques to speed up and simplify text formatting when creating an FB2 book.

Often, when scanning or typing text, torn paragraphs, when a line breaks and continues in a new paragraph. To quickly fix a torn paragraph, select both paragraphs and apply the command to them paragraph in the context menu. As a result, the paragraph will take the correct form, two (or more) paragraphs will stick together.

If the text of the FB2 book is formatted incorrectly, for example, instead of a regular paragraph, several lines are marked as poems, then select the lines and select the item in the context menu more transformations - selected elements - paragraphs.

In general, to the selected text through the menu more transformations There are several actions you can take to make formatting easier, for example:
break + title– add an empty line and format the selected text as a heading;
subtitle + break– mark as a subtitle and add an empty line after it;
line break before and after selection– add one empty line before and after the selected line.

Via the menu more styles can you make a superscript font ( superscript), subscript ( subscript), underlined ( underline), remove all spaces in the selection ( remove spaces).

Team Insert special symbols allows you to open a window with a list of special characters for quick insertion into text.

To see non-printing newline characters, in the menu View choose show nbsp.

There, when you select the item Book Info A window opens with information about the FB2 book. Here you can not only view statistics on headings, paragraphs, words, but also on characters, for example, the number of brackets, quotes, etc. Button will help you find the specified tags in the text (headings, subheadings, epigraphs, verses, etc.) and create a list of elements through which you can quickly go to the selected element.

A window with a list of fonts, where you can not only select a font, but also size, color and style, opens through the menu Configuration – Fonts.

Most of the commands discussed are collected in the toolbar located to the right of the Fiction Book Designer editor window; to open it, select from the menu Tools paragraph Book Corrector.

A list of all elements opens through the menu Tools – Element Browser. Through this list it is convenient to quickly move between chapters of an FB2 book, instantly scroll the text to any heading and, in general, any formatted element.

Finally, we also note that for texts in Russian it is necessary in the settings ( Configuration - Settings) in the drop-down list book language stick out your tongue Russian.

Once you've finished editing and formatting your text in Fiction Book Designer, you can create a . To do this, press the button and in the window that opens, already familiar to us, click on the button . The finished book is saved in the folder where Fiction Book Designer is installed. The finished file opens in an additional utility installed with the editor called Fiction Book Investigator. Here we can see the FB2 file format “from the inside” - the text and elements of the book are presented in tags. The same utility will help check the validity ( Book - validate) of the received code and, if there are errors, correct them manually. It is advisable to view the finished text in any program for reading FB2 books, for example, Haali Reader.

Characteristics:
Interface language: English
OS: Windows 2000, XP, 2003, 2008, Vista, 7
File size: 6.3 MB
License: free

Hi all! Those who are often in search of interesting literature on the Internet, at least in absentia, will be familiar with the fb2 format. However, many avoid it and prefer the long-familiar text formats doc or pdf. Why is this happening? But because when downloading books in fb2 format, they cannot be opened using standard office programs, and the automatic method of opening files does not always display the contents in the form in which it was intended.

But, despite the slight difficulties with opening fb2 files, this format has its advantages, which we will discuss later in our article. We will also touch on the following issues: how to open fb2 files and how to create an e-book in fb2 format . Go!

Advantages of fb2 format

FB2 format (Fiction Book) transforms a text document into an electronic version in which each element is described by a tag. And the features of this format include the following possibilities:

  • Reproduces the file in a form convenient for you, which can be customized by changing the font size, letter color and background.
  • Supports structural markup: footnotes, citations, tables of contents, illustrations, author information, etc.
  • Automatically processes and updates the book, taking into account all edits and additions.
  • Provides ease of creating e-books of any complexity.

If you are the happy owner of an e-book (reader), then you won’t have to rack your brains about how to open an fb2 file. In most cases, they support this format by default, so when you download literature from the Internet, you upload it to your e-reader, and it can easily open it.

Those who use a tablet, smartphone, computer or laptop to read e-books will have to install a program to open documents of this format. Today there are a sufficient number of them, but the principle of their operation is not particularly different - play the file. But, as always, some differences may exist. Therefore, now we will analyze the most popular and convenient programs for opening the fb2 format.

FBReader

FBReader is a free and easy-to-use program that can also work with other popular formats: ePub, TCR, HTML, TXT, Mobi, PalmDoc, zTXT. It has versions for different operating systems; moreover, there is a mobile version for reading books on a smartphone or tablet. For example, for Android devices such a utility is called FBReaderJ. You can also use it to read books directly from zip, gzip, tar archives.

FBReader provides functions for sorting literature into categories, turning pages, formatting text, copying and saving important information to bookmarks. The program also contains free and paid catalogs with literature that can be downloaded there.

CoolReader

CoolReader – an excellent utility for reading electronic documents in fb2 format. It also has versions adapted for different operating platforms such as Linux, macOS, Windows. It can work without installation, that is, in portable mode.

Due to the settings, the program allows you to display one or two pages at the same time, create bookmarks, read in full screen mode, view a list of recently opened books, select the font size, change the scale and adapt to the screen position.

It is worth saying that CoolReader is quite pleasant to read. Because it has the ability to smooth the font and imitate a real book through a customizable background.

In order to create an fb2 document, you do not need to have any special skills or knowledge. It will be enough to use a simple method that we will now share with you. It will allow you to do this quickly and easily.

First of all, use any text editor. Let it be, for example, everyone’s favorite Microsoft Word. Create a document in it with all headings, footnotes, illustrations according to the given rules. Then save it in standard doc/docx format.

Next, we will need a “helper” to convert a file from doc/docx format to fb2 format. We will use the free Caliber program, which is designed to convert one format to another, or “tailor” files to the required devices.

During installation, you must select the folder in which you will place the created documents. Afterwards, a list box will appear where you can select the device from which you will read. Thus, the file will be converted for it.

But to change the format, click on “Generic”. In any case, you can always call up these settings via options if the situation changes.

Now add the doc/docx file, and then click on “Convert books”. In the pop-up window at the top left, select the fb2 format we need. Please note that this program has more advanced capabilities; it converts back and forth between different formats. When the conversion is finished, go to the folder that you specified during installation, where the documents will already be saved in the new format.

Conclusion

This concludes our article. We hope that it was useful, and now you can easily open fb2 files and create an e-book in fb2 format.

Did you read to the very end?

Was this article helpful?

Not really

What exactly did you not like? Was the article incomplete or false?
Write in comments and we promise to improve!

FB2 is an extremely popular format, and most often you can find e-books in it. There are special reader applications that provide not only support for this format, but also the convenience of displaying content. It’s logical, because many people are used to reading not only on a computer screen, but also on mobile devices.

No matter how cool, convenient and widespread FB2 is, the main software solution for creating and storing text data still remains Microsoft Word and its standard DOC and DOCX formats. In addition, many e-books are still distributed there the old fashioned way.

You can open such a file on any computer with Office installed, but it won’t look very convenient for reading, and not every user will want to bother with changing the text formatting. It is for this reason that the need to translate a Word document into FB2 is so urgent. Actually, we will tell you how to do this below.

Unfortunately, it is impossible to convert a DOCX document to FB2 using the standard tools of the Microsoft Word text editor. To solve this problem you will have to resort to using third-party software, namely . This is not the most popular program, but for our purposes its functionality is more than enough.

Despite the fact that the installation file takes up less than 1 MB, the characteristics of the application are pleasantly surprising. You can familiarize yourself with them below; you can download this converter on the official website of its developer.

1. After downloading the archive, unpack it using the archiver installed on your computer. If there is none, choose the appropriate one from our articles. We recommend using one of the best solutions for working with archives - the WinZip program.

2. Extract the contents of the archive to a convenient location on your hard drive, place all files in one folder. Once done, run the executable file.

3. After launching the program, open the Word document that you want to convert to FB2. To do this, click the button in the form of a folder on the toolbar.

4. After specifying the path to the file, open it by clicking "Open", the text document will be opened (but not displayed) in the program interface. The top window will simply indicate the path to it.

5. Now click the button "File" and select "Convert". As can be seen from the tooltip next to this item, you can start the conversion process using the key "F9".

6. Wait for the process to complete, a window will appear in which you can set a name for the converted FB2 file and save it to your computer.

Note: By default, the program saves converted files to a standard folder "Documentation", and by packing them into a ZIP archive.

7. Go to the folder with the archive that contains the FB2 file, extract it and run it in a reader program, for example, the capabilities of which you can familiarize yourself with on our website.

As you can see, a text document in FB2 format looks much more readable than in Word, especially since you can open this file on a mobile device. The same FBReader has an application for almost all desktop and mobile platforms.

This is just one of the possible options that allows you to convert a Word document to FB2. For those users who for some reason are not satisfied with this method, we have prepared another one, which will be discussed below.

Using an online converter

There are quite a few resources that allow you to convert files from one format to another online. The Word direction we need in FB2 is also present on some of them. So that you don’t have to search for a suitable, proven site for a long time, we have already done this for you and offer as many as three online converters to choose from.

Let's look at the conversion process using the last (third) site as an example.

1. Select the Word file that you want to convert to FB2 by specifying the path to it on your computer and opening it in the site interface.

Note: This resource also allows you to specify a link to a text file if it is posted on the web, or download a document from popular cloud storages - Dropbox and Google Drive.

2. In the next window you need to configure the conversion settings:

  • Paragraph “Program for reading a received e-book” We recommend leaving it unchanged;
  • If necessary, change the file name, author, and margin sizes;
  • Parameter "Change initial file encoding" It's better to leave it as it is - "Auto-detection".

3. Press the button "Convert File" and wait for the process to complete.

Note: The download of the converted file will start automatically, so simply specify the path to save it and click "Save".

Now you can open the FB2 file obtained from a Word document in any program that supports this format.

That’s all, as you can see, converting Word to FB2 format is not at all difficult. Just choose the appropriate method and use it, whether it is a converter program or an online resource is up to you.

Continuing the topic:
Windows

Xiaomi continues to “close the blind spots” in its assortment, simultaneously releasing screwdrivers, curtains, everything in a row, and then suddenly for some reason it was necessary to “go back” and do...