Hi Luke,

Il 17/12/2011 14:51, Luke Campagnola ha scritto:
> Sorry, I guess I should have inspected the patch before sending it. New
> patch attached.
> 
> Luke
> 

thanks for the new patch

> On Sat, Dec 17, 2011 at 04:29, Antonio Valentino <
> antonio.valent...@tiscali.it> wrote:
> 
>> Hi Luke,
>>
>> Il 14/12/2011 23:41, Luke Campagnola ha scritto:
>>> 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

Not sure to understand correctly your purpose.
Currently many (not all) of the keyword entries in the .qhp also have an
"id" (I'm using the sphinx documentation for testing).

Do you want to have different ids or you just need to add missing ones?

Please note that the decision of add ng an id or not is currently made
in the keyword_item( method

https://bitbucket.org/birkenfeld/sphinx/src/65e4c29a24e4/sphinx/builders/qthelp.py#cl-253

using the _idpattern regexp

https://bitbucket.org/birkenfeld/sphinx/src/65e4c29a24e4/sphinx/builders/qthelp.py#cl-25

In any case (both in the current implementation and with your patch) not
all labels around in the doc are collected as keywords in qtdocs.

best regards

-- 
Antonio Valentino

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

Reply via email to