<commit_before>Scrapbook X 1.12.0a27
----------------

- UPDATE: The status popup is now available via the toolbar button and the status bar icon, in all supported Firefox versions.
- UPDATE: Removed "SiteMap" and "Open Source URL" buttons from the status popup.
- UPDATE: Smarter "Auto edit Note Pages".
- UPDATE: The column order can now be customized in the fulltext search result, import/export manager, and calculate interfaces.
- UPDATE: Fulltext search result can now be sorted.
- UPDATE: Added "ID" column to the fulltext search result.
- UPDATE: Simplified the parameters of the fulltext search URI.
- UPDATE: Improved some language packs.
- FIXED: Now can normally use Ctrl+Q to highlight and Ctrl+A to add a sticky note.
- FIXED: The status popup buttons sometimes show wrong status.
- FIXED: Sometimes the first sorting in several dialogs are incorrect.
- FIXED: Prevent potential script errors in some situations of the fulltext search result.


Scrapbook X 1.12.0a26
----------------

- NEW: Added an advanced option "Automatically output tree as HTML when data is changed".
- UPDATE: Replace "Capture Text Files as HTML" with "Capture as HTML", which attempts to capture the current browsed content as HTML if possible, eg. images or XML files transformed to HTML via XSLT.
- UPDATE: "List View" in the manager window now lists all non-folder items. No more support old style List View. 
- UPDATE: Fulltext search now works for bookmarks and non-plain-text files.
- UPDATE: "Calculate" now detects missing and/or obsolete data folders.
- UPDATE: Latest editor settings are no more recorded via preferences.
- UPDATE: Improve mobile viewport for the default note page template. (Delete notex_template.html in the ScrapBook directory to renew)
- UPDATE: Improve the UI of the ScrapBook sidebar.
- UPDATE: Improved the UI of Output Tree as HTML. (remove tree/output.css from the ScrapBook directory for a complete update)
- FIXED: A multiple capture process freezes if a link is different with the previous one only in the hash.
- FIXED: Capture error if there is a frame with about:blank or an undownloadable file as the src.
- FIXED: Several problems regarding the "New Folder" button in the pick-folder dialog.
- FIXED: Export manager could get an error for items without folder definition in the export directory.
- FIXED: Repaired some missing entities in the language pack.
- FIXED: Use a different library for date insertion of the HTML editor to prevent possible conflicts.


Scrapbook X 1.12.0a25
----------------

- UPDATE: Display folder path separator in the import/export manager.
- FIXED: A file captured by dropping into ScrapBook is always named "untitled.dat".


Scrapbook X 1.12.0a24
----------------

- FIXED: Added some locale entries back and fixed some errorneous internal functions for compatibility with addons.
- FIXED: Frames with malformed URI causes the capture freeze.
- UPDATE: Added back the changelog file RELEASE.txt in the pack.


Scrapbook X 1.12.0a23
----------------

- NEW: Middle click on the eraser button to remove highlights from the selection.
- UPDATE: Download link now supports more file formats by default, such as .aac .ogg .mp4 .flv .tar .7z etc.
- FIXED: "Remove All XXX Tags" do not complete remove all specified tags.
- FIXED: Support capture of &lt;applet> linked files.
- FIXED: Adjust some entries in the language packs.


Scrapbook X 1.12.0a22
----------------

- UPDATE: Display an error message if the RegExp is invalid for a filter search.
- FIXED: README.txt is not added to the pack in previous versions.


Scrapbook X 1.12.0a21
----------------

- UPDATE: New data items now place at more natural position. Also adjusted the UI behavior.
- UPDATE: A sticky note anchored on the page is now placed at a more appropriate position on creating.
- FIXED: Several path error problems if the icon set of a data item is in a sub-directory.
- FIXED: "you should close the window" message do not show the correct window title.
- FIXED: The column separator between Folder and File fields in the fulltext search result cannot be adjusted.
- FIXED: No more inserts an extra linefeed on creating a sticky note, cause a permant source change even if it is removed.
- FIXED: Sometimes a sticky note anchored on the page be misplaced after saving and re-loading.


Scrapbook X 1.12.0a20
----------------

- FIXED: Sometimes an access denied error happens and causes the original file deleted on saving a page or a file.
- FIXED: Now reports the exact file having an error to remove during deleting a data item.


Scrapbook X 1.12.0a19
----------------

- UPDATE: Note page template can now use &lt;%DATA_DIR%> to insert the relative path of the main data directory respectively on creating.
- UPDATE: The container tag fields of insert source of HTML editor can now be selected and copied.
- UPDATE: Slightly improved the output of Output Tree.
- FIXED: &lt;%SCRAPBOOK_DIR%> of note page template inserts a wrong path on creation of a sub-page.
- FIXED: Insert source of HTML editor causes an HTML tag to miss if the selection is exactly the full contents of it.
- FIXED: Insert source of HTML editor sometimes extends to an inappropriate HTML tag (such as TR), causing an abnormal result.


Scrapbook X 1.12.0a18
----------------

- UPDATE: Remove README and RELEASE files from the source (moved to the wiki).
- UPDATE: Insert source of HTML editor now uses monospace font.
- FIXED: Insert source of HTML editor messed up the selection range when it's cancled.
- FIXED: Backup rdf files are not auto cleaned normally.


Scrapbook X 1.12.0a17
----------------

- UPDATE: Insert source of HTML editor now shows editable source context fragments in blue color.
- FIXED: Insert source of HTML editor gets wrong fragments if the selection extends to exactly the end of an HTML element.


Scrapbook X 1.12.0a16
----------------

- UPDATE: Improved combine view of folder. Each item height is auto-adjusted by the data item content.
- UPDATE: Adjusted the behavior of insert source of HTML editor. Now edits only the selected range but displays important context fragments for reference and modification.
- UPDATE: Ctrl+Alt+7 of HTML editor now sets to div block.
- UPDATE: Alt+I of HTML editor can now backup the current page into a history sub-page, which are not editable and are not included in fulltext search.
- UPDATE: Moved the preference "Export folders" to the export/import manager.
- UPDATE: No more auto fix data on export, instead, added an option to determine whether to convert data into latest version format on import.
- UPDATE: Output HTML tree now shows the title of separators.
- UPDATE: Output HTML tree now opens bookmarks in a new window.
- UPDATE: Output HTML tree now adds the source URL of data items.


