Results 590 comments of Xuan Wu

主要原因是,这个库没有任何分词功能(请见 readme)。因而繁体句子中一旦出现“乾”字,转为简体都会变为“干”。即使将“乾宁”和“乾道“写入内置字典,由于不分词,也不能正确转换。 一个取巧的办法,就是用户自定义一个字典,把比如“乾宁”和“乾道“写入词典,转换时,先检查句子中有没有词典中的词,如果有的话,就只用这个库转换其他部分,保留此词不变。

是的。不过,个人短期内恐怕难以完成(个人原因)。如果实现了的话,可否分享下代码?

@zenglian 刚写了个辅助方法,思路大致和[之前所述](https://github.com/program-in-chinese/zhconverter/issues/3#issuecomment-570026043)相同:https://github.com/program-in-chinese/zhconverter/blob/c3b0a369dc707717e25799d769038350eaef0a89/test/com/github/nobodxbodon/zhconverter/%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%8D%E5%85%B8%E6%B5%8B%E8%AF%95%E7%B1%BB.java#L86 已通过之前的两个用例: https://github.com/program-in-chinese/zhconverter/blob/c3b0a369dc707717e25799d769038350eaef0a89/test/com/github/nobodxbodon/zhconverter/%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%8D%E5%85%B8%E6%B5%8B%E8%AF%95%E7%B1%BB.java#L82 希望有所帮助。

如果是古诗词的话,一首中应该重复出现某词的情况应该极少吧?上面代码仅作参考,请自行按需修改?

测试环境: 插件v0.0.11; ms-python.python 2019.1.0 **Python** https://github.com/OCA/vertical-medical/blob/7ae22f05b55339c3faa198e6ddc766b0d91f6564/medical_disease/models/medical_patient_disease.py ```python # -*- coding: utf-8 -*- ############################################################################### # # Copyright 2008 Luis Falcon # # This program is free software: you can redistribute it...

**Java** vscjava.vscode-java-pack 0.6.0 https://github.com/Sunny-Nishan/HealthAnalytics/blob/ed194f08499c9cb791569dbce8eaa9c81dcea78e/src/com/spring/controller/DiseaseController.java ```java package com.spring.controller; import java.util.List; import javax.servlet.http.HttpSession; import org.jboss.logging.annotations.Param; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; import com.spring.DAO.DiseaseDAO; import com.spring.VO.CountryVO; import...

**PHP** `felixfbecker.php-pack` 1.0.2 ```php

JavaScript vsc内置语言支持 https://github.com/YouSour/dental_sengRatha/blob/d2623bb49a872a646892b54a11bb13b34b650cb7/dental/client/templates/diseaseItem/diseaseItem.js ```javascript /** * Index */ Template.dental_diseaseItem.onRendered(function() { // Create new alertify createNewAlertify(["diseaseItem", 'diseaseCategory']); }); Template.dental_diseaseItem.events({ 'click .insert': function(e, t) { alertify.diseaseItem(fa("plus", "Disease Item"), renderTemplate( Template.dental_diseaseItemInsert)).maximize(); }, 'click...

看不到截图。请问是何系统、vscode版本等?在mac下vscode1.86.2测是有悬浮的:

在win7下vsc1.70.3测试,悬浮窗有效。