Content deleted Content added
→Parameter "latest change": non-claculables; later to be developed |
Drmccreedy (talk | contribs) codechart parameter |
||
Line 84:
:I can use it although it seems that it should be a calculated value based the other parms. And should probably be latestchanged (without a space). [[User:Drmccreedy|DRMcCreedy]] ([[User talk:Drmccreedy|talk]]) 19:09, 13 September 2022 (UTC)
::There are changes to a block that cannot be calculated: I just met three in v15: new abbreviations &tc., [https://en.wikipedia.org/w/index.php?title=Unicode_alias_names_and_abbreviations&type=revision&diff=1110103880&oldid=1086556309&diffmode=source U+0019, U+0616, U+1BBD]. Anyway, worth to keep the idea & develop then. I myself see the need for freetext additions. Since there is no error, we can postpone this development. [[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 19:27, 13 September 2022 (UTC)
==Replacing the <code>codechart</code> parameter==
I'm proposing a change in how this template shows links to the Unicode PDF code chart and the webpage/namelist.<br />
'''Some background''':
* On 2022-02-25 user {{ping|Theknightwho}} added the <code>codechart</code> parameter to show a link to Unicode's PDF code chart.
* On 2023-06-11 {{ping|Hnvnc}} added the ability to autogenerate the PDF and webpage/nameslist links based on starting code point if <code>codechart</code> is absent. Great feature.
* In July 2023 I removed the <code>codechart</code> parameters on all the articles where it was just the starting code point, letting the template autogenerate the links. That only leaves these articles to consider:
**[[Cirth#ConScript Unicode Registry]] doesn't use the <code>codechart</code> parm so both the PDF and webpage/nameslist links are bad (Error 404)
**[[Hangul (obsolete_Unicode_block)]] has three infoboxes:
***[[Hangul (obsolete Unicode block)#Korean Hangul Syllables block|Korean Hangul Syllables]] Infobox uses <code>codechart = https://www.unicode.org/versions/Unicode1.0.0/CodeCharts1.pdf#page=33</code> which is fine for the PDF link but the webpage/namelist link is wrong and goes to CJK Unified Ideographs Extension A because of the reused starting code point
***[[Hangul (obsolete Unicode block)#Hangul Supplementary-A block|Hangul Supplementary-A]] doesn't use the <code>codechart</code> parm and both autogenerated links are bad (Error 404).
***[[Hangul (obsolete Unicode block)#Hangul Supplementary-B block|Hangul Supplementary-B]] has the same issue as -A
**[[Private Use Areas]] doesn't use the <code>codechart</code> parm on any of its three infoboxes:
***[[Private Use Areas#Unicode PUA_blocks|Private Use Area]] infobox is fine as-is
***[[Private Use Areas#Unicode PUA_blocks|Supplementary Private Use Area-A]] infobox has an OK PDF link but a bad webpage/nameslist link (Error 404)
***[[Private Use Areas#Unicode PUA_blocks|Supplementary Private Use Area-B]] has the same issue as -A
**[[Tengwar#Unicode]] doesn't use the <code>codechart</code> parm so both the PDF and webpage/nameslist links are bad (they point to the Private Use Area because the first code point for this ConScript block is U+E000)
**[[Tibetan (Unicode block)]] has two infoboxes:
***[[Tibetan (Unicode block)#Block|Tibetan]] doesn't use the <code>codechart</code> parm and both autogenerated links are correct.
***[[Tibetan (Unicode_block)#Former Tibetan block]] uses <code>codechart = https://www.unicode.org/versions/Unicode1.0.0/CodeCharts2.pdf#page=100</code> so the PDF link is correct but the webpage/nameslist link goes to the Myanmar namelist because of the reused starting code point
'''My proposal''' is to delete the <code>codechart</code> parm and add the <code>codechartoverride</code> parameter:
*If <code>codechartoverride=omit</code> is specified, omit both links.
*If <code>codechartoverride=https://...</code> is specified, use the supplied URL for the PDF link and skip the webpage/namelist link.
*If <code>codechartoverride</code> isn't specified, autogenerate both links as is currently done.
'''After the template is changed''':
*Add <code>codechartoverride=omit</code> to [[Cirth#ConScript Unicode Registry]], [[Hangul (obsolete Unicode block)#Hangul Supplementary-A block|Hangul Supplementary-A]], [[Hangul (obsolete Unicode block)#Hangul Supplementary-B block|Hangul Supplementary-B]], [[Tengwar#Unicode]], and [[Tibetan (Unicode_block)#Former Tibetan_block]]
*Update [[Private Use Areas#Unicode PUA_blocks|Supplementary Private Use Area-A]] infobox with <code>codechartoverride=https://unicode.org/charts/PDF/UF0000.pdf</code> so no webpage/nameslist link is produced
*Update [[Private Use Areas#Unicode PUA_blocks|Supplementary Private Use Area-B]] infobox with <code>codechartoverride=https://unicode.org/charts/PDF/U100000.pdf</code> so no webpage/nameslist link is produced
I think this addresses all the issues in how code charts/namelists are linked. Does anyone have any issues with this approach? [[User:Drmccreedy|DRMcCreedy]] ([[User talk:Drmccreedy|talk]]) 17:44, 30 July 2023 (UTC)
|