The following table list all the elements used in the various flavors of HTML and their properties:
Element | Inline? | Empty? | PCDATA? | Mixed? | Wrapper? | Status | Type Value ( ctype if inline, restype otherwise) |
Notes |
---|---|---|---|---|---|---|---|---|
A |
inline | wrapper | x-html-a |
|||||
ABBR |
inline | mixed | x-html-abbr |
not inline in Trados5.5 | ||||
ACRONYM |
inline | mixed | x-html-acronym |
|||||
ADDRESS |
mixed | x-html-address |
||||||
APPLET |
inline | ??? | ??? | ??? | deprecated | x-html-applet |
not inline in Trados5.5 | |
AREA |
empty | x-html-area |
||||||
B |
inline | mixed | bold |
|||||
BASE |
empty | |||||||
BASEFONT |
empty | deprecated | ||||||
inline | mixed | |||||||
BGSOUND | ??? | ??? | ??? | not 4.01 | ||||
BIG |
inline | mixed | x-html-big |
|||||
BLOCKQUOTE | wrapper | x-html-blockquote |
||||||
BLINK |
inline | mixed | not 4.01 | x-html-blink |
not inline in Trados5.5 | |||
BODY |
wrapper | x-html-body |
||||||
BR |
inline??? | empty | lb |
|||||
inline | mixed | x-html-button |
||||||
CAPTION |
mixed | caption |
||||||
CENTER |
??? | ??? | ??? | ??? | deprecated | x-html-center |
||
CITE |
inline | mixed | x-html-cite |
|||||
CODE |
inline | mixed | x-html-code |
|||||
COL |
empty | x-html-col |
||||||
COLGROUP |
wrapper | x-html-colgroup |
||||||
DD |
mixed | x-html-dd |
||||||
DEL |
inline??? | mixed | x-html-del |
not inline in Trados5.5 | ||||
DFN |
inline | mixed | x-html-dfn |
|||||
DIR |
??? | ??? | deprecated | x-html-dir |
||||
DIV |
mixed | x-html-div |
||||||
DL |
wrapper | x-html-dl |
||||||
DT |
mixed | x-html-dt |
||||||
EM |
inline | mixed | x-html-em |
|||||
EMBED | inline | ??? | ??? | ??? | not 4.01 | x-html-embed |
||
FACE | inline | mixed | RobotHelp | x-html-face |
||||
mixed | groupbox |
<group> | ||||||
FONT |
inline | mixed | deprecated | x-html-font |
||||
wrapper | dialog |
<group> | ||||||
FRAME |
empty | ??? | ??? | frame |
||||
FRAMESET |
??? | ??? | x-html-frameset |
|||||
H1 |
mixed | x-html-h1 |
||||||
H2 |
mixed | x-html-h2 |
||||||
H3 |
mixed | x-html-h3 |
||||||
H4 |
mixed | x-html-h4 |
||||||
H5 |
mixed | x-html-h5 |
||||||
H6 |
mixed | x-html-h6 |
||||||
HEAD |
wrapper | header |
||||||
HR |
empty | x-html-hr |
||||||
HTML |
wrapper | x-html-html |
||||||
I |
inline | mixed | italic |
|||||
IA | ??? | ??? | not 4.01 | x-html-ia |
from Trados5.5 (no idea what is it) | |||
IFRAME |
inline | ??? | ??? | x-html-iframe |
||||
IMG |
inline | empty | image |
|||||
inline | empty | x-html-input |
not inline in Trados5.5 | |||||
INS |
inline | mixed | x-html-ins |
not inline in Trados5.5 | ||||
empty | deprecated | x-html-isindex |
||||||
KBD |
inline | mixed | x-html-kbd |
|||||
inline | mixed | x-html-label |
not inline in Trados5.5 | |||||
mixed | x-html-legend |
|||||||
LI |
mixed | listitem |
||||||
LINK |
empty | x-html-link |
||||||
LISTING | ??? | ??? | not 4.01 | x-html-listing |
||||
MAP |
inline | x-html-map |
not inline in Trados5.5 | |||||
MARQUEE | ??? | ??? | not 4.01 | x-html-marquee |
||||
MENU |
??? | ??? | deprecated | menu |
inline in Trados5.5 | |||
empty | x-html-meta |
|||||||
NOBR | inline??? | not 4.01 | x-html-nobr |
|||||
NOEMBED | wrapper | not 4.01 | x-html-noembed |
|||||
NOFRAMES |
wrapper | x-html-noframes |
||||||
NOSCRIPT |
wrapper | x-html-noscript |
||||||
OBJECT |
inline??? | mixed??? | x-html-object |
|||||
OL |
wrapper | x-html-ol |
||||||
wrapper | x-html-optgroup |
|||||||
PCDATA | x-html-option |
|||||||
P |
mixed | x-html-p |
||||||
PARAM |
inline??? | empty | x-html-param |
|||||
PLAINTEXT | ??? | ??? | obsolete | x-html-plaintext |
do not use??? | |||
PRE |
mixed | x-html-pre |
||||||
Q |
inline | mixed | x-html-q |
not inline in Trados5.5 | ||||
RB | inline | mixed | ruby subset | x-html-rb |
||||
RBC | inline | mixed | ruby subset | x-html-rbc |
||||
RP | inline | mixed | ruby subset | x-html-rp |
||||
RT | inline |
mixed |
ruby subset | x-html-rt |
||||
RTC | inline | mixed | ruby subset | x-html-rtc |
||||
RUBY | inline | mixed | ruby subset | x-html-ruby |
||||
S |
inline | mixed | deprecated | x-html-s |
||||
SAMP |
inline | mixed | x-html-samp |
not inline in Trados5.5 | ||||
SCRIPT |
inline??? | PCDATA | x-html-script |
not inline in Trados5.5 | ||||
inline | wrapper | x-html-select |
not inline in Trados5.5 (make sense to some level: it's in a form as a list of entries...) | |||||
SMALL |
inline | mixed | x-html-small |
|||||
SPAN |
inline | mixed | x-html-span |
|||||
SPACER | ??? | ??? | ??? | ??? | not 4.01 | x-html-spacer |
||
STRIKE |
inline | mixed | deprecated | x-html-strike |
||||
STRONG |
inline | mixed | x-html-strong |
|||||
STYLE |
PCDATA | x-html-style |
||||||
SUB |
inline | mixed | x-html-sub |
|||||
SUP |
inline | mixed | x-html-sup |
|||||
SYMBOL | inline | mixed | RobotHelp | x-html-symbol |
||||
TABLE |
wrapper | table |
||||||
TBODY |
wrapper | x-html-tbody |
||||||
TD |
mixed | cell |
||||||
inline | PCDATA | x-html-textarea |
not inline in Trados5.5 (content is subflow) | |||||
TFOOT |
wrapper | footer |
||||||
TH |
mixed | x-html-th |
||||||
THEAD |
wrapper | x-html-thead |
||||||
TITLE |
PCDATA | x-html-title |
||||||
TR |
mixed | row |
||||||
TT |
inline | mixed | x-html-tt |
|||||
U |
inline | mixed | deprecated | underlined |
||||
UL |
wrapper | x-html-ul |
||||||
VAR |
inline | mixed | x-html-var |
|||||
WBR | inline | empty | not 4.01 | x-html-wbr |
||||
XML | ??? | ??? | not 4.01 | x-html-xml |
||||
XMP | ??? | ??? | not 4.01 | x-html-xmp |
||||
<any other> | not inline | x-html-<any other> |
The following table lists the attributes used in the various flavors of HTML and their properties. If an attribute is not listed in this table, it is not translatable.
Attribute | Element(s) where it is used | Type Value | Notes |
---|---|---|---|
abbr | <td> and <th> |
x-html-<elem>abbr |
|
accesskey | <a> , <area> ,
<button> , <input> , <label> ,
<legend> , and <textarea> |
x-html-accesskey |
size-unit='char'
maxwidth='1' |
alt | <applet> , <area> ,
<img> , and <input> |
x-html-<elem>-alt |
|
content | <meta> |
||
label | <option> and <optgroup> |
label |
|
prompt | <isindex> |
x-html-isindex-prompt |
|
standby | <object> |
||
summary | <table> |
||
title | All elements except <base> ,
<basefont> , <head> , <html> ,
<meta> , <param> , <script> ,
and <title> |
||
value | <input> |
||
value | <option> |
NONE | Not translatable |
value | <param> |
The value attribute in a
<param> element is translatable only in some cases
depending on what the parameter is. |
|
value | <button> |
x-html-button-value |
|
value | <li> |
NONE | Not translatable |
Inline elements are HTML elements that should be treated as codes embedded
within a run of text, for example <b>
, <em>
, etc.
The following HTML elements should be treated as inline codes:
HTML DTD 'inline' elements: fontstyle: <tt>, <i>, <b>, <big>, <small> (+
deprecated: <strike>, <s>, <u>, <font>)
phrase: <em>, <strong>, <dfn>, <code>, <samp>,
<kbd>, <var>, <cite>, <abbr>, <acronym>.
formctrl: <input>, <select>, <textarea>, <label>,
<button>.
special: <a>, <img>, <object>, <br>, <script>,
<map>, <q>, <sub>, <sup>, <span>, <bdo>.
and also: <ins>, <del>.
[Not sure how to treat 'specials': <script> is generally not seen as inline by translation tools... Also: <object> can have non-inline element (???)]
[Get a list of the practice in commercial tools. Default inline tags for TagEditor are not the same. How about SDLX, DejaVu, etc.? Need for a standard list of inline tags?]
Ambassador: a, abbr, acronym, b, basefont, bdo, big, blink, cite, code, dfn, em, font, i, img, kbd, nobr, q, s, samp, small, span, strike, strong, sub, sup, tt, u, var, wbr (+br optionally)
Default for Catalyst: h1, h2, h3, h4, h5, h6, code, img, i, b.
Rainbow 4: b, i, span, br, font, a, img, big, small, tt, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, bdo, u, s, strike, blink, applet, iframe, del, ins, ruby, rt, rc, rp, rbc, rtc.
IMPORTANT:
There is several strategies possible for inline codes:
The second use allows to keep an open-close structure that is reflected in the DOM tree. While <bpt>, etc. does not.