Scrapbook X 1.12.0a15
----------------

- FIXED: Relative URLs with patterns like "//some.url" cannot be correctly resolved.
- FIXED: An error message is generated when creating a sticky note.


Scrapbook X 1.12.0a14
----------------

- FIXED: Deep capture and page combine doesn't work normally if the page contains a meta refresh containing some frequently used characters.
- FIXED: Fulltext search result items which are in a sub-directory or with special chars cannot be opened correctly.


Scrapbook X 1.12.0a13
----------------

- UPDATE: URLs that are only different in hash are not captured repeatedly.
- UPDATE: Preserves the original filename case on capturing a page.
- UPDATE: Preserves more special characters in the original filename on capturing a page.
- UPDATE: Pages without title definition show their filename instead of blank in the sitemap.
- UPDATE: Invalid filename characters are now automatically replaced instead of alerting an error on insertion of a sub-page.
- UPDATE: Item titles are no more truncated in the combination page.
- FIXED: Files that title has special characters cause abnormal output of the combination page.


Scrapbook X 1.12.0a12
----------------

- NEW: Add a new option to the preference that allows exporting data items, which enables us to preserve and reconstruct the original data precisely (Note: must re-import with identical order, or the result could be messed up).
- NEW: Automatically detect file status and renew the create and modify time properties of the data item.
- NEW: Note page template can now use <%NOTE_TITLE%> and <%SCRAPBOOK_DIR%> to insert the title and the relative path of ScrapBook directory respectively on creating (remove the notex_template.html file under ScrapBook folder to renew it).
- NEW: Add data-sb-obj="title" and data-sb-obj="title-obj" attributes. Value of the latter one (or page title if not found) is automatically filled into the former one on saving of a note page.
- UPDATE: Increase the font size of the textarea of Insert Source.
- FIXED: A data item shows an unexpected icon after importing if it's icon property hadn't been set a value.
- FIXED: A link is created after inserting sub-page even though there has been an error during file creation.


Scrapbook X 1.12.0a11
----------------

- NEW: Added create and modify time properties for data items. (These properties will be added on export if not set. Export and then re-import old data to create these records)
- NEW: Manage window now lists more data properties.
- NEW: The data icon in the edit or info toolbar can now be clicked, and links to the directory of the current page, as a shortcut to view related data files.
- UPDATE: Insert File now auto fills the current selected text as the name of a sub-page.
- UPDATE: Insert Link or Insert File now auto records the last used format.
- FIXED: Cannot drag to move data items when selecting multiple folders and items.
- FIXED: Invalid file names for a sub-page now are rejected and alerted.
- FIXED: Several file names of a sub page will cause the generated link be broken.


Scrapbook X 1.12.0a10
----------------

- UPDATE: Fulltext search not tells the reason of error and abort.
- FIXED: Fulltext search containing some special chars causes error.
- FIXED: Multiple capture with local files gets abort.


Scrapbook X 1.12.0a9
----------------

- NEW: "Insert file" in HTML editor can create a sub-page.
- NEW: HTML editor to insert horizontal line with Alt+H.
- NEW: HTML editor to insert checkbox (checked) with Ctrl(+Alt)+Shift+C.
- UPDATE: Replaced Alt+Z in the HTML editor with Ctrl+Alt+0 - Ctrl+Alt+9, wrapping the HTML with different wrapper.
- UPDATE: Automatically insert {THIS} as placeholder if nothing selected when invoking an HTML wrapper.
- UPDATE: The HTTP status in a capture window now shows more precise information.
- UPDATE: The preference window can now be resized.
- FIXED: Some error HTTP status were regarded as normal.
- FIXED: An image from "Capture Link" is not saved with type "file".


Scrapbook X 1.12.0a8
----------------

- FIXED: Capture selection does not work if frames are included.


Scrapbook X 1.12.0a7
----------------

- UPDATE: Improve the style of "Output Tree as HTML" (remove tree/output.css and re-output to renew).
- UPDATE: Add toggle all folder function to "Output Tree as HTML".
- UPDATE: Frame style of "Output Tree as HTML" now updates title on loading or switching page.
- UPDATE: Improve the style of combine page.
- FIXED: Some browsers reload the whole frameset on switching page when using frame style with "Output Tree as HTML".
- FIXED: The combine page is empty when index.html uses a meta refresh to target another page.
- FIXED: The process of deep capture freezes when a meta refresh targets to a local file with non-ASCII file name.
- FIXED: The tab label doesn't show the default icon when a ScrapBook page does not specify an icon.
- FIXED: Title and icon of a ScrapBook page often do not apply to the tab label.


Scrapbook X 1.12.0a6
----------------

- FIXED: Fulltext search does not work.


Scrapbook X 1.12.0a5
----------------

- UPDATE: Redesign the lock function. Now pages, files, and note pages can be set locked, in which state they cannot be edited or saved.
- UPDATE: Adjust the style and title of ScrapBook prompts.
- UPDATE: Page items can use meta refresh in index.html to point the main html file, just like file items.
- FIXED: HTML editor and keyboard shortcuts remain active after the editor toolbar is closed.
- FIXED: Key 1-8 do not work when the user is inputting on a forms or a textarea.
- FIXED: The editor toolbar doesn't update when the item property is changed.
- FIXED: The save command of HTML editor now captures the page on non-ScrapBook pages.
- FIXED: The insert link command of HTML Editor no more allows inserting inner link on non-ScrapBook pages.
- FIXED: Files with non-ASCII file name cannot create fulltext index.
- FIXED: The fulltext index are not purged for files with non-ASCII file name that are no longer available.
- FIXED: The fulltext index do not work normally when a meta refresh in index.html points to a sub-directory.


