New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CJK brackets at the beginning of paragraph #4011
Comments
https://typst.app/docs/reference/model/par/#parameters-first-line-indent mentioned "Only the first line of a consecutive paragraph will be indented (not the first one in a block or on the page)." -- a limitation, yes.. Typst wants to change that but it's not trivial. |
I think the issue here differs from #311. If I'm understanding correctly, it's more that a bracket shouldn't disrupt the grid-like alignment of characters. |
The key point of this issue is that the space between left edge of paragraph and “「” is effectively 1.5 em, not the 1 em specified by |
Note that JLREQ provides three possible options in that chapter, and Typst just behaves the same as cc @Enivex maybe you want to change the issue tags and names. Edit: See below |
No. Option 3 require the space between the left edge of the paragraph and “「” at the beginning of a paragraph to be 1/2 em, but the actual space is 3/2 em as I described first. However, option 2 require the space between the left edge of the paragraph and “「” at the beginning of a line in the middle of a paragraph to be 1/2 em. But the actual space is 0 em.
Of course, it is better the user can choose which option to use. |
Sorry, I made a mistake. The problem you provide do exist. And I made another mistake in previous comment: Typst currently follows option ①, not ③. And the bug is: CJK punctuation at the start of paragraphs are not adjusted sometimes, and it is tracked in #2348. So your issue splits into two parts: the bug part is a duplication of #2348, and the feature request part is valid. But I suggest change the name the issue to something like "Options for Positioning of Opening Brackets". |
I couldn't find #2348 in the past
|
@peng1999 Here is table about amount of indentation.
But if this is the typst specification, this is definitely a feature request. |
Suppose we have
In summary, the two issue is essentially the same and can be fixed by a single action: remove the shrinkable space. |
I agree about the solution. |
Description
When paragraph indentation is enabled, positioning of brackets at the beginning of paragraph doesn't follow §3.1.5 of Requirements for Japanese Text Layout.
Example code is below.
The first paragraph is an example of paragraph indentation is not enabled, and the second one is an example of paragraph indentation is enabled.
The third paragraph is an example of the expected result that follows §3.1.5 of Requirements for Japanese Text Layout.
Thanks.
Reproduction URL
No response
Operating system
macOS
Typst version
The text was updated successfully, but these errors were encountered: