2009-07-07, 11:03
Is it possible to add a token to sort movies whose titles begin with L' ?
<?xml version="1.0" encoding="UTF-8"?>
<advancedsettings>
<sorttokens>the|l'</sorttokens>
</advancedsettings>
<sorttokens>
<token>the</token>
<token>a</token>
<token>le</token>
<token>la</token>
<token>les</token>
<token>l'</token>
</sorttokens>
if (pToken->FirstChild() && pToken->FirstChild()->Value())
{
g_advancedSettings.m_vecTokens.push_back(CStdString(pToken->FirstChild()->Value()) + " ");
g_advancedSettings.m_vecTokens.push_back(CStdString(pToken->FirstChild()->Value()) + ".");
}
if (pToken->FirstChild() && pToken->FirstChild()->Value())
{
g_advancedSettings.m_vecTokens.push_back(CStdString(pToken->FirstChild()->Value()) + " ");
g_advancedSettings.m_vecTokens.push_back(CStdString(pToken->FirstChild()->Value()) + ".");
g_advancedSettings.m_vecTokens.push_back(CStdString(pToken->FirstChild()->Value()) + "'");
}
<sorttokens>
...
<token>l</token>
</sorttokens>
<token separators="'"></token>
(2022-11-10, 04:10)Skirge01 Wrote: <token separators="'"></token>Can you try the following and see if it works. I think the problem is that you need to add a value.
xml:<sorttokens>
<token separators="'">T</token>
</sorttokens>
<token>'T</token>
xml:
xml:<token separators="'">'</token>