Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

back to core topic "pagination" #33

Open
gillangit opened this issue Jan 4, 2025 · 4 comments
Open

back to core topic "pagination" #33

gillangit opened this issue Jan 4, 2025 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@gillangit
Copy link

I think we are back to the starting point that this library should also accommodate page numbers either in the head or footer, correct me if wrong?

@hugs7
Copy link
Owner

hugs7 commented Jan 4, 2025

yeah. I/we need to figure out how to approach header and footer too. The basic idea would be to have the document tree like so

> doc
     > page
            > header
                 > para
            > body
                 > para ....
                 ...
            > footer
                > para
    ...

Then you can add page numbers or whatever. I don't think that in itself would be too difficult but it brings more challenges with handling the cursor/selection around page boundaries.

@hugs7 hugs7 added the enhancement New feature or request label Jan 4, 2025
@hugs7 hugs7 self-assigned this Jan 5, 2025
@hugs7
Copy link
Owner

hugs7 commented Jan 5, 2025

Am going to start with #36

@hugs7
Copy link
Owner

hugs7 commented Jan 31, 2025

Hey @gillangit , I've merged in what I've got so far for header/footer/body support. It's by no means complete and there are a couple of minor bugs, bug I've got a working editor with header/footer and body support, including working keybindings that jump from body to body between pages, etc. Just as you'd get in Word.

Image

I don't really have great documentation yet but will try to eventually get a demo people can play around in and see a code example.

@hugs7 hugs7 closed this as completed Jan 31, 2025
@hugs7
Copy link
Owner

hugs7 commented Jan 31, 2025

As for page numbers in the footer, this is still to do, but we are now much closer

@hugs7 hugs7 reopened this Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants