mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-11 00:14:05 +09:00
fix: space before hyphen gets ignored
This commit is contained in:
@@ -497,42 +497,32 @@ class MovableType(
|
|||||||
val c0 = it
|
val c0 = it
|
||||||
|
|
||||||
if (c0.isColourCode()) {
|
if (c0.isColourCode()) {
|
||||||
if (glue != 0)
|
if (glue > 0) sendoutGlue()
|
||||||
sendoutGlue()
|
|
||||||
|
|
||||||
addControlChar(c0)
|
addControlChar(c0)
|
||||||
|
|
||||||
appendToBuffer(c0)
|
appendToBuffer(c0)
|
||||||
}
|
}
|
||||||
else if (c0 == 0x100000) {
|
else if (c0 == 0x100000) {
|
||||||
requestControlCharRemovalIf { (it.first in 0x10F000..0x10FFFF) }
|
requestControlCharRemovalIf { (it.first in 0x10F000..0x10FFFF) }
|
||||||
|
if (glue > 0) sendoutGlue()
|
||||||
if (glue != 0)
|
|
||||||
sendoutGlue()
|
|
||||||
|
|
||||||
appendToBuffer(c0)
|
appendToBuffer(c0)
|
||||||
}
|
}
|
||||||
else if (c0.isControlIn()) {
|
else if (c0.isControlIn()) {
|
||||||
if (glue != 0)
|
if (glue > 0) sendoutGlue()
|
||||||
sendoutGlue()
|
|
||||||
|
|
||||||
addControlChar(c0)
|
addControlChar(c0)
|
||||||
|
|
||||||
appendToBuffer(c0)
|
appendToBuffer(c0)
|
||||||
}
|
}
|
||||||
else if (c0.isControlOut()) {
|
else if (c0.isControlOut()) {
|
||||||
if (glue != 0)
|
if (glue > 0) sendoutGlue()
|
||||||
sendoutGlue()
|
|
||||||
|
|
||||||
requestControlCharRemovalPop()
|
requestControlCharRemovalPop()
|
||||||
|
|
||||||
appendToBuffer(c0)
|
appendToBuffer(c0)
|
||||||
}
|
}
|
||||||
else if (c0 == 0x0A) { // \n
|
else if (c0 == 0x0A) { // \n
|
||||||
|
glue = 0
|
||||||
sendoutBox()
|
sendoutBox()
|
||||||
proceedToNextLine()
|
proceedToNextLine()
|
||||||
}
|
}
|
||||||
else if (c0 == 0x2D) { // hyphen
|
else if (c0 == 0x2D) { // hyphen
|
||||||
|
if (glue > 0) sendoutGlue()
|
||||||
appendToBuffer(c0)
|
appendToBuffer(c0)
|
||||||
sendoutBox()
|
sendoutBox()
|
||||||
}
|
}
|
||||||
@@ -646,6 +636,7 @@ class MovableType(
|
|||||||
}
|
}
|
||||||
// tokenise camelCase
|
// tokenise camelCase
|
||||||
else if (cM.isMiniscule() && c0.isMajuscule()) {
|
else if (cM.isMiniscule() && c0.isMajuscule()) {
|
||||||
|
if (glue > 0) sendoutGlue()
|
||||||
sendoutBox()
|
sendoutBox()
|
||||||
appendToBuffer(c0)
|
appendToBuffer(c0)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user