
On Mon, Nov 30, 2009 at 04:56:34PM -0500, David A. Desrosiers wrote:
On Mon, Nov 30, 2009 at 4:16 PM, Greg Newby <gbnewby@pglaf.org> wrote:
Does this seem like it should be easy? Or, do we need to customize for 1000 different devices (literally...according to our pals at wattpad.com).
The correct way is to just apply a stylesheet for mobile devices to your existing HTML page, and be done with it. You don't even have to edit the HTML to apply it to all of the sub-html pages you serve from that vhost if you wish. The main site appears to be running Apache/2, so that's doable.
This sounds easy to mock up. But I plead ignorance as to how a style sheet would do this. I infer you're not talking about user-agent switches (which we do sometimes use in a .htacess file, as well as various URL redirection).
I'd even be willing to expose my Gutenberg mirror as the "mobile site" and make the necessary adjustments if you wanted to do that.
That would be another easy way to test, thanks.
Supporting per-device useragents is a dead-end right from the start; you'll always be playing a losing game of catch-up the whole way.
Definitely. I know some places are doing it that way, but presumably they have content that demands more customization than our relatively simple eBooks. Or maybe they're just gluttons for punishment.
Let me know and we can begin testing out some ideas.
It's pretty easy for me to drop in some alternate code at www.gutenberg.org for a variation. I'm definitely interested in how far a good CSS gets us. -- Greg