fixing quirks for more writing systems

This commit is contained in:
minjaesong
2024-03-31 00:13:31 +09:00
parent 46a57e8e50
commit 06782fdc55
3 changed files with 10 additions and 2 deletions

View File

@@ -596,7 +596,7 @@ class MovableType(
private fun penaliseHyphenation(score: Int): Float = (10.0 * pow(score.toDouble(), 1.0/3.0) + 0.47*score).toFloat()
private fun CodePoint?.isCJ() = if (this == null) false else listOf(4, 6, 20).any {
private fun CodePoint?.isCJ() = if (this == null) false else listOf(4, 6, 12, 13, 20, 23, ).any {
TerrarumSansBitmap.codeRange[it].contains(this)
}