Skip to content

Commit

Permalink
Balthisar Tidy 3.7.0
Browse files Browse the repository at this point in the history
  - _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.
  • Loading branch information
balthisar committed Sep 20, 2017
1 parent d490276 commit eecd0cf
Show file tree
Hide file tree
Showing 111 changed files with 12,196 additions and 8,452 deletions.
2 changes: 1 addition & 1 deletion Balthisar Common Headers/CommonHeaders.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*=======================================================*/
#pragma mark - LibTidy version checking

#define LIBTIDY_V_WANT @"5.5.32"
#define LIBTIDY_V_WANT @"5.6.0"


/*=======================================================*
Expand Down
49 changes: 0 additions & 49 deletions Balthisar Tidy Extension/Info-Body.plist

This file was deleted.

8 changes: 4 additions & 4 deletions Balthisar Tidy Extension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Tidy with Balthisar Tidy</string>
<string>$(TIDY_EXT_CFBundleDisplayName)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIconFile</key>
Expand All @@ -19,11 +19,11 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>3.6.3</string>
<string>${TIDY_CFBundleShortVersionString}</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3.6.3</string>
<string>${TIDY_CFBundleVersion}</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSExtension</key>
Expand All @@ -44,6 +44,6 @@
<string>ActionRequestHandler</string>
</dict>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017 Jim Derry. All rights reserved.</string>
<string>${TIDY_NSHumanReadableCopyright}</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -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 <em>Balthisar Tidy</em>’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.
</div>

</div>
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -84,6 +95,7 @@ options.
appropriate inline tags, and `<font>`). If set to **YES** then legacy tags
will be replaced with CSS `<style>` tags and structural markup as appropriate.


`coerce-endtags`
: This option specifies if Tidy should coerce a start tag into an end tag in
cases where it looks like an end tag was probably intended. For example, given \\
Expand All @@ -97,6 +109,7 @@ options.

By default, **c** will be used.


`custom-tags`
: This option enables the use of tags for autonomous custom elements, e.g.
`<flag-icon>`} with Tidy. Custom tags are disabled if this value is **no**.
Expand All @@ -112,6 +125,7 @@ options.
using opening tags; matching closing tags will be recognized accordingly, and
unknown closing tags will be discarded.


`decorate-inferred-ul`
: This option specifies if Tidy should decorate inferred `<ul>` elements
with some CSS markup to avoid indentation to the right.
Expand Down Expand Up @@ -165,6 +179,7 @@ options.
: This option specifies if Tidy should convert `<![CDATA[]]>` sections to
normal text.


`escape-scripts`
: This option causes items that look like closing tags in scripts to be escaped.
For example **</g** will be escaped to **<\/g**. Set this option to **no** to
Expand All @@ -186,6 +201,11 @@ options.
syntax `<!--- --->`.


`fix-style-tags`
: This option specifies if Tidy should move all style tags to the head of the
document.


`fix-uri`
: This option specifies if Tidy should check attribute values that carry URIs
for illegal characters and if such are found, escape them as HTML4 recommends.
Expand Down Expand Up @@ -288,19 +308,14 @@ options.

This option can be set independently of the `clean` option.


`lower-literals`
: This option specifies if Tidy should convert the value of an attribute that
takes a list of predefined values to lower case.

This is required for XHTML documents.


`markup`
: This option specifies if Tidy should generate a pretty-printed version of the
markup. Note that Tidy won’t generate a pretty-printed version if it finds
significant errors (see `force-output`).


`merge-divs`
: Can be used to modify behavior of `clean` when set to **yes**.

Expand Down Expand Up @@ -454,6 +469,15 @@ options.
found in the input.


`priority-attributes`
: This option allows prioritizing the writing of attributes in tidied
documents, allowing them to written before the other attributes of an
element. For example, you might specify that **id** and **name** are written
before every other attribute.

This option takes a space or comma separated list of attribute names.


`punctuation-wrap`
: This option specifies if Tidy should line wrap after some Unicode or Chinese
punctuation characters.
Expand Down Expand Up @@ -509,6 +533,7 @@ options.
the specified sort algorithm. If set to **alpha** the algorithm is an
ascending alphabetic sort.


`strict-tags-attributes`
: This options ensures that tags and attributes are applicable for the version
of HTML that Tidy outputs. When set to **yes** and the output document
Expand All @@ -520,6 +545,7 @@ options.

When set to **no**, these checks are not performed.


`tab-size`
: This option specifies the number of columns that Tidy uses between successive
tab stops. It is used to map tabs to spaces when reading the input.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,23 @@ options and <%= pne %>’s options.
of <%= mac_os %>’s vast array of file encoding options compared to the limited options
offered by Tidy proper.

`language`
: <%= pne %> provides superior localization to traditional Tidy, and
no Tidy output is used directly, anyway, making this option literally useless.
`markup`
: This option is used with command line Tidy to hide or show the Tidy’d
document on the command line. Because <%= pne %> always shows the Tidy’d
document, this option isn’t available.

`doctype-mode`
: Although sometimes command line Tidy will accept setting this option, it’s
officially defined as “read-only” by Tidy’s application programming interface.
<%= pne %> supports `doctype` as it should.

`drop-font-tags`
`hide-endtags`
: This option is a synonym for `omit-optional-tags`, and so
<%= pne %> hides this option.

`language`
`slide-style`
`split`
: These two options are marked as obsolete in Tidy’s source code, and so they
will not be supported by <%= pne %>.

`drop-font-tags`
: This option is marked as obsolete in Tidy’s source code, and it’s dangerous
to use besides. As such it will not be supported by <%= pne %>.

: These options have been deprecated by Tidy, and have been removed entirely
in recent versions of Tidy, and so there's no reason to support them.

`error-file`
`gnu-emacs`
Expand Down
18 changes: 18 additions & 0 deletions Balthisar Tidy Help Project/build_help.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

#####################################################################
# Used to build from Xcode or another build system.
#####################################################################

if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
source "/usr/local/rvm/scripts/rvm"
else
printf "ERROR: An RVM installation was not found.\n"
exit 128
fi

cd "$PROJECT_DIR/Balthisar Tidy Help Project/"
rvm use default
bundle exec middleman all
18 changes: 14 additions & 4 deletions Balthisar Tidy Help Project/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
# targets.
################################################################################


##########################################################################
# Build System Integration
# If built from Xcode (or another build system you create), then setup
# some of our variables automatically from the environment variables
# that the build system sets for us.
##########################################################################
version_app = ENV.has_key?('TIDY_CFBundleShortVersionString') ? ENV['TIDY_CFBundleShortVersionString'] : '3.7.0'


##########################################################################
# Targets Configuration
# Middlemac is capable of building multiple targets for variants of your
Expand Down Expand Up @@ -79,7 +89,7 @@
:HPDBookIconPath => nil,
:CFBundleName => 'Balthisar Tidy',
:ProductName => 'Balthisar Tidy',
:ProductVersion => '3.6.3',
:ProductVersion => version_app,
:ProductURI => 'http://www.balthisar.com/',
:features =>
{
Expand All @@ -104,7 +114,7 @@
:HPDBookIconPath => nil,
:CFBundleName => 'Balthisar Tidy',
:ProductName => 'Balthisar Tidy',
:ProductVersion => '3.6.3',
:ProductVersion => version_app,
:ProductURI => 'http://www.balthisar.com/',
:features =>
{
Expand All @@ -129,7 +139,7 @@
:HPDBookIconPath => nil,
:CFBundleName => 'Balthisar Tidy',
:ProductName => 'Balthisar Tidy for Work',
:ProductVersion => '3.6.3',
:ProductVersion => version_app,
:ProductURI => 'http://www.balthisar.com/',
:features =>
{
Expand Down Expand Up @@ -232,7 +242,7 @@
# named in the form `#{CFBundleName} (target).help`. You might want to target
# the `Resources` directory of your XCode project so that your XCode project
# is always up to date.
options.Help_Output_Location = '../Balthisar Tidy/Resources/'
options.Help_Output_Location = '../Balthisar Tidy/Resources/Base.lproj'

# Indicates the name of the breadcrumbs helper to use for breadcrumbs.
# Built-in breadcrumbs are "nav_breadcrumbs" and "nav_breadcrumbs_alt".
Expand Down
Loading

0 comments on commit eecd0cf

Please sign in to comment.