-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(de): translate diff [306aae6aa5]
Machine translation from English using gpt-4o-2024-08-06. Source: mdn/content@306aae6 System prompt: ```md You are tasked with translating MDN Web Docs content from English to German. Ensure that the translation is accurate, preserves technical terminology, and follows the rules provided below. # Rules for Translation 1. Format: - The input is a Markdown file. - The output should be a Markdown file. - Return the raw output, without wrapping it in a Markdown code block. - Keep GFM alert syntax untranslated, such as `> [!NOTE]`, `> [!WARNING]`, and `> [!CALLOUT]`. - If the input contains HTML tags wrapped in backticks (e.g. `<video>`), make sure they are wrapped in the output. 2. Language: - Prefer formal language ("Sie") over informal language ("du"). 3. Code blocks: - Do not translate code blocks. - Do not translate terms wrapped in backticks. 4. Macro calls: - MDN uses macros for dynamic content insertion. These macros must remain **unchanged** and not translated. - Macro calls start with `{{`, followed by the macro name, optional parameters, and end with `}}`. - Avoid invalid macro calls by ensuring curly braces, parentheses, and quotes are closed properly. 5. Technical terms and code snippets in text: - Keep technical terms like element names, attributes, and method names in **English**. Only translate the surrounding descriptive text. 6. Links and References: - Translate link descriptions, but keep the URLs and their structure intact. - Do not change the locale in URLs. 7. Glossary: - "Browser compatibility" => "Browser-Kompatibilität" - "Guide" => "Leitfaden" - "How to" => "Anleitung" # Translation Scope Translate the following Markdown content from **English** to **German** while adhering to the rules above. ```
- Loading branch information
Showing
24 changed files
with
1,495 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
files/de/web/api/svgtextcontentelement/getcharnumatposition/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
title: "SVGTextContentElement: getCharNumAtPosition() Methode" | ||
short-title: getCharNumAtPosition() | ||
slug: Web/API/SVGTextContentElement/getCharNumAtPosition | ||
l10n: | ||
sourceCommit: 84cab3d0973d23ac3f00448784c55fe3f0c948ad | ||
--- | ||
|
||
{{APIRef("SVG")}} | ||
|
||
Die `getCharNumAtPosition()`-Methode des [`SVGTextContentElement`](/de/docs/Web/API/SVGTextContentElement)-Interfaces repräsentiert das Zeichen, das dazu führte, dass ein Textglyph an einer bestimmten Position im Koordinatensystem gerendert wurde. Da die Beziehung zwischen Zeichen und Glyphen nicht eins-zu-eins ist, wird nur das erste Zeichen des relevanten typografischen Zeichens zurückgegeben. | ||
|
||
Wenn an der angegebenen Position kein Zeichen gefunden wird, wird `-1` zurückgegeben. | ||
|
||
## Syntax | ||
|
||
```js-nolint | ||
SVGTextContentElement.getCharNumAtPosition(point) | ||
``` | ||
|
||
### Parameter | ||
|
||
- `point` | ||
- : Ein [`DOMPoint`](/de/docs/Web/API/DOMPoint)-Objekt; die Koordinaten (x, y), an denen die Position des Zeichens im Benutzerkoordinatenraum überprüft werden soll. | ||
|
||
### Rückgabewert | ||
|
||
Ein langer Wert; der Index des Zeichens, das der Position entspricht. | ||
|
||
## Beispiele | ||
|
||
### Das Zeichen an einer bestimmten Position finden | ||
|
||
```html | ||
<svg width="200" height="100"> | ||
<text id="exampleText" x="10" y="40" font-size="16">Hello, SVG World!</text> | ||
</svg> | ||
``` | ||
|
||
```js | ||
const textElement = document.getElementById("exampleText"); | ||
|
||
// Create a DOMPoint for the position (30, 40) | ||
const point = new DOMPoint(30, 40); | ||
|
||
// Get the character at the specified position | ||
const charIndex = textElement.getCharNumAtPosition(point); | ||
|
||
console.log(charIndex); // Output: 2 (for character "l") | ||
|
||
// Check with a point where no character is present | ||
const offPoint = new DOMPoint(300, 40); | ||
const offCharIndex = textElement.getCharNumAtPosition(offPoint); | ||
|
||
console.log(offCharIndex); // Output: -1 (no character found) | ||
``` | ||
|
||
## Spezifikationen | ||
|
||
{{Specifications}} | ||
|
||
## Browser-Kompatibilität | ||
|
||
{{Compat}} |
52 changes: 52 additions & 0 deletions
52
files/de/web/api/svgtextcontentelement/getcomputedtextlength/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
title: "SVGTextContentElement: Methode getComputedTextLength()" | ||
short-title: getComputedTextLength() | ||
slug: Web/API/SVGTextContentElement/getComputedTextLength | ||
l10n: | ||
sourceCommit: 84cab3d0973d23ac3f00448784c55fe3f0c948ad | ||
--- | ||
|
||
{{APIRef("SVG")}} | ||
|
||
Die Methode `getComputedTextLength()` der Schnittstelle [`SVGTextContentElement`](/de/docs/Web/API/SVGTextContentElement) gibt die berechnete Länge des Textes innerhalb des Elements an. | ||
|
||
## Syntax | ||
|
||
```js-nolint | ||
SVGTextContentElement.getComputedTextLength() | ||
``` | ||
|
||
### Parameter | ||
|
||
Keine. | ||
|
||
### Rückgabewert | ||
|
||
Ein Gleitkommawert (`float`). | ||
|
||
## Beispiele | ||
|
||
### Berechnung der Textlänge | ||
|
||
```html | ||
<svg width="300" height="100"> | ||
<text id="exampleText" x="10" y="50" font-size="16">Hello, SVG World!</text> | ||
</svg> | ||
``` | ||
|
||
```js | ||
const textElement = document.getElementById("exampleText"); | ||
|
||
// Get the computed text length | ||
const textLength = textElement.getComputedTextLength(); | ||
|
||
console.log(textLength); // Output: 124.5 (e.g. depends on font size and text content) | ||
``` | ||
|
||
## Spezifikationen | ||
|
||
{{Specifications}} | ||
|
||
## Browser-Kompatibilität | ||
|
||
{{Compat}} |
59 changes: 59 additions & 0 deletions
59
files/de/web/api/svgtextcontentelement/getendpositionofchar/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
title: "SVGTextContentElement: getEndPositionOfChar() Methode" | ||
short-title: getEndPositionOfChar() | ||
slug: Web/API/SVGTextContentElement/getEndPositionOfChar | ||
l10n: | ||
sourceCommit: 84cab3d0973d23ac3f00448784c55fe3f0c948ad | ||
--- | ||
|
||
{{APIRef("SVG")}} | ||
|
||
Die `getEndPositionOfChar()` Methode des [`SVGTextContentElement`](/de/docs/Web/API/SVGTextContentElement)-Interfaces gibt die Endposition eines typografischen Zeichens zurück, nachdem das Text-Layout durchgeführt wurde. | ||
|
||
## Syntax | ||
|
||
```js-nolint | ||
SVGTextContentElement.getEndPositionOfChar(index) | ||
``` | ||
|
||
### Parameter | ||
|
||
- `index` | ||
- : Ein `integer`; der Index des Zeichens. | ||
|
||
### Rückgabewert | ||
|
||
Ein [`DOMPoint`](/de/docs/Web/API/DOMPoint)-Objekt; die Position des Zeichens in Benutzerkoordinaten. | ||
|
||
### Ausnahmen | ||
|
||
- `IndexSizeError` [`DOMException`](/de/docs/Web/API/DOMException) | ||
- : Wird ausgelöst, wenn an der Position `index` kein Zeichen gefunden wird. | ||
|
||
## Beispiele | ||
|
||
### Ermitteln der Endposition eines Zeichens | ||
|
||
```html | ||
<svg width="300" height="100"> | ||
<text id="exampleText" x="10" y="50" font-size="16">Hello, SVG World!</text> | ||
</svg> | ||
``` | ||
|
||
```js | ||
const textElement = document.getElementById("exampleText"); | ||
|
||
// Get the end position of the character at index 0 (the first character) | ||
const position = textElement.getEndPositionOfChar(0); | ||
|
||
// Get the x and y coordinates of the first character | ||
console.log(position.x, position.y); // Output: 21.5 50 | ||
``` | ||
|
||
## Spezifikationen | ||
|
||
{{Specifications}} | ||
|
||
## Browser-Kompatibilität | ||
|
||
{{Compat}} |
63 changes: 63 additions & 0 deletions
63
files/de/web/api/svgtextcontentelement/getextentofchar/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
title: "SVGTextContentElement: getExtentOfChar() Methode" | ||
short-title: getExtentOfChar() | ||
slug: Web/API/SVGTextContentElement/getExtentOfChar | ||
l10n: | ||
sourceCommit: 84cab3d0973d23ac3f00448784c55fe3f0c948ad | ||
--- | ||
|
||
{{APIRef("SVG")}} | ||
|
||
Die `getExtentOfChar()`-Methode der Schnittstelle [`SVGTextContentElement`](/de/docs/Web/API/SVGTextContentElement) stellt die berechnete enge Begrenzungsbox der Glyphenzelle dar, die einem bestimmten typografischen Zeichen entspricht. | ||
|
||
## Syntax | ||
|
||
```js-nolint | ||
SVGTextContentElement.getExtentOfChar(index) | ||
``` | ||
|
||
### Parameter | ||
|
||
- `index` | ||
- : Ein `integer`; der Index des Zeichens. | ||
|
||
### Rückgabewert | ||
|
||
Ein [`DOMRect`](/de/docs/Web/API/DOMRect)-Objekt; die enge Begrenzungsbox des angegebenen Zeichens. | ||
|
||
### Ausnahmen | ||
|
||
- `IndexSizeError` [`DOMException`](/de/docs/Web/API/DOMException) | ||
- : Wird ausgelöst, wenn an der Stelle `index` kein Zeichen gefunden wird. | ||
|
||
## Beispiele | ||
|
||
### Abrufen des Ausmaßes eines Zeichens | ||
|
||
```html | ||
<svg width="300" height="100"> | ||
<text id="exampleText" x="10" y="50" font-size="16">Hello, SVG World!</text> | ||
</svg> | ||
``` | ||
|
||
```js | ||
const textElement = document.getElementById("exampleText"); | ||
|
||
// Get the extent (bounding box) of the character at index 0 (the first character) | ||
const extent = textElement.getExtentOfChar(0); | ||
|
||
// The bounding box of the first character | ||
console.dir(extent); // Output: DOMRect { x: 10, y: 38, width: 11.55, height: 16 } | ||
``` | ||
|
||
## Spezifikationen | ||
|
||
{{Specifications}} | ||
|
||
## Browser-Kompatibilität | ||
|
||
{{Compat}} | ||
|
||
## Siehe auch | ||
|
||
- [`DOMRect`](/de/docs/Web/API/DOMRect) |
52 changes: 52 additions & 0 deletions
52
files/de/web/api/svgtextcontentelement/getnumberofchars/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
title: "SVGTextContentElement: getNumberOfChars()-Methode" | ||
short-title: getNumberOfChars() | ||
slug: Web/API/SVGTextContentElement/getNumberOfChars | ||
l10n: | ||
sourceCommit: 84cab3d0973d23ac3f00448784c55fe3f0c948ad | ||
--- | ||
|
||
{{APIRef("SVG")}} | ||
|
||
Die `getNumberOfChars()`-Methode der [`SVGTextContentElement`](/de/docs/Web/API/SVGTextContentElement)-Schnittstelle gibt die Gesamtanzahl der adressierbaren Zeichen an, die innerhalb des aktuellen Elements zur Verfügung stehen, unabhängig davon, ob sie gerendert werden. | ||
|
||
## Syntax | ||
|
||
```js-nolint | ||
SVGTextContentElement.getNumberOfChars() | ||
``` | ||
|
||
### Parameter | ||
|
||
Keine. | ||
|
||
### Rückgabewert | ||
|
||
Ein langer Wert. | ||
|
||
## Beispiele | ||
|
||
### Zeichen in einem Textelement zählen | ||
|
||
```html | ||
<svg width="300" height="100"> | ||
<text id="exampleText" x="10" y="50">Hello, SVG World!</text> | ||
</svg> | ||
``` | ||
|
||
```js | ||
const textElement = document.getElementById("exampleText"); | ||
|
||
// Get the number of characters in the text element | ||
const charCount = textElement.getNumberOfChars(); | ||
|
||
console.log(charCount); // Output: 17 | ||
``` | ||
|
||
## Spezifikationen | ||
|
||
{{Specifications}} | ||
|
||
## Browser-Kompatibilität | ||
|
||
{{Compat}} |
64 changes: 64 additions & 0 deletions
64
files/de/web/api/svgtextcontentelement/getrotationofchar/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
title: "SVGTextContentElement: getRotationOfChar()-Methode" | ||
short-title: getRotationOfChar() | ||
slug: Web/API/SVGTextContentElement/getRotationOfChar | ||
l10n: | ||
sourceCommit: 84cab3d0973d23ac3f00448784c55fe3f0c948ad | ||
--- | ||
|
||
{{APIRef("SVG")}} | ||
|
||
Die `getRotationOfChar()`-Methode der [`SVGTextContentElement`](/de/docs/Web/API/SVGTextContentElement)-Schnittstelle repräsentiert die Rotation eines typografischen Zeichens. | ||
|
||
## Syntax | ||
|
||
```js-nolint | ||
SVGTextContentElement.getRotationOfChar(index) | ||
``` | ||
|
||
### Parameter | ||
|
||
- `index` | ||
- : Ein `integer`; der Index des Zeichens. | ||
|
||
### Rückgabewert | ||
|
||
Ein Float; der Rotationswinkel des Zeichens in Grad. | ||
|
||
### Ausnahmen | ||
|
||
- `IndexSizeError` [`DOMException`](/de/docs/Web/API/DOMException) | ||
- : Wird ausgelöst, wenn kein Zeichen an `index` gefunden wird. | ||
|
||
## Beispiele | ||
|
||
### Ermitteln der Rotation eines Zeichens | ||
|
||
```html | ||
<svg width="200" height="100"> | ||
<text id="exampleText" x="10" y="40" writing-mode="vertical-rl"> | ||
Hello, SVG | ||
</text> | ||
</svg> | ||
``` | ||
|
||
```js | ||
const textElement = document.getElementById("exampleText"); | ||
|
||
// Get the rotation of the first character "H" | ||
const rotation = textElement.getRotationOfChar(0); | ||
|
||
console.log(extent); // Output: 90 | ||
``` | ||
|
||
## Spezifikationen | ||
|
||
{{Specifications}} | ||
|
||
## Browser-Kompatibilität | ||
|
||
{{Compat}} | ||
|
||
## Siehe auch | ||
|
||
- [`writing-mode`](/de/docs/Web/CSS/writing-mode) |
Oops, something went wrong.