8

acme中文设置

 3 years ago
source link: https://www.zenlife.tk/acme-chinese.md
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

acme中文设置

2014-02-26

我非常喜欢acme,但是它默认是不支持中文的,花了好大力气才弄好,分享一下。

为了正常显示中文字符,首先是字体设置。

启动时使用-f选项是使用字体:

acme -f $PLAN9/font/pelm/song.9.font

自带的字体在font文件夹下。但是默认的字体很丑,而且有些中文还是显示不了的。更好的做法是:

fontsrv & 9 mount `{namespace}'/font' mnt/font

使用fontsrv服务将系统的字体转转换成plan9识别的格式,然后mount到本地目录,然后使用:

acme -f mnt/font/STHeiti/16a/font

这样就可以很好地显示中文了。这个字体是我精心挑选的一个,你也可以自己找找觉得满意的。

中文输入必须改源码。我在g+上问了russ cox,由于devdraw是处理原始的keycode的,导致acme无法支持输入法。osx版本的devdraw是另一个家伙写的,其实russ cox对osx也不熟。我给作者发邮件没鸟我。最后只好自立更生了。

devdraw是plan9port下唯一直接与X通信的程序,其它都是通过协议调用devdraw实现界面的。不过plan9port中的devdraw只实现了协议部分,并没有实现/dev/draw文件接口。

这里下载一个我修改过的版本,用它替换$PLAN9/src/cmd/devdraw重新编译devdraw就可以了。由于我也完全没接触过objective-c和cocoa,写得比较挫,我在自己使用过程中再慢慢改进它吧。have fun!


Recommend

  • 26
    • www.tuicool.com 5 years ago
    • Cache

    poe - acme for cli

    poe My very own acme -inspired terminal text editor. Because everything else is Not Invented Here.

  • 12

    acme-redirect(1) A minimal http daemon that answers acme challenges and redirects everything else to https. A minimal configuration looks like this: # cat /etc/acme-redirect.d/example.com.conf [...

  • 7

    配置 Nginx 正确处理 Webroot 验证 在证书签发过程中 Let's Encrypt 会验证你拥有当前域名,最基本的方式在你的网站根目录创建一个文件,并通过域名在外部进行请求,如能请求到则认为你拥有该网站的控制权。假设你有一个域名 example.com, 验证...

  • 11
    • www.zenlife.tk 3 years ago
    • Cache

    acme--失落的黑魔法

    acme--失落的黑魔法2014-02-15acme,这是一个被世人遗忘了的强大工具,我把它称作失落的黑魔法。它是一个shell/窗口管理系统/编辑器。很难对没有使用过它的人描述清楚它是什么。按russ cox...

  • 4

    用win-acme给windows服务器添加SSL(Let's Encrypt)证书 作者:

  • 177

    解决 acme.sh 自动签发 Let's Encrypt 证书失效 2021.07.30做个技术宅 3 191 今早发现 paugram.com

  • 7

    關於各家 ACME client (或者說 Let's Encrypt client?) 在「Another free CA as an alternative to Let's Encrypt (scotthelme.co.uk)」這邊引用的文章本來在討論又多了一家免費...

  • 15
    • letsencrypt.org 2 years ago
    • Cache

    ACME Client Implementations

    ACME Client Implementations ...

  • 4
    • letsencrypt.org 2 years ago
    • Cache

    ACME 客户端

    Let's Encrypt ACME 客户端 最后更新:2021年9月20日 | 所有文档 Let’s Encrypt 使用 ACME 协议来验证您对给定域名的控制...

  • 4

    Onboarding Your Customers with Let's Encrypt and ACME Oct 9, 2019 • Jacob Hoffman-Andrews If you work at a hosting provider or CDN, ACME’s DNS-01 validation method can make it a lot easier to onboard new customers who have...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK