Skip to content

Import Word indent styles like "1-3" as the matching braille style - #183

Merged
krperry merged 2 commits into
mainfrom
fix/docx-indent-styles
Oct 20, 2026
Merged

krperry merged 2 commits into
mainfrom
fix/docx-indent-styles

Conversation

@krperry

@krperry krperry commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Problem

ASM's STM statements put most lines in a Word style named "1-3" (cell 1, runovers at cell 3), as Duxbury's templates name them. bbx.lua passed the custom-style Div through, so these lines became ordinary 3-1 paragraphs.

Fix

A Div whose style is named N-M now gives its paragraphs the numeric style of that name from BANA.styleDefs.xml, when there is one: first line at an odd cell from 1 to 11, runovers no more than two cells to its left. Other names are left alone.

Tests

DocxIndentStyleTest: "1-3" and other valid names map to their style; invalid names (even cells, out of range) don't.

ASM's STM statements put most lines in a Word style named "1-3" (cell 1,
runovers at cell 3), as Duxbury's templates name them. bbx.lua passed the
custom-style Div through, so these became ordinary 3-1 paragraphs. A Div
whose style is named N-M now gives its paragraphs the numeric style of that
name from BANA.styleDefs.xml, when it has one.
# Conflicts:
#	brailleblaster-core/src/main/dist/programData/pandoc/lua/bbx.lua
@krperry
krperry merged commit 4a5c66e into main Oct 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant