{"action":"created","issue":{"url":"https://api.github.com/repos/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/issues/429","repository_url":"https://api.github.com/repos/aivivn/Machine-Learning-Yearning-Vietnamese-Translation","labels_url":"https://api.github.com/repos/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/issues/429/labels{/name}","comments_url":"https://api.github.com/repos/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/issues/429/comments","events_url":"https://api.github.com/repos/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/issues/429/events","html_url":"https://github.com/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/pull/429","id":534583114,"node_id":"MDExOlB1bGxSZXF1ZXN0MzUwNDQyMDUz","number":429,"title":"Sửa file run.py và add file pdf_converter.py để tự động convert sang pdf","user":{"login":"quangnhat185","id":41325216,"node_id":"MDQ6VXNlcjQxMzI1MjE2","avatar_url":"https://avatars2.githubusercontent.com/u/41325216?v=4","gravatar_id":"","url":"https://api.github.com/users/quangnhat185","html_url":"https://github.com/quangnhat185","followers_url":"https://api.github.com/users/quangnhat185/followers","following_url":"https://api.github.com/users/quangnhat185/following{/other_user}","gists_url":"https://api.github.com/users/quangnhat185/gists{/gist_id}","starred_url":"https://api.github.com/users/quangnhat185/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quangnhat185/subscriptions","organizations_url":"https://api.github.com/users/quangnhat185/orgs","repos_url":"https://api.github.com/users/quangnhat185/repos","events_url":"https://api.github.com/users/quangnhat185/events{/privacy}","received_events_url":"https://api.github.com/users/quangnhat185/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2019-12-08T18:47:50Z","updated_at":"2019-12-12T08:58:37Z","closed_at":"2019-12-12T07:45:29Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/pulls/429","html_url":"https://github.com/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/pull/429","diff_url":"https://github.com/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/pull/429.diff","patch_url":"https://github.com/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/pull/429.patch"},"body":"Hi a @tiepvupsu, sau khỉ dành cả ngày CN mày mò em đã tìm ra cách convert tự động 2 file all_chapters.md và all_chapters_vietnamese_only.md sang pdf mà vẫn giữ được link subsection, font gốc và có pagebreak. Bây giờ chỉ cần chạy fie run.py  thì file pdf sẽ tự động cập nhật. \r\n\r\nEm có sửa file run.py để chỉnh phần hyperlink của file all_chapters.md và all_chapters_vietnamese_only.md nhằm tránh lỗi font Tiếng Việt dẫn đến việc không nhấp được link trong file pdf. \r\n\r\nĐể chạy được file run.py thì các cần install thêm các packages là:\r\n\r\n- [grip](https://pypi.org/project/grip/)\r\n- [pdfkit](https://pypi.org/project/pdfkit/)\r\n- [wkhtmlpdf](https://pypi.org/project/wkhtmltopdf/) (Riêng cái này nếu muốn chạy trên Windows phải download và install file .exe ở  [đây](https://wkhtmltopdf.org/downloads.html) và sử dụng config_path trong trong file pdf_converter.py . Nếu sử dụng Linux thì chỉ cần pip install là đủ)\r\n\r\n#376 "},"comment":{"url":"https://api.github.com/repos/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/issues/comments/564912738","html_url":"https://github.com/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/pull/429#issuecomment-564912738","issue_url":"https://api.github.com/repos/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/issues/429","id":564912738,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NDkxMjczOA==","user":{"login":"quangnhat185","id":41325216,"node_id":"MDQ6VXNlcjQxMzI1MjE2","avatar_url":"https://avatars2.githubusercontent.com/u/41325216?v=4","gravatar_id":"","url":"https://api.github.com/users/quangnhat185","html_url":"https://github.com/quangnhat185","followers_url":"https://api.github.com/users/quangnhat185/followers","following_url":"https://api.github.com/users/quangnhat185/following{/other_user}","gists_url":"https://api.github.com/users/quangnhat185/gists{/gist_id}","starred_url":"https://api.github.com/users/quangnhat185/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quangnhat185/subscriptions","organizations_url":"https://api.github.com/users/quangnhat185/orgs","repos_url":"https://api.github.com/users/quangnhat185/repos","events_url":"https://api.github.com/users/quangnhat185/events{/privacy}","received_events_url":"https://api.github.com/users/quangnhat185/received_events","type":"User","site_admin":false},"created_at":"2019-12-12T08:58:37Z","updated_at":"2019-12-12T08:58:37Z","author_association":"CONTRIBUTOR","body":"> @quangnhat185 join [slack của D2L](https://docs.google.com/forms/d/e/1FAIpQLScYforPRBn0oDhqSV_zTpzkxCAf0F7Cke13QS2tqXrJ8LxisQ/viewform?usp=sf_link) chưa em? Accept rồi có gì anh vào Slack hú.\r\n\r\nEm ở trong nhóm Slack rồi cơ mà chưa quen xài platform này lắm :sweat_smile: , nhưng mà có gì a cứ nhắn tin em ạ\r\n\r\n> @quangnhat185 anh chạy code báo lỗi không thấy file `chapters/all_chatpers.html`.\r\n> \r\n> Em dùng grip để export file html ở line này https://github.com/aivivn/Machine-Learning-Yearning-Vietnamese-Translation/pull/429/files#diff-3291928bf5dc1b7d236c75f3ca0a712aR76-R77. Anh thử kiểm tra lại xem grip trên máy anh có hoạt động bình thường không, cú pháp để convert từ markdown sang html trên terminal là `grip ./chapters/all_chapters.md --export ./chapters/all_chapters.html `.\r\n\r\n"}}
{"actor":{"display_login":"quangnhat185"}}