Skip to content

Commit

Permalink
Add new block attributes "right-text-indent" and "right-last-line-ind…
Browse files Browse the repository at this point in the history
…ent" (#9)

fixes braillespecs#78
  • Loading branch information
bertfrees authored Apr 3, 2020
1 parent eee50bb commit 03cfa9b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/obfl-specification.html
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ <h4 id="L1207" class="include">leader</h4>
<dd>before, after, toc-entry, toc-entry-on-resumed, block, item</dd>
<dt>Attributes</dt>
<dd><dl>
<dt>align [optional]</dt>
<dt id="leader-att-align">align [optional]</dt>
<dd>Alignment of the text following the leader.</dd>
<dd>The leader can be aligned to the left, center or right of the
following text segment.</dd>
Expand Down Expand Up @@ -2625,6 +2625,20 @@ <h3 id="block-atts">Block</h3>
<dd>Indent of every line in the block except the first one (in
characters)</dd>
<dd>A number.</dd>
<dd>This attribute is used to create hanging indentation.</dd>
<dt>right-last-line-indent [optional]</dt>
<dd>Right indent of the last line of a block (in characters)</dd>
<dd>A number.</dd>
<dt>right-text-indent [optional]</dt>
<dd>Right indent of every line in the block except the last one
(in characters)</dd>
<dd>A number.</dd>
<dd>Note that right indentation only makes sense
for <a href="block-att-align">right-aligned</a> text. The feature
can also be used to indent text that comes after
a <span class="markup">leader</span> and
is <a href="leader-att-align">right-aligned</a>.
</dd>
<dt>block-indent [optional]</dt>
<dd>Indent of this block's block children (in characters)</dd>
<dd>A number.</dd>
Expand All @@ -2650,7 +2664,7 @@ <h3 id="block-atts">Block</h3>
<dd>The specified label is inserted in place of the default list label.</dd>
<dd>A string.</dd>
</dl></dd>
<dt>align [optional]</dt>
<dt id="block-att-align">align [optional]</dt>
<dd>Specifies the text alignment.</dd>
<dd>One of 'left' (default), 'center' or 'right'.</dd>
<dt>underline-style [optional]</dt>
Expand Down
6 changes: 6 additions & 0 deletions src/validation/obfl.rng
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@
<optional>
<attribute name="text-indent"/>
</optional>
<optional>
<attribute name="right-last-line-indent"/>
</optional>
<optional>
<attribute name="right-text-indent"/>
</optional>
<optional>
<attribute name="block-indent"/>
</optional>
Expand Down

0 comments on commit 03cfa9b

Please sign in to comment.