{"action":"created","issue":{"url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/423","labels_url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/423/comments","events_url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/423/events","html_url":"https://github.com/NatLibFi/Skosmos/issues/423","id":124767120,"number":423,"title":"Search without diacritics does not highlight word with diacritic in autocomplete results","user":{"login":"tfrancart","id":2728945,"avatar_url":"https://avatars.githubusercontent.com/u/2728945?v=3","gravatar_id":"","url":"https://api.github.com/users/tfrancart","html_url":"https://github.com/tfrancart","followers_url":"https://api.github.com/users/tfrancart/followers","following_url":"https://api.github.com/users/tfrancart/following{/other_user}","gists_url":"https://api.github.com/users/tfrancart/gists{/gist_id}","starred_url":"https://api.github.com/users/tfrancart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfrancart/subscriptions","organizations_url":"https://api.github.com/users/tfrancart/orgs","repos_url":"https://api.github.com/users/tfrancart/repos","events_url":"https://api.github.com/users/tfrancart/events{/privacy}","received_events_url":"https://api.github.com/users/tfrancart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NatLibFi/Skosmos/labels/bug","name":"bug","color":"ff4d51"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/NatLibFi/Skosmos/milestones/4","html_url":"https://github.com/NatLibFi/Skosmos/milestones/Blue%20Sky","labels_url":"https://api.github.com/repos/NatLibFi/Skosmos/milestones/4/labels","id":783403,"number":4,"title":"Blue Sky","description":"Issues that are possible ideas for future development, not likely to be worked on soon, if ever.\r\n\r\nSee http://www.ianbicking.org/blog/2014/03/use-github-issues-to-organize-a-project.html","creator":{"login":"osma","id":1132830,"avatar_url":"https://avatars.githubusercontent.com/u/1132830?v=3","gravatar_id":"","url":"https://api.github.com/users/osma","html_url":"https://github.com/osma","followers_url":"https://api.github.com/users/osma/followers","following_url":"https://api.github.com/users/osma/following{/other_user}","gists_url":"https://api.github.com/users/osma/gists{/gist_id}","starred_url":"https://api.github.com/users/osma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osma/subscriptions","organizations_url":"https://api.github.com/users/osma/orgs","repos_url":"https://api.github.com/users/osma/repos","events_url":"https://api.github.com/users/osma/events{/privacy}","received_events_url":"https://api.github.com/users/osma/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":0,"state":"open","created_at":"2014-09-09T11:24:37Z","updated_at":"2016-01-04T14:24:50Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-04T14:20:03Z","updated_at":"2016-01-04T14:29:28Z","closed_at":null,"body":"Hello\r\n\r\nI tried skosmos 1.4 + fuseki-2.4.0-20160102.095717-24. I used the jena-text configuration file template provided in the documentation, with extra parameters for skosmos 1.4, and tried the following text analyzer configuration :\r\n\r\n           text:analyzer [\r\n             a text:ConfigurableAnalyzer ;\r\n             text:tokenizer text:LetterTokenizer ;\r\n             text:filters (text:ASCIIFoldingFilter text:LowerCaseFilter)\r\n           ] \r\n\r\nIt works (nearly) fine, and allows to search inside labels, and without diacritics.\r\nBut when the search - without diacritic - matches a label that contain a diacritic, the corresponding word is not highlighted. See screenshot below where \"Accès à l'éducation\" is matched but not highlighted. This is a minor issue and I can live with it.\r\n\r\nThanks !\r\n\r\n![accented-characters-not-bold](https://cloud.githubusercontent.com/assets/2728945/12091333/9205a8fc-b2f6-11e5-9c82-e1156b032433.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/comments/168691140","html_url":"https://github.com/NatLibFi/Skosmos/issues/423#issuecomment-168691140","issue_url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/423","id":168691140,"user":{"login":"osma","id":1132830,"avatar_url":"https://avatars.githubusercontent.com/u/1132830?v=3","gravatar_id":"","url":"https://api.github.com/users/osma","html_url":"https://github.com/osma","followers_url":"https://api.github.com/users/osma/followers","following_url":"https://api.github.com/users/osma/following{/other_user}","gists_url":"https://api.github.com/users/osma/gists{/gist_id}","starred_url":"https://api.github.com/users/osma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osma/subscriptions","organizations_url":"https://api.github.com/users/osma/orgs","repos_url":"https://api.github.com/users/osma/repos","events_url":"https://api.github.com/users/osma/events{/privacy}","received_events_url":"https://api.github.com/users/osma/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T14:29:28Z","updated_at":"2016-01-04T14:29:28Z","body":"The relevant typeahead.js code is here:\r\nhttps://github.com/twitter/typeahead.js/blob/master/src/typeahead/highlight.js\r\n\r\nThe highlighting is performed by applying a regex on the text. I don't know of any simple way in which accent folding could be incorporated into this mechanism."}}