![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2009
Device: PRS 505
|
Format idea
Hi all, no this is not yet another thread about scifi uber format made by nonprogrammer to be never specified, nor coded. I will do it on my own (hopefully), but I want to be sure i am not reinventing the wheel.
My idea basically is that there is bad way of todays formating of ebooks. Everyone tried converting books and everyone had problems, because formats are too specific. I want technically return to pre-css ages, with XML-based format that gives you set of basic tags to format ebook. Customization and f.e. re-flow will be done client-side, using some css-like file. This is where HTML basically was, but due to much bigger monitor flexibility, css files became very powerful, and too specific, so its now problem to convert book to smaller device. Similarity can be found in every other format, starting in post-script (but its purpose was to be specific) and ending anywhere (maybe excluding plain text). So, my plan is to make XML-based, hand-editable, opensource, open specification very simple format, and some basic converters. I want just to know that there is not something like it, so I could just help it. Hope someone understood. |
![]() |
![]() |
![]() |
#2 |
zeldinha zippy zeldissima
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
hi jamp, i think you've described what quite a lot of people want for ebooks. but it sounds to me very much like the epub format, which is already being defined. have you taken a look at that ? it's based on xhtml (so, xml, basically) and css, and a couple of format-specific files for metadata and such. you can get more info about it on the idpf site.
you might also want to look at sigil, the epub editor being developped by valloric ; it has its own forum here. if you are a developpeur and interested in helping out with that, i think valloric would be really happy to get some plug-ins or something. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2009
Device: PRS 505
|
Hi zelda, I have a bit of knowledge about formats, and as far as I know, epub is basically zipped html with specified specifications to contain (I've skimmed throught specs before). I want to make format that is distributed like the html part only, with e-book specific tags (also some nice modularity) and user, when f.e. importing to calibre or sigil, will just choose (or will be automatically chosen) style file, which will affect things like fonts, borders, image placements, math formulas rendering etc.
So user will just download file that contains: <book> <chapter name="Blaaa"> <h1>blabla</h1> <text> blabla <image source=loc, placement=semiexact here> </img> blabla </text> </chapter> <toc style=h1></toc> </book> |
![]() |
![]() |
![]() |
#4 |
zeldinha zippy zeldissima
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
ha, okay, i see what you mean. hm. well it's a very interesting idea. i am not sure that it will appeal to the majority of ebook readers, since i think only very few actually *like* to play around with code and formatting, and would want to add their own css. most people prefer to have an ebook ready to go, already nicely formatted and looking good, that they won't have to fiddle with.
on the other hand, i think for professional editors and such, who are producing ebooks to sell, your idea is a very good way to proceed, working in semantic xml and adding the css to the code in the last step, depending on format, etc. who is your main audience, for this idea ? |
![]() |
![]() |
![]() |
#5 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Sounds a lot like FB2 to me.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2009
Device: PRS 505
|
I think major advantage of this format is ability to convert itself. Something like it you can convert to literally anything and get good results, and with some fancy algorithms and bit of users help you can also convert complex things like pdf textbooks to usable file.
I didn't think about target user, but anyone that have problems with some incompatible formats may benefit from it. user_none: thanks, I will take a look /edit Okay, as usual, I actually was reinventing the wheel, fb2 is almost exactly what I invented, I will take much closer look at it (and get through some russian) Last edited by Jamp; 11-01-2009 at 04:05 PM. |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
Nationally Adopted XML eBook Format - Ahi |
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
|
That looks a lot like how I format my books. Except I use <div> instead of <chapter> and I use <p> instead of linebreaks for my paragraphs. <book> is <html> and <toc> is <p><a>.
You can make your HTML as simple as you want. I only use stylesheets to add some extras, like large first letters of a chapter, or no indents for certain paragraphs. |
![]() |
![]() |
![]() |
#9 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,913
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
You should take a look at the Text Encoding Initiative (TEI) and especially TEI Lite
http://www.tei-c.org/index.xml http://www.tei-c.org/Guidelines/Cust...Lite/index.xml Don't re-invent the XML wheel. I suspect TEI Lite will do all you wanted to do. There's some good documentation: http://www.tei-c.org/release/doc/tei...ilite.doc.html For conversion of your documents to other formats, you should be looking at XSLT http://en.wikipedia.org/wiki/XSLT where by use of an XSLT template, you can convert from an XML document into any other kind of document. Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
|
Quote:
Thanks for these links pdurrant! - Ahi |
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
My "read" tag idea enhancement for Calibre idea | rcuadro | Calibre | 10 | 01-20-2011 04:23 PM |
I have an Idea | Tim32127 | News | 23 | 01-04-2010 11:55 PM |
Unutterably Silly I have no idea. | pshrynk | Lounge | 18 | 04-27-2009 02:09 AM |