|
Programs
• Fix LRF
Internals
Downloads
Contacts
• E-mail
|
FB2 to LRF converter FB2 format the FB2 format was developed by Dmitry Gribov (aka GribUser) for electronic books. The FB2 description can be found at www.fictionbook.org. The FB2 format is widely used and became a standard for many online ebook libraries. The idea of FB2 is pretty straightforward: every major element of the electronic book is represented in a xml scheme. The basic elements of ebook such as paragraphs, verses, epigraphs, cites, hyperlinks, book sections, images etc are recognized in the FB2 format. At the same time formatting (decoration) of these elements is left for the reading/conversion application. With this approach the output can be adjusted in accordance with personal preferences (font size, margins, decoration). The FB2 header allows automatic sorting and cataloging in the libraries. There are many FB2 readers and converters to other formats. For example open source Haali reader is available for almost any platform. FB2 content can be read also with Book Designer program, the Book Designer program can also edit and create FB2 books. Tens of thousands books are available in FB2 format. The books in FB2 format can be found at, for example, www.fictionbook.ru , www.aldebaran.ru, fenzin.ru online libraries. Most of the book are in Russian, but hundreds of books can be found in English also. FB2 to LRF converter Как можно конвертировать файлы: 1. Нажать кнопку, выбрать файлы для конвертирования. Если ничего не настроено в job (LRF file=Source Folder), LRF файлы будут созданы там же, где и исходные. Можно задать путь, где файлы будут созданы (по желанию - в фолдерах по именам авторов). 2. Конвертировать все файлы в указанном фолдере (можно с сабфолдерами) (закладка "Search", диалог Job) 3. Drug-and-Drop. Выделить желаемые файлы в Explorer и перетащить их на fb2lrf. Файлы будут созданы в соответствии с установками диалога job (вторая сверху кнопка). 4. При настройке контекстного меню (диалог Styles-Context Menu) при нажатие правой кнопки мыши появится выбор :here (файлы будут сконвертированы туда же, где и исходные) и job (файлы будут сконвертированы в соответствиями с установками job). 5. По нажатию правой кнопки мыши из Mozilla Firefox браузера (см. ниже, update November 2007) 6. Для command line вызовов: (расширение файла значения не имеет, fb2lrf автоматически проверяет файл, но файл должен быть или fb2 или zip- запакованный fb2 (один файл на архив)). Update. Если нужна консольная версия, которая не имеет никаких графических интерфейсов см. fb2lrf console. Пример приминения: A) Меню в программу Библиотекарь (см. www.fictionbook.org/forums). По нажатию на меню книжка будет сконвертирована в соответствии с установками job.
В этом примере 2 верхних меню соответствуют fb2lrf (текст выше), а два нижних конвертации fb2 в RB (программой fb2any). Б) Скрипт преобразования в lrf для MyHomeLib (спасибо 1_абрам) Можно делать и так как предложено 1_абрам в форуме MyHomeLib, но лучше делать используя поиск самим fb2lrf, в этом случае все файлы будут обрабатываться скопом, что быстрее и не надо дополнительных логов, так как fb2lrf создаст их сама. Удалять конвертированные файлы можно тоже fb2lrf, тогда и batch файл не нужен и cmd окошко всплывать тоже не будет.. 1. Создать фолдер где будет хранится fb2lrf предназначенная для MyHomeLib (лучше иметь специальноую копию, чтобы не затрагивать другую/ие fb2lrf), туда положить: fb2lrf.exe, default_job.jini, default_styles.sini. В нашем примере это "C:\MSH\EBOOK\test my home lib\fb2lrf" ("C:\MSH\EBOOK\test my home lib" это фодер самой MyHomeLib) 2. Создать фолдер куда будут складываться файлы предназначенные для преобразования "C:\MSH\EBOOK\test my home lib\Lib" при нажатии "send to device" (эти файлы не связаны с файлами библиотки и после преобразования будут стираться скриптом) 3. Создать фолдер, где будут хранится LRF (как альтернатива, эти файлы можно не хранить и фолдер не создавать, если в job settings установлено "LRF destination"-"Sony Reader" и не отмечено "File on HD", тогда LRF файлы будут создаваться в default TEMP фолдере. Но лучше этот фолдер создать, чтоб потом не думать). В этом примере "C:\MSH\EBOOK\test my home lib\OutLRF" 4. Настроить fb2lrf для output и search фолдеров и delete original FB2 file after conversion:
Первая картинка ссылается на фолдер, где будут создаваться LRF ("C:\MSH\EBOOK\test my home lib\Lib"), а вторая - где искать fb2 файлы предназначенные для преобразования ("C:\MSH\EBOOK\test my home lib\OutLRF"). На третьей картинке - настройка удаления сконвертированного файла. 5. Прописать этот скрипт в MyHomeLib
7. Теперь, когда нажимается кнопка "send to device" отмеченные для посылки файлы будут преобразованы в lrf, lrf будут лежать в "C:\MSH\EBOOK\test my home lib\OutLRF". Если отметить засылку в Ридер в job setting fb2lrf, то они будут автоматически посланы и в него. Updates November 2007: Add-on for Mozilla Firefox. Tested: Firefox 2.0.0.8, Windows XP and Windows Vista. 1). Спасти куда-нибудь fb2lrf.xpi отсюда http://www.msh-tools.com/ebook/fb2lrf.xpi 3) Зарегистрировать extension по которым будут появляться динамические меню (.fb2, .fb2.zip, .zip, все). Поведение должно быть таким: При наводке мыши на линк, который заканчивается зарегистрированным extension (.fb2, .fb2.zip, .zip, или любые) и нажатии правой кнопки появятся динамические меню:
Соответственно, конвертировать как указанно в job, или вызывать диалоги настроек ("styles" и "job"). Помните о том, что файлы скачиваются в Tmp фолдер, и чтобы их там не искать, не забудьте настроить фолдер, куда будут записываться LRF файлы ("LRF files" настроек "job").. Updates October 2007: Версия 16.4 позволяет записывать файлы как на жесткий диск компьютера, так и в Сони Ридер 500 (во внутреннюю память и/или на карточку). Для передачи по USB используются dll из Sony Connect, так что он должен быть установлен на компьютере и закрыт. Для апгрэйда версий >16 просто перезапишите fb2lrf, все настройки сохранятся. Версия 16.3 Несколько исправлений и запоминание позиций окошек. В многомониторном окружении позиции запоминаются на любом из мониторов, при невозможности отобразить на выбранном мониторе (например, если он отключен или его позиция поменялась, окошки будут показаны по центру default монитора). Для апгрэйда версий >16 просто перезапишите fb2lrf, все настройки сохранятся. Updates August 2007: В версии >16 1. Изменены форматы job и styles файлов, теперь они текстовые и по формату похожи на *.ini В этом примере: fb2 файлы будут a) взяты из выбранного фолдера (по browse, drug-and-drop или контекстного меню b) LRF файлы --------------------------------------------------------------------------------------------------------------- New features have been added: 1. Drag-and-Drop to the FB2LRF window will automatically convert the files according to the "paths" (job) settings: if no LRF folder determined, files will be converted to the "drag" folder, otherwise to the LRF folder. removeFB2LRF.exe removes context menu. This utility is provided for convenience only, its operation is equivalent to the "no menu" setting from FB2LRF. Use this utility if you already removed fb2lrf from the computer and would like to clean up the registry, otherwise use "no menu" from fb2lrf. Версия >15.1 Drag-and-Drop. Drag-and-Drop файлы на Fb2lrf окно и эти файлы будут сконвертированы в соответствии с paths settings: Если фолдер для LRF файлов неопределен, то файлы будут конвертированы в фолдер откуда были перетащены, если LRF фолдер определен - то туда. В новых версиях (>14.0) добавлена поддержка контекстных меню. Если файл имеет расширение *.fb2, fb2.zip (и/или другие по выбору) по нажатию на правую клавишу мыши появится меню. Можно выделять несколько файлов одновременно. Вот так:
1. Here: LRF файлы будут будут создаваться в этом же фолдере. Из-за некоторых проблем с InstallShield в версии 13 (устанавливаемой через setup) возможно пропадание регистрации для zip файлов (если они, например, были зарегистрированы WinZip или Winrar). В новой версии (в. 14) эта проблема решена. Версия 13 считается устаревшей и подлежит удалению. В версии 14 setup не требуется, регистрация происходит из "Cont. Menu" закладки "Styles" диалога:
1. Программа копируется в любой фолдер и начинает работать в обычном "однокнопочном" режиме. Никаких изменений в registry не делается. Если ранее была установлена версия 13 (через setup) проделайте следующее: 1. Сделайте Remove (uninstall) из "Add/Remove program"
Тестировно Windows XP(eng), SP2, Vista Premium (eng). end update
The fb2lrf is a windows program with simple, but powerful interface for fast conversion of FB2 books to LRF format of Sony Reader. The major features are:
The test kindly performed by the members of www.the-ebook.org community shows high performance and error-free operation. 25,000 fb2 books were converted in 4 hours (0.6 sec/book).
Usage:
The status bar shows the name of currently converted file, the progress bar shows progress for the current file, the window at the bottom of the button shows the total number of files to be converted and the current progress. Job paths dialog:
1. Source If the "Folder" checkbox checked the content of the folder indicated will be converted. If "Subfolders" is checked than files will be searched in all subfolders. If "Any" is checked all files (independent on the file extension) will be considered as possible candidates for the fb2 files (it makes search slower). 2. Destination The folder where converted LRF files will be created. If "SubFolders" is checked (together with the "Subfolders" checkbox in the Source) than the same to the source structure of the subfolders will be created. If "Name=title" is checked than the LRF file name will be created based on the book title (including the series), if not checked the LRF file will have the same name to the source fb2 files (including extension). 3. Do after conversion After the file was converted the source fb2 file can be deleted or/and moved to the selected folder (controlled by the "CopyTo" and "Delete" checkboxes). Complete log file and skipped log files can be viewed with the "Log" and "Skip" buttons. The log files will be overwritten with new conversion. "OK" applies settings, "X" is for cancel. The setting from this dialog are saved automatically. New run of the program restores last used settings. Styles dialog
Page tag The "Page" tag of the dialog is used for general setting of the LRF book. "Margins" determines general margins of the page in pixels. Margins for all other elements are counted from the Page margins. The "Header" and "Footer" dialogs determine general behavior of the footers and headers, more precisely footers and headers can be adjusted from dedicated "footer" and "header" tags. If the footer or header checkboxes are not checked, the footer or header will not be created and the "height" and "gap" have no effect. Size of all fonts in the book can be adjusted proportionally in one click with the "All Fonts,%". The "word space" determines minimum word separation. The "FullSize cover" scales the cover image (if any) to the full page size. "Page at SubCh" makes page breaks at subchapters, if selected the TOC includes subchapter titles. "All translit" is used for latin representation of the russian characters in the TOC and book title (for using in nonrusified Readers with embedded russian fonts). "Styles". "Load" and "Save" are used for saving and loading the current style settings the file with any name. "Save default" saves current setting to the default.cstyle used when fb2lrf is starting. "OK" button applies current styles, the "X" button closes dialog without any changes. Styles for FB2 elements The style dialogs for each of the fb2 elements are similar. For example the style dialog for the "Epigraph" dialog is shown.
1. "Font" includes font name, the font size (in points) and font decoration (Bold or/and Italic). The Sony Reader fonts ("Dutch", "Swiss" or "Courier" can be selected with dropdown box (indicated with the "i" picture , the external fonts can also be added with the "+" button (embedded into the LRF fonts), the are indicated with the "e" picture in the dropdown box. Please take into account that the embedded fonts slows down the page turns). External fonts can be selected from any installed in the Windows. The examples of the font dialog is shown below.
2. "Margins" are left, right, top and bottom margins relative to the Page margins. 3. "Spacing&Alignment" used for text alignment of the selected fb2 element. "The "Indent" is the first line indent for the paragraph. 4. "Text author" is Fb2 element for the author of specific element (e.g. epigraph. verse, etc). The "Text author" will be shown with the font setting of the current fb2 elements but with the ability to adjust the indent and font decoration (bold or italic). The font decoration is independent on the major decoration setting for this element. Header and Footer tags The "Header" and "Footer" tags determine behavior of the header and footer. The header and footer spacing is set on the "Page" tag. The font name, the font size and the decoration (italic / non italic)can be set independently for the header and footer.
The header and footer content can be selected from the following: i) the book title (including the series), ii) the book author and ii) the chapter title. With the "Align" the footer or header can be aligned to the left, right or centered. Long lines in the header and footer are truncated with ellipsis to do not distort the page view. Title&Author tag
The "Title order" is used to adjust behavior of the book title and the book series in the LRF file name (if "Title=Name" is set in the "Job paths" dialog) and indication of the title and series in the Connect and Reader. This is done to make appearance of the book from the same series close to each other in the book list. The abbreviation made of the first characters is used for the series name. For example, if the book series is "Harry Potter 2" the abbreviation will be "hp2". The book title can be represented for example: "(hp2) Harry Potter and the Chamber of Secrets", or "Harry Potter and the Chamber of Secrets (hp2)". The order of the first and the last names of the book author can be adjusted with the "Author(s)" field. The first name can be truncated to the "Initials". Hidden features The fb2lrf supports some features that are not adjustable with the style dialog:
|