Questions tagged [fb2]

FictionBook is an open XML-based e-book format, which originated and gained popularity in Russia. The FictionBook files have the .fb2 filename extension.

FictionBook is an open XML-based e-book format, which originated and gained popularity in Russia. The FictionBook files have the .fb2 filename extension.

The FictionBook format does not specify the appearance of a document; instead, it describes its structure. For example, there are special tags for epigraphs, verses and quotations. All the ebook metadata, such as the author name, title, and publisher, is also present in the ebook file. Hence the format is convenient for automatic processing, indexing, and ebook collection management. This also allows automatic conversion into other formats.

Features of FictionBook

  • Free and open format with multiple hardware and software implementations
  • DRM-free
  • Supports reflow by design
  • Simple semantic markup
  • Optimized for narrative literature
  • Embeds metadata, proposes its own scheme for genre description
  • Supports Unicode
  • Documents may contain:
  • Structured text organized in nested sections (optionally titled)
  • Subtitles (which do not appear in the table of contents)
  • Epigraphs
  • Poetry
  • Quotations
  • References and footnotes
  • Tables (but not all readers support them)
  • Raster images (PNG or JPEG)
  • Inline formatting:
  • Strong (usually bold)
  • Emphasized (usually slanted or italic)
  • Strikethrough
  • Superscript
  • Subscript
  • Program code (usually in monospace font)

Source: Wikipedia.org (FictionBook)

11 questions
9
votes
2 answers

Why Visual Studio doesn't like this XML schema? (Prefix '' cannot be mapped to namespace name reserved for "xml" or "xmlns")

FictionBook (also known as FB2) is an XML-based format of electronic books. Its schema can be found here: http://gribuser.ru/xml/fictionbook/2.0/xsd/ However, when I downloaded this schema and tried to open it in Visual Studio 2012 I got a bunch of…
thorn0
  • 9,362
  • 3
  • 68
  • 96
2
votes
1 answer

Parsing FB2(XML) in Haskell

Started to learn Haskell, I decided to get acquainted with Parsec, but there were problems. I'm trying to implement the parsing of the books in the format of FB2. On conventional tags ( text ) is good, but when the tag within a tag - does not…
harungo
  • 219
  • 2
  • 11
2
votes
1 answer

Solr: indexing fb2 files

I want to use Solr for indexing some library, that represent books in fb2 format. In fact fb2 is just xml with similar xsd format. But, post.jar ignores *.fb2 files, and I dont understand how to map values in fb2 file to index fields,…
arkhamvm
  • 619
  • 1
  • 15
  • 29
2
votes
1 answer

Getting image from fb2 file in Java

I'm working now for e-book reader written in Java. Primary file type is fb2 which is XML-based type. Images inside these books stored inside tags as a long text line (at least it looks like text in text editors). How can I transform this…
1
vote
1 answer

Calibre server and FB2 mime type in feed

I run calibre-server in my local network that every one family member can access our home library. Calibre server returns FB2 files as of type "text/fb2+xml" in the feed. I have troubles to download FB2 files on my PocketBook Touch Lux 4 because it…
Nicolai
  • 5,489
  • 1
  • 24
  • 31
1
vote
0 answers

How to get info about fb2 book in Java for Android?

Adding book from a file feature in android app is in progress. I want to eject cover (as PNG), author's name, title and text content from .fb2 file. How can I do it via Java for Android? There is a code: public class Book { private String…
amazingbasil
  • 1,695
  • 3
  • 18
  • 23
1
vote
2 answers

Symfony2 DomCrawler and FB2 book format parser

All! How do I parse correctly described XML file with Symfony2 DomCrawler component? I need to split all the sections and collect an internal tags (epigraph, p, poem etc.) with the current section together which belongs to this section only. I've…
Alexander Vasilenko
  • 706
  • 1
  • 11
  • 24
0
votes
0 answers

Understanding XSD error in a third party document

Using Python and lxml to validate a third-party XSD, I get the following error already while parsing the FB2 (FictionBook) schema: lxml.etree.XMLSchemaParseError: attribute use (unknown), attribute 'ref': The QName value…
Open Food Broker
  • 1,095
  • 1
  • 8
  • 31
0
votes
1 answer

java fb2 library

I want api for creating fb2 files. Can you help me ?
erertw
  • 27
  • 3
0
votes
0 answers

parsing fb2 book as xml

I want to write a fb2 book parser. I am trying to parse it like xml in this way: XmlDocument doc = new XmlDocument(); doc.Load("file name"); foreach(XmlNode item in doc.DocumentElement.ChildNodes) { using(StreamWriter sw=new…
IceStrength
  • 83
  • 1
  • 1
  • 5
-1
votes
1 answer

Make a table in ebook file

I wanna make a book with parallel translation. It supposed to have table with to columns - one have text on source language, the other on target language. I found, that I can do it easy with fb2, just write a xml code by python script. But my ebook…