Problem with indexes
Moderators: Alexander Halser, Tim Green
-
- Posts: 51
- Joined: Sat Mar 21, 2015 12:54 pm
Problem with indexes
I have a problem with indexes... Some my keywords are the --local, --global, --system (i.e. start at "--" prefix) - this is the options of Git program. Other my keywords contain cyrilic chars: А,Б,В,Г,Д, etc.
This is settings of my project:
But this is a result (the keywords which are started with "--" aren't grouped also):
This is settings of my project:
But this is a result (the keywords which are started with "--" aren't grouped also):
You do not have the required permissions to view the files attached to this post.
- Tim Green
- Site Admin
- Posts: 23155
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Problem with indexes
Hi Andrey,
You can't use the "-" character as the first character of an index entry. That is physically impossible with the way that the current index works. It will not ever be classed as a valid ordering character, so that is out of the question.
You need to add your Cyrillic characters to the index in the skin, not in your project. :
You can't use the "-" character as the first character of an index entry. That is physically impossible with the way that the current index works. It will not ever be classed as a valid ordering character, so that is out of the question.
You need to add your Cyrillic characters to the index in the skin, not in your project. :
- Open the skin in Help & Manual and go to Configuration > Publishing Options > WebHelp > Keyword Index
- Add your characters to the separators box at the bottom
- Locate this list of index code in the source code of the index page:
Code: Select all
<a href="javascript:gotoIndex('#A')" class="idxrefs">A</a> <a href="javascript:gotoIndex('#B')" class="idxrefs">B</a> <a href="javascript:gotoIndex('#C')" class="idxrefs">C</a> ...
- Add your own separators to the list in the order you want them to appear, ,like this:
Code: Select all
<a href="javascript:gotoIndex('#Z')" class="idxrefs">Z</a> <a href="javascript:gotoIndex('#Ф')" class="idxrefs">Ф</a>
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 51
- Joined: Sat Mar 21, 2015 12:54 pm
Re: Problem with indexes
Is this problem are specific for Help & Manual engine only?Tim Green wrote: You can't use the "-" character as the first character of an index entry. That is physically impossible with the way that the current index works. It will not ever be classed as a valid ordering character, so that is out of the question.
- Tim Green
- Site Admin
- Posts: 23155
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Problem with indexes
Hi Andrey,
I'm really not sure. However, I'm going to check with our developers to look into the possibility of allowing the dash as an ordering character.Is this problem are specific for Help & Manual engine only?
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 51
- Joined: Sat Mar 21, 2015 12:54 pm
Re: Problem with indexes
Thank you. It would be useful capability, because many Linux programs (and their Windows-clones) uses the keys with "-" and "--" prefixes (for own console-parameters). I still didn't check the same problem for "/" prefix, which is often used like a prefix for keys of Windows programs (maybe the same problem exists) - I hope your developers check it also.
So, I wait an answer of your developers, Tim.
Thank you.
So, I wait an answer of your developers, Tim.
Thank you.
-
- Posts: 51
- Joined: Sat Mar 21, 2015 12:54 pm
Re: Problem with indexes
I added the records, as you wrote above:
But I get incorrect result of searching:
I thought, maybe it is case sensitive and tried this also:
But it didn't help too. How can I fix it?
Code: Select all
<div id="indexRefs">
<a href="javascript:gotoIndex('#А')" class="idxrefs">А</a>
<a href="javascript:gotoIndex('#Б')" class="idxrefs">Б</a>
<a href="javascript:gotoIndex('#В')" class="idxrefs">В</a>
<a href="javascript:gotoIndex('#Г')" class="idxrefs">Г</a>
<a href="javascript:gotoIndex('#Д')" class="idxrefs">Д</a>
<a href="javascript:gotoIndex('#Е')" class="idxrefs">Е</a>
<a href="javascript:gotoIndex('#Ж')" class="idxrefs">Ж</a>
<a href="javascript:gotoIndex('#З')" class="idxrefs">З</a>
<a href="javascript:gotoIndex('#И')" class="idxrefs">И</a>
<a href="javascript:gotoIndex('#К')" class="idxrefs">К</a>
<a href="javascript:gotoIndex('#Л')" class="idxrefs">Л</a>
<a href="javascript:gotoIndex('#М')" class="idxrefs">М</a>
<a href="javascript:gotoIndex('#Н')" class="idxrefs">Н</a>
<a href="javascript:gotoIndex('#О')" class="idxrefs">О</a>
<a href="javascript:gotoIndex('#П')" class="idxrefs">П</a>
<a href="javascript:gotoIndex('#Р')" class="idxrefs">Р</a>
<a href="javascript:gotoIndex('#С')" class="idxrefs">С</a>
<a href="javascript:gotoIndex('#Т')" class="idxrefs">Т</a>
<a href="javascript:gotoIndex('#У')" class="idxrefs">У</a>
<a href="javascript:gotoIndex('#Ф')" class="idxrefs">Ф</a>
<a href="javascript:gotoIndex('#Х')" class="idxrefs">Х</a>
<a href="javascript:gotoIndex('#Ц')" class="idxrefs">Ц</a>
<a href="javascript:gotoIndex('#Ч')" class="idxrefs">Ч</a>
<a href="javascript:gotoIndex('#Ш')" class="idxrefs">Ш</a>
<a href="javascript:gotoIndex('#Щ')" class="idxrefs">Щ</a>
<a href="javascript:gotoIndex('#Э')" class="idxrefs">Э</a>
<a href="javascript:gotoIndex('#Ю')" class="idxrefs">Ю</a>
<a href="javascript:gotoIndex('#Я')" class="idxrefs">Я</a>
<div id="callout-wrap">
I thought, maybe it is case sensitive and tried this also:
Code: Select all
<a href="javascript:gotoIndex('#к')" class="idxrefs">к</a>
You do not have the required permissions to view the files attached to this post.
- Tim Green
- Site Admin
- Posts: 23155
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Problem with indexes
Hi Andrey,
You may have done something wrong because your screenshot shows that you are not getting a -K- separator heading. Check that you also added the Cyrillic K to the white separators list box below the source code editor. Also make sure that you clear the cache in your browser before testing. If you continue to have problems please mail me a small demo project illustrating the issue and a copy of your skin to support AT ec-software.com (replace the AT with @) and I will check it for you.
You may have done something wrong because your screenshot shows that you are not getting a -K- separator heading. Check that you also added the Cyrillic K to the white separators list box below the source code editor. Also make sure that you clear the cache in your browser before testing. If you continue to have problems please mail me a small demo project illustrating the issue and a copy of your skin to support AT ec-software.com (replace the AT with @) and I will check it for you.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 51
- Joined: Sat Mar 21, 2015 12:54 pm
Re: Problem with indexes
Oh, I didn't note it. I added this information and now it works. Thanks!Tim Green wrote:Check that you also added the Cyrillic K to the white separators list box below the source code editor.
I translated English to Russian in the local copy of the skin template, but to do the same for each skin when I want to change the skin it is very unconvenient and takes many time.
-
- Posts: 51
- Joined: Sat Mar 21, 2015 12:54 pm
Re: Problem with indexes
I translated English text to Russian, but I see some text is not translated:
Where is this text located?
Where is this text located?
You do not have the required permissions to view the files attached to this post.
- Tim Green
- Site Admin
- Posts: 23155
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Problem with indexes
The search interface has a separate language file that you can edit in the skin along with the other search options in WebHelp > Full-text Search. However, this interface already has a Russian language file that you can load. Just click on the Load button at the top right above the box containing the list of text strings to load it. After that you can check the texts loaded and edit them if you like. You can also save your edited version with the Save button next to the Load button.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
- Alexander Halser
- EC-Software Support
- Posts: 4098
- Joined: Mon Jun 24, 2002 7:24 pm
- Location: Salzburg, Austria
- Contact:
Re: Problem with indexes
Hello Andrey,
This is actually a Windows feature and not a bug. The keyword list is sorted linguistically and not in the same order as the byte values the string consists of might suggest. This is absolutely necessary, because the linguistic sort order depends on the language.
Keywords are sorted case insensitive and the order is determined by the language of your help project. The differences between languages are subtle but they are required. When sorting the keywords, H&M calls the Windows function CompareString with the LCID derived from your project language.
In a linguistic sort order, texts starting with a hyphen are sorted under the letter which comes next to the hyphen. It is sorted by Windows depending on the language support of the Windows version. But the hyphens are a clear case: they are ignored and this makes sense.
For more background information, please refer to the following links:
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
http://stackoverflow.com/questions/3680 ... -before-it
This is actually a Windows feature and not a bug. The keyword list is sorted linguistically and not in the same order as the byte values the string consists of might suggest. This is absolutely necessary, because the linguistic sort order depends on the language.
Keywords are sorted case insensitive and the order is determined by the language of your help project. The differences between languages are subtle but they are required. When sorting the keywords, H&M calls the Windows function CompareString with the LCID derived from your project language.
In a linguistic sort order, texts starting with a hyphen are sorted under the letter which comes next to the hyphen. It is sorted by Windows depending on the language support of the Windows version. But the hyphens are a clear case: they are ignored and this makes sense.
For more background information, please refer to the following links:
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
http://stackoverflow.com/questions/3680 ... -before-it
Alexander Halser
Senior Software Architect, EC Software GmbH
Senior Software Architect, EC Software GmbH
- Tim Green
- Site Admin
- Posts: 23155
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Problem with indexes
Hi Andrey,
The Premium Pack comes with a utility called PP Updater that allows you to transfer all your settings from one skin to another. Have a look at the Premium Pack documentation for details.I translated English to Russian in the local copy of the skin template, but to do the same for each skin when I want to change the skin it is very unconvenient and takes many time.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 51
- Joined: Sat Mar 21, 2015 12:54 pm
Re: Problem with indexes
Ok, I will spend my time for more it reading. Thank you.