Skip to content

Removal of advanced flag #168

@JayPanoz

Description

@JayPanoz

The readium-advanced-on flag (and publisher’s settings toggle in various apps) was primarily created because of the font-size normalisation in ReadiumCSS v1 . Thanks to the rewritten fontSize submodule (using zoom), we don’t have to normalize anymore.

Now lots of settings depend on this flag:

  • ligatures;
  • hyphens;
  • letter-spacing;
  • line-height;
  • paragraph spacing;
  • disabling ruby annotations;
  • text-align;
  • word-spacing.

Readium CSS currently expects this flag for their associated --USER__property to take effect, and will not apply then if it’s not set. But in theory, ReadiumCSS should not care at all, and remove it from the selectors to enfoce them no matter what.

I’m considering this flag doesn’t have any meaningful use any longer in Readium CSS itself, but obviously a Publisher’s styles toggle may be available in apps as it’s often used as a shortcut to setting/unsetting all or a subset of the settings listed above.

The options that have been discussed semi-publicly so far are:

  • Should it be kept in ReadiumCSS even if it’s not meaningful, as it helps implement such a toggle as a shortcut w/o having to deal with setting/unsetting?
  • Should it be removed so that implementers can manage what they want to do with such a toggle entirely?

With early feedback in favour of removing it entirely.

Unless there are good reasons to keep it, it is likely this flag will be removed, which is why I’m opening this issue so that there’s time for developers to provide feedback and opinions.

Metadata

Metadata

Assignees

Labels

2024 UpdateNew discussions, issues and requests triggered by the 2024 update

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions