From 130969e2493f1cddb5e90c5fdd40d6740e83ce9dcba422e10f5884ebb776eff8 Mon Sep 17 00:00:00 2001 From: Eric Schirra Date: Sat, 7 Sep 2024 15:26:23 +0000 Subject: [PATCH] - Update to 2.3.1 * Bug Fixes - fix to prevent double epub load warnings - fix to prevent load warnings without details from causing a crash - fix to prevent rename templates from using characters forbidden in file names and paths - fix to better restoreState when MainWindow is Maximized of FullScreen - fix lost External Editor Preference when browse cancelled (BeckyEbook) - fix for crashes related to serious epub load exceptions - better handle epubs with missing NCX files OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/sigil?expand=0&rev=95 --- .gitattributes | 26 + .gitignore | 1 + Sigil_User_Guide_2022.05.17.epub | 3 + Sigil_User_Guide_2024.08.15.epub | 3 + sigil-2.2.1.tar.gz | 3 + sigil-2.3.0.tar.gz | 3 + sigil-2.3.1.tar.gz | 3 + sigil-gt-0.9.0-Dialogs-About.cpp.patch | 20 + sigil.changes | 2106 ++++++++++++++++++++++++ sigil.desktop | 11 + sigil.spec | 212 +++ 11 files changed, 2391 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Sigil_User_Guide_2022.05.17.epub create mode 100644 Sigil_User_Guide_2024.08.15.epub create mode 100644 sigil-2.2.1.tar.gz create mode 100644 sigil-2.3.0.tar.gz create mode 100644 sigil-2.3.1.tar.gz create mode 100644 sigil-gt-0.9.0-Dialogs-About.cpp.patch create mode 100644 sigil.changes create mode 100644 sigil.desktop create mode 100644 sigil.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..c945d56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,26 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +## Specific LFS patterns +Sigil_User_Guide_2022.05.17.epub filter=lfs diff=lfs merge=lfs -text +Sigil_User_Guide_2024.08.15.epub filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Sigil_User_Guide_2022.05.17.epub b/Sigil_User_Guide_2022.05.17.epub new file mode 100644 index 0000000..3cb1d84 --- /dev/null +++ b/Sigil_User_Guide_2022.05.17.epub @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:adb2b392c614d309a30aa8c09230ec619638cb6a442cb66966fc7220017975b5 +size 8894634 diff --git a/Sigil_User_Guide_2024.08.15.epub b/Sigil_User_Guide_2024.08.15.epub new file mode 100644 index 0000000..208c135 --- /dev/null +++ b/Sigil_User_Guide_2024.08.15.epub @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef39c2255e9da69883daf5546f359cb22f2d7350bccd808405b868bd19e64337 +size 12641984 diff --git a/sigil-2.2.1.tar.gz b/sigil-2.2.1.tar.gz new file mode 100644 index 0000000..7c159b9 --- /dev/null +++ b/sigil-2.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f491d703424557b5829d60e08ac17747735d54c14a92c470f448515caf4bfb1 +size 26131954 diff --git a/sigil-2.3.0.tar.gz b/sigil-2.3.0.tar.gz new file mode 100644 index 0000000..bf8cdde --- /dev/null +++ b/sigil-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:640e637ce234c564aa746bbc9d7b04aab4571b294f1282e5237e6765cd39551b +size 17480782 diff --git a/sigil-2.3.1.tar.gz b/sigil-2.3.1.tar.gz new file mode 100644 index 0000000..61b67a2 --- /dev/null +++ b/sigil-2.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12e84d9a1fc41e60903557ea03801cd0004d8b75dfcebeb44c3a9b1fd8fa97ea +size 17475697 diff --git a/sigil-gt-0.9.0-Dialogs-About.cpp.patch b/sigil-gt-0.9.0-Dialogs-About.cpp.patch new file mode 100644 index 0000000..5ba0063 --- /dev/null +++ b/sigil-gt-0.9.0-Dialogs-About.cpp.patch @@ -0,0 +1,20 @@ +diff -Pdpru Sigil-0.9.0.orig/src/Dialogs/About.cpp Sigil-0.9.0/src/Dialogs/About.cpp +--- Sigil-0.9.0.orig/src/Dialogs/About.cpp 2015-11-04 14:52:16.000000000 +0100 ++++ Sigil-0.9.0/src/Dialogs/About.cpp 2015-11-29 10:12:53.023905765 +0100 +@@ -75,6 +75,7 @@ About::About(QWidget *parent) + + QDateTime About::GetUTCBuildTime() + { ++ /* + QString time_string = QString::fromLatin1(__TIME__); + QString date_string = QString::fromLatin1(__DATE__); + Q_ASSERT(!date_string.isEmpty()); +@@ -83,6 +84,8 @@ QDateTime About::GetUTCBuildTime() + QRegularExpressionMatch mo = date_match.match(date_string); + QDate date(mo.captured(3).toInt(), MonthIndexFromString(mo.captured(1)), mo.captured(2).toInt()); + return QDateTime(date, QTime::fromString(time_string, "hh:mm:ss")).toUTC(); ++ */ ++ return QDateTime( QDate::fromString("@DATE@", "yyyyMMdd"), QTime::fromString( "@TIME@", "hh:mm:ss" ) ).toUTC(); + } + + diff --git a/sigil.changes b/sigil.changes new file mode 100644 index 0000000..915801e --- /dev/null +++ b/sigil.changes @@ -0,0 +1,2106 @@ +------------------------------------------------------------------- +Sat Sep 7 14:43:25 UTC 2024 - ecsos + +- Update to 2.3.1 + * Bug Fixes + - fix to prevent double epub load warnings + - fix to prevent load warnings without details from causing a crash + - fix to prevent rename templates from using characters forbidden in file names and paths + - fix to better restoreState when MainWindow is Maximized of FullScreen + - fix lost External Editor Preference when browse cancelled (BeckyEbook) + - fix for crashes related to serious epub load exceptions + - better handle epubs with missing NCX files + +------------------------------------------------------------------- +Sun Sep 1 10:37:09 UTC 2024 - ecsos + +- Update to 2.3.0 + * New Features + - removed support for building Sigil with Qt5 as our code had become a rats nest of qt version ifdefs. + See our git branch "qt5final" for the very last buildable version of Sigil under Qt5 + - our new minium version to build Qt is Qt 6.4.0 or later + - removed the need and usage for Qt6Compat5 as its contents were deprecated and will go away eventually + - added support for using the ICU library to help replace the range of encodings supported by the old QTextCodec + - we are now using NFC unicode normalization form for all content, links, urls, and file paths. + - made Sigil's Well-Formed Check (Sanity Check) more robust to whitespace parsing rules + and allowed it to detect and report missing XML Headers + - we have upgraded to use Qt 6.7.2 and Python 3.11.9 for the base of our Windows and MacOS releases + - added a Bookmark Location toolbar icon right beside the Back button for easier use + - Opening EditTOC, SpeckcheckEditor or MetaDataEditor will now highlight the first line entry + - Add new Tool: Rebase OPF Manifest IDs on Current Filenames + - Update to 3rdparty PCRE2 version 10.44 for bug fixes + - General code cleanup to remove unneeded hacks and workarounds for old Qt bugs now fixed + * Bug Fixes + - reverted all Qt Buttons and CheckBoxes to default TabFocus to speed up focus changes and reduce clicks + - fixed SelectFiles (AddCover, Insert Image) to again use the arrows keys to walk the list + - fixed some lost or stolen focus issues + - fix overwriting of existing nav document and cover-image manifest properties + - fix for Reports column sorting that use thousands group separators + - fix for Reports file size column that did not properly use QLocale for decimal points and separators + - fix crashing due to PCRE2 bugs in Qt 6.7.2 with their internal PCRE2 +- Update documentation to 2024.08.15 + +------------------------------------------------------------------- +Sun Jun 23 08:56:37 UTC 2024 - ecsos + +- Update to 2.2.1 + - update base.ts for late Preferences translation change missed in the last release + - update Translations from Transifex + - fix incorrect std button icon under Fusion for Sigil Preferences Open Preference Folder + - set default button in the fix doctype/headers dialog on epub load to Yes to match earlier behaviour + +------------------------------------------------------------------- +Sat Jun 15 08:49:22 UTC 2024 - ecsos + +- Update to 2.2.0 + * New Features + - add support for Windows live switching from dark to light and light to dark modes + - add support for Linux kde and gtk3 live switching from dark to light and light to dark modes + - add new environment variable: SIGIL_PREVIEW_TIMEOUT (in milliseconds) to allow user control + of the Preview updating intervals, valid range 100 - 10000. default value: 1000. + Set only once at Sigil startup. + - add new Find and Replace targets: Selected SVG files, Selected Javascript Files, and Selected Misc XML + - add new Find and Replace Regular Expression menu option: Unicode Property (*UCP) + - add ability to rename files when new name is just a case variant on case insensitive filesystems + - extended the number of clips that can be assigned to toolbars (total now of 60 clips supported) + - Accessibility improvements: + - add abiity to highlight the widget with current focus (Thanks BeckyEbook) + - add ability to double text insertion point width throughout Sigil + - Extend Python Plugin Interface with info on preferred font mangling information + - replacement strings in F&R can now use \x{hhhh} hex escape codes to represent unicode characters numerically + * Other Changes + - There will be no more built-in HighDPI settings in Sigil's prefs. + If you have special needs in that regard, you can still set your own Qt highdpi environment variables. + * Bug Fixes + - reformating css with multiline now adds space after selector comma + - add in bulk resource move and use bulk delete to handle epubs with thousands of files + - add in bulk resource rename to handle epubs with thousands of files + - if Replace has focus and Find done, CodeView should get focus (Thanks BeckyEbook) + - fix dark mode Toolbar continuation symbols for Windows (Thank you BeckyEbook) + - fixed bug in Save-As context menu action in ImageTabs + - fix dark mode live switching on macOS issues qith QTreeView and QStandardItemModels + - fix bug in missing CharToEntity in the Create TOC process + - fix TabManager tab close symbol on macOS to match that used in dockwidgets + - use Unciode NormalizationForm C inside Sigil and for io + - fix macOS stuck at Maximized size issue + +------------------------------------------------------------------- +Tue Apr 2 21:19:37 UTC 2024 - ecsos + +- Update to 2.1.0 + * New Features + - assign menu accelerators P - &Plugins, and K - Chec&kpoints (thank you BeckyEbook) + - add ability to change keyboard focus using keyboard shortcuts or menus to BookBrowser, Preview, CodeView, ClipsWindow, and TableOfContents Windows + - preserve Media Overlay Active Classes when deleting unused classes + - Goto Link Or Style (or Ctrl-Clicking on a class will now search selectors with combinators if nothing found in normal css classes + - update to a newer Spanish hunspell dictionary + - overhaul of Building on Linux documentation + - update 3rdparty zlib to version 1.3.1 for security and other bug fixes + - update 3rdparty pcre2 to version 10.43 for security and other bug fixes + - update to Qt 6.6.2 for security fixes, accessibility improvements + - allow cancelling of Save if mend on save set and not well formed + - Windows users can now set the SIGIL_USE_FREETYPE_FONTENGINE environment variable to more fully support woff and woff2 fonts + * Bug Fixes + - multiple bug fixes from Qt 6.6.2 such as the transient child window resize bug on Windows, etc + - fix QuickParser bug when parsing attribute names not properly ignoring all legal whitespace + - make OPF parsing robust to alternative whitespace usage as well + - fix creation of thumbnails of svg images in SelectFiles and Image Report for macOS + - fix svg rendering in QtSvg by filtering out desc and title tags inside text tags pre-rendering + - fix Python plugin quickparser.py to better handle svg mixed case tag names + - better handle cancelling out of plugins prior to their completion + - better handle Guide/Landmark title translations (thank you BeckyEbook) + - clean up cmake and build warnings + - fix crash on Windows when using woff/woff2 fonts +- Drop 12701c.patch because now in upstream. + +------------------------------------------------------------------- +Tue Feb 27 09:03:06 UTC 2024 - Guillaume GARDET + +- Make use of Qt6 cmake build macros +- Backport upstream patch to fix build on aarch64: + * 12701c.patch + +------------------------------------------------------------------- +Mon Feb 26 09:07:53 UTC 2024 - ecsos + +- Adjustments patch macro for rpm 4.20. + +------------------------------------------------------------------- +Wed Jan 17 12:01:46 UTC 2024 - ecsos + +- Switch to Qt6. +- Clean up Qt BuildRequires. + +------------------------------------------------------------------- +Tue Jan 16 15:52:19 UTC 2024 - ecsos + +- Update to 2.0.2 + - fix incorrect clip tool button insertion point due to null activeWindow value + - fix Windows multiple screen issues when not properly identified (Qt6.5.2 patch fix) + - fix Mac Accessibility related crashes when using non-native QFileDialog (Qt 6.5.2 patch fix) + - workaround MacOS QMessageBox loss of focus Qt 6.5.X bug without hurting other platforms + - fix pretty print mend not formatting mathml + - fix Accessibility related crashes in QFontComboBox (Qt 6.5.2 patch fix) + - prevent crashing if user mistakenly tries to delete entire ncx in CodeView + - harden delete unused styles to trailing whitespace in class names + - fix unrecognized media-types application/xml and text/xml + - fix cursor just before end tag bug in align justify, centre, right + - fix crash when all metadata removed by user in MetaEditor + - fix macOS min in Info.plist to be the actual 11.0 + - update Windows and macOS installers to use Qt6.5.3 + +------------------------------------------------------------------- +Wed Aug 23 05:32:42 UTC 2023 - ecsos + +- Update to 2.0.1 + * Bug Fixes + - fix crash when right click on Misc folder in BookBrowser + - Allow user to revert CodeView drag_and_drop change via + environment variable: SIGIL_ALLOW_CODEVIEW_DROP=1 + Note: Using DragnDrop in CodeView is still NOT officially supported. + - add inadvertantly missed updated Serbian translation (ts) file + +------------------------------------------------------------------- +Sat Aug 19 19:53:16 UTC 2023 - ecsos + +- Update to 2.0.0 + * Bug Fixes + - fix incorrect assert in sigil-gumbo + - recognize application/pdf mediatype on epub import + - remove compiler build warnings to clean up the build output + - recognize source tag attribute srcset for xhtml source updates + - fix Preview disconnect bug after split at cursor + - fixed sigil-gumbo interface for plugins + - added workaround for ADE epub3 bug with scaled cover images + - fix encoding for named entities in opf metadata + - fix drag/drop crash by disabling drop inside CodeViewEditor + - fix CodeView to Preview syncing on text after an inline xhtml comment + * New Features + - updated to Qt 6.5.2 which is now used for official releases + - updated to Python 3.11.3 and uses the latest EmbededPython interface + - updated to the latest jquery version 3.6.4 + - supports use of embedded pdfs ala ADE + - added dark window titlebars for Windows platforms + - add support for a user's cover-template2.xhtml and cover-template3.xhtml + - add user preference to control printing dpi and add busy indicator icon +- We'll stick with qt5 for now, which is also still the default in + the Makefile, due to Leap and plugins. + +------------------------------------------------------------------- +Thu Mar 16 10:35:30 UTC 2023 - ecsos + +- Update to 1.9.30 + * Bug Fixes + - fix Checkpointing to work with dulwich version 0.20.46+ + - EmbeddedPython fixes to work with Python 3.11 and later (thank you sharkcz) + - leave cursor position unchanged if nothing found when search groups of files + - make all Numeric items in Reports align right + - add support for thousands separator to Reports + - allow blank dc:language values to prevent crashing (as Sigil-1.9.10 did) + - allow unknown language codes to pass through MetaEditor + - MetaEditor under epub2, allow custom opf scheme values + - prevent duplicate spaces when reformatting CSS in import, charset and namespace + - better prevent random OPF attribute order changes to simplify Checkpoint diffs + - fixed file menu Print Preview for xhtml and image tabs + - prevent plugins from crashing Sigil by deleting last xhtml file in epub + - fix issue where images/css could not be properly added in an epub3 with no css files + * New Features + - allow user to edit Checkpoint descriptions for clarity via Checkpoint menu + - add ability to show the Checkpoint Change Log via Checkpoint menu + - update to Hunspell 1.7.2 (released in December 2022) for spellchecking + - update to latest zlib-1.2.13 for latest security fixes + - move completely away from ever using OS system tmp folder for storing Sigil wip files. + Instead create a new workspace folder inside Sigil Preferences folder + - added ability to Print Preview and Print contents of Sigil's Preview window + +------------------------------------------------------------------- +Sat Sep 3 20:42:00 UTC 2022 - ecsos + +- Update to 1.9.20 + * Bug Fixes + - double width of new Find Replace icons to make them easier to + access + - improve new Find Replace icon tooltips to be include short + name on top + - fix bug that caused file rename changes to fail when updating + smil + - Metadata Editor will now strip out unneeded xmlns:dc + attributes on dc tags + - Metadata Editor is now more robust to language codes that + have incorrect case in the metadata + - clarify Create HTML ToC menu entry works from existing ToC + - prevent indavertent "" chars be treated like escapes when + updating metadata + - fix MetaEditor nit of not auto adding "aut" role to Author + metadata for epub2 + - make Spellcheck Editor count align column numerically (right) + * New Features + - add ability for a user-template*.xhtml and user-template*.css + be read from Sigil Prefs to create new empty xhtml and css + files + - updated to very latest MathJax version 3.2.2 for mathml + support in Preview + - add ability to cycle through 2 different custom stylesheets + (and none at all) for use with Preview +- Drop sigil-lto.patch, becuse now in upstream. + +------------------------------------------------------------------- +Wed Jun 15 05:53:23 UTC 2022 - ecsos + +- Add sigil-lto.patch to fix boo#1199981 + (Sigil EBUP editor terminates with SIGSEGV on startup.) + This can be removed again in version > 1.9.10 + + https://github.com/Sigil-Ebook/Sigil/commit/3fd17410c31aca2000134ee28af9d42779fc88ea + +------------------------------------------------------------------- +Mon May 23 14:46:29 UTC 2022 - ecsos + +- Update to 1.9.10 + * Bug Fixes + - Fix insertion of id and links when cursor immediately before + a closing tag + - Make sure bundled PySide6 can find QtWebEngine resources on + Windows (Qt6) + - Properly recreate or remove encryption.xml depending on font + obfuscating or not + - Make Qt6 versions of Sigil use their own ini files to prevent + corruption + - treat figcaption as an "other text holder" when prettifying + * New Features + - Redesign the FindReplace dialog user interface to minimize + size while adding features + - Add a FindReplace "Text" only checkbox and support to exclude + tags from search + - Add a Toggle Line Wrap Mode and its support added to CodeView + via pop-up menu + - Add a Dry Run Replace dialog to act as "Replace All" what if. + (Shift + Count All) + - Add a Replacement filter dialog to allow users to delete + unwanted replacements before applying Replace All + (Shift + Replace All) + - Add a Counts Report to Saved Searches to show Saved Search + Group counts by search +- Update Sigil_User_Guide to 2022.05.17 + +------------------------------------------------------------------- +Sat Mar 12 09:02:47 UTC 2022 - ecsos + +- Update to 1.9.2 + * Bug Fixes: + - fix loss of highlight on match when searching + - fix incorrect search counts + - fix incomplete replace all + - fix useability issues in Saved Searches + - fix handling or subcapture replacements when no search + capture groups are provided + - fix crash on Windows from too fast/repeated Find Net and Find + Previous launched via keyboard shortcuts + +------------------------------------------------------------------- +Sat Mar 5 10:44:16 UTC 2022 - ecsos + +- Update to 1.9.1 + - Allow creation of a Windows 7 Legacy Installer to return Sigil + to Windows 7 (for now) + - Completely revamped Find and Replace (yet again) to return most + of its earlier behaviour for finding next + - Prevent Find and Replace Count from changing current location + - Extend spellcheck suggestions to properly handle end of + sentence vs abbreviations + - Center Image Report File Sizes vertically within their row. + - Go To Link Or Style will now properly skip leading comments on + selectors in CSS stylesheets + - ecmascript is considered a core media type for javascript files + - make URLInterceptor robust when the Book pointer is NULL + (has been cleared) + +------------------------------------------------------------------- +Thu Feb 24 07:35:50 UTC 2022 - ecsos + +- Update to 1.9.0 + * Bug Fixes: + - Update gumbo to follow WhatWG changes for closing br and p + tags in foreign content + - Fix Saved Search Controls code typo for Tabbed Html Files + - Plug long existent memory leaks related to Saved Searches + that stop after a match is found + - More file position of 0 fixes and handle toInt() result failures + from N/A in ValidationResults + - Fix incorrect copied permissions with AddContentFileToFolder + after QFile::copy + - Fix broken page up / down by key sequence in Repo Log and + Automate Log. + - Fix broken PluginRunner error signal + * New Features: + - Make Validation Results sortable by clicking on column header + - Add Export All to Validation Results for text or csv output + - Completely redesign Find Replace and Saved Searches to not + overload wrap when searching multiple targets and add Restart + Search button to make skipping replacements in Saved Searches + possible + - Update to use the PCRE2 library for regular expression searching + - Add a new Sigil Preferences settings to disable GPU acceleration + for QtWebEngine/Preview to make it easier for Sigil to keep + working even with older graphics drivers + - Add indicator to MainWindow titlebar that indicates if epub + in old Sigil Standard form + - Support building from source on macOS M1 (arm64) machines + - Update Windows and Mac embedded python to Python 3.9.9 + - Allow building Sigil with Qt6.2.2+ or Qt5.10+ from the same + codebase + - Speed up Add Blank HTML in epubs with huge numbers of files + - Store and set Epub Zip modification dates where possible + - Support PySide6 to replace PyQt5 in plugins when building + Sigil under Qt6 + - Handle deprecated embedded Python PyEvalInitThreads properly + during build + - Support QUiTool in PySide6 under Qt6 for plugins using .ui + files + - MacOS Python 3.9.9 now now includes TclTK 8.6.12 (no external + TclTk package needed anymore) + - Added Select All Checkbox in Delete Unused Media and CSS + (PRs from @luisparravicini) + - Add ability to rename classes when editing stylesheet in CV, + will rename in all html as needed + - SpellcheckEditor now uses LocaleAware sorting vs + Case-Insensitive which did not handle diacritics well + - Speed up loading of epubs with large numbers of xhtml files + by using concurrency + - New Hunspell spelling dictionaries based on scowl size 70 for + en_GB and en_US + - Support ending . in spellchecker wordbreaks for better + abbreviations if dictionary aff supports it + - Faster CSS stylesheet reformating that can handle minor + errors and still function +- Change source location for Sigil_User_Guide. + +------------------------------------------------------------------- +Mon Oct 25 12:34:24 UTC 2021 - ecsos + +- Update to 1.8.0 + * Bug Fixes: + - Reports now generate properly quoted csv when saved + - Workaround Bug in QtWebengine when using custom scheme + handler and specific audio/video codecs + - Fix CV -> Preview sync after intial load when Preview Zoom is + not equal to 100% + - Fix link tags with rel set to stylesheets via Mend and Mend + and Prettify that are missing type + - Fix GoToLinkOrStyle to work on css link tags in head + - Fix logic in GoToLinkOrStyle to better identify the actual + target with styles + - Fix insert media file when cursor at very start of tag + - Fix Windows and macOS bugs when generating Keyboard Shortcuts + - Fix insert closing tag when cursor at very start of tag + - Fix double copy to Clipboard from OPF and NCX Tabs + - Fix GoToLinkOrStyle when class attribute present but cursor + not in the class attribute + - Fix TabManager scroll to position to properly handle position + of 0 + - Fix crash using Split At Markers when body tag is completely + empty (no whitespace or anything) + * New Features: + - BookBrowser can now link javascripts similarly to how it + links stylesheets + - Epub3 javascripts can now open windows if javascript is + enabled + - Add Find and Replace context menu to clear its curent values + and history + - Add support for 3 Automation lists that support editing and + automatically running a list of commands that can include all + Sigil plugins and a limited set of Tools + - Add support for BookBrowser to insert a blank javascript file + - Do not require replacement prompt if current book is + unmodified and input plugin is run +- Update sigil user guide to version 2021.10.12. + +------------------------------------------------------------------- +Fri Jul 23 05:50:52 UTC 2021 - ecsos + +- Update to 1.7.0 + * Bug Fixes + - Workaround to ensure the Saved Searches Controls editor + widget is movable on all platforms + - Make the External Xhtml Editor Button/Feature work with both + PageEdit and non-PageEdit editors again + - Fix Preview sync when CV transitions from xhtml to css and + back to xhtml + - Fix Preview sync when Find and Replace opens new tab with + search target + - Fix Preview sync when Validation error clicked on + - Fix Preview sync when mathml is being used + (compensate for mathjax changes) + - Fix mathml use when external MathJax directory is specified + in builds on Linux + - Prevent Sigil from loading any manifested mimetype file from + bad epubs, give load warning + - Make Spellcheck dialog use double-click to control search in + CV, to speed paging word list. + - Prevent duplicate translated semantic names + - Fix heading tool issues after self-closed BLOCK tags + - Prevent stack overflow crashes in pcre lib due to recursion + with some valid regex + - Fix second window opening on macOS when first launching app + with file + - Remove [other.] semantic indicators for epub2 + - Fix crash in CSS Selectors Report when using Filters + * New Features: + - added Find Replace Regular Expression validator + - added SIGIL_DISABLE_VERSION_META environment variable to + control writing of Sigil Version + - enable JIT compiler for pcre library to improve regex look-up + performance + - update the pcre library to version 8.45 (Final EOL) + +------------------------------------------------------------------- +Mon Jun 28 10:53:29 UTC 2021 - ecsos + +- Fix dependencies (Drop Qt5Webkit and Qt5WebKitWidgets). + +------------------------------------------------------------------- +Sat May 29 15:57:21 UTC 2021 - ecsos + +- Update to 1.6.0 + * New Features: + - Find and Replace search targets expanded to include tabbed + files, CSS files, OPF and NCX files + - Saved Searches now save full search Controls (mode, + direction, options, and targets) + - Preview loading is now completely asynchronous with a loading + progress bar and loading placeholder + - Merge will now automatically prevent duplicate ids + - Merge will automatically add ids are former file boundaries + to prevent TOC, Guide, and href losses + - A new Xhtml Highlighter speeds up huge single file loading + considerably + - Redesigned CodeView Spellchecking to bring it back to + Sigil-1.3.0 speeds + - The External XHTML editor will now always pass along the OPF + path and spine position to simplify interface with PageEdit + (use "Open With" if you want the old behaviour) + - Added PyQtWebEngine as a newly required python module for + Plugins. ie. Plugins now have access to browser functionality + for implementing e-Readers, more complex guis. + * Bug Fixes: + - Add Qt workaround for restoring Sigil window sizes when + FindReplace left open on macOS + - Add missing tr() calls to the tooltips in the Special + Character selection dialog + - Fix bug when all unused selectors are removed as in css + stylesheet - adds a comment placeholder + - Make empty Nav have a title to help empty epub passing + epubcheck + - Fix bug where fonts couldn't be previewed when a space was + in the path + - Redesigned code to make Merging large numbers of files much + faster + - Fix bug in blank language field in Spellcheck Dialog + - Fix use of different indentation of css via PR from BeckyEbook + - Fix typos in plugin framework guide + - Fix hang on launch when opf manifested files exist inside the + META_INF + - Fix Metadata Editor bugs related to alternate-script + - Fix Metadata Editor bugs related to epub2 event dates +- Update sigil user guide to version 2021.05.27. + +------------------------------------------------------------------- +Fri Mar 26 19:17:58 UTC 2021 - ecsos + +- Update to 1.5.1 + * Features: + - Can now handle single xhtml file sizes over 2megabytes in + size via its own URL Schemehandler + - Will now highlight matched open close tag pairs while editing + in Code View + - Delete open close tag pairs (Remove Tag Pair) + - Default selection of text for basic CodeView formatting + including bold, italic, etc based on cursor position + - Shift double-click (and Alt double-click) on a tag to select + tag contents (including tag) + - Expanded split on Sigil Split Marker capabilities to work + better with nested tags + - Added a new C++ CSS Parser and Query engine that works with + Sigil's version of Gumbo + - The Reports tool for "CSS Selectors" now lists all CSS + selectors not just classes + - The "Delete Unused Styles" tool now handles all unused + CSS Selectors not just classes + - The Reports for "CSS Selectors" and "Delete Unused Selectors" + now handle selectors in XHTML Style tags + - Added ability to load text and csv files to Group Saved + Searches to automate lists of replacements + - Reworked the Metadata Editor to be much more Human Readable + with tooltips to show xml tags + - Added semantic code to the descriptive field in Add Semantics + as a learning aid (Thank You BeckyEbook!) + - Checkpoint ManageRepos now has the ability to sort the repo + table by any column (Thank You BeckyEbook!) + - The Sigil User Guide has be completely reworked to bring it + to Sigil 1.5.0+ levels + * Bug Fixes: + - Fix issue with custom ncx names in non-standard empty epub + layouts + - Fix Import Text to properly add ncx if missing for epub2 + - Fix issue with "Delete Unused Styles" not properly detecting + all used selectors + - Fix issues with repeated use of Mend and Prettify on bare + text in structural tags + - Fix extra line issue with Link to Stylesheet + - Fix bug in id assignment in EPUB3 Metadata editor + - Fix bug in trailing slash in Move To Folder paths + - Fix bug in spelling of Columbia->Colombia in Languages + - Fix bug in Clip Editor pasting of multiple clips + - Fix bug in PerformCSSUpdates related to quoted string in + content: values + - Fix bug related to iframe handling when loading Preview + - Fix typos in XMLEntities descriptions + - Fix numeric table alignment to align right in multiple tables + - Fix bug in Add Existing not properly using QProgressDialog + for long import + - Removed long deprecated and now invalid use of "altlang" in + EPUB3 Metadata Editor + +------------------------------------------------------------------- +Thu Dec 3 16:03:58 UTC 2020 - ecsos + +- Update to 1.4.3 + - critical bug fix for OPF metadata attributes that use named + entities + - fix mismatched override wait cursor usage + - fix crashes when dictionaries are missing on load or during + first spellcheck + - update the mapping of language codes to dictionaries without + the need to restart + - fix critical bug which caused split to break links that are + bare fragments + - fix additional critical bugs which caused split to lose + fragments from link targets + - fix double # chars in fragment ids during merge + - fix hang on load with bad encryption.xml font uris + - quiet unneeded debug output when importing an epub + - fix opf cleanup bug when identical xmlns values are used with + two different prefixes on the same tag + +------------------------------------------------------------------- +Sun Nov 22 09:51:53 UTC 2020 - ecsos + +- Update to 1.4.2 + * Bug Fixes: + - critical bug fix for incorrectly xml encoding of opf metadata + attributes that use entities + - fix bug in "Add Existing" files when file names would require + percent encoding + - fix bug in multiple language spellchecking dialog word lookup + when no language attributes used + - update de, nl, sv, ko, ru translations that missed + the Sigil 1.4.0 initial release + - critical bug fix for over xml encoding html used inside + metadata in the opf + - revert ctrl-f to it long standing Find and Replace behaviour + +------------------------------------------------------------------- +Mon Nov 16 19:32:44 UTC 2020 - ecsos + +- Update to 1.4.1 + * Bug Fixes: + - critical bug fix for over xml encoding html used inside + metadata in the opf + - return use of ctrl-f to its long standing functionality + +------------------------------------------------------------------- +Sun Nov 15 19:13:48 UTC 2020 - Eric Schirra + +- Remove not needed BuildRequires: python3-sip, python3-sip-common + +------------------------------------------------------------------- +Sat Nov 14 09:39:27 UTC 2020 - ecsos + +- Update to 1.4.0 + * New Features: + - Two different types of Multiple Language Spellchecking support added: + - A user can now specify a Primary and a Secondary Language + dictionary for real-time spellchecking (red squiggley underline). + - The Spellcheck Dialog will now support spell checking as + determined by xml:lang and lang attributes in any languages + with dictionaries + - Main UI icons now use scalable svg files to better serve + higher res displays. + - New brighter Sigil Application Icon is now being used. + - Alternate Sigil main Application Icon now available as a + build-time option + - Sigil now provides 3 different Icon Themes for the user: + Main, Fluent, and Material. Again all thanks goes to + eckyEbook for creating/collecting all of the icon themes! + - Sigil will now support a custom user-determined Icon theme + via a custom .rcc file. + - pre-made icon themes for Legacy and Material themes in + different base colors are now available with more + user-contributed theme files to hopefully come. + - checkout https://github.com/Sigil-Ebook/IconThemes for more + information and additional themes + - New main toolbar icons are now available and improved icon + groupings have been made to provide the user with a greater - + degree of toolbar customization. Users may need to drag and + drop icon grouping and modify their selections of Toolbars to + see some of these new options. + - Improved support for IRI (international) hrefs. OPF newly + added file manifest ids now converted to plain ascii to + prevent issues with older readers + * Bug Fixes: + - Fix bugs in Marking for Index + - Perform major URL en/decode refactoring to properly handle + '#' (and other reserved chars) in file names + - Translate "Table of Contents" using book language not ui + langauge + - Fix handling of links when using Add Existing on xhtml files + with links to other xhtml files + - Fix split code to better handle duplicate target ids that + reside in different files + - Bug fixes for the plugin interface from wrCisco + - Bug fixes for the plugin interface setguide from BeckyDTP + - Fix bug in OPF parsing when valid but non-traditional + namespace prefixes are used + - Fix rare off by one condition in clip number to clip enditor + model conversion + +------------------------------------------------------------------- +Sat Jul 25 08:22:20 UTC 2020 - ecsos + +- Update to 1.3.0 + New Features: + - Added FontTab to show a specific font by double-clicking in + BookBrowser + - Added Index Toolbar + - Added increased protection against evil epubs manipulating + file: urls + - Changes to support building with Visual Studio 2019 on Windows + - Improved Windows Installer and handling of C++ runtime + libraries + - Updated Build instructions for MacOS, Windows, and Linux + Bug Fixes: + - Reorganized the source code to add a Widgets folder to reduce + code duplication + - Fixed spelling mistakes in MetaEditor user interface and + xmlsanitycheck error messages + - Fixed mistakes handling font files (and other files) whose + names start with a "." on macOS/Linux + - Improved embedded python error messages + - Improved some error messages on epub load + - Fix TabConnections to properly handle the new FontTab tabs + - grew Preferences Colour widths to better handle non-English + colour names (Thanks BeckyEbook) + - Fixed bug in handling missing local links when using Add + Existing ... + - Removed all python2 remanants from the Sigil plugin and + pythonlib code + - If "Mend on Open" set, better handle import of huge file of of + run-on lines + - Bug fix for css url updating + - Fix bug that prevented css updates from being shown in Preview + without reload + - Fix gcc8 build warnings where possible + - Prevent BookBrowser's Rename and RERename from using URI + delimiters ("#",etc) in file names + +------------------------------------------------------------------- +Sun Mar 29 18:16:02 UTC 2020 - ecsos@opensuse.org + +- Update to 1.2.1 + Mainly a Linux source-only release to handle an issue with the + dulwich Python module (required for the new Sigil checkpointing + feature) on systems with a Python 3 version less than 3.8.0. + +------------------------------------------------------------------- +Sun Mar 29 16:45:24 UTC 2020 - ecsos@opensuse.org + +- Update to 1.2.0 + * New Features: + - Provide a tweak setting to adjust drag distance for + Windows & Linux + - Added YesToAll and NoToAll options for replacing images via + Add Existing... + - Highdpi and uifont setting information is now available to + Sigil's plugins + - Add a Checkpoint feature to Sigil for fast versioned saves to + git repositories + - add ability to easily create a Checkpoint (stored via a local + git repository) + - add ability to see the changes between the current epub and + any earlier Checkpoint + - add ability to revert the entire epub back to an earlier + Checkpoint + - added ability to manage and delete Checkpoint repositories. + * Bug Fixes: + - Fix cosmetic file name issue when aborts file rename edits in + BookBrowser + - Improve default drag-distance for BookBrowser for + Windows & Linux + - Reduce required drag distance for macOS + - Fix index generation bug related to non-escaped text used in + regular expressions + - Fix bug that caused lost class attributes when marking words + for an index + - Guide to Landmark Semantic mappings have been extended to + better cover "other.*" guide items + - Changed the removeDir() routine to better deal with Windows + delete file issues. + - Updated Building on Windows docs + - Updated Building on MacOS docs + - Modified the codebase to use Ordered hashes/dictionaries + throughout to prevent unneeded reordering in tag attribute + order + +------------------------------------------------------------------- +Fri Feb 7 10:29:02 UTC 2020 - ecsos@opensuse.org + +- Update to 1.1.0 + * New Features: + - Added Support for Dark Mode for Windows, Linux and macOSX + - Added new icons that work well under both Light and Dark + modes + - Added ability to use Dark Mode for Preview + (controlled by Preferences) + - Added Zoom Keys Ctrl +/- support to the Inspector + (for improved Accessibility) + - Added support for a second Clip bar with up to 20 additional + clips + - Select Special Character Dialog now support scrollbars + - Guide and Nav titles are now translated into ebook language + (if translations available) + - All Report Names have been shortened to allow larger font + sizes for better Accessibility + - Added improved contrast icons + - Completely reworked all Sigil Preference Dialogs to make them + more screen/user friendly + - Added support for controlling Windows/Linux HighDPI settings + - Clips from the Clips QDockwidget window can now be used in + CSS Tabs as well. + - The plugin interface has been extended to show current + colorMode and primary colors + * Bug Fixes: + - Replaced deprecated QSignalMapper code with QActionGroups + throughout Sigil’s code base (still more work to do there) + - Fixed bug in “open-with” on macOSX that did not allow .app + files to be selected + - Soft hyphens characters are now handled properly by + Spellchecking [PR from BeckyEbook] + - Fixed bug in ‘split at cursor” that created extra empty pages + - Fix bug in Insert Files from Disk + - Fixed same thread re-entrancy issues with tab + creation / deletion code due to Qt signal/slot handling + - Fixed source code typos [PR from luzpaz] + - Fixed incorrect number of “times used” in Image Reports + - Fixed plugin font_iter() code to properly handle new Iana.org + font media types + - Broken links are no longer changed during ImportHTML + (Add Existing…) operations + - Cover svg image “vh” “vw” fixup code now properly handles + empty headers on cover page + - GetBookpathByPathEnd() will now work properly and thereby + better handle detection of file name conflicts during imports + - Better handle file name info from Validation plugins + - Inserting Links now creates proper links for top of page of + the same file + - Fix ImportHTML when creating a new book to properly add + an NCX if needed + - Include official QT backported fixes to Qt 5.12.6 to make it + more stable + - The nav will now properly handle internal links to top of + page of the nav itself + - harden lxml xml processing with resolve_entities set to + false for improved security +- Run spec-cleaner. + +------------------------------------------------------------------- +Wed Dec 18 09:56:13 UTC 2019 - ecsos@opensuse.org + +- Update to 1.1.0 + * Bug Fixes: + - All bugs reported in alpha release have been fixed. + Special thanks to Vroni, BeckEBook, Doitsu, Odamizu, + Un_Pogaz, snarkophilus, and many others who ran tests and + reported bugs. + - Fix for crash on macOS opening Preferences following New + MainWindow + - Workaround Qt bug in restoreState after maximize with Find + and Replace open + - Fix logic to identify and store window geometry when normal + (not maximized) + - Fix handling of plugin dialog being closed or + aborted / cancelled + - Prevent Preview timer related crashes on closing MainWindow + on macOS + - Update and harden media types recognition + - Use non-native QFileDialogs on macOS to workaround Qt bugs + - Fix crash of fast Tab closing on all platforms + - Prevent whitespace inside code tags from being changed when + prettifying + - replace case change "text icon" with actual sizable icon + * New Features: + - Add Load/Save capability for the Custom Empty Epub Layout + Designer + - Large speedups in Reports using QtConcurrent + - Speedups in Spellcheck Dialog sorting + - Add File Name to Preview Window title + - Add Regular Expression File Renamer to BookBrowser context + menu + - Mend on Open or Save only touch/repair non-wellformed files + - Re-enable Drag and Drop of Tabs + - Add menus/icons for "New ePub2" and "New ePub3" to ease + creation of empty epubs (icons courtesy of BeckyEbook) + - Extend ePub2 Guide Semantics to include many of the "other.*" + codes common to ePub3 as well + +- Changes from 0.9.991 (pre1.0 Alpha Release) + * Bug Fixes: + - handle javascript location.href style in Preview + - use CaseInsensitive sort in Plugins menu (Thank you BeckDTP) + - use Locale aware sort routines for AddMetadata, and MetaData + Names (Thankyou Doitsu) + - recognize x-font-otf style media types + - recognize vnd.adobe.page-template+xml media type + - recognize webp images media type + - improve updating of smil xml files when moved + - preserve whitespace inside the code element when prettifying + - try again to prevent timer events during MainWindow close + that causes random crashes on exit on macOS + - fix svg cover images to use 100vh and 100vx in Preview + * New Features: + - completely reworked most of Sigil's internals to now load all + Epubs in their "as-is" state and fully allow editing and + plugins to work + - added Tools menu item to standardize an epub to Sigil norm. + - added Tools menu item to allow user to design a custom empty + epub and make it default + - added font tooltips that describe each font by mousing over + in BookBrowser (with improvements by BeckyDTP) + +------------------------------------------------------------------- +Wed Sep 4 10:31:11 UTC 2019 - ecsos@opensuse.org + +- Update to 0.9.18 + * Bug Fixes: + - fix bug in macOS that caused spurious warnings about missing + file in the manifest + - hopefully fix macOS bug about launching files using open-with + from Desktop + - make sure JQuery gets loaded before starting to use Preview + javascript functions + - fix local links during split that incorrectly used target + filename for internal link + - create GetEnvironmentVar to make access to environment + variables more cross-platform + - fix macOS bug when hitting close on the title bar of + MainWindow causing strange window behaviour + - hopefully fix macOS segfault on close by disabling Preview + timer immediately + - fix Windows 7 issues when running batch (.bat) files via + OpenExternally (open with) + - all error messages are now properly logged + - fix improperly disabled open-with menu in Image Tabs popup + context menu + - removed use of Qt obsolete methods in About and Error Dialogs + * New Features + - enable use of SIGIL_DEBUG_LOGFILE environment var to control + saving debug output to a file + - properly update the ncx after merging xhtml files + - properly warn users if a multiple rendition epub + (multiple OPF files) has been loaded + - make Sigil's external XHtml editor work to pass an OPF file + (see PageEdit new features) + - Allow epub3 metadata editor to edit primary meta tags + - Replace buggy cssutils module used in plugins with our own + drop-in replacement fork: css-parser + - Updated Mac, Windows, and Linux build documentation + + Be aware that Sigil-0.9.18 no longer enforces the need for epub3 + to have and support an NCX for the purposes of backward + compatibility with epub2 reading systems. There are, however, + built-in tools to allow users to add backward compatibility + features such as the NCX to their epub3. + +------------------------------------------------------------------- +Sat Aug 10 18:56:22 UTC 2019 - ecsos@opensuse.org + +- Update to 0.9.17 + * Bug Fixes + - fix missing python3 network certifications on macOS + - do not apply named entities in Preserve Entities to epub3 + epubs + - fix build docs for macOS + - prevent FlowTab destructor race crash when opening a new book + (Linux, Mac, Windows) + - fix suggestions for built-in en_US dictionary by adding "x" + to the TRY list + - fix plugins adding and deleting ncx under epub3 + - throw exception in plugins when epub2 tries to add or delete + the ncx + - fix bad Warning message about missing nav.xhtml file that was + not missing + - fix CodeView to Preview sync breakage due to minimize/restore + - fix CodeView to Preview sync breakage due to attempting to + load the Preview before it finished loading the last update + - fix sigil_bs4 to work with latest python lxml 4.4.X in + a backwards compatible manner + - fix missing Preview to CodeView sync on Qt versions 5.9.X + and 5.10.X + - fix segfault on app close related to the PreviewWindow update + timer firing at a bad time + - fix CodeView to Preview syncing loss caused by spurious load + finished signals + - fix macOS specific bug that allowed multiple MainWindows to + become tabs + * New Features + - add a python3 plugin module navprocessor.py for plugin devs + - show Preview by default (tabified with TOC) for new + installations of Sigil + +------------------------------------------------------------------- +Mon Jul 22 07:19:12 UTC 2019 - ecsos@opensuse.org + +- Update to 0.9.16 + * New Features + - added epub3 tool: Generate NCX/Guide for epub2 e-readers + - added epub3 tool: Remove NCX and Guide + - added right click on link in Preview copies url to + clipboard + - added check mark indicator for current semantic set in + AddSemantics dialog + - opf guide is no longer used/updated in epub3, unless new + epub3 tool menu is used + - harden Sigil against maliciously crafted epub zip archives + (aka zip-slip attacks) + - added bk.getnavid() to the plugin framework and + navprocessor.py for plugin devs + - updated build documents to the latest Qt 5.12.3 and Python + 3.7.2) + * Bug Fixes + - add missing title tag to nav head to make epubcheck happy + - add dcterms:modified to empty epub 3 opf to keep epubcheck + happy + - fix lost Preview-CodeView sync when internal links are + followed in Preview + - fix macOS specific bug with newer versions of PIL (Pillow) + used by plugins + - prevent MS VC++ automatic reboots during Windows installs + - prevent user from changing semantics of the nav file itself + (it must be set to “toc”) + - fix bug that dropped nav from spine when HTML TOC created + +------------------------------------------------------------------- +Wed Jul 3 14:49:14 UTC 2019 - ecsos@opensuse.org + +- Update to 0.9.15 + A Beta Release of Sigil ported to QtWebEngine to replace QtWebKit + + * New Features + - ported to use QtWebEngine (based on Chromium) to replace + QtWebkit + - QtWebEngine plugs many major memory leaks. + Memory footprint should stay low to moderate. + - QtWebEngine has ongoing security and support patches from + Qt/Google/Chromium + - removes the broken/deprecated BookView Editor that relied on + QtWebKit + - created PageEdit app (that uses QtWebEngine) that replaces + much BookView functionality + (see https://github.com/Sigil-Ebook/PageEdit) + - allows the user to control use of javascript and remote + access by epubs when editing to improve overall security + - adds action to launch one preferred external xhtml editor via + shortcut or icon + (can be used to fast launch PageEdit app or any other xhtml + open-with editor) + - adds 5 more plugin quicklaunch buttons to main menu for + a total of 10 (with all new icons! Thanks so much Becky!) + + It also includes all of the fixes and updates from Sigil-0.9.14. + + Be aware that Sigil-0.9.15 still enforces the need for epub3 to + have and support an NCX so that it generates as backward + a compatible epub as possible. This may be relaxed in future + releases. + +- Changes from 0.9.14 + This Sigil release is primarily to address performance issues and + memory leaks, but there are a still some new features and other + bug fixes as described below. + + * Bug Fixes + - flush all changes to disk before creating a Report so that + files sizes are correct + - stop writing python bytecode to Program Files on Windows + - remember cover semantics if cover image replaced by Add + Existing... + - fix issues with the Plugin Framework documentation epub + - more memory leaks plugged + - minor code cleanups + * New Features + - updated to Qt 5.12.3 with Annulen Webkit 5.212 with extra + QtCursor memory leak fixes + - updated to Python 3.7.2 + - updated build docs for macOS, Linux and Windows + - build system now uses GNUInstallDirs to determine the best + installation libdir on Linux + - updated desktop integration for Linux + - reduce PCRE cache size to help lower memory footprint + - improve mapping of hunspell dictionary names to actual + language names (thanks BeckyDTP) + - add warning during import if unmanifested files exist in the + epub zip archive + - no longer requires use of non-breaking space entities + (or any entities at all!) + - special spaces are now visisble via syntax highlighting in + CodeView + - dropping epubs on Sigil.app no longer opens an extra empty + epub on macOS + - reload Preview only when needed to help prevent screen + flicker and lower memory use + - enabled Windows automated builds using Apppveyor + - Windows releases now compiled with Visual Studio 2017 + - characters in HTML files report now uses gumbo for speed + - allow user's custom plugin icons to survive a plugin update + + Sigil 0.9.14 will mark the last version that uses QtWebKit, + and will be the last version to support editing in BookView. + (https://github.com/Sigil-Ebook/Sigil/wiki#sigil-moving-to-qtwebengine) + + Be aware that Sigil-0.9.14 still enforces the need for epub3 + to have and support an NCX so that it generates as backward + a compatible epub as possible. + This may be relaxed in future releases. + +------------------------------------------------------------------- +Sat Apr 6 10:22:55 UTC 2019 - ecsos@opensuse.org + +- Update to 0.9.13 + * Bug Fixes + - Revert change of INI encoding to utf-8 as QSettings very + broken under utf-8 (commit 5484463) + - Ensure all url attributes in shape-outside properties in + CSS stylesheets get updated (commit de7b09f) + - Workaround for lost cursor in qlineedit Qt bug (issue #398) + (commit a8acab7) + - Workaround missing File New, Open, Quit menus in Mac menubar + if windows closed (commit 660a8aa) + - Remove Icon from Tab for macOS only to workaround Qt bug + (commit 5c91924) + - Plug some memory leaks (commits: 85f78d7, cb9b833, 614d601, + bf2f2f4, ebfb613, 4qa8f33) + - Backport Qt 5.12alpha fix to prevent heap corruption due + to qwidget next focus pointers (commit f5c7284) + - Plug macOS memory leaks when closing a main window + (commit fbf9015) + - Put back quote in tag name bug fix lost in recent changes + (commit ebd8c7c) + - Disable Netscape Plugins being used in BookView and Preview + Window (commit 79314ea) + - Use custom version of qtwebkit with Qt 5.5 memory leak fix + added back and no load plugins if disabled + (see commits 94a28d7, 9f7ebba, and 4b968a9) + * New Features + - Add filename to tab tooltip (commit 27f8db7) + - Clear memory caches when Preview changes to keep memory + footprint smaller (commit 87b9247) + - Update to MathJax 2.75, adds support for mathml mlongdiv, + mstack, mcarries (commit 568aba5) + - Reduce memory footprint by letting worker threads expire + (commit c1ee7ea) + - Reduce memory footprint by properly setting web page caches + (commit 9f07cbe) + + Be aware that Sigil-0.9.13 still enforces the need for epub3 + to have and support an NCX so that it generates as backward + a compatible epub as possible. This may be relaxed in future + releases. + +------------------------------------------------------------------- +Fri Sep 21 18:47:29 UTC 2018 - Bernhard Wiedemann + +- Drop build date from build output (boo#1047218) +- Fix % escaping where %H:%M:%S turned into 17:53:56OURCE + +------------------------------------------------------------------- +Thu Aug 16 09:10:33 UTC 2018 - jengelh@inai.de + +- Replace old %__ macros and $RPM_* shell vars. +- Use more "xargs -exec +". + +------------------------------------------------------------------- +Wed Aug 15 14:14:36 UTC 2018 - ecsos@opensuse.org + +- update to 0.9.10 + * Bug Fixes + - Fix signal handling to prevent double launch of plugins + immediately after plugin installed + - Fixed incorrect named entity tooltips for many of the + Insert-> Special Characters + - Fixed lack of recognition of woff2 fonts inside Sigil and for + plugins + - Fix segfault when .xml is first file in BookBrowser and add + new html or split at cursor is invoked + - Fix bug that allowed multiple audio/video tabs of the same + resource to be opened + - Fix plugin related bug when adding/removing last xhtml file + - Fix Text Direction setting inside body to use structural dir + attribute under epub3 + - Fix duplicate group-position property in epub3 MetaData + Editor + - Use absolute path references when first opening Sigil with + an ebook so that Open Recent works better + - Fix "issue" in handling self-closing script tags in head + (similar issue that we had with self-closing title tags) + - Fix issue converting Qt Strings to their Python equivalent + when outside the BMP + - Fix issue with trying to add existing html files when names + clash due to case insensitive file systems + - Fix crash bug after styling text in BookView and immediately + going to CodeView without moving cursor + - Fix crash bugs after deleting resources contained in a Report + in the BookBrowser + - Fix bug that destroys nav if left in unparseable state by + user even temporarily + - Fix bug that moved cursor to beginning of tag block when save + is done in CodeView + * New Features + - allow plugins to supply their own icon (plugin.png 48x48) for + use on the Quick Launch Toolbar icons + - extend plugin interface to include the status of the epub + inside Sigil (modified or saved) + - extend plugin interface to include the path to the saved epub + file or the null string if never saved + - extend Insert->Special Characters to include both a Greek + letter panel and a mathematical symbol panel + - add support for calibre:series and calibre:series_index to + Metadata Editor for epub2 + - add support for calibre:title_sort to Metadata Editor for + epub2 + - add support for clicking internal links in Preview to load + the proper destination tab + - add support for loading Qt's base translation files if + present. Allows buttons on native qt dialogs to + - be translated (Windows users may need to manually copy newer + qtbase_xx.qm files to Sigil's translation + - directory if they didn't exist in Qt5.6.2) + - allow user to add custom css rules to Preview/Book View by + creating a file called "custom_preview_style.css" + - in the Sigil preferences folder (not responsible for custom + css and ebook css fighting with each other) +- Drop sigil-fix_deprecated_macro.patch because now in upstream. + +------------------------------------------------------------------- +Mon Jun 11 06:06:22 UTC 2018 - ecsos@opensuse.org + +- insert sigil-fix_deprecated_macro.patch to fix build error + +------------------------------------------------------------------- +Sun Jan 7 11:42:03 UTC 2018 - ecsos@opensuse.org + +- update to 0.9.9 + * Bug Fixes + - Add python_3.5_fixes3.patch to Python build and update build + docs on OSX to fix missing symbols + - Fix crash caused by Preview holding pointer to user removed + resource when front tab is non-html resource + - Fix crash in FlowTab destructor due to re-entering flowtab + during Syntax Highlighting and signals + - Fix issue with file icons disappearing when reordering in + Book Browser (commit ecb56b1f) + - Fix missing epub3 Manifest cover-image property + setting/unsetting with BookBrowser + - Fix issue where cancelling the SaveAs dialog disconnected + an existing epub from its saved path + - Fix assertion error in sigil-gumbo when handling extraneous + script end tags + - Apply multiple fixes for gumbo from upstream + - Fix segfault in Split at Cursor when not an html file + - Make sure Add Cover tool properly handles existing manifest + cover properties in EPUB3s + - Correct error dialog to say “Sigil may need to close.” + - Prevent Images and Misc items from being dragged to the Text + folder in Book Browser (commit 30bb96d) + - Fix Linux bug that prevents rich text from other programs + being pasted into Book View (issue #320) + - Fix bug where index entries inside em and dfn tags were + ignored during index generation + - Fix bug on Windows in spell checking when smart right single + quotes are used for apostrophes + - Fix bug in simple well-formed check to handle generic xml + processing instructions + - Fix bug in epub3 MetaEditor with title-type + and collection-type properties + - Fix plugin code to prevent book href vs manifest id clashes + - Fix bug in Plugin Runner to allow it to delete non-manifested + files properly + - Fix bug in SourceUpdates to handle properly handle + css properties with multiple urls + - Fix bugs in well-formed check to better handle missing + doctypes + * New Features + - Add SIGIL_DISABLE_CURSOR_BLINK environment variable + to disable text cursor to aid Accessibility on OSX + - Better use semantic information (guide types and Landmarks) + to allow the user finer control of index generation + - Attempt to improve Metadata Editor placeholder text to help + beginners + - Preview Window Title bar will now show height and width + of the Preview Window + - Allow users to limit/disable clipboard history saving via + General Preferences + - Convert br tags in header text to linebreaks for toc/ncx/nav + generation routines + - Support spell checking of words with numbers controlled by + Preference settings + - Add two additional Quick Lauch Icons for Plugins +- Drop Patch sigil-version.patch, + because right version is now in upstream + +------------------------------------------------------------------- +Sat Apr 1 17:49:18 UTC 2017 - ecsos@opensuse.org + +- update to 0.9.8 + * Bug Fixes + - Make sure when new empty epub3's are created that the toc + does not use a doctype (Issue #250) + - Make GetUniqueFilenameVersion work even on Case-Insensitive + filesystems (Issue #247) + - Properly urlencode/decode all hrefs in plugin's ResultXML in + launcher/PluginRunner to prevent parse errors + - Enable Basic Cut Copy Paste Icons/Actions in OPF, NCX, XML, + SVG, and other Misc Text Tabs + - Add proper detection for minimum service pack requirements in + Windows installer + - Include workaround for bug in KDE Qt5 plugin on Linux that + keep plugins from launching from menu + - Prevent splitting Section0001.xhtml (Split at Cursor) + needlessly rewrite the file's manifest id with a uuid + - Fix issue where merging files when non-xhtml tabs were open + was causing Python errors or crashes + - Fix segfault in Image Reports when deleting unused image + files + - Fix bug in prettyprint_xhtml in sigil_bs4 (put back + inadvertently dropped is_void_tag routine) + - Fix gumbo serialize to better handle injected newlines + - Harden bundled Python isolation on Windows and add subset of + PyQt5 to bundled modules + - Harden plugin interface code to properly unquote/quote hrefs + - Stop Sigil from nagging about unsupported mimetypes when + epubs with Adobe xpgt page-templates are opened + - Fix Book Browser highlighting issue when editable XML files + from the "Misc" folder are opened + - Pull upstream bug fixes from google's gumbo parser for Sigil + - Force formatting buttons in BookView to generate + inline-styled spans instead of "strike", "b", etc + - Fix bug from deprecated use of jquery $.browser.msie + introduced when jQuery was updated + - Fix temp folder specification on Windows systems that delete + the system temp folder for every login (Issue #285) + - Fix typos in metadata descriptions to allow better + translations + * New Features + - New preference setting (Appearance section) which allows user + to adjust the size of the main menu icons + - Add manifest properties to Book Browser tooltips and to All + Files Reports Widget for epub3 + - Make Sigil's UI and spellchecker language settings available + to plugins + - Add support for PyQt5 for plugin gui widgets + - Internal builds now use Qt 5.6.2 with Webkit added back + - Windows structural changes to eliminate file duplication and + to accommodate PyQt5 requirements + - Update all build it yourself from source documentation for + new requirements +- Add Patch sigil-version.patch to set right version + +------------------------------------------------------------------- +Wed Feb 8 00:26:12 UTC 2017 - jengelh@inai.de + +- Trim redundant mentions from description +- Use %_smp_mflags for parallel build + +------------------------------------------------------------------- +Tue Nov 29 13:37:50 UTC 2016 - ecsos@opensuse.org + +- update to 0.9.7 + * Bug Fixes + - Allow tags in the svg and mathml namespace to automtically + self-close if empty to help work around a bug in Kindlegen + that will not seem to accept a closing svg image tag even + though image is non-void + - Prevent TextTab from constantly recentering page when focus + is lost + - Fix bugs in plugin basename_to_id when used with xpgt files + or any unrecognized extensions + - Fix typos in pls mimetype in plugins + - Fix code synchronization issues among 3 places where file + extensions are mapped to mimetypes + - Fix plugin readotherfile interface to rebuild the opf on the + fly only if it has been modified + - Fix plugin validation issues with integer vs string + representations of line number and character offsets + - Fix duplicate filename in multiple directories bug when + updating CSS urls + - Fix bug in page-map.xml mimetype when “Add Existing …” is + used + - Fix undefined behaviour shifting signed negative values in + 3rdparty libs and fix many warnings + - Fix text vs binary file type recognition in the plugin + interface (CSS and js files are text not binary) + - Fix too small toolbar icons on high dpi displays + - Fix bug that caused text highlighting to get lost on some + systems when doing a CSS Find & Replace. + - Fix bug in plugin interface basename_to_id to recognize .htm + extensions + - Fix bug in epub3 semantic popups to always refect the local + name of epub:type setting + - Fix bug where creation on an HTML TOC could overwrite an + existing Nav under epub3 + - Fix manifest id not starting with alpha character bug + * New Features + - Extend validation plugin interface with add_extended_result() + method to allow better cursor positioning + - Extend TextTab and Tabs derived by it to position cursor based + on offset + - Allow editing of page-map.xml files, xpgt files and other + misc xml based files inside Sigil + - Update Windows builds use Python 3.5.2, VS2015 + - Update Mac OS X builds and build instructions to use + Python-3.5.2 + - Remove support for python2.7 only plugins and simply Manage + Plugins settings + - Update to Qt 5.6.1-1 with QtWebKit added back for release + builds for Windows (VS2015) and Mac OSX + - Update Mac OS X and Linux build instruction documentation for + recent changes + - Allow Linux Dictionaries to look up default paths for + dictionaries passed in by build cmake settings + - Make the columns in the Manage Plugins table be sortable by + the user + - Better detect undefined and non-existing url fragments to + prevent issues when splitting or merging files + - Make tooltips for Run Plugin Icons show the name of the + selected plugin on hover + - Upgrade from jquery 1.6.2 to version 2.2.4 + - Upgrade from jquery.scrollTo 1.4.2 to version 2.1.2 + - Upgrade to double sized 48×48 pixel icons for High DPI + displays, Special Thanks to PatNY for creating our icons + +------------------------------------------------------------------- +Fri Jul 1 19:08:47 UTC 2016 - ecsos@opensuse.org + +- update to 0.9.6 + * Bug Fixes + - Make StdWarningDialog resizeable when “Show Details” is used + - Fix CleanSource svg prefix removal bug that sometimes broke + valid svg code + - Remove svg image and html5 menuitem from the list of void + elements in the Sigil and plugin code + - Properly xml escape “&” in metadata attribute values + - Properly perform source updates on epub on load even when + they do not follow recommended spec + - Make handling of comments in both xhtml and xml more robust + - Properly url escape css file names to handle css files with + spaces in them + - Try to make direct editing of content.opf more safe by + auto-fixing errors when possible + - Properly handle WellFormed checks for pure XML in + XMLResource.cpp by using embedded python3 lxml + - Make opf_newparser.py and xmlprocessor.py more robust to + broken user input in content.opf + - Make ProcessXML (repairXML in xmlprocessor.py) – leave + untouched anything well-formed + - Fix thinko in plugin bookcontainer.py and outputcontainer.py + contributed by wrCisco + - Fix for improper encoding in plugins on Mac OS X due to + missing inherited plugin environment + - Fix for typos in epub xmlns when splitting epub3 ebooks in + BookView + - Update testplugin_v012.zip to testplugin_v013.zip to handle + sgc-nav.css new feature + - Fix bugs in DeleteUnusedStyles when selector exists more than + once in the same stylesheet + - Fix bugs in DeleteUnusedStyles when group selectors span more + than one line + - Fix bugs in Reports: CSS Styles missing cases when selector + exists more than once + - Fix bug in Reports: All Files to use Landmark Semantics under + epub3 not guide semantics + - Fix bug, slow in loading ini when too large clipboard + history, user can now delete them via dialog + - Stop cosmetic double-spaces being introduced into OPF + manifest, spine and guide entries + - Prevent bug when user selects too much in BookView and then + tries to change case + - Fix bug in Delete Unused Media when css urls do not use + quotes + - vTry to set all ways of updating the ncx to use 2 character + indentation of head element + - Fix Building Relocatable Python on Mac build instructions + to remove BeautifulSoup4 requirement + - Fix for generating empty guide for epub3 when in plugins + * New Features + - created sgc-nav.css stylesheet for nav and allow templates in + Prefs Dir for user to control it + - Added General Setting to allow user to set own temporary + directory location + - Added Qt Stylesheet support – Recognize and load + “qt_styles.qss” file if stored in Sigil Preferences folder + - Extended the plugin interface to add support for epub3 + bindings elements + - Add option + forward delete shortcut to active Metadata + Editor remove + +------------------------------------------------------------------- +Fri Apr 15 15:02:50 UTC 2016 - ecsos@opensuse.org + +- update to 0.9.5 + * Bug Fixes + - Fix regression when ImportHTML in gathering HTML based + DC. metadata + - Fix regression - remove incorrect use of opf:scheme from + dc:creator and dc:contributor under epub2 + - Fix regression - the guide reference tag is always a void tag + - Fix issues with hunspell spell checking under Windows when + non-ascii paths to dictionaries + - Fix issues with overridding the prefs directory on Windows + with non-ascii paths + - Fix broken manual "Check" button on W3C stylesheet + validation's generated html form. + - Fix media-type recognition for .m4a and .m4v file extenstions + in main Sigil and plugin code + - Treat ruby and rt as inline tags when pretty-printing in + Sigils and for plugins + * New Feature + - Allow user to choose what level of CSS gets used in the + "Validate Stylesheets + With W3C" tool via user preference (General). + +------------------------------------------------------------------- +Tue Mar 15 20:14:48 UTC 2016 - ecsos@opensuse.org + +- update to 0.9.4 + * Bug Fixes + - Prevent the use of zero length key fields when obfuscating + fonts + - IDPF font obfuscation key accepts all input except as + specified + - Fix typo in main.ui accelerator assignment + - Update Transifex project URL + - Prevent NCX Weirdness with ampersand added when editing NCX + in codeview and TOC widget showing + - Fix lost namespace attributes on metadata tag + - Allow auto conversion from package version 1.0 to 2.0 + - Remove unused parameter from gumbo create_text_node + - Fix bug that hits package version when no xml declaration + on opf on import + - Add id to Heading structure to greatly speed up NCX/TOC + creation even more + - Only the true nav should ever have the nav manifest property + set + - Prevent nav property from being overwritten when updating + manifest properties + - Prevent segfault if user add semantics but never chooses one + - Prevent Add Cover from returning the wrong doctype for epub3 + - Make sure cover-image and svg (if needed) are added as epub3 + manifest properties when adding a cover + - Make sure all referenced resources are found for Delete + Unused Media + - Remap non-standard epub namespace prefixes in the opf to + those now reserved for epub3 + - Make loading epubs with broken opf files more robust + * New Features + - Extract all MarcRelators related code into its own class so + it can be shared + - Added some missing MARC relators + - Removed obsolete MARC relators (ctb replaced clb, and sng + replaces voc) + - Completely redesign MetaEditor gui to work with both epub2 + and epub3 metadata + - Add default metadata language and title for the user + - Make the Nav a required part of an epub3 - create an empty + one if need be + - Create NavProcessor to use gumbo to update the nav.xhtml + - Add support for Adding/Removing Nav Landmarks + - Better identify the true nav when loading epub3s + - Add ability to generate Nav TOC from Book Headings to + CreateTOC tool + - Check for valid nav otherwise create a new default one + ready for updates + - Do not allow split markers to be added to nav.xhtml + - Do not allow nav to get merged + - Do not allow the nav to be deleted + - Do not allow plugins to delete the nav under epub3 + - Completely Revamp BookBrowser interface to support both Guide + and Landmark Semantics + - Create Semantics Dialog to better handle epub2 and epub3 + semantics + - Create Separate Guide/Landmarks classes for epub2 and + epub3 respectively + - Rename DescriptiveMetaInfo structure to just + DescriptiveInfo to work with guide/landmarks elements + - Add a mapping from Landmark to Guide and Back + - Remove old GuideSemantics code + - Make sure Landmarks semantics show up in BookBrowser + tooltips + - Update epub3 semantic vocab in Landmarks + - Completely Revamp how the dockable TableOfContents gui widget + is built and updated + - Remove strong coupling between TableOfContents widget + and NCX + - Allow dockable Table Of Contents to refresh from Nav + under epub3 + - Large update for translations needed + - Many new strings supporting the MetaEditor GUI and Add + Semantics GUI were added + +- update to 0.9.3 + * Bug Fixes + - Add a python based updatechecker for Sigil updates to prevent + Windows OpenSSL build issues + - Stop 'Generate TOC' from introducing unnecessary spaces in + front of class attibute values + - Use localeAwareCompare to attempt to add Index Entries to + build them sorted + - Fix segfault caused by use of possibly stale htmlresource + pointer in FlowTab destructor + - Workaround Qt bug that causes slow selection/highlighting of + xhtml on Linux + - Fix multiple typos in sigil_gumbo_bs4_adapter code + * New Features + - Add an autostart/autoclose capability for plugin developers + - Add 3 User-assignable ToolBar Buttons for up to 3 plugins - + users can an assign key accelerators to them + - Add General Settings Preference for setting default + (epub 2 or 3) for new documents + - Merge CleanSource Preference Settings into General Settings + Preferences + - Add Setting to control Epub access non-multimedia remote + resources + - Completely reworked Sigil internals to support epub version + (2 or 3) specific functionality + - ImportHTML, ImportEPUB, Splitting and Merging, Index + Generation, Mending, are all now epub version aware + - AddModificationDate upon save is now epub2 and epub3 aware + - Add "Epub3 Tools" to the Tools menu + - Add three new epub3 tools: "Update Manifest Properties", + "Generate Nav From NCX" and + "Generate NCX From Nav" to "Epub3 Tools" menu + - Add local-storage support to PV/BV for epub3's that use + javascripts + - Added support to recognize and update upon load SMIL files + and Adobe page-map.xml files + - Make quoteurl url scheme-aware in both python and for Qt, + since epub3 allows external resources + - Extend url address recognition to include track, video, and + object elements attributes + - Recognize and store .vtt and .ttml files for video subtitles + and captioning + - Prevent attempts from using Metadata Editor gui from hurting + epub3 until support is added later + - Many epub3 related bug fixes and changes to make sure all new + epub3 href/links are properly updated + - Reworked the plugin_launcher epub3 interface code to allow + fallback and media-overlay attributes + - Added support for MathML in Preview via Mathjax.js-single + polyfill + - Added the MathML list of void tags to GumboInterface for + proper serialization + - Add technique to call long EmbeddedPython calls by using + QtConcurrent::run + + +------------------------------------------------------------------- +Sat Dec 19 12:57:15 UTC 2015 - ecsos@opensuse.org + +- update to 0.9.2 + - Update BuildingOnLinux docs + - Update Building on Mac OS X docs + - Fix example clips/searches loading on Linux + - Simplify UseBundledInterpreter Logic + - Preliminary Linux binary installer support added + - Include Pull Request 161 by pinotree "Switch TempFolder to + QTemporaryDir" to improve safety + - Fix bug when adding existing html links to stylesheets not + being updated + - Fix bug in Well-Formed error messages due to bug inside + gumbo's error.c + - Add xmlns="http://www.w3.org/1999/xhtml" attribute to html tag + if missing + - Reduce fear of Cleaning ToValidXHTML by using serialize not + prettyprint + - Add ability to change Sigil's user preferences directory by + specifying a new path via the SIGIL_PREFS_DIR environment + variable (path must be user-writable). + - Fix lost DOCTYPE info when splitting or merging + - Completely rework pretty printing via gumbo to be much more + robust + - Make identification and storage of page-map.xml more robust + - Completely revamp Cleaning to use "Mend Code" and remove + PrettyPrintGumbo as on option + - Rename PrettyPrintGumbo to "Mend and Prettify" and move to + CodeView Right-click menu + - Restore Sigil's update checker that's been broken for a while + - Update sigil_bs4 prettyprint_xhtml and serialize_xhtml routines + to use logic of code in GumboInterface + - Update sigil_bs4 to use numeric entities when faced with nbsp + so they do not get lost later in Sigil + - Rename "Sanity Check" to "Well-Formed Check EPUB" and remove + check icon people confused with FlightCrew + - Fix out of date error message referencing Tidy + - Coerce missing or bad doctypes to meet either epub2 or epub3 + standard + - Inject empty title tag if missing from head + - Html escape Index entry text used to create index.html + +------------------------------------------------------------------- +Mon Nov 30 19:15:59 UTC 2015 - ecsos@opensuse.org + +- update to 0.9.1 + - Fix bug when template sgc_toc.css could be changed to blank on + save, since no InitialLoad() was done + - Change order of TextResource m_IsLoaded and m_CacheInUse flags + to minimize potentail race exposure. + - Fix PluginRunner bug that introduced errors into xhtml files + when both the content.opf and xhtml were modified + - Auto XML Decode and Escape Metadata entries created in the + Metadata GUI + - Alter pluginhunspell.py so a missing libhunspell doesn't stop + ALL plugins from working + - default to using clean by gumbo vs prettyprint gumbo in new + installs + - fix prettyprint bug with trailing whitespace improperly + inserted after inline tags inside div tags + - fix for bundled interpreter packages PIL and cssutils on + Mac OS X that were missing + - Fix for crash when using Find in BV on pages with no text, only + images (issue #156) + - Added testplugin_v010.zip to docs to allow Linux packagers to + test their plugin implementation + - Fix for prettyprint bug with tables (issue # 158) + - Fix for serialize in gumbo to limit injected returns + - Update to Sigil_Plugin_Framework_rev6.epub + - Make build order of sigilgumbo deterministic in order to help + Linux packagers + - Make plugin launcher success and error messages robust to + non-utf-8 strings + - Fix for crash bug when comments exist inside manifest of opf + - Fix for Sigil's gumbo - only inject end tags when current token + does NOT need to be reprocessed + +------------------------------------------------------------------- +Sun Nov 29 08:58:58 UTC 2015 - ecsos@opensuse.org + +- update to 0.9.0 + - Add "Use Bundled Python" option to bring sanity and choice to + Python3 Interpreter selection + - Merge EmbeddedPython code across platforms and fix python flags + for all platforms + - Properly build translation base.ts to prevent blank message + fields being generated by tr() + - Allow PrettyPrint_Gumbo to condense whitespace where allowed + - In PluginRunner auto-repair modified xml (opf, ncx), do not + check xml with xhtml wellformed check + - Fix bug in plugin epub3 interface, conversion of properties + with null strings to None + - Restore ability to override hunspell dictionary locations on + Linux with SIGIL_DICTIONARIES env var + - Restore ability to build Sigil against system hunspell + libraries on Linux + - Adjust pluginhunspell.py to try to find system hunspell if + bundled hunspell is not built/installed + - Fix hang/slowness in TOC creation when huge number of headings + all exist in the same file + - Performance speedups for NCX writing to help with slow ToC + Creation + - bug fix for better detecting comments in sanitycheck.py + - bug fix for Adding Blank xhtml files to an epub3 + - bug fix for Issue 140 - TOC gets cut-off under some platforms + (lxml needs utf-8 not unicode) + - add cmake option INSTALL_BUNDLED_DICTS to enable/disable + installation of bundled hunspell dictionaries + - allow SIGIL_DICTIONARIES env var to specify multiple paths + (colon delimited) + - Fix bug in sanitycheck.py error message creation + - Identify woff files as fonts when importing epubs + - Fixes for nbsp being "lost" when linking in stylesheets and + when splitting and merging chapters + - Fix for lost whitespace inside text holding tags when pretty + printing + - Workaround for broken QShortCut in Qt 5.4.X see Issue 149 + - cleanup up some compiler warnigns +- changes from pre-release 0.8.901 + - Fixes + - fix for hang when trying to add a cover + - multiple fixes for segfaults in the TOC creation code + - fixes for blank TOC headings caused by tags nested inside of + h1-h6 tags + - workaround for an instability caused by a compiler bug in + Visual Studio 2013 on Windows + - fixes for multiple xml header declarations appearing when + using sigil_bs4 prettyprint_xhtml() or serialzie_xhtml() + - build fixes to include MSVCR100.DLL for Windows machines that + are too new to have it + - fix pretty printing using gumbo to support some mbp: tags + - fixes to deal with self-closing iframe tags which made gumbo + stumble + - fixes to more robustly convert from QByteArray types to their + char * pointers + - fixes and improvements to the Building on Linux instructions + - protect gumbo parsing with a mutex to prevent unknown issues + with potential for non-reentrant code in that library + - workaround Qt QHash operator()= bugs that caused static QHash + objects to freed multiple times + - fix for internal opf processing encoding detection being + confused by xml header declarations potentially resulting in + missing spine and manifest items. + - Features + - new launcher/wrapper code interface to support plugins that + operate on epub3 ebooks + - added cssutils, cssselect, and chardet to the site-packages + of the embedded Python 3.4 interpreter + - validation plugins that report no errors will now have + "No problems found" appear in the Sigil Validation window. + - validation plugins will auto accept/close the plugin runner + window no matter the results + - Windows installer now detects whether MS redistributable + runtimes are already installed +- changes from pre-release 0.8.900 + - Kill tidy and replace it with a combination of a specially + modified Gumbo parser that supports html5 + - Kill Xerces and XercesExtras. + - Kill Boost, replace with C++ 11 + - Kill unused bundles. + - Replace all "undefined - behaviour" use of "Null" References + with proper pointers across entire codebase to allow it to + work with the latest clang compilers + - Completely revamp the build process to embed the Python 3.4 + Interpreter inside of Sigil and integrate it in, including as + site-packages: [lxml, bs4, PIL, regex, six, html5lib]. + This will allow plugins that use the internal Python 3.X + engine access to all of these specialized packaes by default + with no additional action needed by end users of their plugin. + - Create our own version of BeautifulSoup4-4.4.0 called + sigil_bs4 that fixes lxml namespace bugs, fixes + serialization/prettyprinting of inline xhtml tags, and + modifies the bs4 codebase so that a single sourcecode works + equally well on both Python 2.7 and Python 3.X + - Replace internal opf and ncx xml processing and cleaning with + a combination of embedded Python 3.4, sigil_bs4 / lxml + - Build hunspell as a shared library and then add a ctypes + interface to allow plugins to spellcheck + - Build our modified gumbo html5 parser as a shared library and + provide a bs4 ctypes interface to it for easy xhtml + processing in plugins that use Python 2.7 and Python 3.X + - Allow plugins to auto-fix "text/html" media-types to + "application/xhtml+xml" + - Redesign the ebook source updates upon load process to use + our modified gumbo-parser + - Begin the transition to allow for both epub2 and epub3 + editing (Note: epub3 editing is still incomplete) + - Convert Flightcrew to become a Sigil plugin and replace it + with a simple and fast internal sanity checker. + - Update Hunspell dictionaries to be actual dictioanries and + not word lists for en_US and en_GB + - Updated other dictionaries to their most current version to + match what is used in LibreOffice 5 + - Fix issue #54 modified date using local numerials when it + should be using Arabic numerals per the spec. + - Set the book to modified when font's are obfuscated. + - Change FORCE_BUNDLED_COPIES build flag to USE_SYSTEM_LIBS. + This flips the meaning of the flag. Now USE_SYSTEM_LIBS will + enable using system libraries. Also, SYSTEM_LIBS_REQUIRED was + added which will fail the cmake configure if any system + libraries are not found instead of falling back to the + bundled copy. Finally, this makes the build more consistent + for Windows and OS X users. + +------------------------------------------------------------------- +Wed Jun 17 21:29:40 UTC 2015 - ecsos@opensuse.org + +- update to 0.8.7 + - This is a very small maintenance release. + It mainly updates links for the change in code location. + +------------------------------------------------------------------- +Sat Apr 18 16:00:17 UTC 2015 - ecsos@opensuse.org + +- update to 0.8.6 + - Fix for crash during merging xhtml files. + - Changed fix for "Create TOC crash in Sigil 0.8.5" to reduce the + degree of disconnecting to prevent lost signals on html + resources. + - Fix for missing audio and video mime types in OPFResource and + FolderKeeper. + - Attempt to prevent Tidy from simply deleting all mathml during + cleaning. +- previous updates from 0.8.5 + - Fix text resource not alwalys saving to disk. + - Fix bug in missing CSS. + - Fix create html toc crash bug. + - Update some links in the help menu. + +------------------------------------------------------------------- +Fri Mar 27 15:46:12 UTC 2015 - ecsos@opensuse.org + +- update to 0.8.4 + - Fix for removeall plugins bug where all plugins would remove + all plugins regardless if the user clicked no instead of yes. +- previous updates from 0.8.3 + - 10.9.5 is now the minimum OS X version required. + Only 10.10.1 has been tested. + - -DCODE_SIGN_ID=XYZ option has been added to auto sign the app + bundle on OS X. + - Validation result plugins will auto close the Plugin Runner + Dialog since the dialog has no real info and openes the + validation pane with the results anyway. + - New Plugin Preferences Support added + - Plugins Manager will now remember last folder used + - Support for building both Linux .deb and .rpm packages + - Lots of Linux build support, compilation, installation, and + documentation improvements + - Qt 5.4 is now a minimum requirement. + - Build changes to support update to latest Qt 5.4.0 and to + use latest C++11 compiler + - Numerous bugs fixed or worked around including: + - Make Invocation of CSS W3C Online Validator more reliable + - Fix to make Preview Window update after BookView to prevent + memory corruption and crashes + - Workaround Qt bug (font cache assertion) when using + clearMemoryCaches() + - see https://bugreports.qt.io/browse/QTBUG-43504 + - Properly handle loadFinsihed Signal in BookViewPreview to + prevent clashes between BookView and Preview + - Fix for Sigil memory use after it was freed bug + - Workaround to the extent possible Qt bug with memory use after + free using QWebInspectors + - see https://bugreports.qt.io/browse/QTBUG-43725 + - Workaround to the extent possible Qt bug with memory use + after free when closing MainWindows + - see https://bugreports.qt.io/browse/QTBUG-43692 + - Bug fix to prevent crashes in KeyboardsShortcuts when accessing + Preferences with multiple MainWindows + +------------------------------------------------------------------- +Sat Jan 24 12:05:59 UTC 2015 - ecsos@opensuse.org + +- update to 0.8.2 + - Validator plugin type which can load validation results into + the main window validation panel. + - Corrections to Sigil Plugin Framework Documentation + - Pull request #17: Fix typos in README.md + - Additional python plugin interface features: + - multiple plugin engines now allowed for plugins that + work on both python 2.7 and python 3.4 + - launcher revision date interface + - plugin stdout will now appear immediately in Sigil + - Multiple plugin launcher bug fixes: + - make parsing more robust to poorly formed xhtml + - modified text iterator to follow spine order + - bug fixes for readotherfile, and writeotherfile + - bug fixes for guide types and setting the guide + +------------------------------------------------------------------- +Tue Oct 28 17:28:37 UTC 2014 - ecsos@opensuse.org + +- update to 0.8.1 + - Set minimum OS X version to 10.9.0 in Info.plist so users + trying to run on older versions of OS X will receive an error + dialog instead of a crash dialog. + - Set minimum Windows version to Vista in Installer so + installation will error when trying to install on XP + (which is not supported and Sigil binary packages won't run on). + - Fix issue #21: Use Hunspell WORDCHARS to help in tokenization + of words. + - Pull request #19: Moving plugin description to ToolTips. + - Pull request #20: Preserve current file name for future save + as actions + if appropriate. + - Fix bug where save after using input plugin would fail. + +------------------------------------------------------------------- +Mon Oct 6 17:32:07 UTC 2014 - opensuse@dstoecker.de + +- update to 0.8.0 + - Plugin framework. + - Add the svg image tag as an svg inline element + (not a block element) and add it as an empty element + (TidyEmptyTags). + - Allow user defined list of entities to preserve. + - Pull request #16: Hardcode menu Plugins in UI, move it before + menu Help. + - Pull request #10: Add ability to move entries in TOC + up and down. + - Pull request #8: Allow pasting HTML as HTML or plain text in + BookView. + +------------------------------------------------------------------- +Tue Jun 24 07:57:04 UTC 2014 - opensuse@dstoecker.de + +- update to 0.7.4 + +------------------------------------------------------------------- +Wed Sep 4 13:34:58 UTC 2013 - opensuse@dstoecker.de + +- update to version 0.7.3 + Sigil 0.7.3 2013.08.03 + - Fix issue 2309: Compile failure due to case issue on m_lastFolderOpen. + - Fix issue 2269: "Conflicts with:" always in English. + - Fix issue 2186: Sigil 0.7.2 crashes on "Add existing files". + - Fix issue 2232: The nbsp characters in UTF-8 files are converted to normal spaces. + - Fix issue 2201: Save does not prompt for filename if filename not set + after cancelling save operation. + - Fix issue 2193: Incorrect country code used for Serbia. + - Implement issue 2199: Mac, Don't open empty book by default. + + Sigil 0.7.2 2013.04.14 + - Implement issue 2129: Enhance archive filename encoding handling. + - Implement issue 2128: Warnings for non-ASCII characters in filenames. + - Implement issue 2113: Preview should zoom separately from other views. + - Implement issue 1997: Tool to Add Cover image and file automatically. + - Implement issue 1993: Find & Replace should have a Marked Text option. + - Implement issue 2083: Enhance invalid OPF recovery. + - Implement issue 2082: Improve performance of Book Browser refresh. + - Fix issue 2170: Spellcheck should remember position after changing word. + - Fix issue 2148: Don't delete cover image in "Delete unused media files". + - Fix issue 2147: Doubleclick in Delete Files dialog can cause crash. + - Fix issue 2143: Bulk rename with just a number for filename does not use correct number of 0s. + - Fix issue 2121: Wait cursor shows when dialog is open while saving or opening. + - Fix issue 2107: Heading not accepted due to split at end of file. + - Fix issue 2110: Insert Special Character inserts wrong code for nnbsp. + - Fix issue 2021: Importing UTF-16 encoded files results in empty file. + - Fix issue 2088: Ctrl-click on text files does not work in Code View. + - Fix Issue 2071: Anchor dialog has disabled text field. + - Fix Issue 2077: Rename dialog incorrectly sized. + - Fix issue 2081: Book Browser tooltips are not updated when semantics change or for cover images. + - Fix issue 2080: OPF meta title not updated correctly for Add Semantic. + - Fix issue 2079: UI Language dropdown does not show language names for entries containing _. + +------------------------------------------------------------------- +Mon Mar 25 19:14:42 UTC 2013 - opensuse@dstoecker.de + +- update to 0.7.1 + - Implement issue 2058: Code View should be able to show resizable image. + - Implement issue 2038: Spellcheck "change selected word to" should remember sorting order. + - Implement issue 2043: Spellcheck should allow case-insensitive sorting. + - Implement issue 2029: Save and open should warn if HTML files are not well formed. + - Implement issue 2009: Add semantic tags to filenames in reports. + - Implement issue 2028: Special characters should work in non-html files. + - Implement issue 2027: Upgrade Boost to Boost 1.53.0. + - Fix issue 2069: Work around for archives where filenames are not utf-8 encoded. + - Fix issue 2068: ZIP general purpose bit 11 (utf-8) filename not set. + - Fix issue 2061: Language code using wrong character to separate country code. + - Fix issue 2057: Text selected across lines using Ctrl-F cannot be found with Find. + - Fix issue 2036: Mark for Index can insert HTML tags into code making it invalid. + - Fix issue 2041: Preview does not sync cursor after using Sigil for a while. + - Fix issue 2030: The   character is incorrectly converted to space on open. + - Fix issue 2035: Index Editor entries with nbsp character don't match text. + - Fix issue 2016: Find with wrap off and All HTML Files still wraps on last file. + - Fix issue 2001: Spellcheck does not always highlight a word the first time. + - Fix issue 2017: Clips pasted into some windows does not work correctly. + - Fix issue 2008: Index adds extra comma in some cases. + +------------------------------------------------------------------- +Sun Feb 24 12:33:47 UTC 2013 - opensuse@dstoecker.de + +- update to 0.7.0 + - Implement issue 1983: Set the tooltips of files in Book Browser to the filename. + - Implement issue 1965: Allow opening files that are missing container.xml. + - Implement issue 1975: HTML TOC and Index should use CSS files instead of inline stylesheet. + - Implement issue 1968: Bookmark location in editing window. + - Implement issue 1963: Table Of Contents window should default to expanded when opened or refreshed. + - Implement issue 1953: Allow entering a list of new words into dictionary preferences. + - Implement issue 1952: Add shortcut for Copy HTML file. + - Implement issue 1951: Doubleclick on Image Report file should find next use of image. + - Implement issue 1949: Add support for multiple active user dictionaries. + - Implement issue 1947: Spellcheck dialog to manage all misspelled words at once. + - Implement issue 62: Add document's css styles to menu. + - Implement issue 1945: Allow editing of CSS while displaying page. + - Implement issue 1661: Report list of all different characters in the book. + - Implement issue 1746: Add Report for Links and Footnotes. + - Implement issue 1941: Add Find & Replace option to wrap or not wrap searches. + - Implement issue 1940: Update Insert Image to Insert File to support insert of audio/video. + - Implement issue 1938: Update Delete Image files to Delete Media files to include audio/video. + - Implement issue 1937: Add Report for All Files. + - Implement issue 1936: Add Clip Bar toolbar with buttons for Clips and shortcuts for Clips. + - Implement issue 1931: Change to QRegularExpression for most regexes. + - Implement issue 1185: Edit Table of Contents without needing Generate TOC. + - Implement issue 1929: Add support for playing audio and video files. + - Implement issue 917: Sigil should support audio and video tags. + - Implement issue 1928: Add well-formed check to HTML File Report. + - Implement issue 1864: Allow Metadata Editor dialog to stay open while editing. + - Implement issue 1871: Code View context menu should show clips even if word is misspelled. + - Implement issue 1870: Saved Searches should use mode settings from Find & Replace. + - Implement issue 1927: Add support for basic replacement Clips (e.g. span) in Book View. + - Implement issue 20: Embedded fonts support. + - Implement issue 1926: Upgrade to Qt5. + - Implement issue 1924: Add dockable Clips window to select clips. + - Implement issue 1925: Don't force well formed checks unless absolutely necessary. + - Implement issue 1843: Preview should be real-time display of Code View. + - Fix issue 1989: Problem with nested index entries. + - Fix issue 1964: Correcting a word using spellcheck does not make file go to "not saved" state. + - Fix issue 1961: Generate TOC should not create IDs for headings when it only points to filenames. + - Fix issue 1857: CSS Highlighting inline styles inconsistent. + - Fix issue 1946: Highlight misspelled words checkbox should be available in Preferences. + - Fix issue 1943: Reports can crash if file has non well-formed xml. + - Fix issue 1883: TOC window does not jump to right location for some entries. + - Fix issue 1906: "Delete unused image files" deleting background images. + - Fix issue 1874: Using Delete Unused Stylesheet Classes deletes pseudo-elements. + - Fix issue 1939: CSS parser does not match wildcard selectors consistently. + - Fix issue 1935: Improve speed of Index Editor autofill by removing progress dialog. + - Fix issue 1891: Opening the Saved Searches expands all groups. + - Fix issue 1934: Go To Style does not work with CSS filenames that have spaces in them. + - Fix issue 1933: No message is displayed if Go To Style can't find a style. + - Fix issue 1932: Replace All needs to be run twice in some cases. + - Fix issue 1930: Fix Metadata language dropdown selection incorrect matching. + - Fix issue 1775: Sigil-0.6.0 edit very slow with Thai e-Pub. + - Fix issue 1764: Sigil crashes on KDE after rearranging text sections. + - Fix issue 1720: Book View highlights text apparently randomly. + - Fix issue 1923: CSS validation should use EPUB 2 profile. + - Fix issue 1922: Invalid EPUB warning dialog is not long enough. + - Fix issue 1918: Support import of tab separated entries for Index Editor. + - Fix issue 1917: Keep selection when deleting unused images if an HTML file was selected. + - Fix issue 1916: Allow Go To Style to work for link type text/x-oeb1-css. + - Fix issue 1869: Backspace in Preferences - Shortcuts causes crash. + - Fix issue 1818: Hyperlink of URL with & causes invalid code. + - Fix issue 1824: Cursor position changes when saving the book. + +------------------------------------------------------------------- +Sun Dec 16 11:18:33 UTC 2012 - opensuse@dstoecker.de + +- update to release 0.6.2 + +------------------------------------------------------------------- +Mon Nov 5 19:24:11 UTC 2012 - opensuse@dstoecker.de + +- Update to release 0.6.0 + +------------------------------------------------------------------- +Thu Aug 30 09:06:46 UTC 2012 - toms@opensuse.org + +- Added sigil-Dialogs-About.cpp.patch to disable __DATE__ and __TIME_ + warning message from rpmlint was: + "Your file uses __DATE and __TIME__ this causes the package to rebuild + when not needed warning" + + +------------------------------------------------------------------- +Thu Aug 30 07:17:37 UTC 2012 - toms@opensuse.org + +- Updated to version 0.5.3 (2012.02.25): + - Fix issue 1254: Bulk rename will stop if one name matches, context menu + needs cleanup and warnings. + - Fix issue 1268: Find/Replace all files does not search in book order, + and other issues. + - Fix issue 1266: Store user dictionary as UTF-8. + - Ensure the checkmarks in add semantic are set correctly when selecting + multiple files. + - Fix issue 1030: Don't close if canceling out of a failed save. + - Fix issue 1258: Find/Replace step by step in All HTML files is broken. + +For previous changes, see ChangeLog.txt + +------------------------------------------------------------------- +Sat Aug 6 11:36:41 UTC 2011 - toms@suse.de + +- First initial release 0.3.4 diff --git a/sigil.desktop b/sigil.desktop new file mode 100644 index 0000000..34c9d07 --- /dev/null +++ b/sigil.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Sigil +GenericName=Ebook editor +Comment=WYSIWYG ebook editor +Icon=sigil +Exec=sigil %u +Terminal=false +MimeType=application/epub+zip; +Categories=Application;Qt;TextEditor; diff --git a/sigil.spec b/sigil.spec new file mode 100644 index 0000000..8a67950 --- /dev/null +++ b/sigil.spec @@ -0,0 +1,212 @@ +# +# spec file for package sigil +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define sigil_doc_version 2024.08.15 +Name: sigil +Version: 2.3.1 +Release: 0 +Summary: WYSIWYG Ebook Editor +License: GPL-3.0-only +Group: Productivity/Other +URL: https://sigil-ebook.com/ +Source0: https://github.com/Sigil-Ebook/Sigil/archive/%{version}/%{name}-%{version}.tar.gz +#Source1: https://github.com/Sigil-Ebook/Sigil/raw/master/docs/Sigil_User_Guide_%%{sigil_doc_version}_eopub3.epub +Source1: https://github.com/Sigil-Ebook/sigil-user-guide/releases/download/%{sigil_doc_version}/Sigil_User_Guide_%{sigil_doc_version}.epub +Source2: %{name}.desktop +# PATCH-FIX-OPENSUSE Disabled __DATE__ and __TIME__ which is replaced later in pre section +Patch0: %{name}-gt-0.9.0-Dialogs-About.cpp.patch +BuildRequires: boost-devel +BuildRequires: cmake >= 3.0 +BuildRequires: dos2unix +BuildRequires: fdupes +%if 0%{?suse_version} <= 1600 +BuildRequires: gcc12 +BuildRequires: gcc12-c++ +%else +BuildRequires: gcc +BuildRequires: gcc-c++ +%endif +BuildRequires: libstdc++-devel +BuildRequires: libxerces-c-devel +BuildRequires: libxml2-devel +BuildRequires: libxslt-devel +BuildRequires: make +BuildRequires: pkgconfig +BuildRequires: qt6-base-devel >= 6.4.0 +# not need for build, only check for exists +# upstream use for python3-Pillow 7.1.2 +BuildRequires: python3-Pillow >= 5.0.0 +# upstream use python3-certifi 2020.6.20 +BuildRequires: python3-certifi +# upstream use python3-chardet 3.0.4 +BuildRequires: python3-chardet >= 3.0.4 +# upstream use python3-css-parser 1.0.4 +BuildRequires: python3-css-parser >= 1.0.4 +# upstream use python3-cssselect 1.1.0 +BuildRequires: python3-cssselect >= 1.0.3 +# upstream use python3-cssutils ? +BuildRequires: python3-cssutils >= 1.0.2 +# upstream use 3.6.0 +BuildRequires: python3-devel >= 3.6 +# upstream use python3-dulwich 0.20.5 +BuildRequires: python3-dulwich >= 0.20.2 +# upstream use python3-html5lib >= 1.1 +BuildRequires: python3-html5lib +# upstream use for python3-lxml 4.5.1 +BuildRequires: python3-lxml >= 4.4.2 +# upstream use for python3-qt5 5.12.3 +BuildRequires: python3-qt5 +# upstream use for python3-regex 2020.6.8 +BuildRequires: python3-regex +# upstream use for python3-six 1.15.0 +BuildRequires: python3-six >= 1.14.0 +# upstream use for python3-urllib3 1.25.9 +BuildRequires: python3-urllib3 >= 1.24 +# upstream use python3-tk ? +BuildRequires: python3-tk +BuildRequires: unzip +BuildRequires: update-desktop-files +BuildRequires: zlib-devel +BuildRequires: cmake(Qt6Concurrent) +BuildRequires: cmake(Qt6Core5Compat) +BuildRequires: cmake(Qt6Linguist) +BuildRequires: cmake(Qt6Network) +BuildRequires: cmake(Qt6PrintSupport) +BuildRequires: cmake(Qt6Svg) +BuildRequires: cmake(Qt6UiTools) +BuildRequires: cmake(Qt6WebEngineCore) +BuildRequires: cmake(Qt6WebEngineWidgets) +BuildRequires: cmake(Qt6Widgets) +BuildRequires: cmake(Qt6Xml) +BuildRequires: pkgconfig(hunspell) +BuildRequires: pkgconfig(libpcre) +BuildRequires: pkgconfig(libusb-1.0) +BuildRequires: pkgconfig(minizip) +Requires: python3-Pillow +Requires: python3-certifi +Requires: python3-chardet +Requires: python3-css-parser +Requires: python3-cssselect +Requires: python3-cssutils +Requires: python3-dulwich +Requires: python3-html5lib +Requires: python3-lxml +Requires: python3-regex +Requires: python3-six +Requires: python3-tk +Requires: python3-urllib3 + +%description +Sigil is an editor for the EPUB format. It is designed for WYSIWYG +editing of EPUB files and for converting other formats to EPUB. It +also provides support for direct XHTML, CSS and XPGT editing. You can +use it to add any of the metadata entries supported by the EPUB +specification and create a hierarchical Table of Contents. + +%prep +%autosetup -p1 -n Sigil-%{version} +cp -v %{SOURCE1} . +cp -v %{SOURCE2} . +# rpmlint + +#FIXME MANUAL UPDATE OF DATE REQUIRED HERE!!!! +# Fix "Your file uses __DATE and __TIME__ this causes the package to rebuild +# when not needed warning" +# http://sourceforge.net/tracker/?func=detail&atid=102439&aid=3314371&group_id=2439 +# +# We use the ChangeLog date +_date=$(date -u -r ChangeLog.txt -I) +_time=$(date -u -r ChangeLog.txt +%%T) +# Change it: +find . -type f -name About.cpp -exec sed -i "s/@DATE@/$_date/;s/@TIME@/$_time/g" {} + + +sed -i 's/\r//' ChangeLog.txt README.md COPYING.txt +dos2unix src/Resource_Files/python3lib/meta*.py +dos2unix src/Resource_Files/python3lib/opf_*.py +# rpmlint: +find . -type f -exec sed -i -e 's|#!\/usr\/bin\/env python3|#!\/usr\/bin\/python3|g' {} + +find . -type f -exec sed -i -e 's|#!\/usr\/bin\/env python|#!\/usr\/bin\/python3|g' {} + + +%build +%if 0%{?suse_version} <= 1600 +export CC=gcc-12 +export CXX=g++-12 +%endif +export CFLAGS="%{optflags} -fno-strict-aliasing" +export CXXFLAGS="$CFLAGS" + +%cmake_qt6 -G "Unix Makefiles" \ + -DTRY_NEWER_FINDPYTHON3=1 + +%qt6_build + +%install +%qt6_install + +# create a .desktop file: +mkdir -p %{buildroot}%{_datadir}/applications + +# install icons for the .desktop file +install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/sigil.png +install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/sigil.png +install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/sigil.png +install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/sigil.png +install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/sigil.png +install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop + +%suse_update_desktop_file %{name} +%fdupes -s %{buildroot} + +# fix rpmlint: non-executable-script +pushd %{buildroot}%{_datadir} +grep -lr "%{_bindir}/python" | xargs chmod +x +popd + +%files +%license COPYING.txt +%doc ChangeLog.txt README.md Sigil_User_Guide_%{sigil_doc_version}.epub +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%dir %{_datadir}/icons/hicolor/ +%dir %{_datadir}/icons/hicolor/16x16 +%dir %{_datadir}/icons/hicolor/16x16/apps +%dir %{_datadir}/icons/hicolor/32x32 +%dir %{_datadir}/icons/hicolor/32x32/apps +%dir %{_datadir}/icons/hicolor/48x48 +%dir %{_datadir}/icons/hicolor/48x48/apps +%dir %{_datadir}/icons/hicolor/128x128 +%dir %{_datadir}/icons/hicolor/128x128/apps +%dir %{_datadir}/icons/hicolor/256x256 +%dir %{_datadir}/icons/hicolor/256x256/apps +%{_datadir}/icons/hicolor/*/apps/*.png +%{_datadir}/pixmaps/*.png +%dir %{_datadir}/%{name} +%dir %{_datadir}/%{name}/translations +%{_datadir}/%{name}/translations/* +%dir %{_datadir}/%{name}/*dictionaries +%{_datadir}/%{name}/*dictionaries/* +%{_datadir}/%{name}/examples +%{_datadir}/%{name}/python3lib +%{_datadir}/%{name}/polyfills +%{_datadir}/%{name}/plugin_launchers +%dir %{_datadir}/%{name}/iconthemes +%{_datadir}/%{name}/iconthemes/*.rcc +%dir %{_libdir}/%{name} +%{_libdir}/%{name}/* + +%changelog