For a long time I have been really frustrated at the sort options in InDesigns index panel.

We do a lot of really complicated books with huge indexes, and mainly these books are in Danish. As you might know, the Danish alphabet is identical to the English, but with three additional letters: Æ, Ø and Å.

You can change the sort options in the index panel.

You can change the sort options in the index panel

Changing the sort order to Danish/Norwegian.

Changing the sort order to Danish/Norwegian

The InDesign index only alphabetises from A to Z, but the Sort Options was made to change this. The sort options window lets you prioritise the order of how InDesign should alphabetise, and it works perfectly - for the first letter alone.

I have created a small list of words, using these special characters, and listed them as InDesign would sort them with Danish/Norwegian alphabetising:

  • ÆA
  • ÆÅ
  • ÆB
  • ØA
  • ØÅ
  • ØB
  • ÅA
  • ÅÅ
  • ÅB

Note that the first letter are alphabetised correctly, but the following letters are "ignored", or at least treated as another letter. Æ's and Å's are treated as A's and Ø's are treated as O's.

The correct order would instead be:

  • ÆA
  • ÆB
  • ÆÅ
  • ØA
  • ØB
  • ØÅ
  • ÅA
  • ÅB
  • ÅÅ

I reported the issue as a bug to Adobe and got a kind e-mail reply with an easy fix. Besides changing the sort options to "Danish/Norwegian", changing the documents default language would do the trick.

Make sure you don't have anything selected at all, then launch your character panel (CMD/CTRL+T) and select "Danish" from the language drop down.

Changing the document default language to Danish does the trick.

Changing the document default language to Danish does the trick

Note: Even double A's (AA) will be treated as Å's now!

Have you ever considered how your numbers look in your table of contents, in your tables, or in your running text? Most modern typefaces (OpenType) contains different figures for different purposes - learn to master them to make a subtle but important facelift of your design.

The most obvious figures are the lining figures and the hanging (Oldstyle) figures - lining being where the figures "stands" on the baseline with equal height, and hanging being the figures positioned relatively to the baseline and x-height.

A table of contents using proportionally spaced hanging figures.

A table of contents using proportionally spaced hanging figures.

The spacing between the figures are really important, either you choose them to be tabularly or proportionally spaced. The default setting in most modern fonts are proportionally, since it is the pretties when the figures are written in context with other text - but as soon as the figures are placed as a part of a table with many numbers, or in this case a table of content, tabular is the way to go.

The same table of contents, but with tabularly lining figures instead.

The same table of contents, but with tabularly lining figures instead.

Tabular figures are always the same width, so they as illustrated are placed right on top of each others, but not as beautifully spaced next to each others.

In many fonts, this width is equal to an EN, but since this is not always the case, you in InDesign have the Figure space available, so that you in a text with many numbers on top of each others, can use figure spaces instead of word spaces to match the exact width of the figure.

Using figure spaces to indent tabular figures. Also illustrated here, the slashed zero figure.

Using figure spaces to indent tabular figures. Also illustrated here, the slashed zero figure.

In the previous illustration you can also see another type of figure type available in many modern fonts, the slashed zeros.

There are several ways of discovering what types of figures are available in a specific font through OpenType:

  1. Check the font specimen where this always is detailed - it is of course a selling point.
  2. You can check the glyph palette for alternative figures (as with stylistic sets).
  3. You can open the character panel (CMD+T/CTRL+T) and check the OpenType menu item - if an option is unavailable it will be surrounded by square brackets.

The character panel with the OpenType menu open.

The character panel with the OpenType menu open.

For instance, turning on Fractions will make sure that numbers written like 1/100 will be using a real fraction slash, and real numerators and denominators, which separately also are available in the OpenType settings for text.

A fraction with real numerators and denominators.

A fraction with real numerators and denominators.

Be sure to also read the earlier guides in the Better typography series: The right quotation marks, Using the baseline grid, Optical alignment and Creating and organising styles.

Related to my guide regarding on using GREP styles to change words to small caps, I recently wrote this small script to let you really change case in a search.

The dialog box that opens when activating the script.

The dialog box that opens when activating the script

Activating the script lets you type in a search string, which also accepts GREP, and selecting which of the four cases you want the text transformed to, UPPERCASE, lowercase, Title Case or Sentence case. The script also lets you search a single story or a whole document.

The end result.

The end result

The script

The JavaScript can be downloaded here: search_change_case.jsx.

You can add it to your Scripts palette and run it from there. To do that, place the file inside the "~/Library/Preferences/Adobe InDesign/Version 6.0/Scripts/Scripts Panel" folder.
Note that depending on the length of your document, the script might take a while to run.

Changelog

1.5: Added options for applying a character style or local small caps formatting for the found text.

Creating and organising styles in the beginning of a design process can be a huge help later. Many people tend to rapidly select text, change fonts, leading etc. in their design process, to prepare something to show the client. But the more designs you need to prepare, the more changes the client suggests, and the longer you get in the design process, changing even small stuff takes longer and longer. And even when the design is finally done, and you need to work with it, you will have to recreate the document and create styles from scratch.

I would like to introduce to you, how I normally create and organise my styles to first be able to rapidly change different typefaces, font sizes and leading, and in the end skip the recreation part, since all of the styles are ready to work with.

Paragraphs, headings, captions

This technique effectiveness increases by the amount of different styles/types of text. In this case the document (a book) I will keep it quite simple: normal paragraph text and three levels of headings.

Normally when working on a book I will make sure everything is locked to the baseline grid, but in the start phase I will not lock anything. Instead I will make sure, when creating the styles, that everything adds up! If I define space before and after a paragraph, I will make sure it adds up to the leading of the text. The reason? To be able to quickly test out different leading without changing the baseline grid all the time.

Style defaults

The first paragraph styles I will add are Default, Heading default and Paragraph default. I tend to name my styles quite semantically - there is no need to keep the names short and cryptic, call them something that makes sense! In this case where we don't need that many styles, creating "default" paragraph styles might be overkill, but in bigger projects it can really be a great help. I create the default styles to have something to base other styles on, inheriting all settings if not overridden. If you are used to working with HTML and CSS, you will already know the importance of being able to inherit styles, especially if the document suddenly grows and gets more complex.

The first is the Default style, where I will define everything: leading, font, justification, tabs, what type of numbers used (old style/lining), OpenType features, stylistic sets, language, composer (paragraph/single line), hyphenation rules etc.

Basing the Paragraph default on the Default style makes sure it inherits all settings from it.

Basing the Paragraph default on the Default style makes sure it inherits all settings from it

Next I will create the Heading default style, basing it on the Default style, where I will change what is common for all the headings, in this case it should be a different font, since I want paragraph text in a Serif font and the headings in a Sans font.

I will also create Paragraph default, still basing it on the Default style. In my case, I don't want to change any options in this style, since it should just inherit everything from the Default style.

Paragraphs

For the normal paragraphs I am going to create 2 styles, Paragraph and Paragraph no indent, which is still semantically named and should clearly indicate "what they do". I will create both styles basing them on the Paragraph default style, but only make changes to the Paragraph style, where I will add a first line indent.

In many cases there could be several other styles created here, one with drop cap, full paragraph indented, quotation etc.

Headings

As with the normal paragraphs, I will create three styles, all basing them on the Heading default style, and call them something like Heading 1, Heading 2 and Heading 3.

I only need to change some single things in the Heading defaults style, since the rest is inherited.

I only need to change some single things in the Heading defaults style, since the rest is inherited

Here the only things needing changes are the size and spacing and if you want to differentiate in other ways, such as small caps etc.

Again, since the styles are based on a style it will inherit the options from the parent style, which means you wont have to set up all the small things 10 times.

