view etc/schema/xhtml-bdo.rnc @ 107606:297c59e52ecf

Retrospective commit from 2009-12-26. Redesign handle_stop_backwards. Fix character mirroring for non-ASCII characters. xdisp.c (handle_stop_backwards): Call compute_stop_pos in the loop, instead of calling handle_stop. Call handle_stop only once, after the loop. (next_element_from_buffer): Don't call handle_stop_backwards if at stop position. If base_level_stop is zero, set it to 1. term.c (append_glyph): Fill resolved_level and bidi_type slots of struct glyph for unidirectional display. xdisp.c (set_cursor_from_row): Handle zero-width characters. bidi.c (bidi_mirror_char): More efficient code (suggested by Ehud Karni <ehud@unix.mvs.co.il>). Don't even try to mirror non-ASCII characters.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 01 Jan 2010 10:04:53 -0500
parents 38f93f3d00a2
children
line wrap: on
line source

# Bi-directional Module

bdo = element bdo { bdo.attlist, Inline.model }
bdo.attlist = Core.attrib, lang.attrib, dir.attrib
dir.attrib = attribute dir { "ltr" | "rtl" }
I18n.attrib &= dir.attrib?
Inline.class |= bdo