Content deleted Content added
→Info panel demo: re |
Cobaltcigs (talk | contribs) collapsibility demo |
||
Line 143:
==Info panel demo==
{{unicode chart|Greek and Coptic|version=12.1|info=yes|state=collapsed}}
{{unicode chart
| name = Basic Latin
| display_name = Basic Latin AND Latin-1 Supplement
| range = 0000–00FF
| version=12.1
| info=yes
| state=expanded
}}
Click the links and hold your breath. ―[[special:contributions/cobaltcigs|cobaltcigs]] 03:13, 16 September 2019 (UTC)
Line 159 ⟶ 166:
::For now I've reduced the size of the bold-face character name from 125% to 110%, set the root <code>table</code> element to full page-width, and set the columns to fixed percentages that add up to 100%.
::I've also [[Special:Diff/916051317|removed the 'Amiri' font]] from the <code>.script-Arab</code> css class, because it makes the U+FDFD ligature wide enough to make these percentages meaningless. I don't know if other characters are similarly affected. I'll need to install the first three fonts to test whether they have the same problem (or, indeed, others).
::I've now made it pull the "long name" (which appears to always be more interesting than the word "assigned") from Erutuon's info. Hopefully it's never <code>nil</code> and hopefully the extra info won't be overwritten by updates.
:: ―[[special:contributions/cobaltcigs|cobaltcigs]] 20:50, 16 September 2019 (UTC)
::: You can rely on <code>lookup_category</code> never returning <code>nil</code> (at least when supplied a valid code point); <code>memo_lookup</code> guarantees that. The return value is either a "real" category when the code point is found in <code>singles</code> or <code>ranges</code> or Cn (Unassigned). — [[User:Erutuon|Eru]]·[[User talk:Erutuon|tuon]] 22:40, 16 September 2019 (UTC)
|