baker icon indicating copy to clipboard operation
baker copied to clipboard

HTML files read alphabetically

Open folletto opened this issue 16 years ago • 12 comments

As a user I want to use any name for my HTML files, seeing them inside Baker alphabetically ordered.

folletto avatar Nov 06 '10 00:11 folletto

I'll handle this

Xm4s avatar Nov 07 '10 12:11 Xm4s

Handle custom file names and alphabetical order visualization. Tested on simulator and pushed on main branch, waiting for a test on physical device (just to be sure all is ok) before closing.

Xm4s avatar Nov 07 '10 14:11 Xm4s

Note: this is going to change slightly the handling of page numbers. Now we are using 1.html, 2.html, but with the alphabetical ordering now 1.html is followed by 10.html, so we need to state the change clearly when we are going to release this update in the downloadable package.

folletto avatar Nov 07 '10 17:11 folletto

I'm not sure whether alphabetic ordering is smart, also looking at what folletto notes above. I would love for the hpub standard to define how the files should be named, I personally liked the numbered pages a lot :)

svdgraaf avatar Nov 07 '10 18:11 svdgraaf

Yes, but it's not feasible: too many kinds of book, too many needs. Even making one book with the current numbering is a pain, so alphabetically the author retains full control. :)

folletto avatar Nov 07 '10 18:11 folletto

Suggestion: default to numbered pages, or define a file order in the meta file?

svdgraaf avatar Nov 07 '10 19:11 svdgraaf

I think it's a good choice to define the order in a configuration file as you said svdgraaf. Have considered the possibility that it might be multi language? in that case I think that may complicate that order it just by numbers.

segundoseis avatar Nov 07 '10 19:11 segundoseis

Consider that every setting we add to the standard, the less it's probable it could became a real standard.

Alphabetical ordering works already well without any kind of setting, and that's the assumed default for many systems, from how the filesystem shows you the files, to how we manage chapter numbers, allowing also numbering if you want to. No setting needed, works outside of the box intuitively. :)

folletto avatar Nov 07 '10 19:11 folletto

Confirmed and tested, it works. :)

folletto avatar Nov 07 '10 20:11 folletto

suggestion, maybe keep it ordered numerically and add the title of the chapter to the name of the file: 1.intro.html, 2.early_days.html, 3.the_end.html ...

bru avatar Nov 14 '10 10:11 bru

Yup, that's something that is going to happen already if they are ordered alphabetically. Just, if you have more than 10 page, it's going to be: 01.name.html, 02.name.html and so on. :)

folletto avatar Nov 14 '10 12:11 folletto

Flexible and elegant!

jeffehobbs avatar Nov 14 '10 13:11 jeffehobbs