requested by Thomas Klausner.
Some platforms will automatically convert DOS endings to unix endings during the extraction of a zip file. Those that do this can't use patches with DOS endings, so revert the last commit. Instead, copy textproc/FlightCrew package's method: For each file that will be patched, strip any DOS endings found after extraction. If they've already been stripped out, that's fine. It guarantees that every platform will strip the target files at least once, allowing all of them to use Unix line-ending patches.
Sigil is delivered in a zip file, and the files have DOS line endings. The patches had unix line endings, and at least on some platforms including NetBSD 5, this resulted in rejected hunks. All three patches repacked, now contain DOS line endings and work fine.
* Tested with boost 1.48.0nb2. Changelog: Sigil 0.5.3 2012.25.02 - 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.
Tested on NetBSD/i386 5.99.64. Changelog: Sigil 0.5.2 2012.02.09 - Fix issue 1253: Replace All in All HTML files adds extra blank lines in style section. - Fix issue 1251: Merge does not work if you previously used split chapter. - Fix issue 1249: Replace All in All HTML Files leaves cursor at the bottom. - Fix issue 1247: Cannot rename file extension in book browser and rename selected should default to first extension name. - Fix issue 1238: Deleting a file does not go to the next closest entry in book browser. - Fix issue 1236: Replace All in Current file does not center cursor. - Fix issue 1234: Switching from Code View to Split View and SplitCV to CV does not vertically center the cursor. - Fix issue 1237: Rename does not keep current selection in book browser. - Fix issue 1242: Metadata::FreeFormMetadata missing assignment line 360. - Fix issue 1235: Deleting one file does not give a warning dialog. - Fix issue 1129: Crash when importing existing image. Sigil 0.5.1 2012.02.05 - Issue 1225: * Add searching selected files. * Add search wrapping. * Replace in BV automatically goes to CV. * Fixed bug where in CV if you do a replace of a word and then replace all when there are the same words on the page, the page view wouldn't be refreshed. * Various fixes. - Add English translation file used for plural strings. - Implement issue 986: Automatically renumber playorder in TOC NCX. - Implement issue 1224: F&R modifications to update layout and add Regex Multiline. - Fix issue 1214: Dictionary files do not include hypen files or GB files. - Fix issue 1213: Find and Replace does not save file when F&R is already open and searching all HTML files. - Remove the ability to use F&R to replace text in BV as it is unfixable in its current state. - Fix issue 1215: Book View line/column incorrect in status bar. - Fix issue 1216: Re-opening a document already in a tab resets the cursor position back to the top. - Fix issue 1218: F&R cleanup. - Fix issue 1212: Remove opf namespace rewriting when opening a file because it ended up being more trouble than it was wroth. - Fix issue 1188: New Sigil Regex engine crashes when pressing "replace all", works fine on pushing "replace" over and over and over again. - Implement issue 269: Select more than one item in the Book Browser Column. - Implement issues 792: Add Shortcuts for next/previous HTML file with regard to reading order, and sync selection in book browser to open tab. - Implement issue 1135: New blank section must be automatically selected on book browser. - Implement issue 1148: Allow user to change the order of split view so book view or code view is first. - Implement issue 1168: Add ability to sort HTML files alphanumerically. - Implement issue 1174: Add new blank html section should insert section after selected file. - Implement issue 1181: Merge Previous when previous file is open in current tab requires refresh to see merged data.
* Add dependency to pcre and hunspell. * Use external libraries (CMakeLists.txt etc. from upstream HEAD) Changelog: Sigil 0.5 2012.01.21 - Implement issue 533 and 1079: allow user to select which level(s) of <h> to include. - Fix issue 788: Error saving when the folder the file was in was renamed outside Sigil. - Fix issue 998: Don't select file extension on rename in book browser. - Fix issue 1111: Failure to rename to same name with case change. - Implement issue 205: Drag and drop for images to book and code views. - Fix issue 1019: issues with opf-namespace declaration. - Inline spell check with right click replace in Code View. - Fix issue 1064: Issues with editing epubs with differing html extensions. Take mimetype into account when opening the file to help determine how to deal with the file. - Fix issue 1055, 1038, 1006: Focus switching causes unwanted cursor jumping in split view. Don't auto sync cursor position between views. - Implement issue 375: Add image selection dialog for inserting existing images into book and code views. - Add menu items for setting heading, adding new items, show / hide toolbars. - Organize menu. - Fix issue 803: Print prints immediately, no dialog box. - Implement 245: Unify zoom levels (book, text, image) and store the levels. - i18n capability. Build and load translation files. - Add keyboard shortcut manager so user can change the keyboard shortcuts. Fixes 966. - Add preference dialog. Closes 206, 718. - Refactor Find & Replace into a widget that appears below the editor. Closes issues: 961, 579. - Windows Installer: Add Sigil as a handler for EPUB and HTML files so that jump lists will work and it will always show up on the 'Open With...' menu. - Fix issue 1033, 1034: Implement scroll to fragment for Code View and fix scrolling for book view. - Fix issue 1032: Remove '=' from the list of valid characters for ids. - Fix issue 1001: Valid IDs are now formed by replacing invalid characters with underscores. Colon removed from the list of valid characters. - Fix issue 1014: Sigil was erroneously assuming that fragment ids would be unique across the entire book, whereas they're only required to be unique within a particular xhtml document. New code implemented to cover those situations where this assumption is wrong. - Fix issue 1015: Fix issues with cursor positioning in Split View. - Fix issue 1022: Added support for Adobe's page-map.xml pagination extension. (Must use this exact filename). - Implement issue 183: Use a PCRE regular expression engine instead of QRegExp. Also fixes issue 498: regex '^' (start of line) broken. - Implement issue 168: Allow selection of multiple Meta Editor properties. - Allow for deleting multiple metadata items. - Implement issue 368: Pressing enter key on item in book browser should open item. - Fix issue 1005: Regression from change to ensure metdata element has dc namespace.
…s ABI bump.
version, and bump all depends. Per discussion on pkgsrc-changes.
Sigil v0.2.4 2010.08.12. - fixed a problem with updating image paths for images with the same filename but coming from different parent directories (issue #501) - added a new "Merge With Previous" context menu action for XHTML files in the Book Browser (issue #265) - changed Tidy to handle the common typing mistake of ending entities with a ':' instead of a ';' (issue #535) - fixed a bug where double-clicking a file in the Book Browser for a file that was already opened in a tab switched that tab back to Book View; the tab now retains whatever View it was in previously - newly opened tabs now default to the View of the current tab (issue 468) - re-engineered the locations where Sigil stores its work files; the system-provided temp folder is now used; this should alleviate some permissions issues on certain machines, especially Macs (issue #404) - Sigil now prevents the renaming of files in the Book Browser to filesystem invalid names (issue #493) - changed the keyboard shortcut that opens the Replace dialog from Cmd+H to Cmd+Shift+F on Macs only; Cmd+H is used by Mac OS X for window hiding (issue #477) - fixed an issue with Sigil using XHTML 1.0 for OPS doctypes, instead of XHTML 1.1 (issue #503) - several files can now be marked as having the Text semantic type (issue #522) - fixed an issue with Direction: All in book wide searching skipping last XHTML file (issue #520) - fixed an issue with the declared XML encoding not being picked up if it was wrapped in single quotes instead of the more standard double quotes - fixed an issue where the user could avoid the warning dialog for book-wide searching in Book View if he switched to this mode in Code View, and then switched back Sigil v0.2.3 2010.06.22. - fixed an issue with the new data from one view sometimes not being saved in the final epub when switching to the other view - worked around a Qt focus issue causing current tab data to sometimes not be saved; this was uncovered by fixing the hang-on-save issue, which was caused by the same underlying problem (issue #466) Sigil v0.2.2 2010.06.20. - simplified the resource locking mechanism; should eliminate the hang-on-save issue - fixed a problem with BookView chapter splitting sometimes not being registered on save, causing duplicate content (issue #450) Sigil v0.2.1 2010.06.18. - XHTML files that specify two different encodings are now fixed by removing the incorrect one - Sigil now checks the XML encoding attribute for an encoding before the HTML metatag and charset; should now be more compatible with Calibre created epub books - created/used 16px version of all icons; icons in menus are not blurry anymore (issue #121) - the Find&Replace dialog now uses the currently selected text (if any) as the default search term (issue #370) - fixed issues with unnecessary reloads of the code view (issue #412, issue #398) - fixed an issue with the HTML file filter in the open file dialog not correctly filtering files (issue #416) - fixed an issue with files without extensions not being saved in the final epub (issue #400) - fixed an issue with XPGT resources sometimes being saved blank (issue #433) - fixed a regression that made it impossible to add removed headings back into the TOC (issue #439) - fixed a problem with some file-wide replacements reverting - fixed a problem with the opened tabs not being updated until the user gave them keyboard focus when a file-wide replace was performed (issue 408) - fixed a problem with Book View not reflecting changes done in Code View when the Code View was used for editing, and then the tab closed - use of custom synchronization primitives should resolve most infrequent hang bugs - fixed a problem with the search not progressing in Book View find&replace when using recursive replacements - fixed an issue with inserting images that have apostrophes in the filename (issue #391) - TOC text now has leading and trailing whitespace trimmed, and inner whitespace condensed (issue #422) - an empty ALT attribute is now added to <img> elements that don't have them (issue #406) - added the build time to the About dialog, showing date and time in UTC
Sigil v0.2.0 2010.05.11. - added new entries to the help menu for the online manual and the FAQ Sigil v0.2.0 RC4 2010.05.08 - fixed a regression that broke FindNext opening new tabs when searching across HTML files (issue #384) - fixed an issue with autocompletion in Find dialog ignoring the case of search terms (issue #385) Sigil v0.2.0 RC3 2010.05.07 - fixed a regression that messed up the tab order of the controls in the Find dialog (issue #380) - fixed an issue with cross-file FindNext causing a hang when the search term is not in the book and "Direction: All" is used (issue #378) - the Text folder in the Book Browser is now expanded by default after loading Sigil v0.2.0 RC2 2010.05.05. - fixed an issue with ReplaceAll across files not using correct replacement lengths - fixed an issue with code in Code View not being pretty-printed - fixed an issue with the ReplaceAll across files not informing the opened tabs of the change Sigil v0.2.0 RC1 2010.05.03. - changes in the Book Browser now update the modified state of the main window (issue #331) - the Book Browser can now be opened/closed from the View menu (issue #335) - all the toolbars now have UI-facing names - by injecting a custom XML reader into QDom, the following issues were fixed: - Book View search sometimes skipping over instances (issue #253) - Book View ReplaceAll causing Sigil to hang on rare occasions (issue #293) - spaces disappearing from some HTML constructs (issue #352) - implemented component-wide search&replace for Code View searches (issue #372) - the Find&Replace dialog now remembers up to 20 previously used search and replace strings (issue #369) - fixed an issue with positive regex lookaheads in normal Replace (not ReplaceAll) (issue #261) - fixed a rare off-by-one error in Book View searching when the caret was at the start of the matched string; this made the search skip that instance of the match (issue #280) - fixed an issue with the Find Dialog not correctly scrolling to the found text in Book View (issue #195) - fixed an issue with Tidy not fixing free ampersands into "&", even when configured to do so (issue #365) - fixed an issue with the current tab unnecessarily reloading after book saves (issue #354) - fixed issues with filename basenames being read only until the first dot; was causing problems with OPF manifest ID generation (issue #351) - hitting the keyboard shortcut for the Find&Replace window while the window is open now switches focus to that window (issue #362) - fixed an issue with the applied headings not "sticking" and not showing up in the TOC editor (issue #300) - the special iPad- and Calibre-friendly cover meta tag information is now preserved after loading - added a new "Cover Image" entry for image resources in the "Add Semantics" Book Browser menu - if an image is not set as a cover image manually, Sigil now uses heuristics on save to determine if the epub has a cover image - if an epub has an image set as a cover image, Sigil will now write a special meta tag that identifies this image in the OPF; this tag is then used by the iPad (and Calibre) for the book cover, for instance - all OPF <guide> element information when loading epubs is now preserved - added a new "Add Semantics" menu for XHTML documents; it can be used to mark XHTMLs as "Dedication", "Colophon", "Glossary" etc. for the <guide> element of the OPF - the status bar now shows a message after chapter split operations - fixed an issue with filenames with characters that should not appear in valid XML IDs having those characters added anyway (issue #344) - fixed an issue with files with uppercase extensions not having a mimetype set in the OPF (issue #349) - fixed an issue with Sigil rewriting headings when the TOC was opened and no heading was edited (issue #327) - fixed an issue where adding an existing HTML file through the Book Browser would clear the current metadata in the book (issue #329) - added a check that prevents Sigil from loading the same resource multiple times in invalid epubs (issue #339) - fixed a bug that made the direct XHTML references in the NCX file less likely (issue #333) - fixed an issue with Sigil crashing when trying to save a loaded epub that had some badly formed metadata elements (issue #325) Sigil v0.2.0 ß3 2010.03.23. - added two new WYSIWYG actions that work for both Views: "Insert SGF Chapter Marker" which inserts the old SGF horizontal rule chapter breaking marker and "Split On SGF Chapter Markers" which splits the current chapter according to the placement of these markers (issue #262) - chapter splitting now works in Code View - fixed an issue with Sigil adding "xmlns='http://www.w3.org/1999/xhtml';" to every element when performing a chapter break operation (issue #313) - fixed a rare issue with false spaces being inserted into words during import (issue #139) - added a confirmation dialog for removing items in the Book Browser (issue #306) - fixed an issue with the line number area overlapping the text in the Code View - made Sigil remove the CSS cruft WebKit was adding to the "body" element - fixed an issue with spaces in filenames causing bad anchor element path updates - fixed an issue with spaces in filenames not being URL encoded in "href" and "src" attributes in the OPF and NCX files - fixed an issue with spaces in filenames causing invalid IDs (issue #301) - fixed a regression causing Sigil to crash when importing HTML files that reference resources that don't exist on disk - Tidy now converts all uppercase attributes to lowercase; mixed-case attributes are left as is - fixed an issue with Tidy choking on uppercase attribute names Sigil v0.2.0 ß2 2010.03.10. - fixed an issue with exported HTML/CSS/etc. files inside EPUBs having superfluous newlines - fixed an issue with the TOC editor adding empty "class" attributes to headings (issue #297) - added a new "Window" menu item with new "Next Tab", "Previous Tab" and "Close Tab" actions (issue #273) - fixed an issue with the font used in the line number area in the Code View being incorrect when the Code View is first opened; the problem affected mostly Mac machines (issue #290) - Sigil now handles corrupt epub files with an OPF referencing non-existent files (issue #289) - the Book Browser now doesn't scroll back to the top when an item is deleted or added (issue #263) - the Book Browser now allows a file's extension to change between HTM, HTML, XHTML and XML (issue #264) - OPF and NCX files don't rely anymore on UTF-8 XML default parsing, but specify their UTF-8 encoding directly in the declaration - fixed an issue with changes in the TOC editor not being reflected in the book (issue #277) - fixed an issue with the TOC editor not recognizing the "title" attribute on headings (issue #271) - fixed an issue with the user seeing the old, unclean source in the Code View (issue #286) - fixed an issue with the user being prompted to save when quitting even when no changes have been performed on the new/loaded file (issue #276) - fixed an issue with Book/Code View keyboard shortcuts firing in the wrong view (issue #266) - tentatively fixed an issue with Sigil locking up when chapter breaking (issue #267) - fixed an issue with Tidy adding a superfluous 'lang' attribute that is also not allowed in XHTML 1.1 - making sure that ID attributes used in the manifest section of the OPF are always valid - fixing export of epubs with XML files for OPS documents Sigil v0.2.0 ß1 2010.03.02. - after *many* months of work, the complete redesign of the Sigil main interface and backend is finished, resulting in waaaay too many changes, fixes and modifications under the hood that are too numerous to list here - fixed an issue with anchor elements getting unnecessary "name" attributes (issue #226)
Sigil v0.1.9 2010.02.08. - fixed a regression that caused Sigil to demand that all XHTML streams in an epub file be valid XML (issue #248) - the "container.xml" reading subsystem now handles XML files with namespaces (issue #235) - HTML encoding detection is now performed even on XHTML files in epub archives (per spec, they have to be UTF-8 or UTF-16, but Sigil will now handle those that aren't) - fixed an issue with content file filenames using "%20" for spaces not being loaded (issue #232) - the temp directory used on Windows is now <Profile>/Sigil instead of <Profile>/My Documents/Sigil (issue #222)
Sigil v0.1.8 2009.13.30. - fix for a regression causing all imported CSS code to be merged into one line - fix for an issue with ignored linefeed characters (caused by same regression) (issue #217) Sigil v0.1.7 2009.12.28. - minor aesthetic toolbar fixes for Mac - fixed an issue with " " in headings not being converted to a space in the TOC (issue #215) - minor aesthetic changes to the line number area in Code View - fixed an issue with "Insert Image" not working if the Book View doesn't have focus (issue #204) - the "Add metadata property" dialogs in the Meta Editor now remember their size, position and splitter bar position - Sigil now loads HTML metadata when importing if metadata conforms to Dublin Core; code contribution from Kevin Hendricks (issue #160) - fixed an issue with loading TXT files with unescaped character entity references (issue #202) - fixed an issue with headings not being centered after View switches (issue #200) - fixed an issue with files with uppercase extensions being loaded incorrectly - fixed an issue with loading TXT files with Mac-style (CR) line endings (issue #170) - fixed an issue with loading UTF-16 encoded files that used Windows style (CRLF) line endings - Sigil should now detect UTF-8 encoded HTML files even when they don't specify that they are UTF-8 encoded, and HTML files that use the XML "encoding" attribute (for any encoding) - the Views can now be scrolled by one line up/down by pressing CTRL+Up/Down (issue #72) - the About dialog now links to the online version of the GPLv3 - made viewport switching more robust; the rare crashes should now become much rarer Sigil v0.1.6 2009.12.06. - added a "Report An Issue" menu entry to the Help menu; opens a web browser and goes to the "ReportingIssues" wiki page on Sigil's website - fixed an issue with empty NavMap generation in the NCX if the file had no headings; the epub specification forbids empty NavMaps (issue #174) - fixed an issue with the document not being marked as modified in the GUI if the user only changed the document's metadata (issue #189) - fixed a rare bug with searching for a string that is at the very end of a document (issue #181) - new "Remove Formatting" WYSIWYG action (issue #56) - Sigil now preserves ALL HTML entity references (it used to convert most to Unicode equivalents); this change was necessary since soft hyphens were becoming "invisible" (issue #186) - implemented "blockquote" support through new WYSIWYG actions: "Indent Less" and "Indent More" (issue #41) - updating Qt fixed an issue with images wrapped in SVG tags not being shown (issue #91) - updated Qt from 4.5.2 to 4.6.0 - fixed an issue with regex matching in Code View when such regexes referenced line endings with "\n" (issue #182) - PageUp and PageDown keys now work in Book View (issue #130) - fixed a crash invoked on switching views and searching in Book View when the caret element's parent has HTML comment children (issue #179) - "Replace All" is now treated as a single undo/redo operation *in Code View* - tentatively fixed a problem with bad TOC generation if the input file had multiple headings with the same ID (across XHTML files) (issue #177) - fixed a regression that was causing crashes when switching views
Sigil v0.1.5 2009.11.25 - fixed a race condition with view syncing in Book View - fixed an issue with loading text files that don't end with a newline (some text would end up missing) - A NEW FIND & REPLACE DIALOG (issue #13) - no more hard line breaks in Code View (courtesy of recent performance optimisations) (issue #61) - TOC Editor now remembers its size across invocations and program launches - the uninstaller now removes Sigil's temporary working directories - removed the "Start Sigil" checkbox in the last page of the installer; starting Sigil like this was causing problems because Sigil had admin privileges (issue #163) - fixed an issue with chapter breaks not working after they are Left/Center/Right Aligned (issue #158) - multiple images can now be inserted with the "Insert Image" dialog by selecting multiple images - fixed an issue with loading images from documents with uppercase tags and attributes (issue #156) - tentatively fixed an issue with Sigil crashing on overwriting existing epubs (issue #146) - fixed an issue with Sigil crashing on epubs with "date" OPF elements but no value set for those elements (InDesign CS4 creates such invalid epubs) (issue #149) - fixed an issue with words being merged on TXT import (issue #148) - various performance improvements through code profiling and parallelization - Linux and Mac builds should now be slightly faster because of new compiler optimizations - fixed issue with Sigil incorrectly loading (and therefore subsequently saving) "date" OPF elements with "event" attributes (issue 144)