Jump to content

Ignore article when sort of ( like a , an , the ) , but with more....


Alex45
Go to solution Solved by Luke,

Recommended Posts

Hi , first excuse for my poor english , i'm french.

So , first , i modified system.xml , to ignore some article when i sort movie by name ( like a , an , the in english language )

So , I added this line to system.xml

 
    <string>l'</string>
    <string>le</string>
    <string>la</string>
    <string>les</string>
    <string>un</string>
    <string>une</string>
    <string>à</string>
 
Why , because in french language , we ignore this article : l' , le , la , les , un une , à
Everything is good , except this article : l'       ( letter l with quote ( inclined from left down to hight right ))
 
So , for example , this movie name : L'Âge de glace , must sort in A logically in french, but in my setup it sort in L )
 
 
So , what i am missing ?
 
( Thanks by advance for your answer , and excuse me for my very poor english )
 
Link to comment
Share on other sites

Hi , thanks for your answer.

I will test it asap

Actually , I'm away from home til tomorrow 14:00 ( french hour )

If it is good , i'll feed back here

Link to comment
Share on other sites

That setting requires word boundaries(white space). It wont strip individual characters from the front of words. The L' stripping needs to work on the characters when they begin the word. The L' isnt a word in itself.

 

@@Luke would need to make a setting to strip characters off the front of words to acheive this.

 

Sent from my Nexus 7 using Tapatalk

Edited by speechles
Link to comment
Share on other sites

I think the only way that could work would be for the apostrophe to become a word boundary character and the article just "L". 

Link to comment
Share on other sites

Hi , thanks a lot for all yours answers.

So , I test , in putting this : <string>l'/</string> , same problem.

So fi @@Luke could make a :  strip characters off the front of words to acheive this

it'll would great because it is the only thing who didn't work with this big software

 

Again thanks a lot

Link to comment
Share on other sites

Happy2Play

Can you give an example of where it is causing an issue?

 

So , for example , this movie name : L'Âge de glace , must sort in A logically in french, but in my setup it sort in L )

In this example "Ice Age" is sorted with "L" instead of ignoring the L'.

Link to comment
Share on other sites

What Emby will do out of the box is ignore the article on the L and sort as 

Lage de Glace

If you want to sort under I then you will need to customize the server config file.

Link to comment
Share on other sites

Hi , @@Luke , the string parameter work good excep for the quote ( inclined from left down to hight right)

So Is it possible to have a line in system.xml, wich do this : remplace "L' by a space

So the movie : L'Age de glace.mkv     will be sort in A , ( of course added : <string>l>/string> previuously in system.xml )

 

Is it possible a such command

 

Wait for yours answer !!!!

 

Thanks a lot for time reading me

Link to comment
Share on other sites

What Emby will do out of the box is ignore the article on the L and sort as 

Lage de Glace

If you want to sort under I then you will need to customize the server config file.

 

 

He's already done that (see first post).

 

The problem here is that he needs to have "L'" ignored and we are ignoring the ' in the thing he wants ignored which then makes it not match.

Link to comment
Share on other sites

Hi , so after several test do by yours answers , I have the solution , thanks @@Luke

 

so , now , my system.xml xontains this line :

 

 
-<SortReplaceCharacters>
 
<string>.</string>
 
<string>+</string>
 
<string>%</string>
 
<string>'</string>
 
</SortReplaceCharacters>
 
 
-<SortRemoveCharacters>
 
<string>,</string>
 
<string>amp;</string>
 
<string>-</string>
 
<string>{</string>
 
<string>}</string>
 
</SortRemoveCharacters>
 
 
-<SortRemoveWords>
 
<string>the</string>
 
<string>a</string>
 
<string>an</string>
 
<string>l</string>
 
<string>le</string>
 
<string>la</string>
 
<string>les</string>
 
<string>un</string>
 
<string>une</string>
 
<string>à</string>
 
</SortRemoveWords>
 
 
Eveything is good , the " sort by title" for the french language works very well
 
