I want to know the size of an InDesign automatic hyphen when it hyphenate the text in function of the size and the font used.
Should also take into account the size of the hyphen may vary depending on the typographic language used (English, French, Arabic, etc.) when editing text in InDesign.
My goal is to determine the rectangle of a word by taking into account the size of the dash automatically.
Wouldn't the hyphen be the same width as if you typed a hyphen from the keyboard in that typeface and size? Different typefaces have different lengths to their designed hyphens. Dashes are something different altogether from hyphens.
You write hyphen depending on language? That is the little dash at the end of a line when a word is interrupted. And in all western languages it is the - (DIVIS).
Where differences are is the dash between words to interrupt part of the sentences, these are (like apostrophes) very different in each language.
In English you use the m-dash—without any space before and after.
In German you use the n-dash (Gedankenstrich) – with space before and after and never at the beginning of the new line (Except Spiegelstrich which is used as bullet, it is the same dash).
Between numbers are also different length and types.
But these dashes are always different glyphs on the keyboard and depending of the language layout on different places. On a mac QWERTZ-keyboard (as I have here in Germany) m-dash = shift+alt+"-"; n-dash=alt+"-", on windows m-dash=alt+0151 (nummeric) and n-dash=alt+0150