Here you have a good example of this nice module used on a page in Chinese:
http://fongcaifong.menwai.tw/node/22

Note that because of transliteration problems, the anchors are completely meaningless.
Here is the list of anchors generated for that page:

#header-1
#_
#_-2
#header-3
#._
#._NO.1
#._18
#._30-33.1F
#._B1
#._AB
#._121
#._98
#_-4
etc. ...

I don't know why some are of the style #header-n and others are different.

For that site, the best would be to have an option NOT to use the content of the headers within the anchor at all. Simply use #header-n everywhere, or, better, use an number of the levels in the anchor:
#section-1
#section-1-1
#section-1-2
#section-2
#section-2-1
#section-2-1-1
#section-2-1-2
#section-2-2
#section-3
etc.

The default (and only?) current option does not work on web sites with non-latin, not easily transliteratable scripts. For those site, the current behavior is buggy.

Thank you for this otherwise very nice module. :)

Comments

AlexisWilke’s picture

Hi Jennifer,

I was thinking about something like that. Not specifically for Chinese, but to simply get what you show with the #section example. It should be easy enough to offer that option.

Nice website. Are the mountains the Himalaya?

Thank you.
Alexis

jennifer.chang’s picture

thanks.

The himalayas would be much higher, snow-capped mountains.
I don't know which mountains they are. The picture came with the contributed theme:
http://drupal.org/project/fourseasons

AlexisWilke’s picture

Assigned: Unassigned » AlexisWilke
Status: Active » Fixed

Hi Jennifer,

Thank you for the info! It looks like a nice theme.

I have put a fix with capabilities to do what you mentioned in your first post (among other things.)

To answer your question about the "header-1", "header-2", etc. whenever the system tries to convert a title into an identifier and that fails, it then generates a default identifier such as "header-<number>".

Don't hesitate to reopen this issue if it does not work for you.

Thank you.
Alexis Wilke

jennifer.chang’s picture

Thank you very much. I just upgraded to latest CVS. The implementation is very thorough! You can see the result of your work in the same page above.

While playing with the new settings, I ran into this bug:
#809756: List of tags allowed in table headers cannot exceed 128 chars.

I am grateful that you maintain this module so well.
Thanks again.

AlexisWilke’s picture

Jennifer,

One thing I wanted to mention, you may want to change the CSS somewhere to make the table wider. You have several sentences that have a line break... because by default the table is made 50% the width of the page.

.content .toc {
  max-width: 50%;
}

By changing this to 80%, it may look even better.

Thank you.
Alexis

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.