{"action":"created","issue":{"url":"https://api.github.com/repos/retorquere/zotero-better-bibtex/issues/483","repository_url":"https://api.github.com/repos/retorquere/zotero-better-bibtex","labels_url":"https://api.github.com/repos/retorquere/zotero-better-bibtex/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/retorquere/zotero-better-bibtex/issues/483/comments","events_url":"https://api.github.com/repos/retorquere/zotero-better-bibtex/issues/483/events","html_url":"https://github.com/retorquere/zotero-better-bibtex/issues/483","id":150406775,"number":483,"title":"[Juris-m] citekeys","user":{"login":"duncdrum","id":6205362,"avatar_url":"https://avatars.githubusercontent.com/u/6205362?v=3","gravatar_id":"","url":"https://api.github.com/users/duncdrum","html_url":"https://github.com/duncdrum","followers_url":"https://api.github.com/users/duncdrum/followers","following_url":"https://api.github.com/users/duncdrum/following{/other_user}","gists_url":"https://api.github.com/users/duncdrum/gists{/gist_id}","starred_url":"https://api.github.com/users/duncdrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncdrum/subscriptions","organizations_url":"https://api.github.com/users/duncdrum/orgs","repos_url":"https://api.github.com/users/duncdrum/repos","events_url":"https://api.github.com/users/duncdrum/events{/privacy}","received_events_url":"https://api.github.com/users/duncdrum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-04-22T15:53:16Z","updated_at":"2016-05-02T07:40:10Z","closed_at":null,"body":"autogenerated cite keys are a pain when used in documents not written in english. Defaulting to ``__XXXX`` where \"xxxx\" is the year, and non-latin characters aren't processed. \r\n![screenshot 2016-04-21 20 34 56](https://cloud.githubusercontent.com/assets/6205362/14720210/a6dc8a7a-0800-11e6-96ae-001e854ef747.png)\r\n\r\nThere are two options that relate to juris-m. \r\nA. When producing a mono-lingual document, e.g. a chinese text citing chinese sources.\r\n\r\n1. with force ascii disabled the cite key should look like this ```名字－題名－2001```. Just take the unicode from author and title field and put it in the corresponding spots.  \r\n3. Currently it fails to output anything from either author or title field, only date/year works since they use latin numerals (but that will not always be the case).\r\n\r\nB.  Producing multi-lingual document, e.g. using CJK references in a german text.\r\n\r\n1. BBT would ideally check for primary language of each record, and that of the juris-m primary language setting. If non-latin records appear in a latin primary language  the transliteration field with a latin character language id should be used to generate citekey ```hanzi_timing_2001```. (which could be ascii'd or not depending on force ascii setting, so ```é -> e, ö -> o```)\r\n2. currently it doesn't check the language variant fields for author or title at all, it outputs the language id of each record, but i don't think it is aware of the juris-m primary language setting. resulting in a nondescript string. \r\n\r\nI should note that i have no experience with producing primarily russian, japanse, … latex documents, but i m sure that there are more detailed requirements for working biblatex files among users from these languages. I think the trick is to use the language fields to decide what bbt should do. These aren't often used in regular zotero , but are relevant in juris-m. Guessing the script based on unicode-range is another way, but is likely to lead to trouble since script is not enough to determine language. "},"comment":{"url":"https://api.github.com/repos/retorquere/zotero-better-bibtex/issues/comments/216124284","html_url":"https://github.com/retorquere/zotero-better-bibtex/issues/483#issuecomment-216124284","issue_url":"https://api.github.com/repos/retorquere/zotero-better-bibtex/issues/483","id":216124284,"user":{"login":"duncdrum","id":6205362,"avatar_url":"https://avatars.githubusercontent.com/u/6205362?v=3","gravatar_id":"","url":"https://api.github.com/users/duncdrum","html_url":"https://github.com/duncdrum","followers_url":"https://api.github.com/users/duncdrum/followers","following_url":"https://api.github.com/users/duncdrum/following{/other_user}","gists_url":"https://api.github.com/users/duncdrum/gists{/gist_id}","starred_url":"https://api.github.com/users/duncdrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncdrum/subscriptions","organizations_url":"https://api.github.com/users/duncdrum/orgs","repos_url":"https://api.github.com/users/duncdrum/repos","events_url":"https://api.github.com/users/duncdrum/events{/privacy}","received_events_url":"https://api.github.com/users/duncdrum/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T07:40:10Z","updated_at":"2016-05-02T07:40:10Z","body":"@retorquere bbt-error: 9I9GTW66\r\nIn juris-m Title, Editor, Publisher, and Place all have an additional field for pinyin (zh-alac) transcription, that is not exported into any bbt or zotero format via right-click -> export. See the citation.\r\n```\r\nYang Bojun, 楊伯峻, ed. Chunqiu Zuozhuan Zhu, 春秋左傳注. 4 vols. Revised Edition. Beijing, 北京: Zhonghua shuju, 中华书局, 2000.\r\n```\r\nthe citekey should be something to the effects of:\r\n```\r\n楊伯峻_春秋左傳注_2000\r\n```\r\n\r\nfor non latin script users, or\r\n```\r\nYang_ ChunqiuZuozhuan_2000\r\n```\r\nfor a romanised version"}}