Module talk:Unicode chart: Difference between revisions

Content deleted Content added
No edit summary
"master list" update
Line 138:
| display_name = General Punctuation (2060–206F only)
| range = 2060–206F
<!-- parameters gone, now loaded from master list -->
| display_2061 = <i>ƒ</i><small>()</small>
| display_2062 = ✕
| display_2063 = ,
| display_2064 = +
<!-- skip 2065–2069 -->
<!-- spaces magically become \n here; box span has white-space:pre. -->
| display_206A = I SS
| display_206B = A SS
| display_206C = I AFS
| display_206D = A AFS
| display_206E = NA DS
| display_206F = NO DS
}}
: I can't find a file in the Unicode Character Database that lists the display forms for the dotted box characters. They aren't in [https://www.unicode.org/Public/UCD/latest/ucd/NamesList.txt NamesList.txt], which is parsed into the PDF that you linked to. So they would have to be gathered manually from the PDFs, unless they can be found somewhere else. — [[User:Erutuon|Eru]]·[[User talk:Erutuon|tuon]] 04:13, 18 September 2019 (UTC)
Line 219 ⟶ 208:
:::::: '''Oops''', I completely forgot about the <code>display_NNNN = FOO</code> parm. I like the idea of a master list because it centralizes the data but either approach will work. [[User:Drmccreedy|DRMcCreedy]] ([[User talk:Drmccreedy|talk]]) 02:04, 18 September 2019 (UTC)
::::::: +1 for a master list. [[User:BabelStone|BabelStone]] ([[User talk:BabelStone|talk]]) 16:13, 18 September 2019 (UTC)
 
=="Master list" needs completion==
Display string [[Special:Diff/916410899|now loads]] from [[Module:Unicode chart/display]] as a first choice that cannot be overriden by the parameter. The current order of succession for what to display is:
# For any whitespace character in the main grid, the character itself in a white span on a green background, otherwise:
# Any string defined in the "master list" for codepoint 0xNNNN
# Any string entered as the parameter <code>display_NNNN = FOO</code>
# The last alias of type "abbreviation" in the aliases file, if any exist
# The character itself
I've populated it with exactly three blocks for testing purposes. Spaces in the display string are converted to newlines (or line feeds or whatever you want to call them). Once this is done we can retire the display parameters. ―[[special:contributions/cobaltcigs|cobaltcigs]] 20:05, 18 September 2019 (UTC)
 
==Going horizontal==
I've made the utf/html info slide to the right rather than downward when an alias list is present. Seems like a more efficient use of space. Seems to look okay next to the infamous BRAKCET correction, which I've confirmed is the longest string in the alias file. ―[[special:contributions/cobaltcigs|cobaltcigs]] 20:05, 18 September 2019 (UTC)