Skip to content

Commit ea9ce0f

Browse files
committed
eng of hash scrbl
1 parent b2c3c39 commit ea9ce0f

File tree

9 files changed

+189
-263
lines changed

9 files changed

+189
-263
lines changed

mapping/racket/base/hash.rkt

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,80 @@
11
#lang at-exp s-exp "../../../private/mapping-lang.rkt"
22

33

4-
>>> hash 􏿰 @elem{创建@racket[􏾌]}
5-
>>> hashalw 􏾋 @elem{类上,不过键的唯一性是通过@racket[􏾗?]确立的} ; 􏾱􏿰
6-
>>> hasheqv 􏾊 @elem{类上,不过键的唯一性是通过@racket[􏾃?]确立的}; 􏾪􏿰 􏾰􏿰 􏾭 􏾫
7-
>>> hasheq 􏾉 @elem{类上,不过键的唯一性是通过@racket[侗?]确立的}; 􏾯􏿰
8-
9-
>>> hash? 􏿰? @elem{是否是@racket[􏾌]、@racket[􏾋]、@racket[􏾊]、@racket[􏾉]的任一种}
10-
>>> hash-equal? 􏾌? @elem{是否是@racket[􏾌]}
11-
>>> hash-equal-always? 􏾋? @elem{是否是@racket[􏾋]}
12-
>>> hash-eqv? 􏾊? @elem{是否是@racket[􏾊]}
13-
>>> hash-eq? 􏾉? @elem{是否是@racket[􏾉]}
14-
15-
>>> hash-strong? 􏾎? @elem{类上,键是否是被刚性存储的} ; 刚 强
16-
>>> hash-weak? 􏾏? @elem{类上,键是否是被柔性存储的}; 柔
17-
>>> hash-ephemeron? 􏾈? @elem{类上,键的存储是否是采用@racket[􏾧]}
18-
19-
>>> make-hash 􏿰^ @elem{@racket[􏿳]转换成@racket[􏾑]}
20-
>>> make-hashalw 􏾋^ @elem{@racket[􏿳]转换成@racket[􏾑]}
21-
>>> make-hasheqv 􏾊^ @elem{@racket[􏿳]转换成@racket[􏾑]}
22-
>>> make-hasheq 􏾉^ @elem{@racket[􏿳]转换成@racket[􏾑]}
23-
24-
>>> make-immutable-hash 􏾐^ @elem{如上类推}
25-
>>> make-immutable-hashalw 􏾆^ @elem{如上类推}
26-
>>> make-immutable-hasheqv 􏾅^ @elem{如上类推}
27-
>>> make-immutable-hasheq 􏾄^ @elem{如上类推}
28-
29-
>>> make-weak-hash 􏾏^ @elem{如上类推}
30-
>>> make-weak-hashalw 􏾁^ @elem{如上类推}
31-
>>> make-weak-hasheqv 􏾀^ @elem{如上类推}
32-
>>> make-weak-hasheq 􏽿^ @elem{如上类推}
33-
34-
>>> make-ephemeron-hash 􏾈^ @elem{如上类推}
35-
>>> make-ephemeron-hashalw 􏽽^ @elem{如上类推}
36-
>>> make-ephemeron-hasheqv 􏽼^ @elem{如上类推}
37-
>>> make-ephemeron-hasheq 􏽻^ @elem{如上类推}
38-
39-
>>> hash-set 􏿰攸 @elem{以新造数据的方式来修改某“键”对应的“值”}
40-
>>> hash-set* 􏿰攸+ @elem{以新造数据的方式来修改某些“键”所对应的“值”}
41-
>>> hash-update 􏿰攸/入 "类上,区别是入参不同"
42-
>>> hash-set! 􏿰􏾩 @elem{直接修改某“键”对应的“值”}
43-
>>> hash-set*! 􏿰􏾩+ @elem{直接修改某些“键”所对应的“值”}
44-
>>> hash-update! 􏿰􏾩/入 "类上,区别是入参不同"
45-
46-
>>> hash-ref 􏿰弔 @elem{以“键值对”中“阳”位数据为基准,来索引查询“键值对”并返回“阴”位数据(未找到数据则返回默认设置值);} ;􏽚; make new char from merging 􏿰弔 as one
47-
>>> hash-ref-key 􏿰􏽙 @elem{以“键值对”中“阳”位数据为基准,来索引查询“键值对”并返回“阳”位数据;} ;𦙨 􏽙 􏿰弔日
4+
>>> hash 􏿰
5+
>>> hashalw 􏾋 ; 􏾱􏿰
6+
>>> hasheqv 􏾊
7+
>>> hasheq 􏾉
8+
9+
>>> hash? 􏿰?
10+
>>> hash-equal? 􏾌?
11+
>>> hash-equal-always? 􏾋?
12+
>>> hash-eqv? 􏾊?
13+
>>> hash-eq? 􏾉?
14+
15+
>>> hash-strong? 􏾎? ; 刚 强
16+
>>> hash-weak? 􏾏?
17+
>>> hash-ephemeron? 􏾈?
18+
19+
>>> make-hash 􏿰^
20+
>>> make-hashalw 􏾋^
21+
>>> make-hasheqv 􏾊^
22+
>>> make-hasheq 􏾉^
23+
24+
>>> make-immutable-hash 􏾐^
25+
>>> make-immutable-hashalw 􏾆^
26+
>>> make-immutable-hasheqv 􏾅^
27+
>>> make-immutable-hasheq 􏾄^
28+
29+
>>> make-weak-hash 􏾏^
30+
>>> make-weak-hashalw 􏾁^
31+
>>> make-weak-hasheqv 􏾀^
32+
>>> make-weak-hasheq 􏽿^
33+
34+
>>> make-ephemeron-hash 􏾈^
35+
>>> make-ephemeron-hashalw 􏽽^
36+
>>> make-ephemeron-hasheqv 􏽼^
37+
>>> make-ephemeron-hasheq 􏽻^
38+
39+
>>> hash-set 􏿰攸
40+
>>> hash-set* 􏿰攸+ (􏿰攸 +)
41+
>>> hash-update 􏿰攸/入
42+
>>> hash-set! 􏿰􏾩
43+
>>> hash-set*! 􏿰􏾩+ (􏿰􏾩 +)
44+
>>> hash-update! 􏿰􏾩/入
45+
46+
>>> hash-ref 􏿰弔 ;􏽚; make new char from merging 􏿰弔 as one
47+
>>> hash-ref-key 􏿰􏽙 ;𦙨 􏽙 􏿰弔日
4848
;; >>> hash-ref-key 􏿰弔日 @elem{以“键值对”中“阴”位数据为基准,来索引查询“阳”位数据并返回;} ;𦙨
4949