Thanks a lot , @@Luke to told about : SortReplaceCharacters
 
Thanks a lot everybody
Link to comment
Share on other sites

CharleyVarrick

Reading this is really interesting to me, as I too have French content, about 20%, and the rest English.

I have separate libraries for movies (english) and Films-fr

Same for TV-eng and TV-fr

Music (eng) and Musique (fr)

 

After reading this thread, I just noticed when I browse Films-fr, all articles are ignored ("La cage au folles" shows up in "L" instead of "C")

 

I chose to setup Emby in English as I find it's easier to get support that way, but is that why it ignores French articles?

If so and I setup Emby in French, will it ignore English articles?

 

Is there a way I can setup Emby to consider both French and English articles at the same time?

Edited by jlr19
Link to comment
Share on other sites

Hi , jlr19 , with my modded system.xml , article in english and french language are ignored as the same time

Exemple : 

 

L'abominable vérité , sort in A

La maison au bout de la rue , sort in M

Le Chacal , sort in C

Les 8 salopards , sort in 8

Un balcon sur la mer , sort in B

Une famille très moderne , sort in F

The artist , sort in A

A dark truth , sort in D

 

Is it what you are looking for ? If yes , mod your system.xml to feels like the mine , with this modified line ( added line as in red color ):

 

-<SortReplaceCharacters>
 
<string>.</string>
 
<string>+</string>
 
<string>%</string>
 
<string>'</string>
 
</SortReplaceCharacters>
 
 
-<SortRemoveCharacters>
 
<string>,</string>
 
<string>amp;</string>
 
<string>-</string>
 
<string>{</string>
 
<string>}</string>
 
</SortRemoveCharacters>
 
 
-<SortRemoveWords>
 
<string>the</string>
 
<string>a</string>
 
<string>an</string>
 
<string>l</string>
 
<string>le</string>
 
<string>la</string>
 
<string>les</string>
 
<string>un</string>
 
<string>une</string>
 
<string>à</string>
 
</SortRemoveWords>

 

 

Hope , it will answer your question 

Have a nice day jlr19

  • Like 2
Link to comment
Share on other sites

CharleyVarrick

Wow, so nice of you (merci beaucoup!!!),

the thing is I have no idea what to do with this.

I am guessing I need to navigate to a file, and then edit it, but what file and where is it?

 

EDIT: must be system.xml in the config folder (?)

 

Did I do something wrong?, I restarted Emby and got this:589f4ffd763a9_Capture.png

 

I went throught with the setup wizard and I seem to have lost 99.99% of my emby library :wacko:

Edited by jlr19
Link to comment
Share on other sites

CharleyVarrick

First time around I edited the system.xml without shutting down Emby first

I restarted after and got the setup wizard

I noticed the system.xml did not keep any of my modifications.

 

Tried again, this time I shut down Emby first

Edited the xml

Restarted emby and again, got the setup wizard, and also, the xml seem to have wiped out my modification.

Link to comment
Share on other sites

Hi , fisrt thing , you NEVER edit system files when your server runs.

So , yes , you understand very well , edit system.xml file within folder "config"

If you don't edit or wrongly edit system.xml , the next startup , emby will reset system.xml to defaut ( like a fresh install )

Link to comment
Share on other sites

I suggest you , not to use Notepad to midify system.xml , but use a xml editor , like X-XMLCopyEditor ( on windows sytem and much moore )

Link to comment
Share on other sites

CharleyVarrick

I did use notepad and "aligned" the added lines to the existing ones

But on my 2nd try (with Emby shutdown), as soon as I edit save and restart, all my changes are gone (along with library content)

Link to comment
Share on other sites

CharleyVarrick

It's OK Alex45,

its not your fault and you have no responsibility to help me anymore than you already did.

 

For anyone else that feels like giving me a hand. I have redone the previous steps a 3rd time, but this time I used  XML Copy Editor. Now the added lines are sticking, contrary to when I was editing them with Notepad.

 

But all media libraries show no content at all, what kind of operation do I need to rescan or refresh the content back into Emby?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...