Scrapbook X 1.12.0a4
----------------

- FIXED: Pages in a subdirectory attach inner link with wrong path.
- FIXED: Disallow non-ScrapBook pages to insert inner links or files.
- FIXED: Some non-ScrapBook pages are regarded as ScrapBook pages.
- FIXED: Some non-main page URI are reguarded as the main page.


Scrapbook X 1.12.0a3
----------------

- FIXED: Initialization error of edit toolbar on "Edit Before Capture".


Scrapbook X 1.12.0a2
----------------

- UPDATE: Add Shift+Enter and Shift+Space shortcuts for DOMEraser, to isolate the selected element.
- UPDATE: Allow respecifying the charset of tree items. (NOTE: the charset of the data files are not changed by this. This is for fulltext index to determine the data encoding, and you should recreate the cache after changing this)
- FIXED: Several non-editable URIs are regarded as editable.
- FIXED: "Add-on Functions" menu doesn't work.
- FIXED: Improve compatibility for ScrapBook addons.


Scrapbook X 1.12.0a
----------------

- NEW: Capture option "Reorganize Styles".
- NEW: Edit tool "Attach Inner Link".
- NEW: Edit tool "Add HTML Annotation".
- NEW: Hotkey commands for DOMEraser.
- NEW: Edit tool HTMLEditor.
- NEW: Create Note Page.
- NEW: Copy item (adjusts ID by seconds to prevent duplicate).
- UPDATE: Images not capture as files.
- UPDATE: Remove highlighter buttons. Increase highlighters to 8.
- UPDATE: Notes now outputs HTML5 syntax.
- FIXED: A deep captured page cannot capture again normally.
- FIXED: Sitemap sometimes become blank.
- FIXED: Links of Index and Sitemap are broken for html pages in a subdirectory.
- FIXED: Pages in a subdirectory cannot save normally.
- FIXED: Pages in a subdirectory cannot attach file normally.
- FIXED: Several wrong behaviors of the edit toolbar.


Scrapbook X 1.11.14
----------------

- UPDATE: Adjust linefeeds between <html> and <head>, and after </html>.
- FIXED: Drag and drop in the export manager doesn't work.


Scrapbook X 1.11.13
----------------

- UPDATE: Replace save confirm before exit with exit confirm, and it works for all unsaved pages.
- FIXED: Minor internal code fix.


Scrapbook X 1.11.12
----------------

- FIXED: Several preference change do not take effect immediately.
- FIXED: Minor internal code fix.


Scrapbook X 1.11.11
----------------

- FIXED: Save page no more records some temporary styles permanently.
- FIXED: Pages moved to another window causes edit history undoable.
- FIXED: Minor inproper undo history recording behaviors.


Scrapbook X 1.11.10
----------------

- UPDATE: Data property now reports total folders count.
- UPDATE: Added a mouseover title to Attach File link.
 -UPDATE: Multiple capture separator changed from ";" to "  " (2 spaces).
- FIXED: Combine pages are not indexed by fulltext search.
- FIXED: Several bad UI text and localization.


Scrapbook X 1.11.9
----------------

- FIXED: Cannot rebuild fulltext cache.


Scrapbook X 1.11.8
----------------

- NEW: Output Tree with frame now provides an URL hash for explicity targeting the current viewed page.
- UPDATE: Output Tree now outputs the latest version of HTML format.
- UPDATE: Captured page now uses latest version of meta tag for charset if none has found.
- FIXED: Entities in the title gets decoded in the Output Tree.


Scrapbook X 1.11.7
----------------

- UPDATE: Optimized the internal code and should improved the performance.
- FIXED: Data tree sometimes not refreshed correctly.
- FIXED: Preference settings sometimes not work correctly.
- FIXED: Some translation.


Scrapbook X 1.11.6
----------------

- FIXED: Sitemap sometimes become empty after re-capture.
- FIXED: The title column in multiple capture and deep capture now updates as it ought to.


Scrapbook X 1.11.5
----------------

- FIXED: Changing data property sometimes change back after restarting Firefox.
- FIXED: Wrong CSS output for background images for Firefox < 3.6.
- FIXED: Remove extra linefeeds in the HTML output for Firefox < 3.6.


Scrapbook X 1.11.4
----------------

- UPDATE: Localized system messages. Fixed several translations.
- UPDATE: If a linked page A is redirected to B, the name is now B (instead of A) in deep capture.
- UPDATE: The combiner now generates DOM and CSS more precisely.
- UPDATE: Internal code optimization.
- FIXED: Combine pages sometimes become normal page after restarting Firefox.
- FIXED: Highlighter may mark wrong range.
- FIXED: Wrong link rebuilding for meta refresh.
- FIXED: Pages with "-->" in title gets error output after combining.


Scrapbook X 1.11.3
----------------

- UPDATE: extends compatibility down to Firefox 3.0.


Scrapbook X 1.11.2
----------------

- UPDATE: extends compatibility down to Firefox 4.0.
- FIXED: hotkey 5 and 6 doesn't work in edit mode.
- FIXED: stickies are not saved before capture in "Edit Before Capture".
- FIXED: some zh-CN localization.


Scrapbook X 1.11.1
----------------

- FIXED: media attribute of stylesheet links are ignored on capture.


Scrapbook X 1.11.0
----------------

- NEW: add "Media" option, media is only saved with it checked.
- NEW: capture page with the original encoding.
- NEW: capture text-like files (css, js, xml, ...) as html.
- NEW: fulltext search is now available for text-like files (with known encoding).
- UPDATE: improve the UI for "Capture As".
- UPDATE: records and views charset for files.
- UPDATE: fulltext search is now more precise for frame pages.
- FIXED: charset for deep capture doesn't work.


Scrapbook X 1.10.7
----------------

- FIXED: web pages with non-ASCII name cause the link rebuilding process to freeze.


Scrapbook X 1.10.6
----------------

- UPDATE: Fulltext search now excludes separators.
- UPDATE: Confirm of deleting data from the export directory now defaults to select "No".
- UPDATE: Deep capture page names now are page_002, page_002_1, ... instead of page_002, page_1_002 (revert 1.6.1)
- FIXED: the negative matching words in fulltext search sometimes work wrong.


Scrapbook X 1.10.5
----------------

- FIXED: resource files using chrome:// link can be lost after capture.
- FIXED: urls targeting undownloadable file are messed up in the CSS.
- FIXED: styles are missing after page combination.
- FIXED: styles and links in the page body are totally ignored during page combination.
- FIXED: elements in a combine page is messed up after combining again.
- FIXED: absolute urls in the CSS are misprocessed during page combination.
- FIXED: "file" data are merely linked instead of copied after combination.
- FIXED: missing templateHelp.html of zh-TW locale.


Scrapbook X 1.10.4
----------------

- Fix an issue that highlighters cannot be set to empty style.


Scrapbook X 1.10.3
----------------

- The combination page now outputs with latest html doctype declaration. (Fixed some style rendering problems in the browser)
- Integrated hotkey customization.
- Internal code optimization.


Scrapbook X 1.10.2
----------------

- Fixed an issue that pages cannot be saved.


Scrapbook X 1.10.1
----------------

- Fixed an issue that "All Local HTMLs in a Directory" does not work correctly.
- Meta refresh now point to the source URL after captured.
- Internal code optimization.


Scrapbook X 1.10.0
----------------

- Rebased on ScrapBook Plus 1.9.23.40. Features since ScrapBook X 1.6.1 are preserved.
- Reintegrated several features since ScrapBook 1.3.3.7:
  - Removed "Add-on Functions" menu.
  - Removed 'Tools' > 'Home Page'
  - Removed 'Application for File Browsing' option.
- Fixed some localization.
- Fixed an issue that multiple selection with folders may pass through the delete confirm.
- Delete confirm prompt now defaults to "no" instead of "yes".


Scrapbook X 1.7.4
----------------

- Fixed the min compatible Firefox version.


Scrapbook X 1.7.3
----------------

- Fixed an issue that web pages with non-ASCII name cause the link rebuilding process to freeze.


Scrapbook X 1.7.2
----------------

- Further fix wrong locales.


Scrapbook X 1.7.1
----------------

- Fix wrong locales and remove error inserted files.


Scrapbook X 1.7.0
----------------

Basic:
- Move preference settings to "extensions.scrapbook" from "scrapbook" to fit Firefox standard policy.
- Updated some basic info of this addon.
- Integrated Arabic, Hungarian, Portuguese (Brazil), and Ukrainian localization.

Major Features:
- Redefined capture options:
  - "Images": if not checked, the resources linked by <img>, <embed>, <source>, etc, are linked to the original source instead of being removed.
  - "Styles": if not checked, global external (linked) styles and internal (style) styles are removed. Inline styles of elements are preserved from now on.
  - "JavaScript": if not checked, all javascript triggering attributes such as "onclick", "onkeydown", etc, in the page are removed.
- Minimized the source code reprocessing on capturing, saving, or combinding a page.
- Improved the support of HTML5 standard.
- No more record the current form status on capturing for privacy concerns.

Bug fixes:
- Fixed error processing of "background", "bgcolor", "text", etc, attributes for <body>, <table>, etc, elements on page capture.
- Fixed error CSS processing, particularly those with "content:" value and URL with data URI scheme.
- Fixed an issue that some CSS settings may become whole body wide after page combine.
- Linked files to be download no more be added to the list in deep capture mode.


Scrapbook X 1.6.3
----------------

- Fixed an issue capturing a local file gets a bad title.
- Fixed an issue that the dialog does not close at the end of a multiple-capture process.
- Fixed an issue that the "All Links in the Selection" URL detector in "Save Multiple URLs" doesn't work.
- Fixed issues about the combiner:
  - That the combiner may combine pages incorrectly and results in only one page.
  - That sticky annotations and pages with "position: absolute" style are messed up after combined.
  - That non-link style sheets cause the combiner to freeze.
  - That some files linked by a page get lost after combined.


Scrapbook X 1.6.2
----------------

- Adjusts handling of sticky annotations. They are now draggable only in the edit mode, have undo history saved only once at the pre-edit, and are automatically saved on page saving.
- Updatea a component interface for better compatibility.



ScrapBook X 1.6.1
----------------

Bug fixes:
- Fixed an issue that frame pages are messed up after capture and that some of them are not captured.
- Fixed an issue that deep capture process frequently freezes.
- Fixed an issue that re-capture prompts multiples dialogs.

Improve the editor:
- Delete and DOMEraser can now delete all ScrapBook additions, including highlights, inline annotation, sticky annotations, attached links, etc.
- Removing a highlight no longer leaves an empty span tag.
- No longer creates an empty span at the end of the previous paragraph or at the start of the next paragraph it no contents are in them.

Improve the undo function:
- Now all ScrapBook edit actions are undo-able and no longer asks for saving. (Note: linking to another page or moving a tab to another window still purges the action history)
- Undos are now infinite, instead of only once.
- Correctly separates the undo action across different tabs.

Improve file name support:
- Non-ASCII chars in the file name can now be preserved. Long file names are truncated to prevent potential issues.

Support subfolders:
- Allow subfolders in under each data entry (directory). Correctly calculates size of files in subfolders and no errors on deleting a data with subfolder in it. (ScrapBook doesn't create subfolders on capturing data, but you can add them manually, to embed web data from other sources)

Others:
- No longer opens the item clicked if Shift or Ctrl key is down for multiple selection.
- All highlights and annotations are added "data-sb-obj" attribute for better scripting or automation.

<commit_msg>Fix typos and missed contents in the old history.<commit_after>Scrapbook X 1.12.0a27
----------------

- UPDATE: The status popup is now available via the toolbar button and the status bar icon, in all supported Firefox versions.
- UPDATE: Removed "SiteMap" and "Open Source URL" buttons from the status popup.
- UPDATE: Smarter "Auto edit Note Pages".
- UPDATE: The default note page template now automatically writes the default title. (Delete notex_template.html in the ScrapBook directory to renew)
- UPDATE: The column order can now be customized in the fulltext search result, import/export manager, and calculate interfaces.
- UPDATE: Fulltext search result can now be sorted.
- UPDATE: Added "ID" column to the fulltext search result.
- UPDATE: Simplified the parameters of the fulltext search URI.
- UPDATE: Improved some language packs.
- FIXED: Now can normally use Alt+Q to highlight and Alt+A to add a sticky note.
- FIXED: The status popup buttons sometimes show wrong status.
- FIXED: Sometimes the first sorting in several dialogs are incorrect.
- FIXED: Prevent potential script errors in some situations of the fulltext search result.


Scrapbook X 1.12.0a26
----------------

- NEW: Added an advanced option "Automatically output tree as HTML when data is changed".
- UPDATE: Replace "Capture Text Files as HTML" with "Capture as HTML", which attempts to capture the current browsed content as HTML if possible, eg. images or XML files transformed to HTML via XSLT.
- UPDATE: "List View" in the manager window now lists all non-folder items. No more support old style List View. 
- UPDATE: Fulltext search now works for bookmarks and non-plain-text files.
- UPDATE: "Calculate" now detects missing and/or obsolete data folders.
- UPDATE: Latest editor settings are no more recorded via preferences.
- UPDATE: Improve mobile viewport for the default note page template. (Delete notex_template.html in the ScrapBook directory to renew)
- UPDATE: Improve the UI of the ScrapBook sidebar.
- UPDATE: Improved the UI of Output Tree as HTML. (remove tree/output.css from the ScrapBook directory for a complete update)
- FIXED: A multiple capture process freezes if a link is different with the previous one only in the hash.
- FIXED: Capture error if there is a frame with about:blank or an undownloadable file as the src.
- FIXED: Several problems regarding the "New Folder" button in the pick-folder dialog.
- FIXED: Export manager could get an error for items without folder definition in the export directory.
- FIXED: Repaired some missing entities in the language pack.
- FIXED: Use a different library for date insertion of the HTML editor to prevent possible conflicts.


Scrapbook X 1.12.0a25
----------------

- UPDATE: Display folder path separator in the import/export manager.
- FIXED: A file captured by dropping into ScrapBook is always named "untitled.dat".


Scrapbook X 1.12.0a24
----------------

- FIXED: Added some locale entries back and fixed some errorneous internal functions for compatibility with addons.
- FIXED: Frames with malformed URI causes the capture freeze.
- UPDATE: Added back the changelog file RELEASE.txt in the pack.


Scrapbook X 1.12.0a23
----------------

- NEW: Middle click on the eraser button to remove highlights from the selection.
- UPDATE: Download link now supports more file formats by default, such as .aac .ogg .mp4 .flv .tar .7z etc.
- FIXED: "Remove All XXX Tags" do not complete remove all specified tags.
- FIXED: Support capture of &lt;applet> linked files.
- FIXED: Adjust some entries in the language packs.


Scrapbook X 1.12.0a22
----------------

- UPDATE: Display an error message if the RegExp is invalid for a filter search.
- FIXED: README.txt is not added to the pack in previous versions.


Scrapbook X 1.12.0a21
----------------

- UPDATE: New data items now place at more natural position. Also adjusted the UI behavior.
- UPDATE: A sticky note anchored on the page is now placed at a more appropriate position on creating.
- FIXED: Several path error problems if the icon set of a data item is in a sub-directory.
- FIXED: "you should close the window" message do not show the correct window title.
- FIXED: The column separator between Folder and File fields in the fulltext search result cannot be adjusted.
- FIXED: No more inserts an extra linefeed on creating a sticky note, cause a permant source change even if it is removed.
- FIXED: Sometimes a sticky note anchored on the page be misplaced after saving and re-loading.


Scrapbook X 1.12.0a20
----------------

- FIXED: Sometimes an access denied error happens and causes the original file deleted on saving a page or a file.
- FIXED: Now reports the exact file having an error to remove during deleting a data item.


Scrapbook X 1.12.0a19
----------------

- UPDATE: Note page template can now use &lt;%DATA_DIR%> to insert the relative path of the main data directory respectively on creating.
- UPDATE: The container tag fields of insert source of HTML editor can now be selected and copied.
- UPDATE: Slightly improved the output of Output Tree.
- FIXED: &lt;%SCRAPBOOK_DIR%> of note page template inserts a wrong path on creation of a sub-page.
- FIXED: Insert source of HTML editor causes an HTML tag to miss if the selection is exactly the full contents of it.
- FIXED: Insert source of HTML editor sometimes extends to an inappropriate HTML tag (such as TR), causing an abnormal result.


Scrapbook X 1.12.0a18
----------------

- UPDATE: Remove README and RELEASE files from the source (moved to the wiki).
- UPDATE: Insert source of HTML editor now uses monospace font.
- FIXED: Insert source of HTML editor messed up the selection range when it's cancled.
- FIXED: Backup rdf files are not auto cleaned normally.


Scrapbook X 1.12.0a17
----------------

- UPDATE: Insert source of HTML editor now shows editable source context fragments in blue color.
- FIXED: Insert source of HTML editor gets wrong fragments if the selection extends to exactly the end of an HTML element.


Scrapbook X 1.12.0a16
----------------

- UPDATE: Improved combine view of folder. Each item height is auto-adjusted by the data item content.
- UPDATE: Adjusted the behavior of insert source of HTML editor. Now edits only the selected range but displays important context fragments for reference and modification.
- UPDATE: Ctrl+Alt+7 of HTML editor now sets to div block.
- UPDATE: Alt+I of HTML editor can now backup the current page into a history sub-page, which are not editable and are not included in fulltext search.
- UPDATE: Moved the preference "Export folders" to the export/import manager.
- UPDATE: No more auto fix data on export, instead, added an option to determine whether to convert data into latest version format on import.
- UPDATE: Output HTML tree now shows the title of separators.
- UPDATE: Output HTML tree now opens bookmarks in a new window.
- UPDATE: Output HTML tree now adds the source URL of data items.


Scrapbook X 1.12.0a15
----------------

- FIXED: Relative URLs with patterns like "//some.url" cannot be correctly resolved.
- FIXED: An error message is generated when creating a sticky note.


Scrapbook X 1.12.0a14
----------------

- FIXED: Deep capture and page combine doesn't work normally if the page contains a meta refresh containing some frequently used characters.
- FIXED: Fulltext search result items which are in a sub-directory or with special chars cannot be opened correctly.


Scrapbook X 1.12.0a13
----------------

- UPDATE: URLs that are only different in hash are not captured repeatedly.
- UPDATE: Preserves the original filename case on capturing a page.
- UPDATE: Preserves more special characters in the original filename on capturing a page.
- UPDATE: Pages without title definition show their filename instead of blank in the sitemap.
- UPDATE: Invalid filename characters are now automatically replaced instead of alerting an error on insertion of a sub-page.
- UPDATE: Item titles are no more truncated in the combination page.
- FIXED: Files that title has special characters cause abnormal output of the combination page.


Scrapbook X 1.12.0a12
----------------

- NEW: Add a new option to the preference that allows exporting data items, which enables us to preserve and reconstruct the original data precisely (Note: must re-import with identical order, or the result could be messed up).
- NEW: Automatically detect file status and renew the create and modify time properties of the data item.
- NEW: Note page template can now use <%NOTE_TITLE%> and <%SCRAPBOOK_DIR%> to insert the title and the relative path of ScrapBook directory respectively on creating (remove the notex_template.html file under ScrapBook folder to renew it).
- NEW: Add data-sb-obj="title" and data-sb-obj="title-obj" attributes. Value of the latter one (or page title if not found) is automatically filled into the former one on saving of a note page.
- UPDATE: Increase the font size of the textarea of Insert Source.
- FIXED: A data item shows an unexpected icon after importing if it's icon property hadn't been set a value.
- FIXED: A link is created after inserting sub-page even though there has been an error during file creation.


Scrapbook X 1.12.0a11
----------------

- NEW: Added create and modify time properties for data items. (These properties will be added on export if not set. Export and then re-import old data to create these records)
- NEW: Manage window now lists more data properties.
- NEW: The data icon in the edit or info toolbar can now be clicked, and links to the directory of the current page, as a shortcut to view related data files.
- UPDATE: Insert File now auto fills the current selected text as the name of a sub-page.
- UPDATE: Insert Link or Insert File now auto records the last used format.
- FIXED: Cannot drag to move data items when selecting multiple folders and items.
- FIXED: Invalid file names for a sub-page now are rejected and alerted.
- FIXED: Several file names of a sub page will cause the generated link be broken.


Scrapbook X 1.12.0a10
----------------

- UPDATE: Fulltext search not tells the reason of error and abort.
- FIXED: Fulltext search containing some special chars causes error.
- FIXED: Multiple capture with local files gets abort.


Scrapbook X 1.12.0a9
----------------

- NEW: "Insert file" in HTML editor can create a sub-page.
- NEW: HTML editor to insert horizontal line with Alt+H.
- NEW: HTML editor to insert checkbox (checked) with Ctrl(+Alt)+Shift+C.
- UPDATE: Replaced Alt+Z in the HTML editor with Ctrl+Alt+0 - Ctrl+Alt+9, wrapping the HTML with different wrapper.
- UPDATE: Automatically insert {THIS} as placeholder if nothing selected when invoking an HTML wrapper.
- UPDATE: The HTTP status in a capture window now shows more precise information.
- UPDATE: The preference window can now be resized.
- FIXED: Some error HTTP status were regarded as normal.
- FIXED: An image from "Capture Link" is not saved with type "file".


Scrapbook X 1.12.0a8
----------------

- FIXED: Capture selection does not work if frames are included.


Scrapbook X 1.12.0a7
----------------

- UPDATE: Improve the style of "Output Tree as HTML" (remove tree/output.css and re-output to renew).
- UPDATE: Add toggle all folder function to "Output Tree as HTML".
- UPDATE: Frame style of "Output Tree as HTML" now updates title on loading or switching page.
- UPDATE: Improve the style of combine page.
- FIXED: Some browsers reload the whole frameset on switching page when using frame style with "Output Tree as HTML".
- FIXED: The combine page is empty when index.html uses a meta refresh to target another page.
- FIXED: The process of deep capture freezes when a meta refresh targets to a local file with non-ASCII file name.
- FIXED: The tab label doesn't show the default icon when a ScrapBook page does not specify an icon.
- FIXED: Title and icon of a ScrapBook page often do not apply to the tab label.


Scrapbook X 1.12.0a6
----------------

- FIXED: Fulltext search does not work.


Scrapbook X 1.12.0a5
----------------

- UPDATE: Redesign the lock function. Now pages, files, and note pages can be set locked, in which state they cannot be edited or saved.
- UPDATE: Adjust the style and title of ScrapBook prompts.
- UPDATE: Page items can use meta refresh in index.html to point the main html file, just like file items.
- FIXED: HTML editor and keyboard shortcuts remain active after the editor toolbar is closed.
- FIXED: Key 1-8 do not work when the user is inputting on a forms or a textarea.
- FIXED: The editor toolbar doesn't update when the item property is changed.
- FIXED: The save command of HTML editor now captures the page on non-ScrapBook pages.
- FIXED: The insert link command of HTML Editor no more allows inserting inner link on non-ScrapBook pages.
- FIXED: Files with non-ASCII file name cannot create fulltext index.
- FIXED: The fulltext index are not purged for files with non-ASCII file name that are no longer available.
- FIXED: The fulltext index do not work normally when a meta refresh in index.html points to a sub-directory.


Scrapbook X 1.12.0a4
----------------

- FIXED: Pages in a subdirectory attach inner link with wrong path.
- FIXED: Disallow non-ScrapBook pages to insert inner links or files.
- FIXED: Some non-ScrapBook pages are regarded as ScrapBook pages.
- FIXED: Some non-main page URI are reguarded as the main page.


Scrapbook X 1.12.0a3
----------------

- FIXED: Initialization error of edit toolbar on "Edit Before Capture".


Scrapbook X 1.12.0a2
----------------

- UPDATE: Add Shift+Enter and Shift+Space shortcuts for DOMEraser, to isolate the selected element.
- UPDATE: Allow respecifying the charset of tree items. (NOTE: the charset of the data files are not changed by this. This is for fulltext index to determine the data encoding, and you should recreate the cache after changing this)
- FIXED: Several non-editable URIs are regarded as editable.
- FIXED: "Add-on Functions" menu doesn't work.
- FIXED: Improve compatibility for ScrapBook addons.


Scrapbook X 1.12.0a
----------------

- NEW: Capture option "Reorganize Styles".
- NEW: Edit tool "Attach Inner Link".
- NEW: Edit tool "Add HTML Annotation".
- NEW: Hotkey commands for DOMEraser.
- NEW: Edit tool HTMLEditor.
- NEW: Create Note Page.
- NEW: Copy item (adjusts ID by seconds to prevent duplicate).
- UPDATE: Images not capture as files.
- UPDATE: Remove highlighter buttons. Increase highlighters to 8.
- UPDATE: Notes now outputs HTML5 syntax.
- FIXED: A deep captured page cannot capture again normally.
- FIXED: Sitemap sometimes become blank.
- FIXED: Links of Index and Sitemap are broken for html pages in a subdirectory.
- FIXED: Pages in a subdirectory cannot save normally.
- FIXED: Pages in a subdirectory cannot attach file normally.
- FIXED: Several wrong behaviors of the edit toolbar.


Scrapbook X 1.11.14
----------------

- UPDATE: Adjust linefeeds between <html> and <head>, and after </html>.
- FIXED: Drag and drop in the export manager doesn't work.


Scrapbook X 1.11.13
----------------

- UPDATE: Replace save confirm before exit with exit confirm, and it works for all unsaved pages.
- FIXED: Minor internal code fix.


Scrapbook X 1.11.12
----------------

- FIXED: Several preference change do not take effect immediately.
- FIXED: Minor internal code fix.


Scrapbook X 1.11.11
----------------

- FIXED: Save page no more records some temporary styles permanently.
- FIXED: Pages moved to another window causes edit history undoable.
- FIXED: Minor inproper undo history recording behaviors.


Scrapbook X 1.11.10
----------------

- UPDATE: Data property now reports total folders count.
- UPDATE: Added a mouseover title to Attach File link.
 -UPDATE: Multiple capture separator changed from ";" to "  " (2 spaces).
- FIXED: Combine pages are not indexed by fulltext search.
- FIXED: Several bad UI text and localization.


Scrapbook X 1.11.9
----------------

- FIXED: Cannot rebuild fulltext cache.


Scrapbook X 1.11.8
----------------

- NEW: Output Tree with frame now provides an URL hash for explicity targeting the current viewed page.
- UPDATE: Output Tree now outputs the latest version of HTML format.
- UPDATE: Captured page now uses latest version of meta tag for charset if none has found.
- FIXED: Entities in the title gets decoded in the Output Tree.


Scrapbook X 1.11.7
----------------

- UPDATE: Optimized the internal code and should improved the performance.
- FIXED: Data tree sometimes not refreshed correctly.
- FIXED: Preference settings sometimes not work correctly.
- FIXED: Some translation.


Scrapbook X 1.11.6
----------------

- FIXED: Sitemap sometimes become empty after re-capture.
- FIXED: The title column in multiple capture and deep capture now updates as it ought to.


Scrapbook X 1.11.5
----------------

- FIXED: Changing data property sometimes change back after restarting Firefox.
- FIXED: Wrong CSS output for background images for Firefox < 3.6.
- FIXED: Remove extra linefeeds in the HTML output for Firefox < 3.6.


Scrapbook X 1.11.4
----------------

- UPDATE: Localized system messages. Fixed several translations.
- UPDATE: If a linked page A is redirected to B, the name is now B (instead of A) in deep capture.
- UPDATE: The combiner now generates DOM and CSS more precisely.
- UPDATE: Internal code optimization.
- FIXED: Combine pages sometimes become normal page after restarting Firefox.
- FIXED: Highlighter may mark wrong range.
- FIXED: Wrong link rebuilding for meta refresh.
- FIXED: Pages with "-->" in title gets error output after combining.


Scrapbook X 1.11.3
----------------

- UPDATE: extends compatibility down to Firefox 3.0.


Scrapbook X 1.11.2
----------------

- UPDATE: extends compatibility down to Firefox 4.0.
- FIXED: hotkey 5 and 6 doesn't work in edit mode.
- FIXED: stickies are not saved before capture in "Edit Before Capture".
- FIXED: some zh-CN localization.


Scrapbook X 1.11.1
----------------

- FIXED: media attribute of stylesheet links are ignored on capture.


Scrapbook X 1.11.0
----------------

- NEW: add "Media" option, media is only saved with it checked.
- NEW: capture page with the original encoding.
- NEW: capture text-like files (css, js, xml, ...) as html.
- NEW: fulltext search is now available for text-like files (with known encoding).
- UPDATE: improve the UI for "Capture As".
- UPDATE: records and views charset for files.
- UPDATE: fulltext search is now more precise for frame pages.
- FIXED: charset for deep capture doesn't work.


Scrapbook X 1.10.7
----------------

- FIXED: web pages with non-ASCII name cause the link rebuilding process to freeze.


Scrapbook X 1.10.6
----------------

- UPDATE: Fulltext search now excludes separators.
- UPDATE: Confirm of deleting data from the export directory now defaults to select "No".
- UPDATE: Deep capture page names now are page_002, page_002_1, ... instead of page_002, page_1_002 (revert 1.6.1)
- FIXED: the negative matching words in fulltext search sometimes work wrong.


Scrapbook X 1.10.5
----------------

- FIXED: resource files using chrome:// link can be lost after capture.
- FIXED: urls targeting undownloadable file are messed up in the CSS.
- FIXED: styles are missing after page combination.
- FIXED: styles and links in the page body are totally ignored during page combination.
- FIXED: elements in a combine page is messed up after combining again.
- FIXED: absolute urls in the CSS are misprocessed during page combination.
- FIXED: "file" data are merely linked instead of copied after combination.
- FIXED: missing templateHelp.html of zh-TW locale.


Scrapbook X 1.10.4
----------------

- Fix an issue that highlighters cannot be set to empty style.


Scrapbook X 1.10.3
----------------

- The combination page now outputs with latest html doctype declaration. (Fixed some style rendering problems in the browser)
- Integrated hotkey customization.
- Internal code optimization.


Scrapbook X 1.10.2
----------------

- Fixed an issue that pages cannot be saved.


Scrapbook X 1.10.1
----------------

- Fixed an issue that "All Local HTMLs in a Directory" does not work correctly.
- Meta refresh now point to the source URL after captured.
- Internal code optimization.


Scrapbook X 1.10.0
----------------

- Rebased on ScrapBook Plus 1.9.23.40. Features since ScrapBook X 1.6.1 are preserved.
- Reintegrated several features since ScrapBook 1.3.3.7:
  - Removed "Add-on Functions" menu.
  - Removed 'Tools' > 'Home Page'
  - Removed 'Application for File Browsing' option.
- Fixed some localization.
- Fixed an issue that multiple selection with folders may pass through the delete confirm.
- Delete confirm prompt now defaults to "no" instead of "yes".


Scrapbook X 1.7.4
----------------

- Fixed the min compatible Firefox version.


Scrapbook X 1.7.3
----------------

- Fixed an issue that web pages with non-ASCII name cause the link rebuilding process to freeze.


Scrapbook X 1.7.2
----------------

- Further fix wrong locales.


Scrapbook X 1.7.1
----------------

- Fix wrong locales and remove error inserted files.


Scrapbook X 1.7.0
----------------

Basic:
- Move preference settings to "extensions.scrapbook" from "scrapbook" to fit Firefox standard policy.
- Updated some basic info of this addon.
- Integrated Arabic, Hungarian, Portuguese (Brazil), and Ukrainian localization.

Major Features:
- Redefined capture options:
  - "Images": if not checked, the resources linked by <img>, <embed>, <source>, etc, are linked to the original source instead of being removed.
  - "Styles": if not checked, global external (linked) styles and internal (style) styles are removed. Inline styles of elements are preserved from now on.
  - "JavaScript": if not checked, all javascript triggering attributes such as "onclick", "onkeydown", etc, in the page are removed.
- Minimized the source code reprocessing on capturing, saving, or combinding a page.
- Improved the support of HTML5 standard.
- No more record the current form status on capturing for privacy concerns.

Bug fixes:
- Fixed error processing of "background", "bgcolor", "text", etc, attributes for <body>, <table>, etc, elements on page capture.
- Fixed error CSS processing, particularly those with "content:" value and URL with data URI scheme.
- Fixed an issue that some CSS settings may become whole body wide after page combine.
- Linked files to be download no more be added to the list in deep capture mode.


Scrapbook X 1.6.3
----------------

- Fixed an issue capturing a local file gets a bad title.
- Fixed an issue that the dialog does not close at the end of a multiple-capture process.
- Fixed an issue that the "All Links in the Selection" URL detector in "Save Multiple URLs" doesn't work.
- Fixed issues about the combiner:
  - That the combiner may combine pages incorrectly and results in only one page.
  - That sticky annotations and pages with "position: absolute" style are messed up after combined.
  - That non-link style sheets cause the combiner to freeze.
  - That some files linked by a page get lost after combined.


Scrapbook X 1.6.2
----------------

- Adjusts handling of sticky annotations. They are now draggable only in the edit mode, have undo history saved only once at the pre-edit, and are automatically saved on page saving.
- Updatea a component interface for better compatibility.



ScrapBook X 1.6.1
----------------

Bug fixes:
- Fixed an issue that frame pages are messed up after capture and that some of them are not captured.
- Fixed an issue that deep capture process frequently freezes.
- Fixed an issue that re-capture prompts multiples dialogs.

Improve the editor:
- Delete and DOMEraser can now delete all ScrapBook additions, including highlights, inline annotation, sticky annotations, attached links, etc.
- Removing a highlight no longer leaves an empty span tag.
- No longer creates an empty span at the end of the previous paragraph or at the start of the next paragraph it no contents are in them.

Improve the undo function:
- Now all ScrapBook edit actions are undo-able and no longer asks for saving. (Note: linking to another page or moving a tab to another window still purges the action history)
- Undos are now infinite, instead of only once.
- Correctly separates the undo action across different tabs.

Improve file name support:
- Non-ASCII chars in the file name can now be preserved. Long file names are truncated to prevent potential issues.

Support subfolders:
- Allow subfolders in under each data entry (directory). Correctly calculates size of files in subfolders and no errors on deleting a data with subfolder in it. (ScrapBook doesn't create subfolders on capturing data, but you can add them manually, to embed web data from other sources)

Others:
- No longer opens the item clicked if Shift or Ctrl key is down for multiple selection.
- All highlights and annotations are added "data-sb-obj" attribute for better scripting or automation.


{'fraction_non_alphanumeric': 0.09064503205128205, 'fraction_numerical': 0.012980769230769231, 'mean_word_length': 3.219151453684922, 'pattern_counts': {'":': 6, '<': 27, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '443936', 'n_tokens_mistral': 14013, 'n_tokens_neox': 12733, 'n_words': 7340}