mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 10:53:35 +01:00
Type > Kinsoku Shori Settings... (with the East Asian options) opens a
dialog on the document's custom Kinsoku Shori sets. New adds a set based
on Hard, Soft, None or another set; each set lists the characters that
may not start a line, those that may not end one, the hanging
punctuation Burasagari hangs and the inseparable sequences Bunri-Kinshi
keeps on one line, with characters added by Unicode code point. OK
replaces the sets as one undo step; Cancel leaves them.
- type.kinsokuSets.set, .list and .base: names are trimmed, unique in
any case, 1 to 128 characters and never None, Hard or Soft; at most
256 sets and 4096 characters to a category. Editing or renaming a set
updates the paragraphs and paragraph styles using it; deleting one
gives them Hard.
- text.setFormat {kinsoku} takes a custom set's name; an unknown name
fails the call. The paragraph keeps a copy of the set beside Hard, so
older builds read it as Hard. A paragraph style that gives kinsoku or
kinsoku_set keeps both, so a style with a built-in Kinsoku Set
replaces a paragraph's custom set.
- The Paragraph panel's Kinsoku Set lists the custom sets after None,
Hard and Soft, and its last entry opens the dialog.
- Both composers use the set's own characters, hanging punctuation and
inseparable sequences. A hanging character hangs alone: one that
starts a No Break run or an inseparable sequence no longer hangs the
rest of it outside the line.
- Redefining a paragraph style's Kinsoku Set keeps a paragraph's own
custom set; kinsoku and kinsoku_set change together. A paragraph
style's kinsoku_set names one of the document's sets and takes its
characters; an unknown name fails the call.
- A set read from a file takes the same name rules as the commands: a
set under None, Hard, Soft or a blank name is not read, so a
paragraph holding one keeps its Kinsoku Set, as does a paragraph read
with a set beside None or Soft. A document's list keeps
the first set of each name, and sets past 256 and sequences past the
category limit are skipped while the file is read. Only the start of
a long text is read: a category's first 16384 characters, a name of
at most 4096 and a sequence's first 17.
- Pasting type into another document adds the custom sets its
paragraphs and paragraph styles use. The document's set of that name
is used when its characters are the same; a set with other characters
comes in under a free name ("Tight 2"). With 256 sets already, the
pasted paragraphs take Hard.
- Bunri-Kinshi with a custom set looks up at most 15 texts for each
character of a paragraph, however many sequences start with one
character.
Docs: docs/mcp.md, docs/target-app-parity.md.