I use typst to create Japanese documents, but I have one problem.
It is that line breaks in the typst file are causing unexpected output format changes β spaces are automatically inserted.
This is not a problem when using LaTeX or perhaps when using typst to create documents in many other languages.
So, my question is this:
Is there a layout setup or scripting method that would allow me to input Example 1 and still get the same output as Example 2? In other words, is there any way to eliminate or prevent the spaces automatically inserted by line breaks?
My opinion is that a single line should be written in one line. And a line break in source code should be translated into a soft break, itβs not a bug.
Thank you very much! It seems to be working as I expected.
I understand that this implementation is not a bug, and I understand the argument that what I want to output as a single line should be written as a single line in the source code.
However, for example if a paragraph consists of more than 100 sentences, under this implementation it should be written as a single line of source code. That is sometimes very difficult to use.
I wanted to know if there is a way for the user to control the behavior of soft break.
Thank you very much again for your kind instruction!
This makes sense, and itβs the same in Chinese typesetting. I think this is because Typst is designed for western language, in which words are separated by spaces.
Unhopefully, not for now. But I can see the Typst community do trying to benefit CJK users, like this Text Function #cjk-latin-spacing. Maybe text function will have a cjk-soft-break parameter in the future, which can eliminate unnecessary spaces between CJK characters.