The first "General" tab of a paragraph shows what is different in the current style from the style it is based on, for quick reference.

The first General tab of a paragraph shows what is different in the current style from the style it is based on, for quick reference

Changing the default style

Luckily InDesign is intelligent enough to "update things" for you. If you base styles on each others and change the style another style is based on, it will take effect immediately. So take it, you want to test the whole design with another font, you only need to change the Default style, and perhaps the Headings Default.

The final "invisible tree" structure, with Default in the top.

The final invisible tree structure, with Default in the top

And of course, if you have created indents based on the leading and adjusted spacing above/below a paragraph, and you change the Default style's leading, you will need to adjust those too. Unfortunately InDesign doesn't support any sort of inherited units, or units based on leading/font-size like EM squares.

When done with preparing different designs with different typefaces, discussing with your client, convincing them that you are Superman etc., you only need to adjust the documents margins and baseline grids, and locking the Default style's lines to the baseline grid.

Organising in a different way?

This is my way of working with styles - and not necessarily the only right way. Are you grouping styles? Not basing them on each others? Please share!

As a follow up post to the baseline grid guide, I would like to write a little about optical alignment in InDesign. As I stated in that post, »fine tuning a grid based design is all about optical alignment - the human eye is what matters in the end«.

When we talk about typography, what better example is there than Gutenbergs 42 line bible.

Notice the optical margins in Gutenbergs beautiful Bible.

Notice the optical margins in Gutenbergs beautiful Bible

Notice the hanging characters in the columns, especially the hyphens and dots. The hyphens are optically almost none existing, so Gutenberg allowed these to "hang" outside the column, to please the human eye.

The same counts for the drop caps. Notice the left side of the Q - not the tail in perticular which is just being decorative, but the left side of the letterform itself. It is pulled just a little into the gutter to create an optical alignment with the left column edge.

I have created a small test case, take a look at this screenshot and you will step by step see an improvement of alignment:

The document without any optical alignment.

The document without any optical alignment

Optical margin alignment

The first thing to do, to achieve an instant better result, is activating Optical Margin Alignment. Optical margin alignment is applied per story, so just place the text marker in the story you wish to apply it for, open the Story palette, and turn it on. The leading applied is just "guiding", if the main text size is 10pt the size should be set to 10 more or less here as well. But nudge it up and down till you find it fitting!

Here you can turn on and off optical margin alignment for a story.

Here you can turn on and off optical margin alignment for a story

Since the feature is turned on per story, you might have some specific styles you dont want automatically adjusted. Adobe added a feature to ignore optical margin alignment in the paragraph style:

Let a paragraph style ignore optical margin alignment.

Let a paragraph style ignore optical margin alignment

After this small change I am quite satisfied with the main text and the subheading alignment - notice especially dots, commas, hyphens and the left side of the A, and the Y hanging a little outside the column. It isn't perfect, but still it is way better than before!

The document with optical margin alignment turned on.

The document with optical margin alignment turned on

Adjusting drop caps

The drop cap is way bigger than the main text, so optical margin alignment won't really affect it that much. Instead manually adjusting it will! The same adjustments will work for bigger headers, where you want them optically aligning with the text.

First of all you have to add a normal space before the drop cap, and then adjust it to drop the first two characters instead of only one.

Adjust the drop cap to drop 2 characters.

Adjust the drop cap to drop 2 characterson

When the drop cap is adjusted and the space is added, you are able to "track it" outside the left edge.

The drop cap with an extra space.

The drop cap with an extra space

Just place the text marker between the dropped cap and the space you inserted and track it until it is in place. In this case I had to track by "-310".

The drop cap with aligned.

The drop cap with aligned

How much you align your text is up to you, but I really find the optical margin alignment tool useful. In larger projects you probably won't always have the time to finetune each heading or drop cap, but if the time is there, why not? The end result is not perfect, but quickly done. Here is a screenshot without grids:

The document with optical alignment in place.

The document with optical alignment in place