.. include:: /Includes.rst.txt .. _editing-language-marks: Editing language marks ^^^^^^^^^^^^^^^^^^^^^^ .. _case-1-the-author-highlights-a-part-of-a-text-node-and-selects-a-language: Case 1: The author highlights a part of a text node and selects a language """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Highlightedarea:

Semantisches Markupmindert Barrieren.

Result in markup with cursor position:

Semantisches Markup\|mindert Barrieren.

.. _case-2-the-author-highlights-the-whole-text-node-inside-an-inline-element-and-selects-a-language: Case 2: The author highlights the whole text node inside an inline element and selects a language """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .. _a-toadd-the-lang-attribute: a) toadd the lang attribute """"""""""""""""""""""""""" Highlighted area: New York Times Result in markup with cursor position: New York Times\| .. _b-tochange-the-value-of-the-lang-attribute: b) tochange the value of the lang attribute """"""""""""""""""""""""""""""""""""""""""" Highlighted area: Le Monde Result in markup with cursor position: Le Monde\| .. _c-todelete-the-lang-attribute-no-language: c) todelete the lang attribute (No language) """""""""""""""""""""""""""""""""""""""""""" Highlighted area: Die Zeit Result in markup with cursor position: Le Monde\| In case the inline element in question isa span thatdoes not have any other attributes, the span element will be removed. .. _case-3-the-author-highlights-a-complete-element-node-via-the-status-bar-and-selects-a-language: Case 3: The author highlights a complete element node via the status bar and selects a language """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Highlighted area: New York Times Result in markup with cursor position: New York Times\| .. _case-4-nothing-is-highlighted-and-the-author-selects-a-language: Case 4: Nothing is highlighted and the author selects a language """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .. _case-4-a-to-add-the-lang-attribute: a) to add the lang attribute """""""""""""""""""""""""""" Cursor position:

Die New \|York Times titelte ….

The lang attribute is set in the direct parent element node.Result in markup with cursor position:

Die New\|York Times titelte ….

.. _case-4-b-tochange-the-attribute-value: b) tochange the attribute value """"""""""""""""""""""""""""""" Cursor position:

New \|York Times titelte ….

Result in markup with cursor position:The value of the lang attribute of the direct parent element node is changed.

New \|York Times titelte ….

.. _case-4-c-toremove-the-lang-attribute: c) toremove the lang attribute """""""""""""""""""""""""""""" Cursor position:

Die \|Zeit titelte ….

Result in markup with cursor position:The lang attribute gets removed.

Die \|Zeit titelte ….

In case of a span element that has no other attributes the span element will be removed. .. _case-5-nothing-is-highlighted-the-cursor-is-directly-inside-a-block-element-and-the-author-selects-a-language: Case 5: Nothing is highlighted, the cursor is directly inside a block element and the author selects a language """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

Beware \|the dog!

The lang attribute is set for the parent element:

Beware\|the dog!

.. _case-6-the-author-selects-a-block-element-via-the-status-bar: Case 6: The author selects a block element via the status bar """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .. _case-6-a-to-add-the-lang-attribute: a) to add the lang attribute """""""""""""""""""""""""""" Highlightedblock:

Did you ever experience a dejà vu effect?

Resulting markup with cursor position:

Have you ever had a dejà vu effect.

\| .. _case-6-b-to-change-the-value-of-the-lang-attribute: b) to change the value of the lang attribute """""""""""""""""""""""""""""""""""""""""""" Highlighted block:

Hattest du jemals einen dejà vu-Effekt?

Resulting markup with cursor position:

Hattest du je einen dejà vu-Effekt.

\| .. _case-6-c-to-remove-the-lang-attribute: c) to remove the lang attribute """"""""""""""""""""""""""""""" Highlighted block:

Hattest du jemals einen dejà vu-Effekt?

Resulting markup with cursor position:

Hattest du je einen dejà vu-Effekt.

\| .. _case-7-the-author-highlights-multiple-block-elements-and-selects-a-language: Case 7: The author highlights multiple block elements and selects a language """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

Rats!

They fought the dogs and killed the cats,

And bit the babies in the cradles,

And ate the cheeses out of the vats,

And licked the soup from the cooks' ownladles,

Resulting markup with cursor position: Rats!

They fought the dogs and killed the cats,

And bit the babies in the cradles,

And ate the cheeses out of the vats,

And licked the soup from the cooks' own\|ladles,