+0

Does this command sound natural?


Get the image width from the "width" keyword if it's set.


Context:

I mean if the "width" keyword is set.

Comments  
Zoltán KirályDoes this command sound natural?

I think you're not getting an answer because nobody knows what you mean. The way I understand "keyword", you can't get anything from it. It does something. And I don't know what it means to set a keyword because keywords are fixed, given elements of a programming language. You set variables.

You're right. I think someting like this would work better:


If a custom width is set for images, use that instead of the original width.

or something shorter:


Use a custom width for images if there is one set.


Does that sound okay?

Students: Are you brave enough to let our tutors analyse your pronunciation?
Zoltán KirályIf a custom width is set for images, use that instead of the original width.

I like this one better because it says exactly what you mean, if we all know what "original width" means. Maybe "default width" would be more like it.

Zoltán KirályUse a custom width for images if there is one set.

Pronouns like this "one" are risky if you have to be clear. Besides, "one set" can be read "a single related group".

Thank you. I appreciate your time.

I will go with this one then: If a custom width is set for images, use that instead of the default width.

I just hope it is grammatically correct.

Zoltán KirályI just hope it is grammatically correct.

It is. I always keep that in mind in answering while I quibble over meaning and wording, although so far you've been grammatical without my help. Here you have an inversion of "Use that instead of the default width if a custom width is set for images." The inversion is perfectly natural and is indeed required to give "that" a meaning in time for the reader. The comma marks the end of the introductory clause.

Teachers: We supply a list of EFL job vacancies