{"action":"created","issue":{"url":"https://api.github.com/repos/puiterwijk/trliterator/issues/1","labels_url":"https://api.github.com/repos/puiterwijk/trliterator/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/puiterwijk/trliterator/issues/1/comments","events_url":"https://api.github.com/repos/puiterwijk/trliterator/issues/1/events","html_url":"https://github.com/puiterwijk/trliterator/issues/1","id":92295482,"number":1,"title":"Long-term: autodetect table","user":{"login":"MedicMomcilo","id":7031596,"avatar_url":"https://avatars.githubusercontent.com/u/7031596?v=3","gravatar_id":"","url":"https://api.github.com/users/MedicMomcilo","html_url":"https://github.com/MedicMomcilo","followers_url":"https://api.github.com/users/MedicMomcilo/followers","following_url":"https://api.github.com/users/MedicMomcilo/following{/other_user}","gists_url":"https://api.github.com/users/MedicMomcilo/gists{/gist_id}","starred_url":"https://api.github.com/users/MedicMomcilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MedicMomcilo/subscriptions","organizations_url":"https://api.github.com/users/MedicMomcilo/orgs","repos_url":"https://api.github.com/users/MedicMomcilo/repos","events_url":"https://api.github.com/users/MedicMomcilo/events{/privacy}","received_events_url":"https://api.github.com/users/MedicMomcilo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T07:08:01Z","updated_at":"2015-07-02T14:46:16Z","closed_at":null,"body":"Each table could have header with some basic info. Example\r\n>lang=sr\r\n>info=transliterate all cyrilic serbian letters to latin serbian letters\r\n>a a\r\n>B B\r\n>...\r\n\r\nAnd the trliterator would be able to auto-select table based on .po file that is parsed"},"comment":{"url":"https://api.github.com/repos/puiterwijk/trliterator/issues/comments/118055685","html_url":"https://github.com/puiterwijk/trliterator/issues/1#issuecomment-118055685","issue_url":"https://api.github.com/repos/puiterwijk/trliterator/issues/1","id":118055685,"user":{"login":"bitlord","id":1062681,"avatar_url":"https://avatars.githubusercontent.com/u/1062681?v=3","gravatar_id":"","url":"https://api.github.com/users/bitlord","html_url":"https://github.com/bitlord","followers_url":"https://api.github.com/users/bitlord/followers","following_url":"https://api.github.com/users/bitlord/following{/other_user}","gists_url":"https://api.github.com/users/bitlord/gists{/gist_id}","starred_url":"https://api.github.com/users/bitlord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitlord/subscriptions","organizations_url":"https://api.github.com/users/bitlord/orgs","repos_url":"https://api.github.com/users/bitlord/repos","events_url":"https://api.github.com/users/bitlord/events{/privacy}","received_events_url":"https://api.github.com/users/bitlord/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T14:46:15Z","updated_at":"2015-07-02T14:46:15Z","body":"\r\n>Each table could have header with some basic info. Example\r\n>\r\n>   lang=sr\r\n>    info=transliterate all cyrilic serbian letters to latin serbian letters\r\n>    a a\r\n>    B B\r\n>    ...\r\n>\r\n>And the trliterator would be able to auto-select table based on .po file that is parsed\r\n>\r\n\r\nAutodetection would be nice, I was thinking about few solutions for table files and how to handle selection, autodetection is probably the most elegant way of doing it for the user. \r\nFor table files I would like to leave them as clean as possible (not sure what can come later with other language support. Also table metadata can be useful, like **info=** you provided), so adding extra data in it is maybe not needed, but just using the file naming scheme, for which I still don't have right solution.  \r\n\r\nFor storing tables I think **tables/** is ok, with every table in separate file with possible file naming scheme (including standardized language code in the name (**sr_<something>** /  **sr_cyr2lat**) ) \r\n\r\nFor selecting languages \r\n* Autodetection (based on **.po** files \"metadata\" I guess)  (This is probably the best option, or should be default (if possible) with other/s described as **fallback**)\r\n* cmdline opts **--inscr \\<lang/script_code\\>  --outscr \\<lang/script_code\\>**\r\n* for people doing localization/translation they mostly use one language (config file **~/.trltr or ~/.config/.trltr**)\r\n* using **'table'** as a default (currently used) but looking for it in **'./tables/table'** where **'table'** is a symlink to the table you want to use\r\n\r\nThis is not final, just ideas, every comment/suggestion is welcome!\r\n\r\nbtw. I'm not very good with the theory how things work with languages, translation, ... if I don't understand the topic, please try to point me to good documentation/article where I can read and learn about it ;-)  \r\n"}}