Coder Social home page Coder Social logo

Comments (18)

tumashu avatar tumashu commented on July 19, 2024

你的字体设置可能有问题,中英文不能对齐。。。

from pyim.

tumashu avatar tumashu commented on July 19, 2024

https://github.com/tumashu/chinese-fonts-setup 可以试试这个

from pyim.

et2010 avatar et2010 commented on July 19, 2024

这个问题对我还真是无解,在org中我故意将除了table还有block之外的英文字体都设成variable-pitch(变宽)。这种情况大神有办法吗?

from pyim.

tumashu avatar tumashu commented on July 19, 2024

可能的方法

  1. 选词框背景设置为黑色
  2. 禁用选词框
  3. 选词框不显示拼音

from pyim.

et2010 avatar et2010 commented on July 19, 2024

可能设置选词框内英文字体的face吗?比如让选词框使用fixed-pitch,正文使用variable-pitch?应该不难实现吧?

from pyim.

tumashu avatar tumashu commented on July 19, 2024

也许吧,不过不知道什么效果,你可以设置popup-tip的face试试,我试过,不过没成功,你可以再试试

from pyim.

et2010 avatar et2010 commented on July 19, 2024

确实没成功,正在找原因

from pyim.

tumashu avatar tumashu commented on July 19, 2024

一个最简单的方法是让拼音和词条在一行显示

from pyim.

et2010 avatar et2010 commented on July 19, 2024

但是把popup-tip-face设为英文等宽字体后确实改善了很多,现在只出现轻微的偏移,并且偏移量不会改变。只是不知道这一个空格的偏移量是什么造成的。

issue

from pyim.

et2010 avatar et2010 commented on July 19, 2024

不过这种效果已经能接受了,拼音和词条在一行还是不太习惯

from pyim.

et2010 avatar et2010 commented on July 19, 2024

我又试验了一下,这样设置应该是可以的,偏移量有时会出现。估计和我用了pangu-spacing也有关系。

  (set-face-attribute 'popup-tip-face nil :font
                      (format   "%s:pixelsize=%d"  "Source Code Pro" 14))

这是英文字体设置,中文用任意像素高为16的字体就可以

from pyim.

et2010 avatar et2010 commented on July 19, 2024

sorry,我可能高兴的太早了。问题依旧

from pyim.

et2010 avatar et2010 commented on July 19, 2024

我已经又换回pos-tip了,:sweat_smile:

from pyim.

et2010 avatar et2010 commented on July 19, 2024

怎样将拼音和词条放在同一行?我没有找到相关的设置选项。

from pyim.

tumashu avatar tumashu commented on July 19, 2024

这个功能我没添加呢。。。

from pyim.

et2010 avatar et2010 commented on July 19, 2024

算了,这个功能不添加也罢。估计有这种特殊需求的人不多。我也准备换linux虚拟机了,因为我发现pos-tip还是快些。

from pyim.

tumashu avatar tumashu commented on July 19, 2024

pos-tip 使用 gtk时最好用

from pyim.

tumashu avatar tumashu commented on July 19, 2024

@laiyilong @et2010 我已经添加了单行显示样式,你可以试试

;; Chinese-pyim 的 tooltip 选词框默认使用 *双行显示* 的样式,在一些特
;; 殊的情况下(比如:popup 显示的菜单错位),用户可以使用 *单行显示*
;; 的样式:

;; #+BEGIN_EXAMPLE
;; (setq pyim-guidance-format-function 'pyim-guidance-format-function-one-line)
;; #+END_EXAMPLE

;; 注:用户也可以自定义 guidance 格式化函数。

from pyim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.