mirror of
https://github.com/KanjiVG/kanjivg.git
synced 2026-03-12 03:13:07 +01:00
Merge branch 'master' into kanjis_simplification
This commit is contained in:
@@ -28,12 +28,12 @@ See http://creativecommons.org/licenses/by-sa/3.0/ for more details. -->
|
||||
</g>
|
||||
<g id="StrokeNumbers" style="font-size:8;fill:#808080">
|
||||
<text transform="matrix(1 0 0 1 14.25 16.1299)">1</text>
|
||||
<text transform="matrix(1 0 0 1 7.75 49.0547)">2</text>
|
||||
<text x="3.75" y="49.054699">2</text>
|
||||
<text transform="matrix(1 0 0 1 8.25 82.9785)">3</text>
|
||||
</g>
|
||||
<g id="StrokePaths" style="fill:none;stroke:#404040;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;">
|
||||
<path d="M21.46,16c3.63,1.74,9.38,7.17,10.29,9.88"/>
|
||||
<path d="M14.75,47.5c2.25,1,3.75,0.5,4.75,0.25s8-3.5,9.5-4s3.75,1.25,2.75,2.75s-4,7.25-4.75,8.5s-0.5,3.5,1,5.25s2.75,3.75,3.5,5.25s0.75,2.75-0.75,4s-9,8.25-10.5,8.75"/>
|
||||
<path d="M16,79.75c3-0.5,9-1.75,13.5-0.75s30.07,7.71,34.5,9c12,3.5,21.25,4.5,30.25,2.75"/>
|
||||
<path d="M11.76227,48.784853C13.958616,49.92666,15.452132,49.510237,16.399001,49.066947C20.430518,47.186325,25.916505,44.714649,27.380735,44.150462C28.844967,43.572842,30.143252,45.762424,29.333044,47.643047C21.640949,65.495528,20.918595,58.107369,28.844967,70.452312C29.801598,71.943378,29.577083,73.273246,28.112851,74.710579C26.64862,76.147912,21.767849,79.613631,17.258017,82.797256"/>
|
||||
<path d="M16,83.75C19,83.25,25,82,29.5,83C34,84,59.57,90.71,64,92C76,95.5,85.25,96.5,94.25,94.75"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -34,6 +34,10 @@ Under the following conditions:
|
||||
|
||||
See http://creativecommons.org/licenses/by-sa/3.0/ for more details."""
|
||||
|
||||
def isKanji(c):
|
||||
v = realord(c)
|
||||
return (v >= 0x4E00 and v <= 0x9FC3) or (v >= 0x3400 and v <= 0x4DBF) or (v >= 0xF900 and v <= 0xFAD9) or (v >= 0x2E80 and v <= 0x2EFF) or (v >= 0x20000 and v <= 0x2A6DF)
|
||||
|
||||
# Returns the unicode of a character in a unicode string, taking surrogate pairs into account
|
||||
def realord(s, pos = 0):
|
||||
if s == None: return None
|
||||
|
||||
Reference in New Issue
Block a user