-
Notifications
You must be signed in to change notification settings - Fork 12
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
Underline and NNBSP #9
Comments
Thanks @siqinbilige. As CSS is currently specified, you'll only be able to get ① and ②. Is that ok, or do you think we need to push for all three options to be available? If we had to choose just two options, would options ① and ③ be best, or options ① and ②? |
I continued the discussion about text decoration styles in a separate issue. |
[from Badral Sanlig]
|
We would strongly recommend NNBSP (better Mongolian Suffix Connector) should be handled as part of word. If we had to choose just two options, would options ③ and ① be best. |
Thanks @badaa. Then i think the next steps are to document the issue in the mongolian gap-analysis document, and then contact the CSS WG to request that the spec be changed. |
Created a CSS issue (see just above) and a pull request for the mongolian layout docs at #23 |
It’s unwise to bring a special case into the |
@lianghai you'll need to explain why. |
Hudum enclitics (separated suffixes) are a bunch of morphological words (words separated with spaces) that are prosodically part of a larger, prosodic word that contains an ordinary, host word with zero or more suffixes and zero or more separated suffixes. It’s a well received theory that enclitics are grammatically comparable to suffixes thus the concept of “word” should equal to the whole prosodic word. However, since when CSS started to provide special treatment on grammatical and/or prosodic structures? The only reason seems to be that NNBSP is something that was encoded as a miserably mixed syntactical sugar of a space and a grammatical signal and a format control requesting special shaping effects on the following word. This is a historical mistake that Unicode has to live with, not something CSS has to try so hard to play with so it can prove itself is internationalized. |
@lianghai |
hi @lianghai. The problem we're trying to solve here is that any gap between a Mongolian word root and suffix (or subsequent suffixes) should be underlined when text-decoration-skip is set to spaces. CSS has a number of language-specific rules already. It turns out to be handy that NNBSP is typically used here, so we could add a Mongolian-specific rule to CSS. In fact, the same may apply to French (see the CSS issue). What alternative approach can you suggest? |
The sane approach is to treat NNBSP like just any other spaces. It’s a space, abused for marking grammatical information and triggering mandatory shaping. And NNBSP is not gonna be used grammatically consistently by users because users simply don’t care about grammatical correctness when inputting text. Users will only be confused by the inevitably messed up text when they happen to use In my terminology, the key difference between the term “enclitic” and “separated suffix” is that whether an author recognizes the entity is first a morphological word (which is then prosodically dependent) or is first a suffix (which is then written separately). As Unicode is a text encoding technology, I consider morphological features as the foundation of analysis. It would be very subjective if one considered a structure that is never written like a suffix as a suffix and build his analysis on that. You need to understand and accept that terminologies and linguistic analyses vary from person to person. The key is not whether you like a term or not (and your reasoning for not liking the term “enclitic” is naïve, mostly just because you think the Mongolian language is definitively something—no, there’s no conclusions in linguistics; people just use various tools to make various analyses), but whether an analysis is logically coherent. Coherent analyses can usually converge to some extent, while incoherent analyses can’t—although they might superficially use the same set of terms. |
@lianghai your reply just above doesn't actually answer my question, which was: how to ensure that CSS doesn't underline the gap between word root and suffix when |
NNBSP is different from other spaces, which is why it exists. The CSS issue (w3c/csswg-drafts#3393), as mentioned above, already notes that breaking underlining just for NNBSP seems wrong for French. If word-separating spaces are not to be underlined, when would breaking underlining at a NNBSP used properly be appropriate? U+2007 FIGURE SPACE also seems different form other spaces - and it is yet another type of non-breaking space. How should it interact with underlining? This issue feels of lesser importance, as the character is primarily for numbers in columns rather than numbers in text. |
"... This improves legibility of decorated text and corrects punctuation grammar for some languages.", According to css-tricks.com. A: Obviously, It is a great idea, in my opinion. " ... in some languages" means directed to Mongol HUDAM, but it is said not only to Mongolian. |
@lianghai |
My point is always—CSS simply shouldn’t “doesn't underline the gap between word root and suffix when [REDACTED] |
Actually, I just realized that, instead of asking me to examine “why not”, we need to go back and examine the original rationale:
It seems, the original rationale for treating NNBSP as a special case largely comes from how the existing Mongolian encoding model utilizes this character and thus it seems nice to provide a script-specific feature in CSS to better serve the user community’s need. However, it’s already well understood that the existing Mongolian encoding model is a highly messed up one, and it is undergoing significant alternations before it’s stabilized eventually (eg, see the item SI1 in the MWG #3 report for how the community is trying to move away from using NNBSP: https://www.unicode.org/L2/L2019/19139-mwg3-18-meeting-rept-r2.pdf). It’s simply not a good idea for a “higher-level protocol” to invent special behavior based on a Unicode encoding mode that is known to be highly problematic and is clearly unstable and is not widely implemented yet. At this point I don’t think we even need to argue if treating NNBSP as a special case in CSS would be problematic or not. Also, note that comment from Badral—
—largely came from that he was trying to do spellchecking properly in Microsoft Word but he didn’t use the proper API initially (the API he was initially using only allows single-word spellchecking, while only later he realized there is a multi-word contextual spellchecking API provided by Word) and had to rely on NNBSP not being treated as a word boundary in Word. |
The proposed CSS property
text-decoration-skip
with the valuespaces
causes underlines to skip white space. As currently defined, white space includes the NNBSP. This means that using this property would result in the following:Is that correct, or should the underline be unaffected by the NNBSP? That would result in:
(Source text: ᠣᠯᠠᠨ ᠦᠨᠳᠦᠰᠦᠲᠡᠨ ᠦ ᠪᠣᠯᠭᠠᠬᠤ ᠦᠢᠯᠡ ᠠᠵᠢᠯᠯᠠᠭᠠ)
The text was updated successfully, but these errors were encountered: