{"id":17451104,"url":"https://github.com/yyt6801/dict","last_synced_at":"2025-04-19T15:30:13.248Z","repository":{"id":41549568,"uuid":"230051605","full_name":"yyt6801/Dict","owner":"yyt6801","description":"《牛津英汉词典》 单词翻译，英译汉、词典; 借用文本词典实现查词翻译功能,学习练手的好项目. Dictionary Translation  ","archived":false,"fork":false,"pushed_at":"2020-01-07T03:47:46.000Z","size":6733,"stargazers_count":45,"open_issues_count":2,"forks_count":23,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T09:22:55.481Z","etag":null,"topics":["api","dict","dictionary","dictionary-learning","dll","http-server","log-server","python3","requests","socket","translation"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yyt6801.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-25T06:13:41.000Z","updated_at":"2025-03-28T08:53:42.000Z","dependencies_parsed_at":"2022-07-08T00:18:38.220Z","dependency_job_id":null,"html_url":"https://github.com/yyt6801/Dict","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyt6801%2FDict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyt6801%2FDict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyt6801%2FDict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyt6801%2FDict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yyt6801","download_url":"https://codeload.github.com/yyt6801/Dict/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249220841,"owners_count":21232421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","dict","dictionary","dictionary-learning","dll","http-server","log-server","python3","requests","socket","translation"],"created_at":"2024-10-17T22:42:50.015Z","updated_at":"2025-04-16T08:32:58.139Z","avatar_url":"https://github.com/yyt6801.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dict\n《牛津英汉词典》 查词，输入英文单词，可翻译对应的音标,翻译,词组和例句\n借用文本词典实现查词翻译功能，学习练手的好项目\n## 功能：  翻译、HttpServer、日志保存\n\nhttp_Server1.exe 可以接收前端或其他http get请求：\n#### 请求示例：http://127.0.0.1:9090/api/word=like   \n#### 返回示例： / lUk; lJk/ v 1 [I, Ipr, Ip] ~ (at sb/sth) turn one's eyes in a particular direction (in order to see sb/sth) 看; 瞧; 望: If you look carefully you can just see the church from here. 你仔细看的话, 可以从这里看到那座教堂. * We looked but saw nothing. 我们看了...\n\n\n-------------------\n### 功能说明：\n##### 1.后台C/C++ 实现在词典文本查词功能，涉及文件夹遍历，字符串拼接、处理、查找等；\n##### 2.C/C++实现API接口，可接受HTTP请求，并对请求解析，涉及SOCKET通讯；\n##### 3.调用dll动态链接库，实现数据传入和数据输出(test_dll.dll为功能实现的核心部分，为方便调用编译为动态链接库)  \n    当查不到对应的词时，返回 cannot translate this words!\n##### 4.新增TCP_socket_server.py： 用python实现的http服务端，监听9091端口，接收http_Server1发送来的请求和内容并保存为本地日志；  \n    把日志保存到本地，保存到本地的test.txt文档，保存请求时间，请求ip，请求url，请求的word，查询结果\n\n------------------------\n### 文件说明：\n##### DICT文件夹：   《牛津英汉词典》txt文本字典；\n##### http_Server1.exe：   HTTPServer，监听9090端口，并对请求参数进行解析；调用dll；返回结果；发送日志给日志服务Server(python);\n##### TCP_socket_server.py:   新增python实现的HTTPServer,用作日志服务器，记录http_Server1的请求日志；\n##### test_dll.dll：   实现查词功能的动态链接库，接收要查的单词，返回该单词的完整翻译；\n\n-------------------------\n### HOW TO USE\n##### 1.编译http_Server1,建议vs环境\n##### 2.编译test_dll为test_dll.dll,建议vs环境，若需在其他环境运行需设置 `Use MFC in a Static Library`\n##### 3.运行http_Server1.exe,开始测试...\n\n\n--------------------------\n### TO DO\n##### 1.做一个前端，输入需要查询的单词，可显示出翻译的结果。输入框+查询按钮；ajax发送请求+返回结果显示","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyyt6801%2Fdict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyyt6801%2Fdict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyyt6801%2Fdict/lists"}