50-
>>> hash-ref! 􏿰𫼛 @elem{以“键值对”中“阳”位数据为基准,来索引查询“键值对”并返回“阴”位数据(未找到数据则直接修改原数据增加新“键值对”);} ;􏿰𫼛 􏿰弔!
51-
>>> hash-has-key? 􏿰日? @elem{是否存在某“键”} ;􏿰日? 􏿰􏺉? 􏿰有?
50+
>>> hash-ref! 􏿰𫼛 ;􏿰𫼛 􏿰弔!
51+
>>> hash-has-key? 􏿰日? ;􏿰日? 􏿰􏺉? 􏿰有?
5252

53-
>>> hash-remove 􏿰􏾘 @elem{以新造数据的方式来删除某“键”和其对应的“值”}
54-
>>> hash-remove! 􏿰􏽘 @elem{直接删除某“键”和其对应的“值”} ; ; 􏿰􏽘 􏿰􏾘!
53+
>>> hash-remove 􏿰􏾘
54+
>>> hash-remove! 􏿰􏽘 ; ; 􏿰􏽘 􏿰􏾘!
5555

56-
>>> hash-clear 􏿰𠛮 @elem{以新造数据的方式来删除全部“键”和其对应的“值”}
57-
>>> hash-clear! 􏿰􏽗 @elem{直接删除全部“键”和其对应的“值”} ;􏽗 􏿰𠛮!
56+
>>> hash-clear 􏿰𠛮
57+
>>> hash-clear! 􏿰􏽗 ;􏽗 􏿰𠛮!
5858

59-
>>> hash-copy-clear 𠛮􏿰 @elem{以删除全部“键”和其对应的“值”的方式新造空数据}
59+
>>> hash-copy-clear 𠛮􏿰
6060

61-
>>> hash-map 􏿰􏺆 @elem{把某一个例程依次作用在各个明(键值对)上,出参是@racket[􏿴]}
62-
>>> hash-map/copy 􏿰佫 @elem{把某一个例程依次作用在各个明(键值对)上}
61+
>>> hash-map 􏿰􏷑化􏿴 (􏿰􏷑 化 􏿴)
62+
>>> hash-map/copy 􏿰􏷑
6363

64-
>>> hash-keys 􏿰􏺈 @elem{返回􏿰中所有键值对的“键”组成的@elem{􏿴}} ;􏿰阳
65-
>>> hash-values 􏿰􏺇 @elem{返回􏿰中所有键值对的“值”组成的@elem{􏿴}} ;􏿰阴
64+
>>> hash-keys 􏿰􏺈 ;􏿰阳
65+
>>> hash-values 􏿰􏺇 ;􏿰阴
6666

6767
>>> hash->list 􏿰化􏿳
6868

