Howdy,
I've attached a patch to the qthelp builder that causes new <keyword> tags
to be generated in the .qhp output for all of the reference labels in the
document. These tags have id attributes but no name attributes so they do
not show up in the keyword index. This allows programs using qthelp to open
specific sections of the help document by their reference label.

For example, a label like
    .. _my_label:
in the .rst source can be accessed via Qt with
    helpEngine.linksForIdentifier("my_label")

I have no idea if I have done this 'correctly' but it seems to work on my
end.


Luke

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

141a142,152
>                 
>         # ID keywords from xref labels
>         for domainname, domain in self.env.domains.iteritems():
>             for name, dispname, type, docname, anchor, prio in domain.get_objects():
>                 if anchor == "":
>                     continue
>                 uri = self.get_target_uri(docname) + '#' + anchor
>                 item = ' '*12 + '<keyword id="%s" ref="%s"/>' % (name, uri)
>                 item.encode('ascii', 'xmlcharrefreplace')
>                 keywords.append(item)
>                 

Reply via email to