From eecd0cf4e684d99f94a8b67757e497a3931e7539 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Wed, 20 Sep 2017 08:13:06 -0400 Subject: [PATCH] Balthisar Tidy 3.7.0 - _Balthisar Tidy_ and _Balthisar Tidy for Work_: - Update to HTML Tidy 5.7.0. - New Tidy options such as `add-meta-charset`, `priority-attributes`, `show-meta-change`, `keep-tabs`. - You can now double-click into a Tidy Option with a text field, and the text field will activate. - You can triple click a text field that uses lists, and the list editor will pop up. This can be much nicer than managing long lists in a single string. - Tidy Option text fields that are lists now reflect the proper formatting for lists. - Adopted all of the new Tidy Option categories offered by the latest **HTML Tidy**. - We now issue advice to turn on `force-output` if a loaded document produced no content. - Removed the `markup` Tidy option, because **Balthisar Tidy** handles this automatically. - Updated the Help book to include updates to Tidy options. - Developer changes: - Internal changes to make future maintenance of **Balthisar Tidy** better. - I've removed all of the different, redundant targets, and now different versions are built via the xcconfig files. - Built versions of **Balthisar Tidy** are now a smaller. The Tidy Extensions and Tidy Service Helper now rely on **Balthisar Tidy**'s frameworks where possible rather than including their own, duplicate copies. --- Balthisar Common Headers/CommonHeaders.h | 2 +- Balthisar Tidy Extension/Info-Body.plist | 49 - Balthisar Tidy Extension/Info.plist | 8 +- .../010_docwin-chooseoptions.html.md.erb | 5 + .../040_tidyopts/010_tidyoptions.html.md.erb | 38 +- .../020_missingoptions.html.md.erb | 21 +- Balthisar Tidy Help Project/build_help.sh | 18 + Balthisar Tidy Help Project/config.rb | 18 +- Balthisar Tidy Service Helper/Info.plist | 24 +- Balthisar Tidy.xcodeproj/project.pbxproj | 3429 ++++------------- .../xcschemes/Balthisar Tidy (app).xcscheme | 95 + .../xcschemes/Balthisar Tidy (pro).xcscheme | 94 + .../xcschemes/Balthisar Tidy (web).xcscheme | 95 + .../Balthisar Tidy Help Project.xcscheme | 82 + .../Balthisar Tidy Service Helper.xcscheme | 93 + .../JSDTidyFramework Documentation.xcscheme | 82 + .../xcschemes/JSDTidyFramework.xcscheme | 82 + .../xcschemes/Tidy Extension.xcscheme | 110 + .../xcschemes/TidyBody Extension.xcscheme | 110 + .../xcschemes/tidy-balthisar.xcscheme | 82 + .../Classes/App Pieces/AppController.m | 2 +- .../Classes/App Pieces/OptionPaneController.m | 1 - .../TidyDocumentWindowController.m | 18 +- .../JSDListEditorController.h | 55 + .../JSDListEditorController.m | 152 + .../RSRTVArrayController.h | 55 + .../RSRTVArrayController.m | 226 ++ .../PreferencesWindow/PreferenceController.m | 3 + .../Classes/Support Pieces/JSDTableCellView.h | 21 +- .../Classes/Support Pieces/JSDTableCellView.m | 75 + .../Classes/Support Pieces/JSDTableView.m | 86 +- .../{ => Base.lproj}/DCOAboutWindow.xib | 0 .../{ => Base.lproj}/MASPreferencesWindow.xib | 0 .../{Balthisar Tidy-Info.plist => Info.plist} | 13 +- .../{Credits.rtf => Credits (web).rtf} | 0 .../Base.lproj/JSDListEditorController.xib | 158 + .../Resources/Base.lproj/Localizable.strings | 6 +- .../Resources/Base.lproj/OptionPane.xib | 16 +- .../Base.lproj/TDFTableViewController.xib | 14 +- .../UpdaterOptionsViewController.xib | 29 +- Config/Balthisar Tidy Help Project.xcconfig | 11 + .../JSDTidyFramework Documentation.xcconfig | 10 + Config/JSDTidyFramework.xcconfig | 29 + Config/balthisar-base.xcconfig | 81 + Config/balthisar-debug.xcconfig | 23 + Config/balthisar-release.xcconfig | 21 + Config/balthisar-tidy-id.xcconfig | 84 + Config/balthisar-tidy.xcconfig | 69 + Config/extension-tidy.xcconfig | 39 + Config/extension-tidybody.xcconfig | 39 + Config/libtidy-balthisar.dylib.xcconfig | 28 + Config/service-helper.xcconfig | 53 + HTMLTidy/vendor/tidy-html5/include/tidy.h | 176 +- .../vendor/tidy-html5/include/tidybuffio.h | 28 +- HTMLTidy/vendor/tidy-html5/include/tidyenum.h | 325 +- .../vendor/tidy-html5/include/tidyplatform.h | 796 ++-- HTMLTidy/vendor/tidy-html5/src/access.c | 172 +- HTMLTidy/vendor/tidy-html5/src/access.h | 8 - HTMLTidy/vendor/tidy-html5/src/alloc.c | 24 +- HTMLTidy/vendor/tidy-html5/src/attrapi.c | 31 - HTMLTidy/vendor/tidy-html5/src/attrdict.c | 1 + HTMLTidy/vendor/tidy-html5/src/attrs.c | 347 +- HTMLTidy/vendor/tidy-html5/src/attrs.h | 33 +- HTMLTidy/vendor/tidy-html5/src/clean.c | 345 +- HTMLTidy/vendor/tidy-html5/src/clean.h | 9 +- HTMLTidy/vendor/tidy-html5/src/config.c | 1013 +++-- HTMLTidy/vendor/tidy-html5/src/config.h | 308 +- HTMLTidy/vendor/tidy-html5/src/entities.c | 2389 ++++++++++-- HTMLTidy/vendor/tidy-html5/src/fileio.c | 10 +- HTMLTidy/vendor/tidy-html5/src/forward.h | 1 + HTMLTidy/vendor/tidy-html5/src/iconvtc.c | 104 - HTMLTidy/vendor/tidy-html5/src/iconvtc.h | 14 - HTMLTidy/vendor/tidy-html5/src/istack.c | 5 +- HTMLTidy/vendor/tidy-html5/src/language.c | 65 +- HTMLTidy/vendor/tidy-html5/src/language.h | 28 +- HTMLTidy/vendor/tidy-html5/src/language_en.h | 658 ++-- .../vendor/tidy-html5/src/language_en_gb.h | 95 +- HTMLTidy/vendor/tidy-html5/src/language_es.h | 6 +- .../vendor/tidy-html5/src/language_es_mx.h | 2 +- HTMLTidy/vendor/tidy-html5/src/language_fr.h | 190 +- .../vendor/tidy-html5/src/language_pt_br.h | 1296 +++++++ .../vendor/tidy-html5/src/language_zh_cn.h | 4 +- HTMLTidy/vendor/tidy-html5/src/lexer.c | 294 +- HTMLTidy/vendor/tidy-html5/src/lexer.h | 24 +- HTMLTidy/vendor/tidy-html5/src/mappedio.c | 58 +- HTMLTidy/vendor/tidy-html5/src/message.c | 1597 +++++--- HTMLTidy/vendor/tidy-html5/src/message.h | 220 +- HTMLTidy/vendor/tidy-html5/src/messageobj.c | 45 +- HTMLTidy/vendor/tidy-html5/src/messageobj.h | 3 + HTMLTidy/vendor/tidy-html5/src/parser.c | 753 ++-- HTMLTidy/vendor/tidy-html5/src/parser.h | 191 +- HTMLTidy/vendor/tidy-html5/src/pprint.c | 155 +- HTMLTidy/vendor/tidy-html5/src/pprint.h | 5 - HTMLTidy/vendor/tidy-html5/src/sprtf.c | 61 +- HTMLTidy/vendor/tidy-html5/src/sprtf.h | 76 +- HTMLTidy/vendor/tidy-html5/src/streamio.c | 259 +- HTMLTidy/vendor/tidy-html5/src/streamio.h | 44 +- HTMLTidy/vendor/tidy-html5/src/tags.c | 120 +- HTMLTidy/vendor/tidy-html5/src/tags.h | 347 +- HTMLTidy/vendor/tidy-html5/src/tidy-int.h | 55 +- HTMLTidy/vendor/tidy-html5/src/tidylib.c | 420 +- HTMLTidy/vendor/tidy-html5/src/tmbstr.c | 54 +- HTMLTidy/vendor/tidy-html5/src/utf8.c | 11 - HTMLTidy/vendor/tidy-html5/src/win32tc.c | 794 ---- HTMLTidy/vendor/tidy-html5/src/win32tc.h | 18 - HTMLTidy/vendor/tidy-html5/version.txt | 4 +- JSDTidyFramework/Info.plist | 6 +- JSDTidyFramework/JSDTidyModel/JSDTidyModel.m | 13 +- JSDTidyFramework/JSDTidyModel/JSDTidyOption.h | 9 + JSDTidyFramework/JSDTidyModel/JSDTidyOption.m | 54 +- .../Resources/Base.lproj/Localizable.strings | 521 +-- 111 files changed, 12196 insertions(+), 8452 deletions(-) delete mode 100644 Balthisar Tidy Extension/Info-Body.plist create mode 100755 Balthisar Tidy Help Project/build_help.sh create mode 100644 Balthisar Tidy.xcodeproj/xcshareddata/xcschemes/Balthisar Tidy (app).xcscheme create mode 100644 Balthisar Tidy.xcodeproj/xcshareddata/xcschemes/Balthisar Tidy (pro).xcscheme create mode 100644 Balthisar Tidy.xcodeproj/xcshareddata/xcschemes/Balthisar Tidy (web).xcscheme create mode 100644 Balthisar Tidy.xcodeproj/xcshareddata/xcschemes/Balthisar Tidy Help Project.xcscheme create mode 100644 Balthisar Tidy.xcodeproj/xcshareddata/xcschemes/Balthisar Tidy Service Helper.xcscheme create mode 100644 Balthisar Tidy.xcodeproj/xcshareddata/xcschemes/JSDTidyFramework Documentation.xcscheme create mode 100644 Balthisar Tidy.xcodeproj/xcshareddata/xcschemes/JSDTidyFramework.xcscheme create mode 100644 Balthisar Tidy.xcodeproj/xcshareddata/xcschemes/Tidy Extension.xcscheme create mode 100644 Balthisar Tidy.xcodeproj/xcshareddata/xcschemes/TidyBody Extension.xcscheme create mode 100644 Balthisar Tidy.xcodeproj/xcshareddata/xcschemes/tidy-balthisar.xcscheme create mode 100644 Balthisar Tidy/Classes/JSDListEditorController/JSDListEditorController.h create mode 100644 Balthisar Tidy/Classes/JSDListEditorController/JSDListEditorController.m create mode 100755 Balthisar Tidy/Classes/JSDListEditorController/RSRTVArrayController.h create mode 100755 Balthisar Tidy/Classes/JSDListEditorController/RSRTVArrayController.m rename Balthisar Tidy/Classes/vendor/DCOAboutWindow/DCOAboutWindow/{ => Base.lproj}/DCOAboutWindow.xib (100%) rename Balthisar Tidy/Classes/vendor/MASPreferences/{ => Base.lproj}/MASPreferencesWindow.xib (100%) rename Balthisar Tidy/{Balthisar Tidy-Info.plist => Info.plist} (93%) rename Balthisar Tidy/Resources/Base.lproj/{Credits.rtf => Credits (web).rtf} (100%) create mode 100644 Balthisar Tidy/Resources/Base.lproj/JSDListEditorController.xib create mode 100644 Config/Balthisar Tidy Help Project.xcconfig create mode 100644 Config/JSDTidyFramework Documentation.xcconfig create mode 100644 Config/JSDTidyFramework.xcconfig create mode 100644 Config/balthisar-base.xcconfig create mode 100644 Config/balthisar-debug.xcconfig create mode 100644 Config/balthisar-release.xcconfig create mode 100644 Config/balthisar-tidy-id.xcconfig create mode 100644 Config/balthisar-tidy.xcconfig create mode 100644 Config/extension-tidy.xcconfig create mode 100644 Config/extension-tidybody.xcconfig create mode 100644 Config/libtidy-balthisar.dylib.xcconfig create mode 100644 Config/service-helper.xcconfig delete mode 100644 HTMLTidy/vendor/tidy-html5/src/attrapi.c delete mode 100644 HTMLTidy/vendor/tidy-html5/src/iconvtc.c delete mode 100644 HTMLTidy/vendor/tidy-html5/src/iconvtc.h create mode 100644 HTMLTidy/vendor/tidy-html5/src/language_pt_br.h mode change 100755 => 100644 HTMLTidy/vendor/tidy-html5/src/message.c mode change 100755 => 100644 HTMLTidy/vendor/tidy-html5/src/tidy-int.h mode change 100755 => 100644 HTMLTidy/vendor/tidy-html5/src/tidylib.c delete mode 100644 HTMLTidy/vendor/tidy-html5/src/win32tc.c delete mode 100644 HTMLTidy/vendor/tidy-html5/src/win32tc.h diff --git a/Balthisar Common Headers/CommonHeaders.h b/Balthisar Common Headers/CommonHeaders.h index 0e43662c..007334b0 100644 --- a/Balthisar Common Headers/CommonHeaders.h +++ b/Balthisar Common Headers/CommonHeaders.h @@ -21,7 +21,7 @@ *=======================================================*/ #pragma mark - LibTidy version checking - #define LIBTIDY_V_WANT @"5.5.32" + #define LIBTIDY_V_WANT @"5.6.0" /*=======================================================* diff --git a/Balthisar Tidy Extension/Info-Body.plist b/Balthisar Tidy Extension/Info-Body.plist deleted file mode 100644 index 2495e4ea..00000000 --- a/Balthisar Tidy Extension/Info-Body.plist +++ /dev/null @@ -1,49 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDisplayName - Tidy with Balthisar Tidy (body only) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIconFile - icon.icns - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - XPC! - CFBundleShortVersionString - 3.6.3 - CFBundleSignature - ???? - CFBundleVersion - 3.6.3 - LSMinimumSystemVersion - $(MACOSX_DEPLOYMENT_TARGET) - NSExtension - - NSExtensionAttributes - - NSExtensionActivationRule - - NSExtensionActivationSupportsText - - - NSExtensionServiceRoleType - NSExtensionServiceRoleTypeEditor - - NSExtensionPointIdentifier - com.apple.ui-services - NSExtensionPrincipalClass - ActionRequestHandler - - NSHumanReadableCopyright - Copyright © 2017 Jim Derry. All rights reserved. - - diff --git a/Balthisar Tidy Extension/Info.plist b/Balthisar Tidy Extension/Info.plist index 6e3a9208..ad80551e 100644 --- a/Balthisar Tidy Extension/Info.plist +++ b/Balthisar Tidy Extension/Info.plist @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion en CFBundleDisplayName - Tidy with Balthisar Tidy + $(TIDY_EXT_CFBundleDisplayName) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIconFile @@ -19,11 +19,11 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 3.6.3 + ${TIDY_CFBundleShortVersionString} CFBundleSignature ???? CFBundleVersion - 3.6.3 + ${TIDY_CFBundleVersion} LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) NSExtension @@ -44,6 +44,6 @@ ActionRequestHandler NSHumanReadableCopyright - Copyright © 2017 Jim Derry. All rights reserved. + ${TIDY_NSHumanReadableCopyright} diff --git a/Balthisar Tidy Help Project/Contents/Resources/Base.lproj/040_howto/020_docwin/010_docwin-chooseoptions.html.md.erb b/Balthisar Tidy Help Project/Contents/Resources/Base.lproj/040_howto/020_docwin/010_docwin-chooseoptions.html.md.erb index 804ba044..a720806e 100644 --- a/Balthisar Tidy Help Project/Contents/Resources/Base.lproj/040_howto/020_docwin/010_docwin-chooseoptions.html.md.erb +++ b/Balthisar Tidy Help Project/Contents/Resources/Base.lproj/040_howto/020_docwin/010_docwin-chooseoptions.html.md.erb @@ -43,6 +43,11 @@ they control the output options such as formatting. 4. You can also use the left- and right-arrow keyboard keys to select option values for most of Balthisar Tidy’s settings. And of course you will see the results in the **Tidy HTML** view immediately! + +5. Some of the text options, such as `new-blocklevel-tags`, accept multiple + values as a comma-separated list. To make managing these options simpler, + you can activate a list editor to manage lists by triple-clicking the row + of the option you wish to manage. diff --git a/Balthisar Tidy Help Project/Contents/Resources/Base.lproj/060_reference/040_tidyopts/010_tidyoptions.html.md.erb b/Balthisar Tidy Help Project/Contents/Resources/Base.lproj/060_reference/040_tidyopts/010_tidyoptions.html.md.erb index b688ec16..d9dd1305 100644 --- a/Balthisar Tidy Help Project/Contents/Resources/Base.lproj/060_reference/040_tidyopts/010_tidyoptions.html.md.erb +++ b/Balthisar Tidy Help Project/Contents/Resources/Base.lproj/060_reference/040_tidyopts/010_tidyoptions.html.md.erb @@ -13,10 +13,21 @@ layout: template-logo-medium This section contains a reference to all of <%= pne %>’s Tidy options. +Note that these are accurate as of version 5.5.76 of HTML Tidy. Sometimes we +forget to update this help book, but be assured that <%= pne %> always contains +updated descriptions in the Tidy Option panel. +{: .note} + `accessibility-check` : This option specifies what level of accessibility checking, if any, that Tidy should do. + + +`add-meta-charset` + : This option, when enabled, adds a `meta` element sets the `charset` + attribute to the encoding of the document. Set this option to **yes** to + enable it. `add-xml-decl` @@ -84,6 +95,7 @@ options. appropriate inline tags, and ``). If set to **YES** then legacy tags will be replaced with CSS `