69-
>>> hash-keys-subset? 􏿰􏺈仔? @elem{前者是否是后者的@racket[阳]的子集}
70-
>>> hash-for-each 􏿰
69+
>>> hash-keys-subset? 􏿰􏺈?^
70+
>>> hash-for-each 􏿰􏷒
7171
>>> hash-count 􏿰巨
72-
>>> hash-empty? 􏻵? ; 空􏿰 􏿰空
72+
>>> hash-empty? 􏻵?
7373

7474
>>> hash-iterate-first ?􏿰引
7575
>>> hash-iterate-next ?􏿰继引
7676
>>> hash-iterate-key ?􏿰引日
7777
>>> hash-iterate-value ?􏿰引月
7878
>>> hash-iterate-pair ?􏿰引明
7979
>>> hash-iterate-key+value ?􏿰引日月
80-
>>> hash-copy 􏾑化 @elem{将@racket[􏾐]转化为@racket[􏾑]} ; 袭 抄 仿 摹 模 拟 似 抄 􏿰􏽕
80+
>>> hash-copy 􏾑化 ; 袭 抄 仿 摹 模 拟 似 抄 􏿰􏽕

mapping/racket/hash.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#lang at-exp s-exp "../../private/mapping-lang.rkt"
22

33
>>> hash-union 􏿰并 ;􏿰并 􏿰联
4-
>>> hash-union! 􏿰并!
5-
>>> hash-intersect 􏿰交!
4+
>>> hash-union! 􏿰并! (􏿰并 !)
5+
>>> hash-intersect 􏿰交! (􏿰交 !)

private/scribble-styles/css/cangjie.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scribble.rkt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
(provide defmapping defhzify section+elemref section+autotag
55
eleph-note elucidate
6-
means whmeans
6+
stands-for whstands-for same-as-cnchar same-as-cnchar-but
77
modernly-simplifies anciently-simplifies
88
simplf-from
99
modernly-means mingly-resembles
@@ -199,10 +199,14 @@
199199
(define tag (string-join content ""))
200200
(section #:tag tag content))
201201

202-
(define (means . content)
203-
(elem "means" (hspace 1) @(italic content)))
204-
(define (whmeans . content)
205-
(elem "which means" (hspace 1) @(italic content)))
202+
(define (stands-for . content)
203+
(elem "stands for" (hspace 1) @(elucidate content)))
204+
(define (whstands-for . content)
205+
(elem "which stands for" (hspace 1) @(elucidate content)))
206+
(define (same-as-cnchar-but cnchar ori-meaning standing)
207+
(elem "same as Chinese character " @zitools-ref[cnchar] ", which means " @elucidate{@ori-meaning} ", but borrowed to " @stands-for[@standing] " in Ming"))
208+
(define (same-as-cnchar cnchar meaning)
209+
(elem "same as Chinese character" (hspace 1) @zitools-ref[cnchar] ", " @stands-for[@meaning] " in Ming"))
206210

207211
(define (eleph-note . content) ;; 像注, elephant in chinese is wrote as 象, and 像 means like
208212
(margin-note (elem "🐘" (hspace 1) content))) ;; 💡

scribblings/ming-lib/list.scrbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Shorts for @code{(􏷴 (􏷵 LST N) M)}.
148148
@; }
149149

150150
@defproc[(􏿳 [V any?] ...) 􏿳?]{
151-
@defcompost[􏿳 (双 􏿴)]{@means{association list}.}
151+
@defcompost[􏿳 (双 􏿴)]{@stands-for{association list}.}
152152
@eleph-note{@racket[􏿰]}
153153
@examples[#:eval (the-eval)
154154
(􏿳 1 2 3 4 1 5)

scribblings/naming-rules.scrbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@
201201
@elem{The type of input data is list}
202202
@elem{@code{􏹊^ 伄^}}
203203
)
204+
(list
205+
@elem{suffix @bold{@litchar{+}}}
206+
"same type objects as input"
207+
@elem{"more than one same type objects as input" }
208+
@elem{@code{􏿰攸+ 􏿰􏾩+}}
209+
)
204210

205211
(list
206212
@elem{include @bold{@litchar{/}}}

scribblings/racket-lib/equality.scrbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
@title[#:tag "equality"]{同}
1717
@section+elemref{同? 􏷇? 冃? 􏷅?}
18-
@defzi[同]{@means{equal} in Chinese.}
18+
@defzi[同]{@same-as-cnchar["" "equal"].}
1919
@defzi[􏷇]{almost same as @zi[同] other than that @zi[𭕄] implies difference about mutable data.}
2020
@defzi[冃]{the simplification version of @zi[同]. (Do not confuse with @zi[月])}
2121
@defzi[􏷅]{almost same as @zi[冃] other than that @zi[米] implies difference about numbers.}

0 commit comments

Comments
 (0)