Skip to content
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

[questions/qa-upright-counters-in-vertical] Large number of items and CJK punctuation characters #626

Open
yamahige opened this issue Dec 8, 2024 · 0 comments

Comments

@yamahige
Copy link

yamahige commented Dec 8, 2024

[source] (https://w3c.github.io/i18n-drafts/questions/qa-upright-counters-in-vertical.html) [en]

How about including these features to inspire more comments.

  • items with larger digits
  • including CJK punctuation characters to clarify spacing control, as @taroyamamoto-451 commented in "4."
    • at the start of the prefix and the end of the suffix of "::marker"
    • at the start and the end of the item's body

For example:

CSS

:root {
    writing-mode: vertical-rl;
    text-spacing-trim: trim-start;
}

HTML

<ol>
    <li>仕込む前に生芋を1/4ぐらいの大きさにカット。</li>
    <li>すり潰した生芋</li>
    <li>ながらのパケット式の定量練り、通称バタ練り機</li>
    <li></li>
    <li value="9">「仕込む前に生芋を1/4ぐらいの大きさにカット。」</li>
    <li>(すり潰した生芋)</li>
    <li>ながらのパケット式の定量練り、<br>「通称バタ練り機」<br>ああああ</li>
    <li></li>
    <li value="99">仕込む前に生芋を1/4ぐらいの大きさにカット。</li>
    <li>すり潰した生芋</li>
    <li>ながらのパケット式の定量練り、<br>(通称バタ練り機)<br>ああああ</li>
</ol>

Or:

CSS

:root {
    writing-mode: vertical-rl;
    text-spacing-trim: trim-start;
}
ol.my {
    counter-reset: my-counter 0;
    padding-inline-start: 2em;
    & li {
        list-style: none;
        counter-increment: my-counter;
        .marker {
            margin-inline-start: -2em;
        }
        .marker::before {
            content: "(";
        }
        .marker::after {
            content: ")";
        }
        .marker .body::before {
            content: counter(my-counter);
            text-combine-upright: all;
        }
    }
}

HTML

<ol class="my">
    <li><span class="marker"><span class="body"></span></span>仕込む前に生芋を1/4ぐらいの大きさにカット。</li>
    <li><span class="marker"><span class="body"></span></span>すり潰した生芋</li>
    <li><span class="marker"><span class="body"></span></span>ながらのパケット式の定量練り、通称バタ練り機</li>
    <li><span class="marker"><span class="body"></span></span></li>
    <li style="counter-set: my-counter 9;"><span class="marker"><span class="body"></span></span>「仕込む前に生芋を1/4ぐらいの大きさにカット。」</li>
    <li><span class="marker"><span class="body"></span></span>(すり潰した生芋)</li>
    <li><span class="marker"><span class="body"></span></span>ながらのパケット式の定量練り、<br>「通称バタ練り機」<br>ああああ</li>
    <li><span class="marker"><span class="body"></span></span></li>
    <li style="counter-set: my-counter 99;"><span class="marker"><span class="body"></span></span>仕込む前に生芋を1/4ぐらいの大きさにカット。</li>
    <li><span class="marker"><span class="body"></span></span>すり潰した生芋</li>
    <li><span class="marker"><span class="body"></span></span>ながらのパケット式の定量練り、<br>(通称バタ練り機)<br>ああああ</li>
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant