I built Sigil and it looks encouraging.
Still missing is the disabling of the "Role" menu for the EPUB2 file, if you're considering it, because there's no precedent.
In my private version I use this way to disable the
Tools > Epub3 Tools menu when I edit an EPUB2 file.
The easiest way to do this is by adding a paremeter for
SetStateActionsCodeView:
Call:
Code:
QString epubversion = m_Book->GetConstOPF()->GetEpubVersion();
SetStateActionsCodeView(epubversion);
Function:
Code:
void MainWindow::SetStateActionsCodeView(QString epubversion)
{
...
ui.actionInsertRole->setEnabled(epubversion == "2.0" ? false : true);
...
ui.menuEPUB3Tools->setEnabled(epubversion == "2.0" ? false : true);
...
This idea only comes from the fact that [
quote]:
"As XHTML 1.0 was released before ARIA 1.0, EPUB 2 does not support the use of ARIA attributes. Inclusion of the attributes will result in validation errors."