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

WIP partial_sheet_signatures.js #23

Closed
wants to merge 66 commits into from

Conversation

Lottie16
Copy link
Collaborator

Should work for eg all signatures 5 pieces of paper to sew.
Can't remember if I managed to get it to work with uneven signatures (eg equivalent of 6,5,5,6 on folio)
@sithel tagging you as requested :D

momijizukamori and others added 20 commits February 11, 2022 15:39
fixing duplex/single sheet saving logic, adding 1/3rd page layout
* start contributor docs, add build script

* add links to resources

* continue contribution guide

* add PR screenshot

* move extra help steps to separate doc

* typo fix

Co-authored-by: Devon Wolfkiel <[email protected]>
* move theme colors to variables, add dark mode media query

* adjust color of text on disabled buttons and dropdowns to have better contract in dark mode

* soften colors and adjust link colors

* adjust styling to be more responsive

* add wrapper and viewport tag to old page

* remove unneeded attribute

Co-authored-by: Devon Wolfkiel <[email protected]>
* Add tests
* Updating contributing doc with info on tests
* Refactor preload.js into smaller components
* Move constants to separate file
* General code tidying

Co-authored-by: jackal-ate-jill <[email protected]>
…omijizukamori#15)

* broken... but so close to new layout

* :( y u no build?

* 3 6s now working

* fixing some things

* pretty happy with all that now

* aaaaand another layout

* aaaaand another layout

* ok, final changes for UI cleanup

* fix 16 per side lines

* tweaking display names
Gaaaaahhhh... fixing bad break for the mini layout
(landing because it's just a minor fix in just the wacky layouts)
…fixes problem encountered on 1/3rd layout at least
…ank_pages_fix

minor bandaid for wacky all-blank pages  (Merging because this only affects the wacky code & is a minor bug fix)
adding some helpful info based on Discord discussions
Should work for eg all signatures 5 pieces of paper to sew.
Can't remember if I managed to get it to work with uneven signatures (eg equivalent of 6,5,5,6 on folio)
added at lines 165-172 and 186
@@ -161,6 +161,14 @@ export class Book {
this.rearrangedpages = this.book.pagelist;
} else if (this.format == 'a9_3_3_4' || this.format == 'a10_6_10s' || this.format == 'A7_2_16s' || this.format == '1_3rd' || this.format == 'a_3_6s' || this.format == 'a_4_8s') {
this.book = new WackyImposition(this.orderedpages, this.duplex, this.format, this.pack_pages)
} else if (this.format == 'partsheetsigstandard' || this.format =='partsheetsigcustom') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you introduce this format partsheetsigstandard and partsheetsigcustom but there's still no way for that to be selected...

@@ -161,6 +161,14 @@ export class Book {
this.rearrangedpages = this.book.pagelist;
} else if (this.format == 'a9_3_3_4' || this.format == 'a10_6_10s' || this.format == 'A7_2_16s' || this.format == '1_3rd' || this.format == 'a_3_6s' || this.format == 'a_4_8s') {
this.book = new WackyImposition(this.orderedpages, this.duplex, this.format, this.pack_pages)
} else if (this.format == 'partsheetsigstandard' || this.format =='partsheetsigcustom') {
this.book = new PartialSheetSignatures(this.orderedpages, this.duplex, this.sigsize, this.per_sheet, this.duplexrotate);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing the import for this at the top
import { PartialSheetSignatures } from './partial_sheet_signatures.js';

@@ -0,0 +1,128 @@
import {Booklet} from './booklet.js';

export class PartialSheetSignatures {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a test export of this and the zip downloaded was empty-- does this work for you locally?

@Lottie16 Lottie16 added enhancement New feature or request help wanted Extra attention is needed minis labels May 30, 2023
@Lottie16 Lottie16 self-assigned this May 30, 2023
@Lottie16 Lottie16 linked an issue May 30, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed minis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for signatures with 4mod8 pages in quarto etc
4 participants