Alex45 12 Posted February 8, 2017 Posted February 8, 2017 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 )
PenkethBoy 2066 Posted February 8, 2017 Posted February 8, 2017 i think you may need to escape the ' with a \
Alex45 12 Posted February 8, 2017 Author Posted February 8, 2017 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
speechles 2013 Posted February 8, 2017 Posted February 8, 2017 (edited) 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 February 8, 2017 by speechles
ebr 15670 Posted February 8, 2017 Posted February 8, 2017 I think the only way that could work would be for the apostrophe to become a word boundary character and the article just "L".
Luke 40113 Posted February 8, 2017 Posted February 8, 2017 Search already ignores articles. You can test this on beyonce for example.
Alex45 12 Posted February 9, 2017 Author Posted February 9, 2017 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
Luke 40113 Posted February 9, 2017 Posted February 9, 2017 Can you give an example of where it is causing an issue?
Happy2Play 9446 Posted February 10, 2017 Posted February 10, 2017 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'.
Luke 40113 Posted February 10, 2017 Posted February 10, 2017 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.
Alex45 12 Posted February 10, 2017 Author Posted February 10, 2017 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
Solution Luke 40113 Posted February 10, 2017 Solution Posted February 10, 2017 have you tried SortReplaceCharacters? 1
ebr 15670 Posted February 10, 2017 Posted February 10, 2017 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.
Alex45 12 Posted February 10, 2017 Author Posted February 10, 2017 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
CharleyVarrick 283 Posted February 11, 2017 Posted February 11, 2017 (edited) 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 February 11, 2017 by jlr19
Alex45 12 Posted February 11, 2017 Author Posted February 11, 2017 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 2
CharleyVarrick 283 Posted February 11, 2017 Posted February 11, 2017 (edited) 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: I went throught with the setup wizard and I seem to have lost 99.99% of my emby library Edited February 11, 2017 by jlr19
CharleyVarrick 283 Posted February 11, 2017 Posted February 11, 2017 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.
Alex45 12 Posted February 11, 2017 Author Posted February 11, 2017 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 )
Alex45 12 Posted February 11, 2017 Author Posted February 11, 2017 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 )
CharleyVarrick 283 Posted February 11, 2017 Posted February 11, 2017 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)
Alex45 12 Posted February 11, 2017 Author Posted February 11, 2017 Hi , excuse me , but how set a topic as close ? Thanks a lot for all yours answer
CharleyVarrick 283 Posted February 11, 2017 Posted February 11, 2017 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?
Happy2Play 9446 Posted February 11, 2017 Posted February 11, 2017 All you should have to do is a library scan.
CharleyVarrick 283 Posted February 11, 2017 Posted February 11, 2017 @@Happy2Play Thanks, I'm drawing a blank, how again do I perform a library(ies) scan?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now