Content deleted Content added
Cobaltcigs (talk | contribs) comments |
Cobaltcigs (talk | contribs) update |
||
Line 40:
}}
===Comments===
* I'm not convinced the "Notes" section at the bottom is worth the space it takes up, and I only added it as a proof-of-concept gesture to mimic existing layout convention. A collapsible (show/hide, just like the section above) section at the bottom with an additional list/table of character info (one per line) would certainly be feasible and only require a few more lines of code. Its hugeness of screen space would be the primary concern, because its expansion would displace other page content possibly including wrapped text or floating images (unlike navboxes, which occupy 100% width at the very bottom).
* One intuitive solution would be to mimic typical charmap program behavior by using a Javascript click handler on each character cell that populates the footer area (of about the same size as the "Notes" section, maybe slightly smaller) with the cursor-selectable name of the last clicked-upon codepoint, plus its <code>&escapecode;</code> and any additional info we care to pull from [[Module:Unicode data]] (replacing any previous content). I could whip up a demo for that in the next few days. I just worry that it might be [[WP:CLICKHERE|too interactive]] to be widely accepted.
Line 47:
* I haven't formed any opinion yet on how to handle combining character positioning, other than "oh god, I hope it's something other than <code>&nbsp;</code>" lol.
―[[special:contributions/cobaltcigs|cobaltcigs]] 17:55, 9 September 2019 (UTC)
===Update/to-do===
{{collapsible section| title = Example outputs | content =
{{Unicode chart|name=Hebrew|version=12.0}}
{{Unicode chart|name=Cyrillic|version=12.0}}
{{Unicode chart|name=Number Forms|version=0.0}}
{{Unicode chart|name=Old Turkic|version=99.9}}
}}
See above.
*I've reduced the number of required parameters to only the name of the block and the version string. In reality, the former can probably be deduced (from the name of the calling template), and the latter should be exposed by [[Module:Unicode data]] in some fashion (to avoid hard-coding 12.0 on any other page) and should be update as frequently as the data subpages are updated.
*I've got it looking up the [[ISO 15924]] and using that to select a <code><nowiki><span></nowiki></code> from [[Template:Script]] containing a css class for an appropriate <code>font-family</code>. Better would be a way to apply the <code>class</code> and <code>dir</code> attributes directly to the <code><nowiki><td></nowiki></code> element.
*Start/end codepoints still exist as an option. The looked-up values can be overriden to subdivide a large block without confusing the module.
*I need to debug out why it gives an error <span class="error">at line 38: bad argument #2 to 'format' (string expected, got nil)</span> but only for some block names.
―[[special:contributions/cobaltcigs|cobaltcigs]] 20:49, 9 September 2019 (UTC)
|