At close of ebook trial, Apple gains ground: what lies ahead