Commit graph

21 commits

Author SHA1 Message Date
Henrik Lissner
6edd4a3348
perf(chinese): lazy load liberime
Close: #7856
Co-authored-by: merrickluo <merrickluo@users.noreply.github.com>
2024-06-03 16:22:09 -04:00
liuzhishan
43467ba4b9
fix(chinese): void-function pyim-cregexp-ivy error 2023-09-07 20:19:44 +02:00
GuangTao Zhang
778f849450
fix(chinese): update pyim-cregexp-build func
Pyim has replaced `pyim-cregexp-build-regexp-string` with `pyim-cregexp-build`.

Ref: tumashu/pyim#468
2023-02-23 22:51:28 -05:00
Henrik Lissner
5d69d48943
feat(chinese): add +childframe for pyim candidates
Close: #6482
Co-authored-by: merrickluo <merrickluo@users.noreply.github.com>
2023-02-23 02:34:11 -05:00
Henrik Lissner
4594aaa7cd
fix(chinese): evil-escape interfering w/ input method
Close: #6482
Co-authored-by: merrickluo <merrickluo@users.noreply.github.com>
2023-02-23 02:33:37 -05:00
Henrik Lissner
8658145447
feat(chinese): add evil-pinyin
Ref: #6356
Close: #6482
Co-authored-by: merrickluo <merrickluo@users.noreply.github.com>
2023-02-23 02:33:32 -05:00
Henrik Lissner
051c31109f
feat(chinese): search anything with pinyin
- Advise orderless to use pyim-cregexp-build when using vertico
- Add it to ivy-re-builders-alist when using ivy

Close: #6482
Co-authored-by: merrickluo <merrickluo@users.noreply.github.com>
2023-02-23 02:28:38 -05:00
Henrik Lissner
b2cdacf457
feat(chinese): add +rime
Allows pyim users to select rime as a backend.

Close: #6482
Co-authored-by: merrickluo <merrickluo@users.noreply.github.com>
2023-02-23 02:25:01 -05:00
Henrik Lissner
ffbd7b63bf
Fix #3654: prevent org-export-to-html removing line-breaks
When either :input chinese or :input japanese is enabled, due to
overzealous advice.
2020-08-02 01:33:51 -04:00
Henrik Lissner
e567cc56f2
Support fcitx5
Closes #3574

Co-authored-by: BenYip <yebenmy@protonmail.com>
2020-07-17 19:40:19 -04:00
Henrik Lissner
06d5d5e6c0
General refactors, reformatting & comment revision 2020-04-23 23:56:17 -04:00
Sunn Yao
8f061eb6b8 input/{chinese,japanese}: fix org-html-paragraph advice 2019-09-02 00:48:33 -04:00
Henrik Lissner
ef4424bda6
input/{chinese,japanese}: fix org-html advice regexp #1649 2019-08-07 23:36:21 -04:00
Henrik Lissner
b2aec5f546
input/{chinese,japanese}: fix #1649 2019-08-07 17:07:36 -04:00
Henrik Lissner
82ae3a73f3
def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
d5646d2b88
input/{japanese,chinese}: conform to new conventions 2019-07-23 00:01:59 +02:00
Henrik Lissner
51d3b1b424
💥 revise advice naming convention (1/2)
This is first of three big naming convention updates that have been a
long time coming. With 2.1 on the horizon, all the breaking updates will
batched together in preparation for the long haul.

In this commit, we do away with the asterix to communicate that a
function is an advice function, and we replace it with the '-a' suffix.
e.g.

  doom*shut-up -> doom-shut-up-a
  doom*recenter -> doom-recenter-a
  +evil*static-reindent -> +evil--static-reindent-a

The rationale behind this change is:

1. Elisp's own formatting/indenting tools would occasionally struggle
   with | and * (particularly pp and cl-prettyprint). They have no
   problem with / and :, fortunately.
2. External syntax highlighters (like pygmentize, discord markdown or
   github markdown) struggle with it, sometimes refusing to highlight
   code beyond these symbols.
3. * and | are less expressive than - and -- in communicating the
   intended visibility, versatility and stability of a function.
4. It complicated the regexps we must use to search for them.
5. They were arbitrary and over-complicated to begin with, decided
   on haphazardly way back when Doom was simply "my private config".

Anyhow, like how predicate functions have the -p suffix, we'll adopt the
-a suffix for advice functions, -h for hook functions and -fn for
variable functions.

Other noteable changes:
- Replaces advice-{add,remove}! macro with new def-advice!
  macro. The old pair weren't as useful. The new def-advice! saves on a
  lot of space.
- Removed "stage" assertions to make sure you were using the right
  macros in the right place. Turned out to not be necessary, we'll
  employ better checks later.
2019-07-22 02:27:45 +02:00
Henrik Lissner
7c05662d91
input/chinese: lazy load pyim & pangu-spacing
And refactor how fcitx & ace-pinyin load.
2019-05-21 22:19:31 -04:00
Henrik Lissner
2f0c56f705
input/chinese: remove chinese-wbim
See fadbfb321f (commitcomment-33512172)
2019-05-13 14:40:10 -04:00
Henrik Lissner
fadbfb321f
Add :input chinese module #1371 2019-05-13 00:57:59 -04:00