TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

BritCSS: Fixes CSS to use non-American English

163 点作者 OuterVale3 个月前

27 条评论

kibwen3 个月前
Obliged to point out that "color" is how it's spelled in Latin, Old French, and therefore post-Norman English, that the superfluous "u" was added later by the English aristocracy because they were jealous of how fancy the newly-respelled French looked.
评论 #43124711 未加载
评论 #43123141 未加载
评论 #43123828 未加载
评论 #43124598 未加载
评论 #43127785 未加载
评论 #43131465 未加载
jsheard3 个月前
HTTP had the right idea, just get the spelling completely wrong so everyone gets equally pissed off.<p><a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;HTTP&#x2F;Headers&#x2F;Referer" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;HTTP&#x2F;Headers&#x2F;Re...</a>
评论 #43123285 未加载
pvdebbe3 个月前
Why does the author use `initialize` for a function name in the source code? I question their purity of intentions!
评论 #43125000 未加载
penguin_booze3 个月前
Calling British English (also known as just English) &#x27;non-American English&#x27; is like calling an original a &#x27;non-duplicate&#x27;.<p>American is basically English with typos, bad grammar, and bad style.
评论 #43129888 未加载
评论 #43128324 未加载
评论 #43129976 未加载
评论 #43129477 未加载
评论 #43131505 未加载
评论 #43126652 未加载
brigandish3 个月前
Reading the comments makes me realise that a library for fixing the ability (or non-ability, I should say) to recognise (British) humour should be next on the list.
nrvn3 个月前
The man who got really pissed off by complete disconnection between spelling and pronunciation of words in English was George Bernard Shaw. Throughout his life he was an avid critic of the latin alphabet that was (and still is) used to represent spoken words.<p>He was so frustrated that shortly before his death in 1950 Shaw put the creation of a new alphabet in his will backed by grant in aid. And thus the Shavian alphabet was born. Enjoy:<p>- <a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Shavian_alphabet" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Shavian_alphabet</a><p>- <a href="https:&#x2F;&#x2F;youtu.be&#x2F;D66LrlotvCA" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;D66LrlotvCA</a>
评论 #43126350 未加载
评论 #43144095 未加载
ccppurcell3 个月前
Americans really don&#x27;t get irony do they.
评论 #43125254 未加载
h4ny3 个月前
&gt; Fixes CSS to use non-bastardised spellings<p>The last thing I need a tool to do is to spread divisiveness.
评论 #43124350 未加载
Lammy3 个月前
Where&#x27;s the LOICENCE.md? Is it MIT? If only there were an Oxford License.<p>e: speling correction ;)
评论 #43124268 未加载
评论 #43124213 未加载
评论 #43126396 未加载
PetitPrince3 个月前
This should be paired with British PHP ( <a href="https:&#x2F;&#x2F;aloneonahill.com&#x2F;blog&#x2F;if-php-were-british&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aloneonahill.com&#x2F;blog&#x2F;if-php-were-british&#x2F;</a> )
评论 #43129454 未加载
lenerdenator3 个月前
1. All of this could have been avoided but for the want of some MPs for some colonies. But no.<p>2. &quot;License: Not Specified&quot; instead of &quot;Licence: Not Specified&quot;
评论 #43125063 未加载
theandrewbailey3 个月前
Are you trying to tell me that the British gentleman Sir Tim Berners-Lee misspelled all these things when they went into the spec that CSS was based from?<p>\s (sort of)
评论 #43130190 未加载
kennysoona3 个月前
Kind of funny the animus the author has against US spellings. It&#x27;s nothing but shade to refer to US spellings as &#x27;simplified&#x27; and UK spellings as &#x27;traditional&#x27;, regardless of the merit of the argument for doing so.<p>I can&#x27;t imagine anyone will really need to use this, but it seems to have let the author work out some issues.
评论 #43124419 未加载
评论 #43124492 未加载
评论 #43125239 未加载
评论 #43124457 未加载
评论 #43131561 未加载
d1sxeyes3 个月前
I came to highlight the similarities to Spiffing (<a href="https:&#x2F;&#x2F;github.com&#x2F;visualidiot&#x2F;Spiffing">https:&#x2F;&#x2F;github.com&#x2F;visualidiot&#x2F;Spiffing</a>) but I note that the author already did that.<p>Always funny to poke a little fun at ourselves.
评论 #43138312 未加载
yujzgzc3 个月前
I believe that some people&#x27;s actual full-time job is to translate software from US English to British English. I wonder what that job feels like after the thousandth time you&#x27;ve replaced color with colour and neighbor with neighbour
评论 #43124197 未加载
评论 #43124937 未加载
评论 #43124442 未加载
评论 #43126401 未加载
DeathArrow3 个月前
At this point it seems we have two separate languages American and English and I say it as a non native speaker.<p>Wach an US movie, then watch a British movie. Compare TV shows, compare news articles.
评论 #43125099 未加载
评论 #43127924 未加载
zombot3 个月前
What a shock to suddenly have proper English where up to now only the slang parody reigned supreme.
makeworld3 个月前
Canadian friendly!
aqueueaqueue3 个月前
Does it support &#x27;grey&#x27;
评论 #43123266 未加载
评论 #43124170 未加载
randlet3 个月前
wx got it right: <a href="https:&#x2F;&#x2F;docs.wxwidgets.org&#x2F;3.2&#x2F;classwx_colour.html" rel="nofollow">https:&#x2F;&#x2F;docs.wxwidgets.org&#x2F;3.2&#x2F;classwx_colour.html</a>
gxonatano3 个月前
Next we need JS and CSS keywords in Esperanto, so that we&#x27;re not privileging English-speaking regions over others.
bdhcuidbebe3 个月前
Right, so this is a way to bend the world to your will.<p>The reason css properties have a standardized spelling is not to make fun of british spelling, but to have a standard that everyone could follow for interopabilitys sake.<p>If youre such a british language purist that you go this route, you will need to port&#x2F;retrofit this hack to your future projects or you will once more have to debug why ”colour” doesnt do anything in your css declaration.<p>This is anti progression and a non-solution.<p>In addition, running this hack on the client side (really, why??) has additional downsides as color wont render right until after page load.<p>A solution for this non-issue would be scss preprocessor variable, something like this:<p><pre><code> $colour = ”color” table { $colour: red; } </code></pre> TLDR: css is a standard, so learn it and work with it, not against it.
评论 #43135075 未加载
hk13373 个月前
The British Empire ruined the English language.
yieldcrv3 个月前
bit mental that they didnt release this on chewsday
评论 #43126421 未加载
earthtograndma3 个月前
&quot;Fixes&quot;
评论 #43122990 未加载
hsbauauvhabzb3 个月前
This creates a second language where two dialects that have minor differences meaning stackoverflow code won’t always work, nor will code you extract from other websites. This creates a mess, all while adding a JavaScript pre-processor that is prone to have errors, vulnerabilities and other flaws from the NPM hellscape. No thanks.
评论 #43123162 未加载
评论 #43124751 未加载
评论 #43123175 未加载
andy_ppp3 个月前
Absolutely terrible. You should spell everything in American English when programming as like it or not the standard in every codebase and programming language going to be this. I am British but coding is not language, and trying to be clever like this is incredibly counterproductive especially in a diverse team. If you want British English to be used why shouldn’t the German on your team be able to use their language for example.<p>If everyone was just aiming for consistency we would be better off than following developer whims. We should aim to get over our personal preferences and try to be consistent and that means not having an ego about American vs British English.
评论 #43126414 未加载
评论 #43125320 未加载
评论 #43128059 未加载
评论 #43125097 未加载