sitelen-seli-kiwen #12
@@ -3,7 +3,7 @@
|
|||||||
let cfg = config.sydnix.toki-pona;
|
let cfg = config.sydnix.toki-pona;
|
||||||
in {
|
in {
|
||||||
options.sydnix.toki-pona = {
|
options.sydnix.toki-pona = {
|
||||||
enable = lib.mkEnableOption "Toki Pona fonts and input methods";
|
enable = lib.mkEnableOption "Toki Pona fonts";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@@ -11,6 +11,7 @@ in {
|
|||||||
# nasin-nanpa-ucsur
|
# nasin-nanpa-ucsur
|
||||||
nasin-nanpa
|
nasin-nanpa
|
||||||
nasin-nanpa-helvetica
|
nasin-nanpa-helvetica
|
||||||
|
sitelen-seli-kiwen
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,15 +12,21 @@
|
|||||||
(font-spec :family "JuliaMono" :size 16)
|
(font-spec :family "JuliaMono" :size 16)
|
||||||
"A monospace font secondary to `syd-fixed-pitch-font'.")
|
"A monospace font secondary to `syd-fixed-pitch-font'.")
|
||||||
|
|
||||||
|
(defvar syd-sitelen-pona-font
|
||||||
|
(font-spec :family "sitelen seli kiwen mono juniko"))
|
||||||
|
|
||||||
(defun syd-init-fonts-h ()
|
(defun syd-init-fonts-h ()
|
||||||
"Loads `syd-fixed-pitch-font' and `syd-variable-pitch-font'."
|
"Loads `syd-fixed-pitch-font' and `syd-variable-pitch-font'."
|
||||||
(dolist (map `((default . ,syd-fixed-pitch-font)
|
(dolist (map `((default . ,syd-fixed-pitch-font)
|
||||||
(fixed-pitch . ,syd-fixed-pitch-font)
|
(fixed-pitch . ,syd-fixed-pitch-font)
|
||||||
(variable-pitch . ,syd-variable-pitch-font)))
|
(variable-pitch . ,syd-variable-pitch-font)))
|
||||||
(pcase-let ((`(,face . ,font) map))
|
(pcase-let ((`(,face . ,font) map))
|
||||||
(set-face-attribute face nil
|
(set-face-attribute face nil
|
||||||
:width 'normal :weight 'normal
|
:width 'normal :weight 'normal
|
||||||
:slant 'normal :font font))))
|
:slant 'normal :font font)))
|
||||||
|
(set-fontset-font
|
||||||
|
t '(#xF1900 . #xF19FF)
|
||||||
|
syd-sitelen-pona-font))
|
||||||
|
|
||||||
(let ((hook-point (if (daemonp)
|
(let ((hook-point (if (daemonp)
|
||||||
'server-after-make-frame-hook
|
'server-after-make-frame-hook
|
||||||
|
|||||||
@@ -5,22 +5,28 @@
|
|||||||
(use-package ligature
|
(use-package ligature
|
||||||
:config
|
:config
|
||||||
(ligature-set-ligatures 'prog-mode
|
(ligature-set-ligatures 'prog-mode
|
||||||
'("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||="
|
'("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||="
|
||||||
"||>" ":::" "::=" "=:=" "===" "==>" "=!=" "=>>"
|
"||>" ":::" "::=" "=:=" "===" "==>" "=!=" "=>>"
|
||||||
"=<<" "=/=" "!==" "!!." ">=>" ">>=" ">>>" ">>-"
|
"=<<" "=/=" "!==" "!!." ">=>" ">>=" ">>>" ">>-"
|
||||||
">->" "->>" "-->" "---" "-<<" "<~~" "<~>" "<*>"
|
">->" "->>" "-->" "---" "-<<" "<~~" "<~>" "<*>"
|
||||||
"<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->" "<--"
|
"<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->" "<--"
|
||||||
"<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_("
|
"<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_("
|
||||||
"..<" "..." "+++" "/==" "///" "_|_" "www" "&&" "^="
|
"..<" "..." "+++" "/==" "///" "_|_" "www" "&&" "^="
|
||||||
"~~" "~@" "~=" "~>" "~-" "**" "*>" "*/" "||" "|}"
|
"~~" "~@" "~=" "~>" "~-" "**" "*>" "*/" "||" "|}"
|
||||||
"|]" "|=" "|>" "|-" "{|" "[|" "]#" "::" ":=" ":>"
|
"|]" "|=" "|>" "|-" "{|" "[|" "]#" "::" ":=" ":>"
|
||||||
":<" "$>" "==" "=>" "!=" "!!" ">:" ">=" ">>" ">-"
|
":<" "$>" "==" "=>" "!=" "!!" ">:" ">=" ">>" ">-"
|
||||||
"-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:" "<$"
|
"-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:" "<$"
|
||||||
"<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#="
|
"<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#="
|
||||||
"#!" "##" "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?"
|
"#!" "##" "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?"
|
||||||
"+>" "++" "?:" "?=" "?." "??" ";;" ";;;"
|
"+>" "++" "?:" "?=" "?." "??" ";;" ";;;"
|
||||||
"/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
|
"/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
|
||||||
"\\\\" "://"))
|
"\\\\" "://"))
|
||||||
|
;; Sitelen pona glyphs.
|
||||||
|
(rx-let ((ideograph (any (#xF1900 . #xF198C))))
|
||||||
|
(ligature-set-ligatures
|
||||||
|
'fundamental-mode
|
||||||
|
`(("" ,(rx (* ideograph)))
|
||||||
|
("" ,(rx "" (* ideograph))))))
|
||||||
(global-ligature-mode 1))
|
(global-ligature-mode 1))
|
||||||
|
|
||||||
(provide 'syd/ligature)
|
(provide 'syd/ligature)
|
||||||
|
|||||||
Reference in New Issue
Block a user