Code Monkey home page Code Monkey logo

Comments (18)

hax avatar hax commented on June 23, 2024

用“选择符”而不是“选择器”有什么讲究吗?

specificity还有“权重”、“特异性”等译法。从google搜索结果来看“优先级”相对其他译法也并没有量级上的优势。我个人稍偏向用“特异性”。

from css-secrets.

cssmagic avatar cssmagic commented on June 23, 2024

关于 specificity 的译法,估计讨论起来会花点功夫,我另开了一个 issue: #3

from css-secrets.

cssmagic avatar cssmagic commented on June 23, 2024

关于 selector 的译法,已另开一个 issue: #4

from css-secrets.

yisibl avatar yisibl commented on June 23, 2024
  • flexbox 「伸缩盒」,这是当时我们和康豪一起翻译时候定下的术语:http://www.w3.org/html/ig/zh/css-flex-1/
  • margin collapsing 「外边距叠加」,我觉得更加形象,有一个加的过程。

from css-secrets.

cssmagic avatar cssmagic commented on June 23, 2024

flexbox 「伸缩盒」,这是当时我们和康豪一起翻译时候定下的术语:http://www.w3.org/html/ig/zh/css-flex-1/

谢谢提示。会重新考虑。

margin collapsing 「外边距叠加」,我觉得更加形象,有一个加的过程。

我以前也是译成 “~叠加” 的。但后来发现实际上这个行为并不是 “加法”,有歧义,就改用 “~重叠” 了。


如果还有更多建议和想法,欢迎另开新 issue 展开讨论。

from css-secrets.

yanxyz avatar yanxyz commented on June 23, 2024

我也有整理术语表整理的想法,列了个草稿。也看到了 @yisibl 整理的术语表,不过是几年前的了。

margin collapsing 我一般译为”边距合并“。

盒模型,padding, margin 虽然最常见译法的是”内边距“,”外边距“的译法,不过再加上 top 等位置词后,有的句子译出来后读着拗口看着晕头。比如:

盒的下外边距与它的上外边距接触时两者合并。

于是我的想法变了。实际上在打印设置里面,是把 margin 称为”边距“。有的人便把 padding 译为”补白“。这个词的本意是补丁,我觉得”内边距“是由”外边距“对应出来的词。我看见**那边有把 padding 译为“内距”的,那么 margin 保持 ”边距“ 不变,或者对应为 “外距" 。我是倾向于这个方案,减少一个字会让句子顺畅些。

from css-secrets.

yanxyz avatar yanxyz commented on June 23, 2024

attribute 也是让人头疼的翻译,有时必须区别。看英文 attribute, property 很容易知道讲的是 HTML, 还是 JavaScript。如果都译为”属性“,就分不出来了。虽然我不大喜欢”特性“这个翻译,不过还是统一用它。

@Jinjiang 似乎翻译过 HTML 规范,是统一为 ”特性“。

from css-secrets.

yanxyz avatar yanxyz commented on June 23, 2024

inline 也是让人头疼的翻译,英文文档中是用作名词,动词,形容词。较常见的翻译是”内联“,我不大喜欢。”行内“ 适合部分情况。inline style 你如何翻译?

from css-secrets.

cssmagic avatar cssmagic commented on June 23, 2024

看英文 attribute, property 很容易知道讲的是 HTML, 还是 JavaScript。如果都译为”属性“,就分不出来了……

这我倒不纠结,在可能混淆的情况下写为 “标签属性” 和 “对象属性” 就可以了,译者就是干这个事的,不然与机器何异?

如果译成 “特性”,暂不提是否合适,光是那 attribute 与 feature 对撞的惨烈画面就让人不忍直视。

如果需要深入讨论某个词的译法,请另开 issue 吧。 😃

from css-secrets.

cssmagic avatar cssmagic commented on June 23, 2024

@yanxyz
谢谢你的意见。对单个术语的翻译讨论(包括我们在上面聊过的),都请单开 issue 吧。因为估计三两句话都说不完,而且其它爱好者也会有话想说。

from css-secrets.

hax avatar hax commented on June 23, 2024

@yanxyz inline在css就是“行内”。“内联”是编译器术语,用于css是错误。

from css-secrets.

Kidsunbo avatar Kidsunbo commented on June 23, 2024

我能不能问一下inner rounding是个啥。。。翻译成“内圆”吗?

from css-secrets.

cssmagic avatar cssmagic commented on June 23, 2024

@Kidsunbo 你说的是某一节的标题吗?这个其实不能算是术语,只是对某个效果的称呼,我翻译成 “边框内圆角”。

from css-secrets.

sinsy avatar sinsy commented on June 23, 2024

该书一直出现的“DRY”究竟是什么意思

from css-secrets.

cssmagic avatar cssmagic commented on June 23, 2024

@GarboLiu
本书的《序》对此已有解释:

DRY 是一个首字母缩写(原文 “Don’t Repeat Yourself”),意思是你不应该重复你已经做过的事。它是一种广为流传的编程理念,旨在提升代码某方面的可维护性:在改变某个参数时,尽量做到只需要改极少的几处地方,最好是一处。强调 CSS 代码的 DRY 原则将是一个贯穿本书的主题。DRY 的反面是 WET,它的意思是 “We Enjoy Typing”(我们喜欢敲键盘)或 “Write Everything Twice”(同样代码写两处)。

from css-secrets.

crafteverywhere avatar crafteverywhere commented on June 23, 2024

一点不重要的小建议:DRY 那段里的“同样代码写两处”改成“同样代码写两遍”似乎更上口。因为和“我们喜欢敲键盘”押韵。:smile:

from css-secrets.

tolerious avatar tolerious commented on June 23, 2024

这个好, 把一些专业的英文单词弄一个表出来也便于初学者理解。

from css-secrets.

kujian avatar kujian commented on June 23, 2024

不错,挺有用。

from css-secrets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.